/* FiR.in design system
   Register paper, carbon-copy blue, stamp red (urgent only), highlighter for rights.
   Archivo (display, variable width) + IBM Plex Sans / Devanagari (text) + IBM Plex Mono (typed form entries only). */

:root {
  --paper: #F2F4EF;
  --sheet: #FFFFFF;
  --ink: #1A2233;
  --ink-2: #4A5468;
  --ink-3: #6B7487;
  --carbon: #2D3FA0;
  --carbon-deep: #1F2C78;
  --carbon-tint: #E5E8F6;
  --stamp: #C0262D;
  --stamp-tint: #FBE9E8;
  --rule: #CCD6C8;
  --rule-2: #DFE6DB;
  --hl: #F6DF5A;
  --ok: #1F7A4C;

  --f-display: "Archivo", "IBM Plex Sans", system-ui, sans-serif;
  --f-text: "IBM Plex Sans", "IBM Plex Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --measure: 68ch;
  --wrap: 1180px;
  --r-s: 4px;   /* inputs, chips */
  --r-m: 10px;  /* panels */
  --r-l: 18px;  /* hero sheet */
  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem; --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-text); font-size: 1.0625rem; line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--carbon); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--carbon-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--carbon); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--hl); color: var(--ink); }

h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); line-height: 1.12; margin: 0 0 var(--sp-4); }
h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 760; font-stretch: 106%; letter-spacing: -.01em; margin-top: var(--sp-7); }
h3 { font-family: var(--f-text); font-size: 1.2rem; font-weight: 600; line-height: 1.3; margin-top: var(--sp-5); }
p, ul, ol, table { margin: 0 0 var(--sp-4); }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: .35rem; }
strong { font-weight: 600; }
small, .small { font-size: .875rem; }
.muted { color: var(--ink-2); }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.prose { max-width: var(--measure); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- top contact bar (required on every page) ---------- */
.topbar { background: var(--ink); color: #E8EBF5; font-size: .875rem; text-align: center; padding: .45rem 1rem; }
.topbar a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.45); }
.topbar a:hover { color: var(--hl); }

/* ---------- header ---------- */
.site-head { background: var(--sheet); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 40; }
.site-head .wrap { display: flex; align-items: center; gap: var(--sp-5); min-height: 4rem; }
.brand { display: inline-flex; align-items: baseline; text-decoration: none; color: var(--ink); font-family: var(--f-display); font-weight: 850; font-stretch: 118%; font-size: 1.6rem; letter-spacing: -.02em; }
.brand b { color: var(--carbon); font-weight: 850; }
.brand span { font-weight: 500; font-stretch: 100%; color: var(--ink-3); font-size: 1.1rem; margin-left: 1px; }
.brand:hover { color: var(--ink); }
.nav { display: flex; gap: var(--sp-5); margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .97rem; padding: .35rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--carbon); color: var(--carbon-deep); }
.head-search { display: flex; }
.head-search input { width: 11rem; font: inherit; font-size: .92rem; padding: .45rem .7rem; border: 1px solid var(--rule); border-radius: var(--r-s); background: var(--paper); }
.nav-toggle { display: none; margin-left: auto; font: inherit; font-weight: 600; background: none; border: 1px solid var(--rule); border-radius: var(--r-s); padding: .45rem .8rem; color: var(--ink); }
.indep { background: var(--carbon-tint); color: var(--ink); font-size: .875rem; border-bottom: 1px solid #CFD5EE; }
.indep .wrap { padding: .45rem 0; }
.indep a { font-weight: 600; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; padding: .8rem 1.25rem; border-radius: var(--r-s); border: 2px solid var(--carbon); background: var(--carbon); color: #fff; text-decoration: none; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.btn:hover { background: var(--carbon-deep); border-color: var(--carbon-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--carbon); }
.btn--ghost:hover { background: var(--carbon-tint); color: var(--carbon-deep); }
.btn--stamp { background: var(--stamp); border-color: var(--stamp); }
.btn--stamp:hover { background: #9E1C22; border-color: #9E1C22; }
.btn--small { padding: .5rem .85rem; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn--help { padding: .55rem 1rem; font-size: .95rem; }

/* ---------- hero ---------- */
.hero { padding: var(--sp-7) 0 var(--sp-6); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--sp-7); align-items: start; }
.hero h1 { margin-bottom: var(--sp-3); }
.hero .hi { font-family: var(--f-text); font-size: 1.05rem; color: var(--ink-2); margin-bottom: var(--sp-4); }
.hero .lede { font-size: 1.22rem; color: var(--ink-2); max-width: 36ch; }
.router { margin-top: var(--sp-5); }
.router p { font-weight: 600; margin-bottom: var(--sp-2); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.chips a { display: inline-block; padding: .55rem .85rem; border: 1px solid var(--rule); background: var(--sheet); border-radius: var(--r-s); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .97rem; }
.chips a:hover { border-color: var(--carbon); color: var(--carbon-deep); background: var(--carbon-tint); }
.chips a.urgent { border-color: var(--stamp); color: var(--stamp); }
.chips a.urgent:hover { background: var(--stamp-tint); }

/* the FIR sheet: signature element */
.sheetwrap { position: relative; padding: 0 14px 14px 0; }
.sheet, .sheet-carbon { border-radius: var(--r-l); }
.sheet-carbon { position: absolute; inset: 14px 0 0 14px; background: #DCE1F3; border: 1px solid #C6CDEB; }
.sheet {
  position: relative; background: var(--sheet); border: 1px solid var(--rule);
  padding: 1.4rem 1.5rem 1.6rem; box-shadow: 0 1px 0 var(--rule-2);
}
.sheetfig { margin: 0; }
.sheet-head { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 2px solid var(--ink); padding-bottom: .6rem; margin-bottom: .6rem; }
.sheet-head strong { font-family: var(--f-display); font-stretch: 115%; font-weight: 800; font-size: 1.05rem; letter-spacing: .01em; }
.sheet-head span { font-size: .78rem; color: var(--ink-3); text-align: right; }
.sheet dl { margin: 0; display: grid; grid-template-columns: 9.5rem 1fr; column-gap: .9rem; }
.sheet dt { font-size: .8rem; color: var(--ink-3); line-height: 2.05rem; white-space: nowrap; border-bottom: 1px solid var(--rule-2); }
.sheet dd { margin: 0; font-family: var(--f-mono); font-size: .9rem; color: var(--carbon-deep); line-height: 2.05rem; min-height: 2.05rem; overflow-wrap: anywhere; border-bottom: 1px solid var(--rule-2); }
.sheet-foot { display: flex; justify-content: space-between; align-items: flex-end; min-height: 5.2rem; padding-top: 1rem; }
.sheet-foot > span { font-size: .78rem; color: var(--ink-3); border-top: 1px solid var(--ink-3); padding-top: .25rem; min-width: 10rem; margin-bottom: .4rem; }
.sheet dd.long { line-height: 2.05rem; }
.caret { display: inline-block; width: .55ch; height: 1.05em; background: var(--carbon); vertical-align: -.15em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.stamp {
  position: relative; margin-right: .4rem; transform: rotate(-9deg);
  border: 3px solid var(--stamp); color: var(--stamp); border-radius: 6px; padding: .35rem .7rem .4rem;
  font-family: var(--f-display); font-weight: 800; font-stretch: 80%; font-size: 1.05rem; line-height: 1.1; text-align: center;
  background: rgba(255,255,255,.75); mix-blend-mode: multiply; opacity: 0;
}
.stamp small { display: block; font-size: .72rem; font-weight: 600; font-stretch: 100%; }
.stamp.is-down { animation: stampdown .38s cubic-bezier(.2,1.4,.4,1) forwards; }
@keyframes stampdown { 0% { opacity: 0; transform: rotate(-9deg) scale(1.6); } 100% { opacity: .92; transform: rotate(-9deg) scale(1); } }
.sheet-note { font-size: .8rem; color: var(--ink-3); margin-top: .6rem; }

/* ---------- helplines strip ---------- */
.lines { background: var(--sheet); border-block: 1px solid var(--rule); }
.lines ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
.lines li { margin: 0; border-left: 1px solid var(--rule-2); }
.lines li:first-child { border-left: 0; }
.lines a { display: block; padding: .9rem 1.1rem; text-decoration: none; color: var(--ink); }
.lines a:hover { background: var(--carbon-tint); }
.lines b { display: block; font-family: var(--f-display); font-weight: 800; font-stretch: 110%; font-size: 1.6rem; line-height: 1.1; color: var(--carbon); }
.lines .urgent b { color: var(--stamp); }
.lines span { font-size: .9rem; color: var(--ink-2); }

/* ---------- sections ---------- */
.section { padding: var(--sp-8) 0; }
.section--sheet { background: var(--sheet); border-block: 1px solid var(--rule); }
.section-head { max-width: 60ch; margin-bottom: var(--sp-6); }
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--ink-2); font-size: 1.1rem; }

/* the path: a true sequence */
.path { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: step; border-top: 2px solid var(--ink); }
.path li { margin: 0; padding: var(--sp-5) var(--sp-5) var(--sp-5) 0; border-bottom: 1px solid var(--rule); counter-increment: step; }
.path li:nth-child(3n+2), .path li:nth-child(3n) { padding-left: var(--sp-5); border-left: 1px solid var(--rule); }
.path li::before { content: counter(step); display: block; font-family: var(--f-display); font-weight: 800; font-stretch: 120%; font-size: 2.4rem; line-height: 1; color: var(--carbon); margin-bottom: .5rem; }
.path h3 { margin: 0 0 .35rem; font-size: 1.12rem; }
.path p { margin: 0 0 .5rem; color: var(--ink-2); font-size: .98rem; }

/* tools index: a ruled list, not cards */
.toollist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: var(--sp-7); }
.toollist li { margin: 0; border-top: 1px solid var(--rule); }
.toollist a { display: grid; grid-template-columns: 2.6rem 1fr; gap: .9rem; padding: var(--sp-4) 0; text-decoration: none; color: var(--ink); }
.toollist a:hover h3 { color: var(--carbon); text-decoration: underline; }
.toollist svg { width: 2.4rem; height: 2.4rem; color: var(--carbon); }
.toollist h3 { margin: 0 0 .2rem; font-size: 1.08rem; }
.toollist p { margin: 0; color: var(--ink-2); font-size: .96rem; }

/* rights, highlighted like a marked-up copy */
mark { background: linear-gradient(to bottom, transparent 8%, var(--hl) 8%, var(--hl) 92%, transparent 92%); color: inherit; padding: 0 .15em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.rights { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--sp-6) var(--sp-7); }
.rights h3 { margin-top: 0; }
.rights p { color: var(--ink-2); }
.sec { font-family: var(--f-text); font-weight: 600; font-size: .92em; color: var(--carbon-deep); background: var(--carbon-tint); padding: .02em .35em; border-radius: 3px; white-space: nowrap; }

/* generic panel */
.panel { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-m); padding: var(--sp-5); }
.panel--carbon { border-left: 4px solid var(--carbon); }
.panel h3:first-child, .panel h2:first-child { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--sp-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--sp-5); }

/* callouts and scripts */
.callout { border: 1px solid var(--rule); border-left: 4px solid var(--carbon); background: var(--sheet); padding: var(--sp-4) var(--sp-5); border-radius: 0 var(--r-m) var(--r-m) 0; margin: var(--sp-5) 0; }
.callout p:last-child { margin-bottom: 0; }
.callout--urgent { border-left-color: var(--stamp); background: var(--stamp-tint); border-color: #F2C9C7; }
.script { font-family: var(--f-mono); font-size: .95rem; background: var(--sheet); border: 1px dashed var(--carbon); color: var(--carbon-deep); padding: var(--sp-4) var(--sp-5); border-radius: var(--r-m); }
.script p { margin: 0; }
.note { font-size: .92rem; color: var(--ink-2); }

/* tables */
.t { width: 100%; border-collapse: collapse; font-size: .97rem; background: var(--sheet); }
.t th, .t td { text-align: left; vertical-align: top; padding: .6rem .75rem; border-bottom: 1px solid var(--rule-2); }
.t thead th { font-weight: 600; border-bottom: 2px solid var(--ink); background: var(--sheet); }
.t tbody tr:hover td { background: #FAFBF8; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: var(--sp-4); }
.table-scroll .t { margin: 0; min-width: 34rem; }

/* steps inside prose: a sequence */
ol.steps { list-style: none; padding: 0; counter-reset: s; }
ol.steps > li { counter-increment: s; position: relative; padding-left: 2.6rem; margin-bottom: var(--sp-4); }
ol.steps > li::before { content: counter(s); position: absolute; left: 0; top: .05rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 2px solid var(--carbon); color: var(--carbon); font-family: var(--f-display); font-weight: 800; font-size: .95rem; display: grid; place-items: center; }
ul.check { list-style: none; padding: 0; }
ul.check li { position: relative; padding-left: 1.7rem; }
ul.check li::before { content: ""; position: absolute; left: 0; top: .32em; width: 1rem; height: 1rem; border: 2px solid var(--carbon); border-radius: 3px; }

/* ---------- article layout ---------- */
.crumbs { font-size: .9rem; color: var(--ink-3); padding-top: var(--sp-5); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--rule); }
.crumbs a { color: var(--ink-2); }
.page-head { padding: var(--sp-5) 0 var(--sp-5); border-bottom: 1px solid var(--rule); margin-bottom: var(--sp-6); }
.page-head h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); max-width: 24ch; }
.page-head .lede, .page-head p { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.meta { font-size: .9rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 1rem; }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: var(--sp-7); padding-bottom: var(--sp-8); }
.article .body { max-width: var(--measure); }
.article .body h2 { font-size: 1.6rem; margin-top: var(--sp-6); }
.lede { font-size: 1.18rem; color: var(--ink-2); }
.takeaways { background: var(--sheet); border: 1px solid var(--rule); border-top: 3px solid var(--carbon); border-radius: 0 0 var(--r-m) var(--r-m); padding: var(--sp-4) var(--sp-5) var(--sp-2); margin-bottom: var(--sp-6); }
.article .body .takeaways h2 { font-size: 1.15rem; margin: 0 0 .5rem; font-family: var(--f-text); font-weight: 600; font-stretch: 100%; letter-spacing: 0; }
.rail { position: relative; }
.rail-inner { position: sticky; top: 5.5rem; display: grid; gap: var(--sp-5); }
.toc { font-size: .93rem; }
.toc h2 { font-family: var(--f-text); font-size: .95rem; font-weight: 600; margin: 0 0 .5rem; color: var(--ink-2); }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--rule); }
.toc li { margin: 0; }
.toc a { display: block; padding: .25rem 0 .25rem .8rem; color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--carbon); }
.mini-cta h2 { font-family: var(--f-text); font-size: 1.05rem; font-weight: 600; margin: 0 0 .4rem; }
.mini-cta p { font-size: .95rem; color: var(--ink-2); }
.sources { border-top: 1px solid var(--rule); margin-top: var(--sp-6); padding-top: var(--sp-4); font-size: .95rem; }
.article .body .sources h2 { font-size: 1.1rem; font-family: var(--f-text); font-weight: 600; font-stretch: 100%; letter-spacing: 0; margin: 0 0 .5rem; }
.related { list-style: none; padding: 0; display: grid; gap: .5rem; }
.disclaim { font-size: .88rem; color: var(--ink-3); border-top: 1px solid var(--rule); padding-top: var(--sp-4); margin-top: var(--sp-6); }

/* guide hub list */
.guide-groups { display: grid; gap: var(--sp-7); }
.glist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: var(--sp-7); }
.glist li { border-top: 1px solid var(--rule); margin: 0; padding: var(--sp-4) 0; }
.glist a { font-weight: 600; font-size: 1.08rem; text-decoration: none; }
.glist a:hover { text-decoration: underline; }
.glist p { margin: .25rem 0 0; color: var(--ink-2); font-size: .96rem; }

/* ---------- forms ---------- */
.form { display: grid; gap: var(--sp-4); }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--sp-4); }
.field { display: grid; gap: .35rem; }
.field label, .field legend, .label { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .86rem; color: var(--ink-3); font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="time"], input[type="datetime-local"], input[type="search"], input[type="url"], select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff; width: 100%;
  border: 1px solid #B8C3B3; border-radius: var(--r-s); padding: .65rem .75rem; min-height: 2.9rem;
}
textarea { min-height: 7.5rem; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--carbon-tint); border-color: var(--carbon); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--stamp); outline-color: var(--stamp-tint); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form fieldset { display: grid; gap: var(--sp-4); }
.form fieldset[hidden] { display: none; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .5rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span { display: block; height: 100%; border: 1px solid #B8C3B3; background: #fff; border-radius: var(--r-s); padding: .65rem .8rem .65rem 2.3rem; font-weight: 500; cursor: pointer; position: relative; }
.choice span::before { content: ""; position: absolute; left: .75rem; top: .9rem; width: .95rem; height: .95rem; border: 2px solid var(--ink-3); border-radius: 50%; background: #fff; }
.choice input[type="checkbox"] + span::before { border-radius: 3px; }
.choice input:checked + span { border-color: var(--carbon); background: var(--carbon-tint); color: var(--carbon-deep); }
.choice input:checked + span::before { border-color: var(--carbon); background: radial-gradient(circle, var(--carbon) 45%, #fff 50%); }
.choice input[type="checkbox"]:checked + span::before { background: var(--carbon); box-shadow: inset 0 0 0 2px #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--carbon); outline-offset: 2px; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: var(--ink-2); }
.consent input { margin-top: .3rem; width: 1.05rem; height: 1.05rem; flex: none; accent-color: var(--carbon); }
.hp { position: absolute !important; left: -5000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-weight: 600; padding: .75rem 1rem; border-radius: var(--r-s); display: none; }
.form-status.is-ok { display: block; background: #E6F4EC; color: var(--ok); border: 1px solid #BFE3CD; }
.form-status.is-err { display: block; background: var(--stamp-tint); color: #8A1C21; border: 1px solid #F2C9C7; }
.noscript { font-size: .9rem; background: var(--stamp-tint); padding: .6rem .8rem; border-radius: var(--r-s); }

/* stepper */
.stepper { list-style: none; padding: 0; margin: 0 0 var(--sp-5); display: flex; gap: 0; border-bottom: 2px solid var(--rule); }
.stepper li { margin: 0 0 -2px; padding: .5rem 1rem .6rem 0; margin-right: 1rem; font-weight: 600; color: var(--ink-3); border-bottom: 2px solid transparent; font-size: .95rem; }
.stepper li.is-on { color: var(--carbon-deep); border-bottom-color: var(--carbon); }
.stepper li.is-done { color: var(--ink-2); }
.step[hidden] { display: none; }
.step-nav { display: flex; gap: .75rem; justify-content: space-between; align-items: center; margin-top: var(--sp-2); }

/* lead block */
.lead { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--sp-7); align-items: start; }
.lead-copy ul { padding-left: 1.1rem; }
.lead-copy li { margin-bottom: .5rem; }
.trust { display: grid; gap: .5rem; font-size: .93rem; color: var(--ink-2); border-top: 1px solid var(--rule); padding-top: var(--sp-4); margin-top: var(--sp-4); }

/* tool output */
.out { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-m); padding: var(--sp-5); }
.letter { font-family: var(--f-mono); font-size: .92rem; line-height: 1.65; white-space: pre-wrap; color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: var(--r-s); padding: var(--sp-5); max-height: 34rem; overflow: auto; }
.tool-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: var(--sp-4); }
.result-card { border: 1px solid var(--rule); border-left: 4px solid var(--carbon); background: #fff; border-radius: 0 var(--r-m) var(--r-m) 0; padding: var(--sp-5); margin-top: var(--sp-5); }
.result-card.is-urgent { border-left-color: var(--stamp); }
.result-card h3 { margin-top: 0; font-family: var(--f-display); font-size: 1.35rem; font-weight: 760; }
.badge { display: inline-block; font-size: .8rem; font-weight: 600; padding: .1rem .5rem; border-radius: 3px; background: var(--carbon-tint); color: var(--carbon-deep); }
.badge--stamp { background: var(--stamp-tint); color: #8A1C21; }
.badge--ok { background: #E6F4EC; color: var(--ok); }
.deadline { font-family: var(--f-display); font-weight: 800; font-stretch: 110%; font-size: 1.9rem; color: var(--carbon-deep); }
.qfilter { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: var(--sp-4); align-items: end; }
.qfilter .field { min-width: 12rem; flex: 1; }
.tl-list { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--carbon); }
.tl-list li { position: relative; padding: .2rem 0 1rem 1.2rem; margin: 0; }
.tl-list li::before { content: ""; position: absolute; left: -7px; top: .55rem; width: 12px; height: 12px; border-radius: 50%; background: var(--sheet); border: 2px solid var(--carbon); }
.tl-list time { font-weight: 600; font-size: .92rem; color: var(--carbon-deep); }
.tl-list button { font-size: .85rem; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--carbon); text-decoration: underline; cursor: pointer; font: inherit; }

/* states directory */
.states { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.states > li { margin: 0; border-bottom: 1px solid var(--rule); }
.states details summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 3rem 1fr auto; align-items: center; gap: .75rem; padding: .85rem 0; }
.states details summary::-webkit-details-marker { display: none; }
.states .code { font-family: var(--f-display); font-weight: 800; font-stretch: 120%; color: var(--carbon); font-size: 1.15rem; }
.states .nm { font-weight: 600; }
.states .ut { font-size: .82rem; color: var(--ink-3); }
.states .chev { width: 1.2rem; height: 1.2rem; transition: transform .2s; color: var(--ink-3); }
.states details[open] .chev { transform: rotate(180deg); }
.states .inner { padding: 0 0 1rem 3.75rem; }
.states .inner p { margin-bottom: .6rem; color: var(--ink-2); }
.states .links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.chk { font-size: .8rem; color: var(--ok); }

/* feeds */
.feed { list-style: none; padding: 0; margin: 0; }
.feed li { border-top: 1px solid var(--rule); padding: .8rem 0; margin: 0; }
.feed a { font-weight: 600; text-decoration: none; color: var(--ink); }
.feed a:hover { color: var(--carbon); text-decoration: underline; }
.feed .src { display: block; font-size: .86rem; color: var(--ink-3); margin-top: .15rem; }
.vids { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--sp-5); list-style: none; padding: 0; margin: 0; }
.vids li { margin: 0; }
.yt { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border-radius: var(--r-m); overflow: hidden; display: block; width: 100%; border: 0; padding: 0; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; }
.yt .play { position: absolute; inset: 0; display: grid; place-items: center; }
.yt .play svg { width: 3.4rem; height: 3.4rem; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vids h3 { font-size: .98rem; margin: .5rem 0 .15rem; line-height: 1.35; }
.vids .src { font-size: .85rem; color: var(--ink-3); }
.empty { color: var(--ink-2); font-size: .97rem; }

/* faq */
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: .9rem 0; font-weight: 600; font-size: 1.04rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-display); font-weight: 800; color: var(--carbon); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); max-width: var(--measure); }

/* support row */
.support { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; border-top: 2px solid var(--ink); }
.support > div { padding: var(--sp-5) var(--sp-5) var(--sp-5) 0; }
.support > div + div { padding-left: var(--sp-5); border-left: 1px solid var(--rule); }
.support h3 { margin-top: 0; font-family: var(--f-display); font-size: 1.35rem; font-weight: 760; }
.support p { color: var(--ink-2); }

/* tiers and rate card */
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--sp-4); }
.tier { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-m); padding: var(--sp-5); display: flex; flex-direction: column; }
.tier .amt { font-family: var(--f-display); font-weight: 800; font-stretch: 110%; font-size: 2rem; color: var(--carbon-deep); line-height: 1; margin: .25rem 0 .5rem; }
.tier p { color: var(--ink-2); font-size: .95rem; flex: 1; }
.tier.is-featured { border-color: var(--carbon); box-shadow: inset 0 0 0 1px var(--carbon); }

/* quiz */
.quiz-q { border-top: 1px solid var(--rule); padding: var(--sp-4) 0; }
.quiz-q h3 { margin-top: 0; font-size: 1.05rem; }
.quiz-q .choices { grid-template-columns: repeat(2, minmax(0,1fr)); }
.quiz-q .exp { font-size: .93rem; margin-top: .5rem; }
.quiz-q.is-right .exp { color: var(--ok); }
.quiz-q.is-wrong .exp { color: #8A1C21; }
.score { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; }

/* footer */
.site-foot { background: var(--ink); color: #C9CFDF; padding: var(--sp-7) 0 var(--sp-6); margin-top: 0; font-size: .95rem; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; color: var(--hl); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--sp-6); }
.site-foot h2 { color: #fff; font-family: var(--f-text); font-size: 1rem; font-weight: 600; margin: 0 0 .75rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: .45rem; }
.site-foot .brand { color: #fff; }
.site-foot .brand b { color: #9FB0F5; }
.site-foot .brand span { color: #9AA3B8; }
.foot-news { display: flex; gap: .5rem; margin-top: .75rem; }
.foot-news input { background: #252F45; border-color: #3A4560; color: #fff; }
.foot-news input::placeholder { color: #8C95AA; }
.foot-legal { border-top: 1px solid #2E3850; margin-top: var(--sp-6); padding-top: var(--sp-5); font-size: .86rem; color: #9AA3B8; display: grid; gap: .5rem; }
.foot-lines { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: .75rem; }
.foot-lines a { font-weight: 600; }

.nav .nav-help-mobile { display: none; }

/* mobile dock */
.dock { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .head-search { display: none; }
  .nav { gap: var(--sp-4); }
}
@media (max-width: 900px) {
  .hero .wrap, .lead, .article { grid-template-columns: 1fr; gap: var(--sp-6); }
  .rail-inner { position: static; }
  .toc { display: none; }
  .path { grid-template-columns: 1fr 1fr; }
  .path li:nth-child(3n+2), .path li:nth-child(3n) { padding-left: 0; border-left: 0; }
  .path li:nth-child(2n) { padding-left: var(--sp-5); border-left: 1px solid var(--rule); }
  .vids, .grid-3, .tiers { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .support { grid-template-columns: 1fr; }
  .support > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
}
@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; }
  .btn--help { display: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--sheet); border-bottom: 1px solid var(--rule); flex-direction: column; gap: 0; padding: .5rem 1.25rem 1rem; }
  .nav.is-open { display: flex; }
  .nav a { padding: .7rem 0; border-bottom: 1px solid var(--rule-2); }
  .nav .nav-help-mobile { display: block; color: var(--carbon); font-weight: 600; }
  .lines ul { grid-template-columns: 1fr 1fr; }
  .lines li:nth-child(3) { border-left: 0; }
  .lines li:nth-child(n+3) { border-top: 1px solid var(--rule-2); }
  .toollist, .glist, .rights, .grid-2, .form .row, .quiz-q .choices { grid-template-columns: 1fr; }
  .dock { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--sheet); border-top: 1px solid var(--rule); padding: .55rem .75rem calc(.55rem + env(safe-area-inset-bottom)); gap: .5rem; }
  .dock a { flex: 1; }
  body { padding-bottom: 4.2rem; }
  .section { padding: var(--sp-7) 0; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .path, .vids, .grid-3, .tiers, .choices, .foot-grid { grid-template-columns: 1fr; }
  .path li:nth-child(2n) { padding-left: 0; border-left: 0; }
  .sheet { padding: 1.1rem 1rem 1.3rem; }
  .sheet dl { grid-template-columns: 6.4rem 1fr; }
  .sheet dt { white-space: normal; line-height: 1.3; padding-top: .45rem; }
  .sheet dd { font-size: .82rem; }
  .sheet .opt { display: none; }
  .states .inner { padding-left: 0; }
  .topbar { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .stamp { opacity: .92; }
  .caret { display: none; }
}
@media print {
  .topbar, .site-head, .indep, .site-foot, .dock, .rail, .no-print, .tool-actions, .crumbs { display: none !important; }
  body { background: #fff; padding: 0; }
  .letter { border: 0; max-height: none; overflow: visible; padding: 0; font-size: 11pt; }
  .article { display: block; }
}
