/* ===========================================================================
   State page composable blocks.

   A state page is assembled from an ordered, per-state list of content blocks
   (see catalog/includes/_state_blocks.html). Every block reads one accent color
   from --accent set on the .sblocks wrapper, so each state carries its own
   identity, and because each state uses a DIFFERENT mix and order of blocks, no
   two pages share a skeleton.

   Design intent: every block is a defined container (a card, a tinted panel, a
   dark spotlight, a statement ledger) so nothing floats as bare text. Variety
   comes from FOUR container families, not from one repeated card, plus the
   per-state block order and accent.
   =========================================================================== */

.sblocks {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e6e8ec;
  --paper: #f8fafc;
  --accent: #0ea5e9;                                   /* set inline per state */
  --accent-soft: color-mix(in srgb, var(--accent) 9%, #fff);
  --accent-ink: color-mix(in srgb, var(--accent) 55%, #0f172a);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: 2.4rem 0 1rem;
}
.sblocks .sb-wrap { max-width: 900px; margin: 0 auto; padding: 0 1.25rem; }

/* Block-state hero: a clear title, a descriptive subhead, then breathing room
   before the compensation bar so it does not read as bare. */
.sl-hero--blocks { padding-top: 3.2rem; }
.sl-hero--blocks > .sl-container { padding-bottom: 1.9rem; }
.sl-hero--blocks h1 { margin: 0 0 .6rem; }
.sl-hero--blocks .sl-hero-sub { color: #cbd5e1; font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.6; max-width: 620px; margin: 0; }
.sblocks .sb { margin: 0 0 1.5rem; }
.sblocks .sb:last-child { margin-bottom: 0; }

/* Shared card + heading base. Individual blocks extend these. */
.sblocks .sb-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.4rem, 3vw, 2rem); box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.sb-h { font-size: 1.22rem; font-weight: 800; color: var(--ink); margin: 0 0 1rem; letter-spacing: -.01em; }
.sb-eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 .55rem; }

/* --- lede: a tinted panel with a strong accent edge ---------------------- */
.sb-lede { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, #fff); border-left: 6px solid var(--accent); border-radius: 4px 16px 16px 4px; padding: clamp(1.5rem, 3.5vw, 2.2rem) clamp(1.6rem, 4vw, 2.4rem); }
.sb-lede-rule { display: none; }
.sb-lede p { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.5; font-weight: 500; color: #1e293b; margin: 0; letter-spacing: -.01em; }

/* --- bignum: a card, dominant figure beside its caption ------------------ */
.sb-bignum { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(15,23,42,.04); padding: clamp(1.3rem, 3vw, 1.9rem) clamp(1.5rem, 3.5vw, 2rem); display: grid; grid-template-columns: auto 1fr; gap: 0 1.8rem; align-items: center; }
.sb-bignum .sb-bignum-v { font-size: clamp(2.8rem, 8vw, 4.6rem); line-height: .92; font-weight: 800; letter-spacing: -.04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.sb-bignum .sb-bignum-label { font-size: 1.08rem; font-weight: 800; color: var(--ink); margin: 0 0 .35rem; }
.sb-bignum .sb-bignum-context { font-size: .93rem; color: var(--muted); line-height: 1.6; margin: 0; }
@media (max-width: 560px) { .sb-bignum { grid-template-columns: 1fr; gap: .5rem; } }

/* --- statband: a card with divided figures ------------------------------ */
.sb-statband { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(15,23,42,.04); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; overflow: hidden; }
.sb-statband .sb-stat { padding: 1.3rem 1.4rem; border-right: 1px solid var(--line); }
.sb-statband .sb-stat:last-child { border-right: 0; }
.sb-statband .sb-stat-v { font-size: 1.7rem; font-weight: 800; color: var(--accent-ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sb-statband .sb-stat-l { font-size: .8rem; color: var(--muted); line-height: 1.4; margin-top: .3rem; }
@media (max-width: 620px) { .sb-statband { grid-auto-flow: row; grid-auto-columns: auto; } .sb-statband .sb-stat { border-right: 0; border-bottom: 1px solid var(--line); } .sb-statband .sb-stat:last-child { border-bottom: 0; } }

/* --- prose: a card, heading over body ----------------------------------- */
.sb-prose { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(15,23,42,.04); padding: clamp(1.4rem, 3vw, 1.9rem) clamp(1.5rem, 3.5vw, 2rem); }
.sb-prose .sb-prose-h { font-size: 1.18rem; font-weight: 800; color: var(--ink); line-height: 1.3; margin: 0 0 .85rem; padding-left: .9rem; border-left: 4px solid var(--accent); }
.sb-prose .sb-prose-body { color: #334155; }
.sb-prose .sb-prose-body p { font-size: 1rem; line-height: 1.7; margin: 0 0 1rem; }
.sb-prose .sb-prose-body p:last-child { margin-bottom: 0; }

/* --- spotlight: a dark panel, the state's signature quirk ---------------- */
.sb-spotlight { background: #0b1220; color: #e2e8f0; border-radius: 16px; padding: clamp(1.6rem, 4.5vw, 2.4rem); position: relative; overflow: hidden; }
.sb-spotlight::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--accent); }
.sb-spotlight .sb-eyebrow { color: color-mix(in srgb, var(--accent) 60%, #fff); }
.sb-spotlight h2 { color: #fff; font-size: clamp(1.35rem, 3.5vw, 1.75rem); line-height: 1.22; letter-spacing: -.02em; margin: 0 0 .8rem; }
.sb-spotlight p { color: #cbd5e1; font-size: 1rem; line-height: 1.65; margin: 0; }

/* --- timeline: a card with a real connector rail ------------------------ */
.sb-timeline { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(15,23,42,.04); padding: clamp(1.4rem, 3vw, 1.9rem) clamp(1.5rem, 3.5vw, 2rem); }
.sb-timeline .sb-tl-h { font-size: 1.22rem; font-weight: 800; margin: 0 0 1.3rem; letter-spacing: -.01em; }
.sb-timeline ol { list-style: none; margin: 0; padding: 0; }
.sb-timeline li { position: relative; padding: 0 0 1.4rem 2.2rem; }
.sb-timeline li::before { content: ""; position: absolute; left: 6px; top: 1.5rem; bottom: -0.3rem; width: 2px; background: var(--line); }
.sb-timeline li:last-child { padding-bottom: 0; }
.sb-timeline li:last-child::before { display: none; }
.sb-timeline li::after { content: ""; position: absolute; left: 0; top: .3rem; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.sb-timeline .sb-tl-mark { font-size: .76rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-ink); }
.sb-timeline .sb-tl-text { font-size: .97rem; color: #334155; line-height: 1.6; margin: .15rem 0 0; }

/* --- mythfact: a card, assumption vs reality ---------------------------- */
.sb-mythfact { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(15,23,42,.04); padding: clamp(1.4rem, 3vw, 1.9rem) clamp(1.5rem, 3.5vw, 2rem); }
.sb-mythfact .sb-mf-h { font-size: 1.22rem; font-weight: 800; margin: 0 0 1.1rem; }
.sb-mythfact .sb-mf-row { display: grid; grid-template-columns: 1fr; gap: .4rem 0; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.sb-mythfact .sb-mf-row:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 720px) { .sb-mythfact .sb-mf-row { grid-template-columns: 1fr 1.1fr; gap: 0 2rem; align-items: start; } }
.sb-mythfact .sb-mf-myth { color: var(--muted); font-size: .93rem; line-height: 1.55; position: relative; padding-left: 1.5rem; }
.sb-mythfact .sb-mf-myth::before { content: "\201C"; position: absolute; left: 0; top: .2rem; font-size: 1.3rem; font-weight: 800; color: #cbd5e1; line-height: 1; }
.sb-mythfact .sb-mf-fact { color: var(--ink); font-size: .98rem; line-height: 1.6; font-weight: 500; position: relative; padding-left: 1.5rem; }
.sb-mythfact .sb-mf-fact::before { content: ""; position: absolute; left: 0; top: .5rem; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }

/* --- compare: a card with a two-column table ---------------------------- */
.sb-compare { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(15,23,42,.04); padding: clamp(1.4rem, 3vw, 1.9rem) clamp(1.5rem, 3.5vw, 2rem); }
.sb-compare .sb-cmp-h { font-size: 1.22rem; font-weight: 800; margin: 0 0 1rem; }
.sb-compare table { width: 100%; border-collapse: collapse; }
.sb-compare thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); text-align: left; padding: 0 1rem .6rem; }
.sb-compare thead th:nth-child(2) { color: var(--accent-ink); }
.sb-compare tbody th { text-align: left; font-weight: 600; color: var(--ink); font-size: .92rem; padding: .8rem 1rem; border-top: 1px solid var(--line); vertical-align: top; }
.sb-compare tbody td { font-size: .92rem; color: #334155; padding: .8rem 1rem; border-top: 1px solid var(--line); vertical-align: top; }
.sb-compare tbody td:first-of-type { border-left: 3px solid var(--accent); background: var(--accent-soft); font-weight: 600; color: var(--accent-ink); }

/* --- ledger: how a balance grows, styled like a statement --------------- */
.sb-ledger { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; max-width: 480px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.sb-ledger .sb-ledger-h { background: var(--paper); padding: .9rem 1.2rem; font-size: .82rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.sb-ledger .sb-ledger-row { display: flex; justify-content: space-between; align-items: baseline; padding: .7rem 1.2rem; border-bottom: 1px dashed var(--line); }
.sb-ledger .sb-ledger-row span:first-child { color: #334155; font-size: .92rem; }
.sb-ledger .sb-ledger-row span:last-child { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); text-align: right; }
.sb-ledger .sb-ledger-total { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1.2rem; background: var(--accent-soft); border-bottom: 0; }
.sb-ledger .sb-ledger-total span:first-child { font-weight: 800; color: var(--accent-ink); }
.sb-ledger .sb-ledger-total span:last-child { font-weight: 800; color: var(--accent-ink); text-align: right; }
.sb-ledger-note { font-size: .8rem; color: var(--muted); line-height: 1.55; margin: .7rem 0 0; max-width: 480px; }

/* --- statute: a pulled legal quote in a tinted panel -------------------- */
.sb-statute { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 20%, #fff); border-left: 6px solid var(--accent); border-radius: 4px 16px 16px 4px; padding: clamp(1.4rem, 3.5vw, 1.9rem) clamp(1.5rem, 4vw, 2.1rem); }
.sb-statute blockquote { margin: 0; font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.5; color: var(--ink); font-style: italic; }
.sb-statute cite { display: block; margin-top: .85rem; font-style: normal; font-size: .82rem; color: var(--accent-ink); font-weight: 700; }
.sb-statute cite a { color: var(--accent-ink); }

/* --- programs: a card, a definition list -------------------------------- */
.sb-programs { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(15,23,42,.04); padding: clamp(1.4rem, 3vw, 1.9rem) clamp(1.5rem, 3.5vw, 2rem); }
.sb-programs .sb-pr-h { font-size: 1.22rem; font-weight: 800; margin: 0 0 1rem; }
.sb-programs dl { margin: 0; }
.sb-programs dt { font-size: 1.02rem; font-weight: 700; color: var(--ink); padding: .95rem 0 .3rem .9rem; border-left: 4px solid var(--accent); }
.sb-programs dd { margin: 0 0 .2rem .9rem; font-size: .95rem; color: #334155; line-height: 1.6; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.sb-programs dd:last-child { border-bottom: 0; padding-bottom: 0; }

/* --- checklist: a tinted panel, numbered steps -------------------------- */
.sb-checklist { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.4rem, 3.5vw, 2rem); }
.sb-checklist .sb-cl-h { font-size: 1.2rem; font-weight: 800; margin: 0 0 1.1rem; }
.sb-checklist ol { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.sb-checklist li { counter-increment: step; position: relative; padding: 0 0 1rem 3rem; min-height: 2rem; }
.sb-checklist li:last-child { padding-bottom: 0; }
.sb-checklist li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: .9rem; display: grid; place-items: center; }
.sb-checklist li p { margin: .3rem 0 0; font-size: .96rem; color: #334155; line-height: 1.55; }

/* --- calc: intro line + the embedded calculator ------------------------- */
.sb-calc .sb-calc-lead { margin: 0 0 1.2rem; }
.sb-calc .sb-calc-lead h2 { font-size: 1.3rem; font-weight: 800; margin: 0 0 .4rem; }
.sb-calc .sb-calc-lead p { color: var(--muted); font-size: .95rem; line-height: 1.6; margin: 0; }
.sb-calc .stc { max-width: none; }

/* --- pointer: a compact cross-link card to a related guide or tool ------- */
.sb-pointer { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, #fff); border-radius: 16px; padding: clamp(1.2rem, 3vw, 1.6rem) clamp(1.4rem, 3.5vw, 1.9rem); }
.sb-pointer .sb-ptr-text { font-size: .97rem; color: #1e293b; line-height: 1.6; margin: 0 0 .75rem; max-width: 62ch; }
.sb-pointer .sb-ptr-link { display: inline-block; font-weight: 800; font-size: .95rem; color: var(--accent-ink); text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.sb-pointer .sb-ptr-link:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* --- faq: a card with an accordion -------------------------------------- */
.sb-faq { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(15,23,42,.04); padding: clamp(1.4rem, 3vw, 1.9rem) clamp(1.5rem, 3.5vw, 2rem); }
.sb-faq .sb-faq-h { font-size: 1.22rem; font-weight: 800; margin: 0 0 .5rem; }
.sb-faq details { border-bottom: 1px solid var(--line); }
.sb-faq details:last-child { border-bottom: 0; }
.sb-faq summary { cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; font-weight: 600; color: var(--ink); font-size: 1rem; position: relative; }
.sb-faq summary::-webkit-details-marker { display: none; }
.sb-faq summary::after { content: "+"; position: absolute; right: 0; top: .85rem; font-size: 1.4rem; font-weight: 400; color: var(--accent); }
.sb-faq details[open] summary::after { content: "\2212"; }
.sb-faq details p { margin: 0 0 1.1rem; color: #334155; line-height: 1.65; font-size: .96rem; }

/* --- sources: an understated footer note -------------------------------- */
.sb-sources { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; }
.sb-sources p { font-size: .78rem; color: var(--muted); line-height: 1.6; margin: 0; }
.sb-sources a { color: var(--accent-ink); }
