/* Licensed Lookup design system: civic register, American-flag palette (2026-11-12).
   One shared file for every directory and the parent site, cached by browsers (see DESIGN_SYSTEM.md).
   Independence rule: civic in style, never an agency's identity. No seals, eagles, agency names or
   "official website of the United States government" banner; every page says it is not a government website.
   Colors: Old Glory Blue #0A3161 and Old Glory Red #B31942 on white. Type: Public Sans (OFL), IBM Plex Mono for record
   numbers. Spacing on a 4px grid. */

@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/public-sans.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/plex-mono-400.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/plex-mono-500.woff2) format('woff2'); }

:root {
  --blue: #0a3161; --blue-dark: #07244a; --red: #b31942;
  --paper: #ffffff; --surface: #ffffff; --raised: #f1f3f6; --band: #f1f3f6;
  --ink: #1b1b1b; --ink-2: #3d4551; --muted: #565c65;
  --line: #dfe1e2; --line-strong: #a9aeb1;
  --accent: var(--blue); --accent-ink: var(--blue); --on-accent: #ffffff; --accent-soft: rgba(10, 49, 97, 0.06);
  --ok: var(--blue);
  --header-bg: var(--blue); --header-ink: #ffffff; --header-muted: #c9d3e3;
  --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1526; --surface: #10203a; --raised: #172a48; --band: #0e1c33;
    --ink: #f0f2f5; --ink-2: #c3cad6; --muted: #9aa4b5;
    --line: #26395a; --line-strong: #4a5f84;
    --accent: #f0f2f5; --accent-ink: #a9c4ec; --on-accent: #0a3161; --accent-soft: rgba(169, 196, 236, 0.08);
    --ok: #a9c4ec; --red: #e8667f;
    --header-bg: #07244a; --header-muted: #a9b8d0;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--sans); }

a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; transition: color 150ms var(--ease); }
a:visited { color: #54278f; }
a:hover { color: var(--blue-dark); text-decoration-thickness: 2px; }
@media (prefers-color-scheme: dark) {
  a:visited { color: #c39bd3; }
  a:hover { color: #ffffff; }
}
:focus-visible { outline: 3px solid #2491ff; outline-offset: 2px; }

/* Header: full-width blue bar, white wordmark, independence line, thin red rule */
.site-header { background: var(--header-bg); color: var(--header-ink); border-bottom: 4px solid var(--red); }
.site-header .bar { max-width: 1120px; margin: 0 auto; padding: 16px 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--header-ink); text-decoration: none; min-width: 0; }
.brand:hover { color: var(--header-ink); }
.brand-mark { flex: none; width: 32px; height: 32px; border-radius: 4px; background: #ffffff; color: var(--blue); display: grid; place-items: center; }
.brand-mark svg { width: 18px; height: 18px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.brand-network { font-size: 13px; color: var(--header-muted); }
.brand-name { font-size: 19px; font-weight: 700; color: var(--header-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.independence { margin: 0; font-size: 13px; color: var(--header-muted); text-align: right; max-width: 340px; line-height: 1.4; }

/* Page column */
main { display: block; max-width: 1120px; margin: 0 auto; padding: 32px 32px 64px; }
main > * + * { margin-top: 16px; }
main > section { margin-top: 40px; }
section > h2:first-child { margin-top: 0; }
h1 + section, nav + h1 + section { margin-top: 16px; }
main > p, section > p, details > p, .answer { max-width: 72ch; }

/* Type: one family; hierarchy from size and weight */
h1, h2, h3 { font-family: var(--sans); color: var(--ink); text-wrap: balance; }
h1 { font-size: 40px; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; margin: 8px 0 0; }
h2 { font-size: 26px; line-height: 1.25; font-weight: 700; margin: 48px 0 0; }
h3 { font-size: 18px; line-height: 1.35; font-weight: 700; margin: 24px 0 0; }
p, ul, ol, dl { margin: 12px 0 0; }
ul, ol { padding-left: 24px; }
li + li { margin-top: 4px; }
strong { font-weight: 700; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--raised); padding: 1px 4px; border-radius: 2px; }
time, .num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); font-size: 15px; }

/* Breadcrumb */
nav[aria-label="Breadcrumb"] { font-size: 15px; color: var(--muted); margin: 0; }
nav[aria-label="Breadcrumb"] a { color: var(--accent-ink); }

/* Answer-first summary and the context box */
.answer { font-size: 19px; line-height: 1.6; color: var(--ink); }
.context { max-width: none; background: var(--band); border-left: 4px solid var(--blue); padding: 16px 20px; color: var(--ink-2); font-size: 16px; }
@media (prefers-color-scheme: dark) { .context { border-left-color: var(--accent-ink); } }

/* Facts row: key figures in red */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 4px; background: var(--surface); margin-top: 24px; overflow: hidden; }
.facts > div { padding: 16px 20px; border-left: 1px solid var(--line); }
.facts > div:first-child { border-left: 0; }
.facts dt { font-size: 14px; font-weight: 600; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-size: 32px; line-height: 1.15; font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums lining-nums; }
.facts dd.small { font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--ink); padding-top: 4px; }

/* Ranking table */
.scroll { overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
caption { caption-side: top; text-align: left; padding: 12px 16px; font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line); }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
thead th { font-size: 14px; font-weight: 700; color: var(--ink); background: var(--band); border-bottom: 2px solid var(--blue); white-space: nowrap; }
tbody tr:nth-child(even) { background: var(--band); }
tbody tr:hover { background: var(--accent-soft); }
td:first-child { font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--muted); width: 40px; font-variant-numeric: tabular-nums; }
td:nth-child(2) a { font-weight: 600; }
td a[href^="tel:"], .nowrap { white-space: nowrap; font-variant-numeric: tabular-nums; }
td:nth-child(4) { min-width: 140px; }

/* Signature: the record tag */
.check { flex: none; width: 16px; height: 16px; color: var(--ok); }
a.verified { display: inline-flex; align-items: flex-start; gap: 8px; color: var(--ink-2); text-decoration: none; line-height: 1.45; }
a.verified:hover { color: var(--accent-ink); text-decoration: underline; }
a.verified .check { margin-top: 3px; }
.record-label { display: block; }
.record-id, .rtag { display: inline-block; font-family: var(--mono); font-size: 13px; line-height: 1.45; color: var(--ink); background: var(--raised); border: 1px solid var(--line); border-radius: 2px; padding: 0 6px; margin-top: 4px; font-variant-numeric: tabular-nums; }

/* Ranked cards */
#sw-ranked-list { margin-top: 24px; }
#sw-ranked-list > li + li { margin-top: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 4px; padding: 20px 24px; }
.card h3 { margin: 0; font-size: 19px; }
.rank { font-family: var(--mono); font-size: 15px; font-weight: 500; color: var(--red); margin-right: 8px; }
.card > div { margin-top: 4px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; line-height: 1.4; color: var(--ink-2); background: var(--band); border: 1px solid var(--line); border-radius: 2px; padding: 4px 8px; margin: 8px 8px 0 0; text-decoration: none; }
a.badge:hover { border-color: var(--blue); color: var(--accent-ink); }
.provider-actions { margin-top: 12px; font-size: 15px; line-height: 1.8; }
.provider-directions { display: inline; }

/* Sponsored */
.sponsored { border: 2px dashed var(--line-strong); border-radius: 4px; padding: 16px 20px; margin-top: 24px; background: var(--surface); }
.label-sponsored { font-size: 14px; font-weight: 700; color: var(--muted); }

/* Lists of areas */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 24px; margin-top: 16px; }
.grid > a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.grid > a .muted { font-family: var(--mono); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* FAQ (accordion) */
details { border: 1px solid var(--line); border-radius: 4px; margin-top: 8px; background: var(--surface); }
summary { cursor: pointer; font-weight: 700; padding: 12px 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; background: var(--band); }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-family: var(--mono); font-weight: 500; color: var(--blue); }
@media (prefers-color-scheme: dark) { summary::after { color: var(--accent-ink); } }
details[open] > summary { border-bottom: 1px solid var(--line); }
details[open] > summary::after { content: '−'; }
details > p, details > ul { color: var(--ink-2); margin: 0; padding: 12px 16px 16px; }
#sw-faq h2 + details { margin-top: 16px; }

/* Record panel (company profile) */
.records { display: grid; gap: 12px; margin-top: 16px; padding: 0; list-style: none; }
.record { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 4px; overflow: hidden; }
.record-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; background: var(--band); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.record-head .status { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; }
.record-head .record-id { margin: 0; }
.record-body { padding: 16px 20px 20px; }
.record-title { font-size: 20px; font-weight: 700; line-height: 1.35; margin: 0; }
.record-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 24px; margin-top: 16px; }
.record-fields dt { font-size: 14px; font-weight: 600; color: var(--muted); }
.record-fields dd { margin: 2px 0 0; font-size: 16px; }

/* Buttons: square-cornered, solid blue */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 20px; }
.btn, button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0.75rem 1.25rem; border-radius: 4px; font: inherit; font-size: 16px; font-weight: 700; line-height: 1.1; text-decoration: none; cursor: pointer; transition: background-color 150ms var(--ease), color 150ms var(--ease); }
.btn-primary, button { background: var(--blue); color: #ffffff; border: 0; box-shadow: inset 0 0 0 1px transparent; }
.btn-primary:hover, button:hover { background: var(--blue-dark); color: #ffffff; text-decoration: none; }
.btn-secondary { background: var(--surface); color: var(--blue); border: 2px solid var(--blue); box-shadow: none; }
.btn-secondary:hover { background: var(--accent-soft); color: var(--blue-dark); text-decoration: none; }
@media (prefers-color-scheme: dark) {
  .btn-primary, button { background: #f0f2f5; color: #0a3161; } .btn-primary:hover, button:hover { background: #ffffff; color: #0a3161; }
  .btn-secondary { color: #f0f2f5; border-color: #f0f2f5; background: transparent; } .btn-secondary:hover { color: #ffffff; }
}
button { margin-top: 20px; }
button:disabled { cursor: not-allowed; color: var(--muted); background: var(--raised); border: 1px solid var(--line); }
.actions .provider-directions { font-size: 15px; }

.claims { padding: 0; list-style: none; margin-top: 16px; border-top: 1px solid var(--line); }
.claims > li { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; color: var(--ink-2); font-size: 16px; }
.claims > li strong { display: block; font-size: 14px; color: var(--muted); }

/* Forms */
form { margin-top: 16px; max-width: 640px; }
form label { display: block; margin-top: 16px; font-size: 16px; font-weight: 600; color: var(--ink); }
input, select, textarea { width: 100%; min-height: 44px; margin-top: 4px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--ink-2); border-radius: 0; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #2491ff; outline-offset: 0; }
input[type="checkbox"] { width: 20px; min-height: 20px; height: 20px; margin: 0 8px 0 0; vertical-align: -4px; accent-color: var(--blue); }
fieldset { border: 0; padding: 0; margin: 16px 0 0; }
fieldset label { font-weight: 400; color: var(--ink-2); }

/* Footer */
.site-footer { background: var(--band); border-top: 4px solid var(--blue); }
.site-footer .wrap { max-width: 1120px; margin: 0 auto; padding: 32px 32px 40px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px 48px; font-size: 15px; color: var(--ink-2); }
.site-footer nav ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.site-footer nav li { margin: 0; }
.site-footer nav a { font-weight: 600; }
.site-footer p { margin: 0; }
.site-footer p + p { margin-top: 8px; }
.site-footer .fine { font-size: 14px; color: var(--muted); }

/* Small screens */
@media (max-width: 720px) {
  .site-header .bar { padding: 12px 16px; }
  .independence { display: none; }
  .brand-name { white-space: normal; font-size: 17px; }
  main { padding: 24px 16px 48px; }
  h1 { font-size: 30px; line-height: 1.2; }
  h2 { font-size: 22px; margin-top: 40px; }
  .answer { font-size: 18px; }
  .card { padding: 16px; }
  .record-head, .record-body { padding-left: 16px; padding-right: 16px; }
  .site-footer .wrap { grid-template-columns: 1fr; padding: 24px 16px 32px; }
  .facts > div { border-left: 0; border-top: 1px solid var(--line); }
  .facts > div:first-child { border-top: 0; }
  #sw-comparison-matrix thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  #sw-comparison-matrix tbody tr { display: grid; grid-template-columns: 32px 1fr; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  #sw-comparison-matrix tbody tr:last-child { border-bottom: 0; }
  #sw-comparison-matrix td { display: block; padding: 0; border: 0; grid-column: 2; }
  #sw-comparison-matrix td:first-child { grid-column: 1; grid-row: 1 / span 4; width: auto; }
  #sw-comparison-matrix td + td { margin-top: 4px; }
  #sw-comparison-matrix td:nth-child(4), #sw-comparison-matrix td:nth-child(5) { font-size: 14px; color: var(--muted); min-width: 0; }
}

@media print {
  .site-header { background: #fff; color: #000; } .site-header .independence { display: none; }
  .actions, form, .site-footer nav { display: none; }
  .card, .record, .scroll { break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Parent site (licensedlookup.com) */
ul.dirs { list-style: none; padding: 0; margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
ul.dirs li { margin: 0; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 4px; padding: 20px 24px; display: flex; flex-direction: column; gap: 8px; }
ul.dirs a { font-size: 19px; font-weight: 700; line-height: 1.3; }
ul.dirs .count { font-family: var(--mono); font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
ul.dirs .src { font-size: 14px; color: var(--muted); line-height: 1.45; }
.faq h2 { font-size: 22px; margin-top: 32px; }
