/* ============================================================================
   LEVENHALL / UNITED STATES — the front door.

   Built on styles.css, the same stylesheet as every state atlas, so the front door
   and the volume behind it are one product: same masthead, same paper, same type,
   same theme setting. Before this, the front door was a dark bound-volume page and
   every state behind it was paper, and clicking a state felt like leaving one site
   for another.

   The layout rule is one thing on screen at a time. Measured against Linear and
   Stripe at 1440: they put 127 and 86 words above the fold, the old front door put
   113 plus eleven lens tabs and five inputs. This page puts one question.
   ========================================================================= */

.home-body { background: var(--paper); }
/* styles.css locks html and body to the viewport because the state atlas scrolls an inner
   column. The front door is an ordinary document and has to scroll like one. */
html, body.home-body { height: auto; overflow: visible; }
/* the plat-paper grid is texture, and texture is one more thing asking to be looked at */
body.home-body { background-image: none; }
.home { display: block; }

/* ---- a screen that holds one thing ---- */
.h-screen { min-height: calc(100vh - 52px); display: flex; align-items: flex-start; }
.h-col { width: 100%; max-width: 640px; margin: 0 auto; padding: clamp(56px, 14vh, 150px) 24px 72px; }
.h-wide { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.home h1 { font-family: var(--display); font-size: clamp(34px, 5vw, 54px); font-weight: 500;
  letter-spacing: -.018em; line-height: 1.06; margin: 0; color: var(--ink); max-width: 18ch; }
.home h1 em { font-style: italic; color: var(--gold-deep); }
.home h2 { font-family: var(--display); font-size: clamp(24px, 2.8vw, 32px); font-weight: 500;
  letter-spacing: -.014em; line-height: 1.15; margin: 0; color: var(--ink); }
.h-lede { margin: 20px 0 0; font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 54ch; }
.h-go { margin-top: 32px; }
.h-meta { margin: 14px 0 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted-2); }
.h-quiet { display: inline-block; margin-top: 40px; font-size: 15px; color: var(--muted);
  text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 4px;
  transition: color .14s ease; }
.h-quiet:hover { color: var(--ink); }
.h-resume { margin: 22px 0 0; font-size: 15px; color: var(--muted); }
.h-link { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); cursor: pointer;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold); }
.h-link:hover { color: var(--gold-deep); }

/* ---- the walkthrough ---- */
.h-progress { height: 3px; background: var(--rule-soft); border-radius: 2px; overflow: hidden; margin: 0 0 18px; }
.h-bar { height: 100%; width: 0; background: var(--gold); transition: width .24s cubic-bezier(.23,1,.32,1); }
.h-step-meta { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 14px; }
.h-help { margin: 10px 0 28px; font-size: 15.5px; color: var(--muted); line-height: 1.5; }

.h-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.h-opt { min-height: 52px; text-align: left; padding: 12px 16px; font: inherit; font-size: 15.5px;
  color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r);
  cursor: pointer; transition: border-color .14s ease, background .14s ease; }
.h-opt:hover { border-color: var(--rule-strong); background: var(--raised); }
.h-opt[aria-pressed="true"] { border-color: var(--gold-deep); background: var(--gold-soft); }
.h-opt:active { transform: scale(.98); }

.h-amount input { width: 100%; height: 60px; padding: 0 18px; font-family: var(--sans); font-size: 26px;
  color: var(--ink); background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--r);
  font-variant-numeric: tabular-nums; }
.h-amount input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold-deep); }
.h-err { margin: 8px 0 0; font-size: 14px; color: var(--danger); }
.h-picks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.h-pick { height: 36px; padding: 0 14px; font: inherit; font-size: 14px; color: var(--ink-2);
  background: transparent; border: 1px solid var(--rule); border-radius: var(--r); cursor: pointer;
  font-variant-numeric: tabular-nums; transition: border-color .14s ease, color .14s ease; }
.h-pick:hover { border-color: var(--rule-strong); color: var(--ink); }
.h-pick:active { transform: scale(.97); }

.h-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; }
.h-nav .btn-primary { margin-top: 0; }

/* ---- the answer ---- */
.h-result { padding: clamp(48px, 10vh, 110px) 0 80px; }
.h-top { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.h-row a { display: grid; grid-template-columns: 36px 1fr auto auto; align-items: center; gap: 18px;
  padding: 16px 12px; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink);
  transition: background .14s ease; }
.h-row a:hover { background: var(--surface); }
.h-rank { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.h-state { font-size: 17px; font-weight: 600; }
.h-state small { display: block; margin-top: 3px; font-weight: 400; font-size: 13.5px; color: var(--muted); }
.h-val { font-family: var(--display); font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums lining-nums; }
.h-cta { font-size: 14px; color: var(--muted); min-width: 118px; text-align: right; }
/* the only tinted row on the page: the answer, and the one thing to do with it */
.h-row-lead a { background: var(--gold-soft); }
.h-row-lead a:hover { background: var(--gold-soft); }
.h-row-lead .h-cta { color: var(--ink); font-weight: 600; }
.h-row-lead .h-val { color: var(--gold-deep); }

.h-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; margin-top: 24px; }
.h-actions .btn-ghost { margin: 0; }
details.h-assume, details.h-more { font-size: 15px; color: var(--ink-2); }
details.h-assume summary, details.h-more summary { cursor: pointer; list-style: none; color: var(--muted);
  font-size: 14.5px; padding: 9px 0; text-decoration: underline; text-decoration-color: var(--rule-strong);
  text-underline-offset: 4px; transition: color .14s ease; }
details.h-assume summary:hover, details.h-more summary:hover { color: var(--ink); }
details summary::-webkit-details-marker { display: none; }
details.h-assume[open] { padding: 0 0 8px; }
details.h-assume label { display: block; margin: 8px 0 8px; font-size: 13px; color: var(--muted); }
.h-assume-row input { width: 90px; height: 38px; padding: 0 10px; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--r); }
details.h-assume p { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); max-width: 42ch; }
details.h-more { margin-top: 28px; border-top: 1px solid var(--rule); padding-top: 6px; }

.h-ledger { display: grid; gap: 0; margin-top: 10px; }
.h-led { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--rule-soft); }
.h-led-fig { font-family: var(--display); font-size: 30px; font-weight: 500; color: var(--ink); line-height: 1; }
.h-led-fig small { display: block; margin-top: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted-2); }
.h-led-t { margin: 0 0 6px; font-size: 16px; font-weight: 600; color: var(--ink); font-family: var(--sans); }
.h-led p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); max-width: 62ch; }

/* ---- the map, after the answer rather than before it ---- */
.h-mapblock { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--rule); }
.h-map-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.h-lens { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.h-lens select { height: 36px; padding: 0 10px; font: inherit; font-size: 14px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--r); }
.h-map-sub { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.h-map-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; margin-top: 20px; align-items: start; }
.usmap { width: 100%; height: auto; display: block; }
.usmap path { stroke: var(--paper); stroke-width: .9; cursor: pointer; transition: opacity .14s ease; }
.usmap path:hover, .usmap path:focus-visible { opacity: .82; outline: none; }
.legend { display: flex; align-items: center; gap: 14px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 18px; height: 10px; border-radius: 1px; }
.lg-mid i + i { margin-left: -4px; }
.h-map-note p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.h-map-hint { margin-top: 14px !important; font-size: 12.5px !important; color: var(--muted-2) !important; }

/* ---- every jurisdiction ---- */
.h-index { padding: 72px 0 88px; border-top: 1px solid var(--rule); background: var(--surface); }
.h-tools { display: flex; align-items: center; gap: 16px; margin: 24px 0 16px; }
.h-tools input { flex: 1; max-width: 420px; height: 42px; padding: 0 14px; font: inherit; font-size: 15px;
  color: var(--ink); background: var(--paper); border: 1px solid var(--rule-strong); border-radius: var(--r); }
.h-count { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--muted-2); }
.h-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.h-table th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted-2); padding: 10px 12px; border-bottom: 1px solid var(--rule-strong);
  cursor: pointer; white-space: nowrap; }
.h-table th.num, .h-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.h-table th[aria-sort] { color: var(--ink); }
.h-table td { padding: 12px; border-bottom: 1px solid var(--rule-soft); color: var(--ink-2); }
.h-table td a { color: var(--ink); font-weight: 600; text-decoration: none; }
.h-table td a:hover { text-decoration: underline; text-underline-offset: 3px; }
.h-table tr:hover td { background: var(--raised); }
.h-abbr { font-family: var(--mono); font-size: 11px; color: var(--muted-2); margin-left: 4px; }
.h-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin-top: 10px; }
.h-note { padding: 18px 0; border-bottom: 1px solid var(--rule-soft); }
.h-note-fig { font-family: var(--display); font-size: 26px; font-weight: 500; color: var(--ink); line-height: 1; }
.h-note-fig small { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; margin-left: 8px; color: var(--muted-2); }
.h-note-t { margin: 8px 0 6px; font-weight: 600; font-size: 15px; color: var(--ink); }
.h-note p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }

/* ---- the detail drawer: a dialog, so it is the one thing allowed a shadow ---- */
.h-scrim { position: fixed; inset: 0; background: rgba(8,19,31,.36); z-index: 80; }
.h-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); z-index: 90;
  background: var(--paper); border-left: 1px solid var(--rule-strong); box-shadow: 0 4px 16px rgba(0,0,0,.08);
  display: flex; flex-direction: column; }
.h-dw-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 24px 24px 16px; border-bottom: 1px solid var(--rule); }
.h-dw-kicker { margin: 0 0 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted-2); }
.h-dw-x { width: 40px; height: 40px; font-size: 22px; line-height: 1; color: var(--muted); background: none;
  border: 1px solid var(--rule); border-radius: var(--r); cursor: pointer; }
.h-dw-x:hover { color: var(--ink); border-color: var(--rule-strong); }
.h-dw-body { flex: 1; overflow: auto; padding: 20px 24px; }
.h-dw-body h3 { margin: 24px 0 8px; font-family: var(--mono); font-weight: 400; font-size: 10.5px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.h-dw-fig { font-family: var(--display); font-size: 36px; font-weight: 500; color: var(--ink); line-height: 1; }
.h-dw-fig small { display: block; margin-top: 8px; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.h-kv { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--rule-soft);
  font-size: 14.5px; }
.h-kv span { color: var(--ink-2); }
.h-kv b { font-weight: 600; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.h-dw-foot { padding: 16px 24px 24px; border-top: 1px solid var(--rule); }
.h-dw-foot .btn-primary { display: block; width: 100%; text-align: center; text-decoration: none; margin: 0; }

/* ---- footer ---- */
.h-foot { background: var(--navy); color: rgba(244,241,234,.78); padding: 56px 0 28px; font-size: 14px; }
.h-foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.h-foot-logo { height: 18px; width: auto; margin-bottom: 16px; }
.h-foot p { margin: 0 0 10px; max-width: 46ch; line-height: 1.55; }
.h-foot-small { font-size: 12.5px; color: rgba(244,241,234,.55); }
.h-foot h4 { margin: 0 0 12px; font-family: var(--mono); font-weight: 400; font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(244,241,234,.5); }
.h-foot a { display: block; margin-bottom: 8px; color: rgba(244,241,234,.85); text-decoration: none; }
.h-foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.h-foot-base { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 18px;
  border-top: 1px solid rgba(244,241,234,.12); font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em;
  color: rgba(244,241,234,.45); }

/* ---- tooltip ---- */
.h-tip { position: fixed; z-index: 100; pointer-events: none; transform: translate(12px, 12px);
  background: var(--navy); color: #fff; padding: 8px 10px; border-radius: var(--r); font-size: 13px;
  opacity: 0; transition: opacity .1s ease; }
.h-tip.on { opacity: 1; }
.h-tip-n { font-weight: 600; }
.h-tip-v { font-family: var(--mono); font-size: 12px; opacity: .8; }

/* ---- phone ---- */
@media (max-width: 760px) {
  .h-opts { grid-template-columns: 1fr; }
  .h-go, .h-nav .btn-primary { flex: 1; text-align: center; }
  .h-go { display: block; width: 100%; }
  .h-row a { grid-template-columns: 26px 1fr auto; gap: 12px; }
  .h-cta { display: none; }
  .h-row-lead .h-cta { display: block; grid-column: 2 / -1; text-align: left; min-width: 0; }
  .h-map-grid { grid-template-columns: 1fr; }
  .h-led { grid-template-columns: 1fr; gap: 8px; }
  .h-notes { grid-template-columns: 1fr; }
  .h-foot-in { grid-template-columns: 1fr; gap: 28px; }
  .h-table th:nth-child(4), .h-table td:nth-child(4),
  .h-table th:nth-child(5), .h-table td:nth-child(5) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .h-bar { transition: none; } }

/* ---- the method page: long reading ---- */
.doc-wrap { max-width: 1120px; margin: 0 auto; padding: 56px 24px 88px; display: grid;
  grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.doc-toc { position: sticky; top: 76px; max-height: calc(100vh - 100px); overflow: auto; font-size: 13.5px; }
.doc-toc-t { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 10px; }
.doc-toc a { display: block; padding: 4px 0; color: var(--muted); text-decoration: none; line-height: 1.35; }
.doc-toc a:hover { color: var(--ink); }
.doc-toc .doc-l3 { padding-left: 12px; font-size: 13px; }
.doc-toc .doc-l4 { display: none; }
.doc { max-width: 70ch; color: var(--ink-2); font-size: 16.5px; line-height: 1.65; }
.doc h1 { margin: 0 0 32px; }
.doc h2 { margin: 56px 0 14px; padding-top: 24px; border-top: 1px solid var(--rule); scroll-margin-top: 72px; }
.doc h3 { margin: 32px 0 10px; font-family: var(--sans); font-size: 17px; font-weight: 600; color: var(--ink); scroll-margin-top: 72px; }
.doc h4 { margin: 24px 0 8px; font-size: 15px; font-weight: 600; color: var(--ink); }
.doc p, .doc ul, .doc ol { margin: 0 0 16px; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc code { font-family: var(--mono); font-size: .86em; background: var(--surface); padding: 1px 5px; border-radius: 2px; }
.doc blockquote { margin: 0 0 16px; padding: 4px 0 4px 18px; border-left: 1px solid var(--rule-strong); color: var(--muted); }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 14px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.doc th { font-weight: 600; color: var(--ink); border-bottom-color: var(--rule-strong); }
@media (max-width: 860px) {
  .doc-wrap { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
  .doc-toc { position: static; max-height: none; border-bottom: 1px solid var(--rule); padding-bottom: 16px; }
  .doc-toc .doc-l3 { display: none; }
}
/* the method page's headings match every other page's: the display face, at the platform's weights */
.doc h1 { font-family: var(--display); font-size: clamp(32px, 4vw, 48px); font-weight: 500; letter-spacing: -.018em; line-height: 1.08; color: var(--ink); }
.doc h2 { font-family: var(--display); font-size: clamp(22px, 2.4vw, 28px); font-weight: 500; letter-spacing: -.012em; line-height: 1.2; color: var(--ink); }
