/* Self-hosted Google Fonts (latin subset), OFL licensed. */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/IBMPlexMono-latin-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/IBMPlexMono-latin-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/LibreFranklin-latin-var.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/LibreFranklin-latin-var.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/LibreFranklin-latin-var.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/LibreFranklin-latin-var.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*
  Swapwire public pages.
  Follows website direction "Option 5, Plain register": a public register, data first.
  Near-white page, black rules, Libre Franklin for text, IBM Plex Mono for license
  numbers, URLs and field names. A small header mark. Red is used only for a suspended status.
*/
:root {
  --page: #fdfdfb;
  --ink: #111111;
  --text: #333333;      /* body copy next to ink headings */
  --soft: #555555;      /* labels, dates, captions */
  --rule: #d8d6cf;      /* light row rule */
  --code-bg: #efeee8;
  --field: #ffffff;
  --stop: #b92a14;      /* suspended status, link hover */
  --focus: #1d4ed8;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #141413; --ink: #f1f1ec; --text: #d6d6cf; --soft: #a9a9a1; --rule: #3a3a36;
    --code-bg: #24241f; --field: #1c1c1a; --stop: #ff8f7a; --focus: #93b4ff;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--sans); font-size: 16.5px; line-height: 1.5; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
@media (max-width: 520px) { .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); } }

/* Header and footer */
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; padding-block: 10px; border-bottom: 3px solid var(--ink); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand svg { width: 20px; height: 22px; flex: none; }
.brand span { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
header.site nav { display: flex; flex-wrap: wrap; gap: 0 22px; font-size: 15px; }
header.site nav a { padding: 12px 0; }
footer.site .wrap { border-top: 3px solid var(--ink); padding-block: 14px 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 40px; font-size: 14px; color: var(--soft); }
footer.site p { margin: 0; flex: 1 1 420px; min-width: 0; max-width: 46em; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 0 18px; font-size: 14px; }
footer.site nav a { padding: 10px 0; color: var(--soft); }

/* Type */
main { padding-block: 28px 56px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(26px, 2.8vw, 34px); line-height: 1.08; letter-spacing: -0.025em; max-width: 20em; }
h2 { font-weight: 800; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; margin-top: 32px; padding-top: 14px; border-top: 1px solid var(--ink); }
h3 { font-weight: 800; font-size: 17px; line-height: 1.25; margin-top: 20px; }
p { margin: 12px 0 0; max-width: 44em; color: var(--text); }
ul, ol { margin: 12px 0 0; padding-left: 22px; max-width: 44em; color: var(--text); }
li { margin-top: 6px; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
strong { color: var(--ink); }
.crumbs { font-size: 14px; color: var(--soft); margin-bottom: 18px; }
.crumbs a { color: var(--soft); }
.lede { font-size: 18px; max-width: 36em; }
.asof, .source, .fine { font-size: 14.5px; color: var(--soft); }
code, .mono { font-family: var(--mono); font-size: 0.88em; overflow-wrap: anywhere; }
p code, li code { background: var(--code-bg); padding: 1px 5px; }

/* Top band: a heading with a ruled facts panel beside it */
.band { display: flex; flex-wrap: wrap; gap: 28px 56px; padding-bottom: 32px; border-bottom: 1px solid var(--ink); }
.band > div { flex: 999 1 520px; min-width: 0; }
.band + h2, .band + section > h2:first-child { border-top: 0; }
dl.facts { flex: 1 1 300px; min-width: 0; margin: 0; font-size: 15px; align-self: start; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
dl.facts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 7px 0; }
dl.facts > div + div { border-top: 1px solid var(--rule); }
dl.facts dt { color: var(--soft); white-space: nowrap; }
dl.facts .st { white-space: normal; }
dl.facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }

/* Two columns on the home page */
.cols { display: flex; flex-wrap: wrap; gap: 8px 48px; }
.cols > .main { flex: 999 1 600px; min-width: 0; }
.cols > aside { flex: 1 1 280px; min-width: 0; font-size: 15px; }
.cols > aside h2 { font-size: 18px; }

/* License record */
.plate-label { margin: 0; font-size: 14.5px; color: var(--soft); }
.plate { margin: 2px 0 6px; font-family: var(--mono); font-weight: 600; font-size: 20px; color: var(--ink); }
.where { font-size: 16.5px; }
.status-line { margin-top: 10px; font-size: 18px; font-weight: 600; color: var(--ink); }
.status-line.stop { color: var(--stop); }
.status-line .st { margin-right: 0; }
dl.record { margin: 18px 0 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
dl.record > div { display: grid; grid-template-columns: minmax(150px, 26%) 1fr; gap: 2px 20px; padding: 10px 0; }
dl.record > div + div { border-top: 1px solid var(--rule); }
dl.record dt { color: var(--soft); font-size: 15px; }
dl.record dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
dl.record small { display: block; color: var(--soft); font-size: 14.5px; margin-top: 2px; }
@media (max-width: 560px) { dl.record > div { grid-template-columns: 1fr; } }

/* Status: a filled dot for clear, a red ring for a suspension code */
.st { white-space: nowrap; font-weight: 600; }
.st::before { content: ""; display: inline-block; box-sizing: border-box; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); margin-right: 7px; vertical-align: 0.05em; }
.st-stop { color: var(--stop); }
.st-stop::before { background: transparent; border: 2.5px solid var(--stop); }

/* Field list, for what a record contains */
dl.fields { margin: 10px 0 0; }
dl.fields > div { padding: 8px 0; border-top: 1px solid var(--rule); }
dl.fields dt { font-family: var(--mono); font-size: 13.5px; font-weight: 600; }
dl.fields dd { margin: 2px 0 0; color: var(--text); }

/* Tables */
.scroll { overflow-x: auto; margin-top: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; text-align: left; }
th, td { text-align: left; vertical-align: top; padding: 9px 14px 9px 0; border-bottom: 1px solid var(--rule); }
thead th { font-size: 13.5px; font-weight: 500; color: var(--soft); padding-block: 6px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 2px solid var(--ink); }
tbody th { font-weight: 600; }
tbody th.mono, td.mono { font-family: var(--mono); font-size: 14.5px; white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Lookup form */
form.lookup { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
form.lookup > div { display: flex; flex-direction: column; gap: 4px; flex: 0 1 260px; min-width: 0; }
form.lookup label { font-size: 14.5px; font-weight: 600; }
form.lookup input { width: 100%; height: 46px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 0; background: var(--field); color: var(--ink); font-family: var(--mono); font-size: 17px; }
.btn, form.lookup button { display: inline-block; height: 46px; padding: 0 22px; border: 2px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--page); font-family: var(--sans); font-size: 16px; font-weight: 600; cursor: pointer; line-height: 42px; text-decoration: none; }
.btn:hover, form.lookup button:hover { background: var(--text); border-color: var(--text); color: var(--page); }

.note { margin-top: 32px; padding-top: 12px; border-top: 1px solid var(--rule); }
.note p:first-child { margin-top: 0; }

/* Verify-on-CSLB action on license pages */
.verify { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 18px; }
.verify span { font-size: 14.5px; color: var(--soft); }
.scroll.narrow { max-width: 40em; }
@media (max-width: 520px) { header.site nav .nav-agents { display: none; } }

/* Accessibility: skip link and visually hidden table captions */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--page); color: var(--ink); padding: 6px 10px; outline: 2px solid var(--focus); }
.skip:focus { left: 16px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/*
  Record slip (license pages and homepage).
  The state record as one boxed, monospace block, like a printed record copy, so it reads as
  data for agents and people alike. No images. Context follows in normal text below the slip.
*/
.slip { border: 1.5px solid var(--ink); padding: 20px 22px; min-width: 0; font-family: var(--mono); font-size: 14.5px; line-height: 1.6; }
.slip p { color: var(--ink); max-width: none; }
.slip-h { margin: 0; font-family: var(--mono); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); border: 0; padding: 0; }
.slip-h.rule { margin-top: 34px; padding-bottom: 6px; border-bottom: 1.5px solid var(--ink); }
.slip-num { margin: 6px 0 0; font-size: 30px; font-weight: 600; letter-spacing: 0.02em; line-height: 1.2; }
.slip-name { margin: 2px 0 0; font-family: var(--sans); font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; letter-spacing: -0.015em; line-height: 1.15; max-width: none; }
.slip-status { margin: 14px 0 0; padding: 8px 0; border-top: 1px dashed var(--ink); border-bottom: 1px dashed var(--ink); font-weight: 600; }
.slip-status.stop { color: var(--stop); }
dl.slip-rows { margin: 12px 0 0; }
dl.slip-rows > div { display: grid; grid-template-columns: 16ch minmax(0, 1fr); gap: 0 14px; padding: 4px 0; }
dl.slip-rows dt { color: var(--soft); }
dl.slip-rows dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
dl.slip-rows small { display: block; color: var(--soft); font-size: 13px; }
.slip-stamp { margin: 14px 0 0; font-size: 12.5px; color: var(--soft) !important; }
.slip-stamp a { color: var(--soft); }
.slip-cut { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--ink); font-family: var(--sans); font-size: 15px; color: var(--text) !important; }
.record-slip { max-width: 760px; }
/* Three checks under the status line: filled dot = ok, hollow ring = check, red ring = stop */
ul.checks { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 10px 0 0; padding: 0; max-width: none; color: var(--ink); }
ul.checks li { margin: 0; font-weight: 600; }
.ck::before { content: ""; display: inline-block; box-sizing: border-box; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 0.05em; background: var(--ink); }
.ck-warn::before { background: transparent; border: 2px solid var(--ink); }
.ck-stop { color: var(--stop); }
.ck-stop::before { background: transparent; border: 2.5px solid var(--stop); }
.ck-k { font-weight: 400; color: var(--soft); }
.ck-stop .ck-k { color: var(--stop); }
.alerts { margin-top: 10px; padding: 8px 0 2px; border-top: 1px dashed var(--ink); }
.alerts-h { margin: 0; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.alerts ul { margin: 4px 0 0; padding-left: 18px; max-width: none; color: var(--ink); font-family: var(--sans); font-size: 15px; }
.answer { font-size: 18px; font-weight: 600; color: var(--ink); }
.record-slip + .verify { margin-top: 20px; }
@media (max-width: 560px) {
  .slip { padding: 14px; }
  dl.slip-rows > div { grid-template-columns: minmax(0, 1fr); padding: 5px 0; }
}

/* Homepage: one count strip, then a people slip and an agents slip side by side */
.home-top h1 { max-width: 24em; }
.home-strip { margin-top: 8px; font-family: var(--mono); font-size: 13.5px; color: var(--soft); max-width: none; }
.slip-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 18px; margin-top: 22px; }
.slip-pair form.lookup { margin-top: 14px; }
.slip-pair form.lookup > div { flex: 1 1 200px; }
.slip-pair form.lookup label { font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--soft); }
pre.manifest { margin: 12px 0 0; font-family: var(--mono); font-size: 13.5px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
pre.manifest .c { color: var(--soft); }
ul.lines { list-style: none; margin: 4px 0 0; padding: 0; max-width: none; }
ul.lines li { display: grid; grid-template-columns: 9ch minmax(0, 1fr) auto; gap: 2px 14px; margin: 0; padding: 8px 0; border-bottom: 1px dashed var(--rule); align-items: baseline; }
ul.lines .mono { font-size: 14.5px; }
ul.lines .nm { font-weight: 600; min-width: 0; color: var(--ink); }
ul.lines .meta { font-family: var(--mono); font-size: 13px; color: var(--soft); white-space: nowrap; }
@media (max-width: 560px) {
  ul.lines li { grid-template-columns: 9ch minmax(0, 1fr); }
  ul.lines .meta { grid-column: 2; white-space: normal; }
}

/* Commands and config on /connect/ */
pre.cmd { margin: 10px 0 0; padding: 12px 14px; background: var(--code-bg); border-left: 3px solid var(--ink); font-family: var(--mono); font-size: 14px; line-height: 1.55; overflow-x: auto; white-space: pre; max-width: 100%; }
pre.cmd code { font-size: inherit; overflow-wrap: normal; }

/* App tabs on /connect/: radio inputs, one panel at a time (no scripts). */
.tabs { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.tabs > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tabs > label { padding: 8px 14px; border: 1.5px solid var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; min-height: 40px; line-height: 22px; }
.tabs > label:hover { background: var(--code-bg); }
.tabs > input:checked + label { background: var(--ink); color: var(--page); }
.tabs > input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }
.tabs > .panels { flex-basis: 100%; border-top: 1.5px solid var(--ink); margin-top: 6px; padding-top: 4px; min-height: 260px; }
.tabs .panel { display: none; }
.tabs > input:nth-of-type(1):checked ~ .panels > .panel:nth-of-type(1),
.tabs > input:nth-of-type(2):checked ~ .panels > .panel:nth-of-type(2),
.tabs > input:nth-of-type(3):checked ~ .panels > .panel:nth-of-type(3),
.tabs > input:nth-of-type(4):checked ~ .panels > .panel:nth-of-type(4),
.tabs > input:nth-of-type(5):checked ~ .panels > .panel:nth-of-type(5),
.tabs > input:nth-of-type(6):checked ~ .panels > .panel:nth-of-type(6),
.tabs > input:nth-of-type(7):checked ~ .panels > .panel:nth-of-type(7),
.tabs > input:nth-of-type(8):checked ~ .panels > .panel:nth-of-type(8),
.tabs > input:nth-of-type(9):checked ~ .panels > .panel:nth-of-type(9),
.tabs > input:nth-of-type(10):checked ~ .panels > .panel:nth-of-type(10),
.tabs > input:nth-of-type(11):checked ~ .panels > .panel:nth-of-type(11),
.tabs > input:nth-of-type(12):checked ~ .panels > .panel:nth-of-type(12) { display: block; }

/* Guides */
ul.guide-list { list-style: none; padding: 0; }
ul.guide-list li { padding: 10px 0; border-bottom: 1px dashed var(--rule); margin: 0; }
ul.checklist li { margin-top: 6px; }
ul.sources { font-size: 14.5px; }
.note-inline { font-size: 15px; color: var(--soft); }
