/* The reading pages: /states/, /<code>/, /<state>/ and /<state>/<code>/. The build writes this file to dist/pages.css.
   The tokens are the map app's (src/styles.css), copied so these pages do not load the app's stylesheet.
   Display type is Bodoni Moda, text is Libre Franklin. Steel is the line ink; umber (--ink2) appears only in a hairline.
   The colors are set once and never flip with the system theme. No script runs on these pages. */
:root {
  color-scheme: light;
  --counter: #e5ecf3; --paper: #fdfeff; --stock: #f4f8fb; --ink: #142338; --ink-2: #3d4d61; --ink-3: #55657a;
  --rule: #d3dde8; --chip: #eaf0f6; --hover: #e3ebf4; --select: #cfe0f1;
  --steel: #4d6c8b; --steel-deep: #2f4d6d; --steel-line: #9fb2c5; --ink2: #6b5645;
  --local: #b4b8bb; --hatch: #363e48; --own: #dde4eb;
  --ok: #216b3c; --partial: #9d4b18; --lead: #505964;
  --seal-ink: var(--steel); --seal-ink-2: var(--steel-deep); --seal-paper: #fff;
  --font-ui: "Libre Franklin", "Segoe UI", system-ui, sans-serif;
  --font-display: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", serif;
  --edge: max(16px, env(safe-area-inset-left, 0px));
  --edge-r: max(16px, env(safe-area-inset-right, 0px));
  --gutter: clamp(16px, 4vw, 40px);
  --measure: 30em; /* about 66 characters a line in Libre Franklin, 72 at most */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--font-ui); -webkit-font-smoothing: antialiased; }
::selection { background: var(--select); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
main:focus { outline: none; }
a { color: var(--steel-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in oklab, var(--steel-deep) 45%, transparent); }
a:hover { color: var(--ink); text-decoration-color: currentColor; }
svg { max-width: 100%; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 60; padding: 10px 14px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; border-radius: 2px; }
.skip:focus { top: 8px; }
.ext { margin-left: 3px; vertical-align: -1px; opacity: .7; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }

/* ---------- header and breadcrumb */
.site { position: relative; background: var(--paper); border-bottom: 1px solid var(--steel); }
.site::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: var(--ink2); opacity: .5; }
.site-in { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 18px; padding-top: 6px; padding-bottom: 8px; }
.wordmark { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink); text-decoration: none; white-space: nowrap;
  font: 800 17px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; font-variation-settings: "opsz" 12; }
.site-nav { display: flex; flex-wrap: wrap; gap: 2px; margin-left: auto; }
.site-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 11px; border-radius: 2px; color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.site-nav a:hover { color: var(--ink); background: var(--hover); }

/* ---------- find a state (the same box is in the overview's masthead, styled in landing.css)) */
.find-state { position: relative; display: flex; }
.find-state input { width: 12.5em; min-width: 0; height: 36px; box-sizing: border-box; margin: 0; padding: 0 10px; border: 1px solid var(--steel-line);
  border-right: 0; border-radius: 2px 0 0 2px; background: #fff; color: var(--ink); font: 500 14px/1.2 var(--font-ui); -webkit-appearance: none; appearance: none; }
.find-state input::placeholder { color: var(--ink-3); opacity: 1; }
.find-state input:hover { border-color: var(--steel); }
.find-state input[aria-invalid] { border-color: var(--ink); }
.find-state button { flex: none; height: 36px; margin: 0; padding: 0 13px; border: 1px solid var(--steel); border-radius: 0 2px 2px 0; background: transparent;
  color: var(--steel-deep); font: 700 13.5px/1 var(--font-ui); cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.find-state button:hover { background: var(--steel-deep); border-color: var(--steel-deep); color: #fff; }
.find-state button:active { transform: scale(.97); }
.find-msg { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; width: max-content; max-width: min(300px, 86vw); margin: 0; padding: 7px 11px;
  background: var(--paper); border: 1px solid var(--steel); color: var(--ink); font-size: 13px; line-height: 1.4; box-shadow: 0 8px 20px rgba(20, 35, 56, .12); }
.find-msg:empty { display: none; }

.crumbs { margin: 26px 0 0; font-size: 14.5px; color: var(--ink-3); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 0; }
.crumbs li + li::before { content: "/"; content: "/" / ""; margin: 0 9px; color: var(--steel-line); }
.crumbs a, .crumbs [aria-current] { display: inline-block; padding: 4px 0; }
.crumbs [aria-current] { color: var(--ink-2); font-weight: 600; }

/* ---------- headings and text */
.page-head { margin-top: 18px; }
.kicker { margin: 0 0 8px; font: 700 12px/1.4 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--steel-deep); overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--font-display); font-variation-settings: "opsz" 12; overflow-wrap: break-word; }
h1 { margin: 0 0 18px; max-width: 20em; font: 700 clamp(30px, 4.6vw, 46px)/1.1 var(--font-display); letter-spacing: -.005em; text-wrap: balance; font-variation-settings: "opsz" 12; }
h2 { margin: 0 0 16px; font: 700 clamp(24px, 3vw, 30px)/1.15 var(--font-display); text-wrap: balance; font-variation-settings: "opsz" 12; }
h2 .count { margin-left: 10px; font: 500 14px/1 var(--font-ui); color: var(--ink-2); white-space: nowrap; letter-spacing: 0; }
h3 { margin: 30px 0 12px; font: 700 20px/1.25 var(--font-display); font-variation-settings: "opsz" 12; }
main section { margin-top: 52px; }
main p { margin: 0 0 14px; max-width: var(--measure); }
.lede { font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.note { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.note b { color: var(--ink); }
main time { font-variant-numeric: tabular-nums; }

/* ---------- the record plate */
.plate { position: relative; max-width: 46em; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 28px; align-items: start; margin: 0; padding: 24px 28px;
  border: 1px solid var(--steel); background: var(--paper); box-shadow: inset 0 0 0 9px var(--paper), inset 0 0 0 10px var(--steel-line); }
.plate-main { min-width: 0; }
.plate p { margin: 0; max-width: none; }
.plate-cap { font: 700 11.5px/1.4 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.plate-big { margin-top: 6px !important; font: 700 clamp(38px, 7vw, 58px)/1 var(--font-display); letter-spacing: -.005em; color: var(--steel-deep); font-variation-settings: "opsz" 14; overflow-wrap: anywhere; }
.plate-big-text { font-size: clamp(27px, 4.6vw, 38px); line-height: 1.1; }
.rec-lead .plate-big, .rec-none .plate-big { color: var(--ink-2); }
.plate .plate-tile { display: block; width: 100%; max-width: 190px; height: 8px; margin: 12px 0 0; border: 0; border-radius: 1px; }
.plate-instrument { margin-top: 14px !important; font-weight: 600; line-height: 1.4; max-width: 46ch !important; }
.plate-seal { display: grid; justify-items: center; gap: 8px; width: 104px; text-align: center; }
.plate-status { font: 800 12.5px/1.25 var(--font-display); letter-spacing: .1em; text-transform: uppercase; font-variation-settings: "opsz" 12; }
.rec-verified .plate-status { color: var(--ok); }
.rec-partial .plate-status { color: var(--partial); }
.rec-lead .plate-status, .rec-none .plate-status { color: var(--lead); }
.plate-seal .seal { width: 54px; height: 54px; }

.facts { margin: 26px 0 0; max-width: 46em; display: grid; border-top: 1px solid var(--steel); }
.facts > div { display: grid; grid-template-columns: minmax(130px, 27%) minmax(0, 1fr); gap: 4px 20px; padding: 11px 0; border-bottom: 1px solid var(--rule); line-height: 1.5; }
.facts dt { padding-top: 3px; font: 700 11.5px/1.5 var(--font-ui); letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.callout { display: flex; gap: 10px; align-items: flex-start; margin: 26px 0 0 !important; max-width: calc(var(--measure) + 4em) !important; padding: 13px 16px; border: 1px solid var(--rule); border-radius: 2px; background: var(--stock); font-size: 16px; line-height: 1.55; }
.callout svg { flex: none; margin-top: 5px; color: var(--steel); }
.callout span { min-width: 0; overflow-wrap: anywhere; }
.plain { margin: 0; padding-left: 20px; display: grid; gap: 8px; max-width: var(--measure); line-height: 1.55; }
.plain li { overflow-wrap: anywhere; }
.plain li::marker { color: var(--ink-3); }

/* ---------- coming next, how the state adopts, laws and rulings */
.next { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 32em; }
.next li { display: grid; gap: 3px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 2px; }
.n-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; font-size: 18px; }
.when { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.stage { font: 700 11.5px/1.4 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.cite { font-size: 14px; line-height: 1.45; color: var(--ink-2); overflow-wrap: anywhere; }
.next p { margin: 6px 0 0; font-size: 15.5px; line-height: 1.55; max-width: none; overflow-wrap: anywhere; }
.tags { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 3px 10px; border: 1px solid var(--steel-line); border-radius: 2px; background: var(--stock); font-size: 13.5px; font-weight: 600; }

.timeline { list-style: none; margin: 0; padding: 0; max-width: 37.5em; border-top: 1px solid var(--steel); }
.timeline > li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 4px 18px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.t-when { display: grid; gap: 2px; align-content: start; }
.t-when time, .t-when > span:first-child { font-size: 14.5px; font-weight: 600; }
.type { font-size: 13px; color: var(--ink-3); }
.t-title { display: block; line-height: 1.4; overflow-wrap: anywhere; }
.t-sub { display: block; font-size: 14px; color: var(--ink-2); }
.timeline p { margin: 4px 0 0; font-size: 15.5px; line-height: 1.55; max-width: none; overflow-wrap: anywhere; }
.timeline a { display: inline-flex; align-items: center; min-height: 28px; margin-top: 4px; font-size: 14px; }

/* ---------- how it was checked */
.chk { margin: 0 0 8px !important; }
.stag { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font: 700 12px/1.25 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; }
.stag-verified { color: var(--ok); } .stag-partial { color: var(--partial); } .stag-lead { color: var(--lead); } .stag-none { color: var(--ink-3); }
.seal { flex: none; display: block; }
.seal-verified { --seal-mark: var(--ok); }
.seal-partial { --seal-mark: var(--partial); }
.seal-lead, .seal-none { color: var(--lead); }

/* ---------- evidence and tracker readings */
.evidence { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; max-width: 34em; }
.ev { margin: 0; padding: 14px 18px; border: 1px solid var(--rule); border-left: 2px solid var(--steel); border-radius: 2px; background: var(--stock); overflow-wrap: anywhere; }
.ev blockquote { margin: 0; }
.ev .ev-about { margin: 0 0 6px; max-width: none; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--ink-3); }
.ev blockquote p { margin: 0 0 8px; max-width: none; font-size: 16.5px; line-height: 1.55; }
.ev blockquote p:last-child { margin-bottom: 0; }
figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; margin-top: 12px; padding-top: 9px; border-top: 1px solid var(--rule); font-size: 14px; line-height: 1.45; color: var(--ink-3); }
figcaption:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
figcaption a { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; }
.ev-title { flex: 1 0 100%; font-style: normal; font-weight: 600; color: var(--ink-2); }

.readings { list-style: none; margin: 16px 0 0; padding: 0; max-width: 30em; border-top: 1px solid var(--steel); }
.readings li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.readings p { margin: 0; max-width: none; }
.r-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 4px !important; }
.r-tag { padding: 1px 8px; border: 1px solid var(--steel-line); border-radius: 2px; font: 700 11px/1.5 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.agree, .disagree { display: inline-flex; align-items: center; gap: 5px; font: 700 13px/1.3 var(--font-ui); }
.agree { color: var(--ok); } .disagree { color: var(--partial); }
.r-says { font-weight: 600; font-variant-numeric: tabular-nums; }
.r-text { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; overflow-wrap: anywhere; }
.r-remark { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.srcline { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; margin-top: 6px !important; font-size: 14px; line-height: 1.45; color: var(--ink-3); }
.srcline a { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; }

/* ---------- tables */
.table-scroll { overflow-x: auto; border: 1px solid var(--steel); background: var(--paper); scrollbar-width: thin; scrollbar-color: var(--steel-line) transparent; }
.table-scroll:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.table-narrow { max-width: 560px; }
.grid { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.table-narrow .grid { min-width: 0; }
.grid th, .grid td { padding: 9px 16px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--rule); }
.grid tbody tr:last-child > * { border-bottom: 0; }
.grid thead th { background: var(--stock); font: 700 11.5px/1.3 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--steel); white-space: nowrap; }
.grid tbody th { background: var(--paper); font-weight: 700; white-space: nowrap; box-shadow: 1px 0 0 var(--rule); }
.grid thead th:first-child, .grid tbody th { position: sticky; left: 0; z-index: 1; }
.grid thead th:first-child { z-index: 2; }
.grid tbody th a { color: var(--ink); text-decoration-color: var(--steel-line); }
.grid tbody th a:hover { text-decoration-color: currentColor; }
.grid tbody th small { display: block; font-size: 13px; font-weight: 400; color: var(--ink-3); white-space: normal; max-width: 22em; }
.grid tbody tr:hover > * { background: color-mix(in oklab, var(--hover) 55%, var(--paper)); }
.grid .num { white-space: nowrap; }
.grid thead .num { text-align: right; }
.table-narrow .grid thead th { white-space: normal; vertical-align: bottom; }
.table-scroll + .note { margin-top: 12px; }
.table-narrow .grid td.num { text-align: right; }
.pending { color: var(--ink-3); }
.cell-ed { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.sw { display: inline-block; flex: none; width: 22px; height: 16px; border-radius: 2px; border: 1px solid color-mix(in oklab, var(--ink) 22%, transparent); }
.sw-local { background-image: repeating-linear-gradient(135deg, color-mix(in oklab, var(--hatch) 62%, transparent) 0 1.5px, transparent 1.5px 5px); }
.sw-own { background-image: radial-gradient(circle, color-mix(in oklab, var(--ink) 55%, transparent) 0 0.9px, transparent 1.3px); background-size: 4px 4px; }
.sw-none { border-style: dashed; border-color: color-mix(in oklab, var(--ink) 45%, transparent); }
.cell-ed .sw { width: 14px; height: 14px; }
.plate .sw { border-radius: 1px; }

.checks { list-style: none; margin: 0; padding: 0; max-width: 46em; border-top: 1px solid var(--steel); }
.checks li { display: grid; grid-template-columns: 148px 96px minmax(0, 1fr); gap: 4px 18px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.checks .n { font-weight: 700; font-variant-numeric: tabular-nums; }
.checks .why { color: var(--ink-2); line-height: 1.5; }

/* ---------- links, other codes, the index pages */
.links { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 4px; }
.links a { display: inline-flex; align-items: center; min-height: 34px; font-weight: 600; }
.links-row { display: flex; flex-wrap: wrap; gap: 0 22px; }
.allcodes { list-style: none; margin: 0; padding: 0; max-width: 50em; border-top: 1px solid var(--steel); }
.allcodes li { border-bottom: 1px solid var(--rule); }
.allcodes a { display: grid; grid-template-columns: minmax(104px, 22%) minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; min-height: 52px; padding: 8px 8px; color: var(--ink); text-decoration: none; }
.allcodes a:hover { background: var(--hover); }
.allcodes .code { font-weight: 700; line-height: 1.25; }
.allcodes .val { display: inline-flex; align-items: center; gap: 9px; min-width: 0; font-variant-numeric: tabular-nums; }
.allcodes .sw { width: 14px; height: 14px; }

.hubs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.hubs a { display: grid; gap: 2px; height: 100%; padding: 13px 18px; border: 1px solid var(--steel-line); border-radius: 2px; background: var(--paper); color: var(--ink); text-decoration: none; line-height: 1.4; }
.hubs a:hover { background: var(--hover); border-color: var(--steel); }
.hubs .code { font: 800 18px/1.2 var(--font-display); letter-spacing: .07em; font-variation-settings: "opsz" 12; color: var(--steel-deep); }
.state-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 32px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); border-top: 1px solid var(--steel); }
.state-grid li { display: flex; flex-direction: column; justify-content: center; min-height: 58px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.state-grid a { font-weight: 700; color: var(--ink); text-decoration-color: var(--steel-line); }
.state-grid span { font-size: 14px; color: var(--ink-3); }

/* ---------- footer */
.foot { margin-top: 80px; padding: 28px 0 64px; border-top: 1px solid var(--steel); font-size: 14.5px; line-height: 1.55; color: var(--ink-3); }
.foot p { margin: 0 0 10px; max-width: 32em; }
.foot-codes { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.foot-codes a { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; min-height: 40px; padding: 0 14px; border: 1px solid var(--steel); border-radius: 2px; background: var(--paper); color: var(--steel-deep); text-decoration: none; white-space: nowrap;
  font: 700 13.5px/1 var(--font-ui); letter-spacing: .06em; }
.foot-codes a:hover { background: var(--steel-deep); border-color: var(--steel-deep); color: #fff; }

/* ---------- phones */
@media (max-width: 719px) {
  body { font-size: 16.5px; }
  .site-in { gap: 0 10px; padding-bottom: 6px; }
  .wordmark { font-size: 14.5px; letter-spacing: .05em; min-height: 38px; }
  .site-nav { order: 3; flex: 1 0 100%; margin: 0 -11px; }
  .find-state { order: 2; flex: 1 0 100%; margin: 2px 0 4px; }
  .find-state input { flex: 1; width: auto; height: 40px; font-size: 16px; }
  .find-state button { height: 40px; padding: 0 16px; }
  .find-msg { left: 0; right: auto; }
  .crumbs { margin-top: 20px; }
  main section { margin-top: 42px; }
  .lede { font-size: 17px; }
  .plate { grid-template-columns: minmax(0, 1fr); padding: 20px 18px; box-shadow: inset 0 0 0 7px var(--paper), inset 0 0 0 8px var(--steel-line); }
  .plate-seal { grid-template-columns: auto 1fr; justify-items: start; text-align: left; align-items: center; width: auto; gap: 14px; }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .timeline > li { grid-template-columns: minmax(0, 1fr); }
  .t-when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
  .checks li { grid-template-columns: auto minmax(0, 1fr); }
  .checks .why { grid-column: 1 / -1; }
  .allcodes a { grid-template-columns: minmax(0, 1fr) auto; }
  .allcodes .val { grid-column: 1 / -1; order: 3; }
  .grid th, .grid td { padding: 9px 12px; }
  .table-narrow .grid th, .table-narrow .grid td { padding: 9px 8px; }
  .table-narrow .grid thead th { font-size: 10.5px; letter-spacing: .06em; }
  .ev { padding: 12px 12px 12px 13px; }
  .ev blockquote p { font-size: 16px; }
  .next li { padding: 12px 12px; }
}
