/* Awarded — institutional data-forward stylesheet */
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg: #F7F6F2;
  --bg-alt: #FBFBF9;
  --surface: #FFFFFF;
  --rule: #D5D2C9;
  --rule-strong: #B4B0A5;
  --ink: #14130F;
  --ink-2: #3B3931;
  --muted: #6B685E;
  --accent: #8E2B18;
  --accent-hover: #6E1F10;
  --accent-wash: #F3E7E2;
  --shadow: 0 1px 0 rgba(20, 19, 15, .06);
  --sans: 'Satoshi', 'General Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --maxw: 1140px;
  --pad: clamp(1.1rem, 4vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14130F;
    --bg-alt: #1B1A16;
    --surface: #1F1E19;
    --rule: #37352E;
    --rule-strong: #4E4B42;
    --ink: #EDEBE4;
    --ink-2: #CFCCC3;
    --muted: #9A968B;
    --accent: #F08A63;
    --accent-hover: #FFA680;
    --accent-wash: #2A211C;
    --shadow: none;
  }
}
html[data-theme="dark"] {
  --bg: #14130F; --bg-alt: #1B1A16; --surface: #1F1E19; --rule: #37352E; --rule-strong: #4E4B42;
  --ink: #EDEBE4; --ink-2: #CFCCC3; --muted: #9A968B; --accent: #F08A63; --accent-hover: #FFA680;
  --accent-wash: #2A211C; --shadow: none;
}
html[data-theme="light"] {
  --bg: #F7F6F2; --bg-alt: #FBFBF9; --surface: #FFFFFF; --rule: #D5D2C9; --rule-strong: #B4B0A5;
  --ink: #14130F; --ink-2: #3B3931; --muted: #6B685E; --accent: #8E2B18; --accent-hover: #6E1F10;
  --accent-wash: #F3E7E2;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(1.85rem, 4.4vw, 2.95rem); font-weight: 900; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1.1em; max-width: 68ch; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 1px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 780px; }
.mono, .num, td.num, th.num { font-family: var(--mono); font-variant-numeric: tabular-nums lining-nums; }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bg);
  padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: .5rem; top: .5rem; }

/* ---------- eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 .9rem;
}
.rule-label {
  display: flex; align-items: center; gap: .9rem;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1.1rem;
}
.rule-label::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

/* ---------- header ---------- */
.site-head {
  border-bottom: 1px solid var(--rule); background: var(--bg);
  position: sticky; top: 0; z-index: 20;
}
.site-head .wrap { display: flex; align-items: center; gap: 1.2rem; height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand svg { display: block; }
.brand .wordmark { font-size: 1.06rem; }
.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(.7rem, 2vw, 1.6rem); }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .93rem; font-weight: 500; }
.nav a:hover { color: var(--accent); }
.nav a.cta { color: var(--bg); background: var(--ink); padding: .5rem .9rem; border-radius: 2px; }
.nav a.cta:hover { background: var(--accent); color: #fff; }
.theme-toggle {
  background: none; border: 1px solid var(--rule); color: var(--ink-2); border-radius: 2px;
  width: 32px; height: 32px; display: grid; place-items: center; cursor: pointer;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 760px) {
  .nav a.nav-hide { display: none; }
  .nav { gap: .8rem; }
  .nav a { font-size: .88rem; }
}
@media (max-width: 480px) {
  .nav a.nav-hide-sm { display: none; }
  .site-head .wrap { height: 58px; gap: .7rem; }
  .brand .wordmark { font-size: 1rem; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(1.8rem, 4vw, 2.6rem) 0 clamp(1.2rem, 2.4vw, 1.8rem); }
.hero h1 { max-width: 22ch; }
.hero .lede { font-size: clamp(1.02rem, 2.2vw, 1.22rem); color: var(--ink-2); max-width: 58ch; }
.hero-cta { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-proof { margin-top: 1.7rem; padding-top: 1.1rem; border-top: 1px solid var(--rule);
  font-size: .95rem; color: var(--muted); max-width: 66ch; line-height: 1.6; }
.hero-proof strong { color: var(--ink); }
.stat-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); margin-top: 1.4rem;
}
.stat-strip > div { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: .9rem 1rem; }
.stat-strip dt, .stat-strip .k { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stat-strip .v { font-family: var(--mono); font-size: 1.25rem; font-weight: 700; margin-top: .25rem; font-variant-numeric: tabular-nums; }

/* ---------- check panel ---------- */
.panel {
  background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 3px;
  box-shadow: var(--shadow);
}
.panel-head { padding: 1.1rem var(--pad) .9rem; border-bottom: 1px solid var(--rule); }
.panel-head h2 { margin: 0; font-size: 1.2rem; }
.panel-head p { margin: .35rem 0 0; color: var(--muted); font-size: .92rem; }
.panel-body { padding: 1.3rem var(--pad) 1.5rem; }
.check-grid { display: grid; grid-template-columns: 1.35fr 1fr auto; gap: 1rem; align-items: end; }
@media (max-width: 780px) { .check-grid { grid-template-columns: 1fr; } }
label.field { display: block; }
label.field > span.lab {
  display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .4rem;
}
input[type="text"], select {
  width: 100%; font-family: var(--mono); font-size: .95rem; color: var(--ink);
  background: var(--bg-alt); border: 1px solid var(--rule-strong); border-radius: 2px;
  padding: .72rem .8rem; appearance: none;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 2.2rem;
}
input::placeholder { color: var(--muted); }
input:disabled, select:disabled { opacity: .55; cursor: not-allowed; }
.btn {
  font-family: var(--sans); font-weight: 700; font-size: .97rem; cursor: pointer;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  padding: .78rem 1.35rem; border-radius: 2px; text-decoration: none; display: inline-block;
  transition: background .18s ease;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
html[data-theme="dark"] .btn:not(.ghost), html[data-theme="dark"] .nav a.cta:hover { color: #14130F; }
html[data-theme="dark"] .btn.ghost { color: var(--ink); }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .btn:not(.ghost) { color: #14130F; }
  html:not([data-theme="light"]) .btn.ghost { color: var(--ink); }
}
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn.ghost:hover { background: var(--accent-wash); color: var(--accent); border-color: var(--accent); }
.btn.block { display: block; width: 100%; text-align: center; }
.hint { font-size: .84rem; color: var(--muted); margin: .9rem 0 0; }

/* combobox */
.combo { position: relative; }
.combo-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 3px);
  background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 2px;
  max-height: 264px; overflow-y: auto; margin: 0; padding: .25rem 0; list-style: none;
  box-shadow: 0 12px 28px rgba(20, 19, 15, .14);
}
.combo-list[hidden] { display: none; }
.combo-list li {
  padding: .5rem .8rem; font-family: var(--mono); font-size: .87rem; cursor: pointer;
  display: flex; justify-content: space-between; gap: 1rem;
}
.combo-list li .code { color: var(--muted); font-size: .78rem; }
.combo-list li[aria-selected="true"], .combo-list li:hover { background: var(--accent-wash); color: var(--accent); }
.combo-empty { padding: .6rem .8rem; color: var(--muted); font-size: .87rem; font-family: var(--mono); }

/* ---------- result ---------- */
.result { scroll-margin-top: 82px; }
.result[hidden] { display: none; }
.reveal { opacity: 0; transform: translateY(10px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }
.verdict {
  border-left: 3px solid var(--accent); padding: .2rem 0 .2rem 1.1rem; margin: 0 0 1.6rem;
}
.verdict p { font-size: clamp(1.15rem, 2.6vw, 1.5rem); line-height: 1.4; font-weight: 500; margin: 0 0 .5rem; max-width: 42ch; }
.verdict .kicker { color: var(--accent); font-weight: 700; }
.headline-num {
  font-family: var(--mono); font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(2.4rem, 8vw, 4.4rem); line-height: 1; display: block; margin: .2rem 0 .4rem;
  font-variant-numeric: tabular-nums;
}
.cols { display: grid; gap: clamp(1.4rem, 3vw, 2.4rem); grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }

/* ---------- ledger table ---------- */
.ledger { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: .855rem; }
.ledger caption {
  text-align: left; font-family: var(--mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); padding-bottom: .55rem;
}
.ledger th {
  text-align: left; font-weight: 500; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--rule-strong); padding: .4rem .55rem .4rem 0;
}
.ledger td { padding: .46rem .55rem .46rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ledger td:last-child, .ledger th:last-child { padding-right: 0; text-align: right; }
.ledger td.rank { color: var(--muted); width: 2.4rem; padding-right: .8rem; }
.ledger td.amt { text-align: right; white-space: nowrap; font-weight: 500; }
.ledger tbody tr:hover td { background: var(--accent-wash); }
.ledger .name { word-break: break-word; }
.ledger .you td { color: var(--accent); border-top: 1px solid var(--accent); font-weight: 700; }
.table-scroll { overflow-x: auto; }
.table-note { font-size: .8rem; color: var(--muted); margin: .6rem 0 0; }

.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin: 0 0 1.6rem; }
.kv > div { background: var(--bg); padding: .85rem 1rem; }
.kv .k { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kv .v { font-family: var(--mono); font-size: 1.16rem; font-weight: 700; margin-top: .25rem; font-variant-numeric: tabular-nums; }
.kv .sub { font-size: .78rem; color: var(--muted); font-family: var(--mono); }

/* ---------- sections ---------- */
section { padding: clamp(2.4rem, 6vw, 4.2rem) 0; }
section.tight { padding: clamp(1.6rem, 3vw, 2.4rem) 0; }
.bordered-top { border-top: 1px solid var(--rule); }
.bg-alt { background: var(--bg-alt); }

.steps { counter-reset: s; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.steps > li { list-style: none; background: var(--bg); padding: 1.4rem clamp(1rem, 3vw, 1.8rem); }
.steps > li::before {
  counter-increment: s; content: "0" counter(s);
  font-family: var(--mono); font-size: .8rem; color: var(--accent); display: block; margin-bottom: .6rem; letter-spacing: .1em;
}
.steps h3 { margin-bottom: .4rem; }
.steps p { margin: 0; color: var(--ink-2); font-size: .97rem; }

/* pricing */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 1.1rem; align-items: start; }
.tier { background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 3px; padding: 1.4rem; display: flex; flex-direction: column; height: 100%; }
.tier.featured { border-color: var(--accent); }
.tier h3 { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tier .price { font-family: var(--mono); font-size: 2rem; font-weight: 700; letter-spacing: -.02em; }
.tier .price { line-height: 1.1; margin-top: .3rem; }
.tier .price span { display: block; font-size: .78rem; font-weight: 400; color: var(--muted); letter-spacing: .02em; margin-top: .3rem; }
.tier ul { list-style: none; padding: 0; margin: 1rem 0 1.4rem; font-size: .93rem; color: var(--ink-2); }
.tier ul li { padding: .38rem 0 .38rem 1.1rem; border-bottom: 1px solid var(--rule); position: relative; }
.tier ul li::before { content: "—"; position: absolute; left: 0; color: var(--accent); font-family: var(--mono); font-size: .8rem; }
.tier .foot { margin-top: auto; }
.notice {
  border: 1px solid var(--rule-strong); border-left: 3px solid var(--accent);
  background: var(--accent-wash); padding: .9rem 1.1rem; border-radius: 2px;
  font-size: .92rem; color: var(--ink); margin: 0 0 1.8rem; max-width: 70ch;
}
.notice p:last-child { margin-bottom: 0; }

.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { border-bottom: 1px solid var(--rule); padding: .7rem 0; color: var(--ink-2); display: flex; gap: .8rem; }
.plain-list li::before { content: "→"; color: var(--accent); font-family: var(--mono); }

.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.link-grid a {
  background: var(--bg); padding: .85rem 1rem; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: .2rem;
}
.link-grid a:hover { background: var(--accent-wash); }
.link-grid .t { font-weight: 500; font-size: .95rem; }
.link-grid .n { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.link-grid a:hover .n { color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.chips a {
  font-family: var(--mono); font-size: .8rem; text-decoration: none; color: var(--ink-2);
  border: 1px solid var(--rule-strong); border-radius: 2px; padding: .3rem .6rem; display: inline-block;
}
.chips a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-wash); }

.crumbs { font-family: var(--mono); font-size: .76rem; color: var(--muted); padding: 1.1rem 0 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }

.faq { border-top: 1px solid var(--rule); }
.faq > div { border-bottom: 1px solid var(--rule); padding: 1.1rem 0; }
.faq h3 { margin-bottom: .35rem; font-size: 1rem; }
.faq p { margin: 0; color: var(--ink-2); font-size: .95rem; }

.method { font-size: .88rem; color: var(--muted); border: 1px solid var(--rule); padding: 1rem 1.1rem; border-radius: 2px; }
.method p { max-width: 78ch; margin-bottom: .6rem; }
.method p:last-child { margin-bottom: 0; }

/* footer */
.site-foot { border-top: 1px solid var(--rule); background: var(--bg-alt); padding: 2.4rem 0 3rem; margin-top: 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.6rem; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr; } }
.site-foot h4 { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; }
.site-foot a { color: var(--ink-2); text-decoration: none; font-size: .92rem; display: block; padding: .18rem 0; }
.site-foot a:hover { color: var(--accent); }
.provenance { font-size: .8rem; color: var(--muted); max-width: 74ch; margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); font-family: var(--mono); line-height: 1.65; }
.provenance a { display: inline; color: var(--muted); text-decoration: underline; font-size: inherit; }
.provenance a:hover { color: var(--accent); }

/* ======================================================================
   Contracts Near Me — confidence tiers, figures, trade picker
   ====================================================================== */

/* tier badge: always next to a figure, never on its own */
.badge {
  display: inline-block; font-family: var(--mono); font-size: .64rem; letter-spacing: .1em;
  text-transform: uppercase; padding: .22rem .45rem; border: 1px solid var(--rule-strong);
  border-radius: 2px; color: var(--muted); line-height: 1.35; white-space: normal;
}
.badge-code { color: var(--accent); border-color: var(--accent); background: var(--accent-wash); }
.badge-name { color: var(--muted); border-style: dashed; background: transparent; }
.badge-fed { color: var(--ink-2); border-color: var(--rule-strong); background: var(--bg-alt); }
.ledger caption .badge { margin-left: .4rem; vertical-align: middle; }

.figure { margin: 0 0 1.4rem; }
.figure .headline-num { margin-top: .5rem; }
.figure-cap { font-size: .95rem; color: var(--ink-2); max-width: 52ch; margin: 0 0 .3rem; }
.figure-sub { font-size: .78rem; color: var(--muted); margin: 0; }

.tier-note {
  font-size: .84rem; color: var(--muted); border-left: 2px solid var(--rule-strong);
  padding: .1rem 0 .1rem .9rem; max-width: 74ch; margin: 1rem 0 1.2rem; line-height: 1.6;
}
.tier-note strong { color: var(--ink-2); }
.no-data {
  font-family: var(--mono); font-size: .85rem; color: var(--muted);
  border: 1px dashed var(--rule-strong); padding: .9rem 1rem; border-radius: 2px; max-width: 70ch;
}
.small { font-size: .8rem; color: var(--muted); }
.tag-small {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent); border-radius: 2px; padding: 0 .25rem;
  margin-left: .35rem; white-space: nowrap;
}

/* trade picker */
.pick-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.pick {
  border-bottom: 1px solid var(--rule); padding: .75rem 0; display: flex; flex-wrap: wrap;
  align-items: baseline; gap: .6rem 1.2rem;
}
.pick[hidden] { display: none; }
.pick-main { font-weight: 700; font-size: 1.02rem; text-decoration: none; color: var(--ink); min-width: 8rem; }
.pick-main:hover { color: var(--accent); text-decoration: underline; }
.cov-pair { display: flex; flex-wrap: wrap; gap: .5rem; margin-left: auto; }
.cov {
  display: grid; gap: .1rem; border: 1px solid var(--rule); border-radius: 2px;
  padding: .4rem .6rem; min-width: 11rem; text-decoration: none; color: var(--ink);
  background: var(--bg-alt);
}
a.cov:hover { border-color: var(--accent); background: var(--accent-wash); }
.cov-st { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cov-amt { font-family: var(--mono); font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.cov-tier { font-family: var(--mono); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cov-tier.badge-code { color: var(--accent); }
.cov-none .cov-amt { color: var(--muted); font-weight: 400; }

.tier-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.6rem 0 1rem; }
@media (max-width: 780px) { .tier-cards { grid-template-columns: 1fr; } }
.tier-card { border: 1px solid var(--rule); background: var(--bg-alt); padding: 1rem 1.1rem; border-radius: 2px; }
.tier-card h2 { font-size: 1.05rem; margin: .7rem 0 .4rem; }
.tier-card p { font-size: .9rem; color: var(--ink-2); margin: 0 0 .5rem; max-width: none; }

/* ledger: fixed layout + ellipsis so long company names never wrap or overflow */
.ledger { table-layout: fixed; }
.ledger th.rank, .ledger td.rank { width: 2.5rem; }
.ledger th.num, .ledger td.num { width: 4.4rem; text-align: right; font-variant-numeric: tabular-nums; }
.ledger th.amt, .ledger td.amt { width: 6.4rem; }
.ledger td.name, .ledger td.num { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ledger td.name { word-break: normal; }
.ledger td.name a { text-decoration: none; }
.ledger td.name a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .ledger { font-size: .78rem; }
  .ledger th.rank, .ledger td.rank { width: 2rem; padding-right: .5rem; }
  .ledger th.num, .ledger td.num { width: 3.2rem; }
  .ledger th.amt, .ledger td.amt { width: 5.2rem; }
  .cov { min-width: 9.5rem; flex: 1; }
  .cov-pair { margin-left: 0; width: 100%; }
  .tag-small { display: none; }
}
@media (max-width: 400px) {
  .brand .wordmark { font-size: .92rem; }
}
button.btn:disabled { opacity: .55; cursor: not-allowed; }

/* tier label inside picker cards: plain text, never a clipped box */
.cov .cov-tier, .cov .badge {
  border: 0; background: none; padding: 0; font-size: .6rem; letter-spacing: .09em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; max-width: 100%;
}
.cov { min-width: 12.5rem; }
.cov-st { white-space: nowrap; }

/* long wordmark: never wrap in the header */
.brand .wordmark { white-space: nowrap; }
@media (max-width: 560px) {
  .brand .wordmark { font-size: .95rem; }
  .nav a.cta { padding: .45rem .7rem; font-size: .82rem; white-space: nowrap; }
}
@media (max-width: 430px) {
  .nav a.nav-hide-xs { display: none; }
  .brand .wordmark { font-size: .86rem; }
  .nav a.cta { padding: .4rem .55rem; font-size: .78rem; }
  .nav { gap: .55rem; }
}

.state-meta { color: var(--muted); font-size: .88rem; text-align: right; margin-left: auto; }
@media (max-width: 640px) {
  .state-meta { text-align: left; margin-left: 0; }
}

/* --- entry path: state + trade starter, and the how-it-works steps --- */
.starter { margin-top: 2rem; padding: 1.4rem 1.4rem 1.1rem; border: 1px solid var(--rule);
  border-radius: 10px; background: var(--surface); }
.starter-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; }
.starter-row .field { flex: 1 1 15rem; margin: 0; max-width: none; }
.starter select { width: 100%; padding: .7rem .8rem; font: inherit; font-size: .98rem;
  color: var(--ink); background: var(--bg); border: 1px solid var(--rule); border-radius: 7px;
  -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%),
    linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
.starter select:disabled { color: var(--ink-3); background-color: var(--surface-2, var(--surface)); cursor: not-allowed; }
.starter select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.starter-go { flex: 0 0 auto; white-space: nowrap; }
.starter-go[aria-disabled="true"] { opacity: .45; }
.starter .hint { margin: .9rem 0 0; }
@media (max-width: 33rem) { .starter-row { flex-direction: column; align-items: stretch; }
  .starter-go { text-align: center; } }
.steps { list-style: none; counter-reset: st; margin: 1.2rem 0 0; padding: 0;
  display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.steps li { counter-increment: st; position: relative; padding-top: 2.2rem;
  font-size: .96rem; line-height: 1.55; color: var(--ink-2); }
.steps li::before { content: counter(st); position: absolute; top: 0; left: 0;
  width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center;
  font: 600 .82rem/1 var(--mono, ui-monospace, monospace); color: var(--bg); background: var(--ink); }
.steps li strong { color: var(--ink); }
.lede-sm { max-width: 46rem; color: var(--ink-2); font-size: 1rem; line-height: 1.6; }
h2.h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin: .2rem 0 .5rem; }

/* --- search box, folds and the offer block --- */
.qbox { position: relative; flex: 0 1 17rem; margin: 0; }
.qbox .q { width: 100%; padding: .48rem .7rem; font: inherit; font-size: .9rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--rule); border-radius: 7px; -webkit-appearance: none; }
.qbox .q::placeholder { color: var(--ink-3); }
.qbox .q:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.qbox.big .q { padding: .85rem 1rem; font-size: 1.05rem; border-radius: 9px; border-width: 2px; }
.qres { position: absolute; z-index: 40; top: calc(100% + .35rem); left: 0; right: 0;
  list-style: none; margin: 0; padding: .3rem; max-height: 21rem; overflow: auto;
  background: var(--bg); border: 1px solid var(--rule); border-radius: 9px;
  box-shadow: 0 14px 34px rgba(0,0,0,.16); }
.qres li { margin: 0; }
.qres a { display: block; padding: .55rem .65rem; border-radius: 6px; font-size: .92rem;
  color: var(--ink); text-decoration: none; }
.qres a:hover, .qres a:focus, .qres a.on { background: var(--surface); text-decoration: none; outline: none; }
.qnone { padding: .55rem .65rem; font-size: .9rem; color: var(--ink-3); }
@media (max-width: 52rem) { .site-head .qbox { flex-basis: 9.5rem; } }
@media (max-width: 34rem) { .site-head .qbox { display: none; } }
.fold { margin: 1.4rem 0 0; }
.fold > summary { cursor: pointer; font-size: .92rem; font-weight: 600; color: var(--accent);
  padding: .55rem 0; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::before { content: "+ "; font-family: var(--mono, monospace); }
.fold[open] > summary::before { content: "\2212 "; }
.offer { background: var(--surface); }
.offer .h3 { margin-top: .2rem; }
.offer p { max-width: 44rem; }
.offer-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.2rem 0 .6rem; }
.nextlinks { display: flex; flex-direction: column; gap: .35rem; margin-top: 1.1rem; font-size: .93rem; }
