/* State Law Atlas. Swiss/International style: a printed reference table, not an app.
   Light only. Black on white, greys, square corners, black rules, Helvetica set large.
   Map shades: black, mid-grey #767676, light-grey #d0d0d0, white. Red #e30613 means one thing:
   "changed in the last two years". Yellow #ffc400 = a change that has not taken effect yet.
   No dark panels, no green, no gradients, no pills or badges, no uppercase letter-spaced labels,
   no shadows, no rounded cards, no icon tiles, no emoji. */
:root {
  --bg: #ffffff; --ink: #000000; --ink-2: #222222; --muted: #5f5f5f; --line: #dddddd; --line-2: #bbbbbb;
  --s-black: #000000; --s-dark: #767676; --s-light: #d0d0d0; --s-white: #ffffff;
  --red: #e30613; --warn: #ffc400;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--warn); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

/* header */
.top { background: #fff; border-bottom: 2px solid var(--ink); position: sticky; top: 0; z-index: 30; }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 56px; flex-wrap: wrap; }
.brand { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -.02em; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.topnav { display: flex; margin-left: auto; align-items: stretch; }
.topnav > a, .menu > summary { font-size: 16px; color: var(--ink); padding: 8px 12px; text-decoration: none; display: flex; align-items: center; gap: 7px; min-height: 44px; }
.topnav > a:hover, .menu > summary:hover, .menu[open] > summary { background: var(--ink); color: #fff; }
.topnav > a[aria-current] { font-weight: 700; }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; user-select: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.menu-pop { position: absolute; left: 0; top: 100%; background: #fff; border: 2px solid var(--ink); padding: 14px 18px; display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr)); gap: 6px 24px; width: min(860px, 92vw); }
.mh { margin: 0 0 4px; font-weight: 700; font-size: 15px; border-bottom: 2px solid var(--ink); padding-bottom: 3px; }
.mcol ul { list-style: none; margin: 0 0 8px; padding: 0; }
.mcol a { display: block; padding: 4px 0; text-decoration: none; font-size: 15px; }
.mcol a[aria-current] { font-weight: 700; }
@media (max-width: 760px) {
  .topnav { margin-left: 0; width: 100%; border-top: 1px solid var(--line); overflow-x: auto; }
  .topnav > a, .menu > summary { padding: 8px 10px; font-size: 15px; }
  .menu { position: static; }
  .menu-pop { left: 0; right: 0; width: auto; grid-template-columns: 1fr 1fr; max-height: 70vh; overflow: auto; }
}

/* type */
h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; margin: 6px 0 0; }
.home-h { margin-top: 28px; }
h2 { font-size: 26px; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; margin: 34px 0 10px; }
h3 { font-size: 18px; margin: 22px 0 6px; font-weight: 700; }
.lede { color: var(--ink-2); margin: 12px 0 0; font-size: 20px; line-height: 1.45; max-width: 62ch; }
.crumbs { font-size: 15px; color: var(--muted); padding-top: 18px; }
.crumbs a { color: var(--muted); }
.hint { color: var(--muted); font-size: 15px; margin: 8px 0 0; }
.stamp { font-size: 15px; color: var(--ink-2); border-top: 1px solid var(--ink); padding-top: 8px; margin: 14px 0 0; max-width: 72ch; }
.prose p, .prose li { max-width: 68ch; }
.block { margin-top: 36px; border-top: 6px solid var(--ink); }
.block > h2:first-child, .block > .row-between h2 { margin-top: 12px; }
.row-between { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.dl { font-weight: 700; font-size: 15px; }

/* counts line on hubs */
.tally { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 18px 0 0; font-size: 18px; }
.tally strong { font-size: 30px; letter-spacing: -.02em; margin-right: 4px; }

/* map */
.mapblock { margin-top: 22px; border-top: 6px solid var(--ink); padding-top: 18px; }
.map-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .map-grid { grid-template-columns: 1fr; } }
.tmap { width: 100%; height: auto; display: block; }
.tmap .tile rect { stroke: #000; stroke-width: 1.5; }
.tmap .tile text { font: 700 15px var(--sans); pointer-events: none; }
.tmap .s-black rect { fill: var(--s-black); } .tmap .s-black text { fill: #fff; }
.tmap .s-dark rect { fill: var(--s-dark); } .tmap .s-dark text { fill: #fff; }
.tmap .s-light rect { fill: var(--s-light); } .tmap .s-light text { fill: #000; }
.tmap .s-white rect { fill: var(--s-white); } .tmap .s-white text { fill: #000; }
.tmap .s-none rect { fill: #fff; stroke: var(--line-2); stroke-dasharray: 4 3; } .tmap .s-none text { fill: var(--muted); }
.tmap .tile rect.chg { fill: var(--red); stroke: none; }
.tmap .tile:hover rect:first-of-type, .tmap .tile:focus rect:first-of-type { stroke: var(--red); stroke-width: 4; }
.tmap .tile.cur rect:first-of-type { stroke: var(--warn); stroke-width: 6; }
.tmap .tile.dim { opacity: .18; }
.map-wrap.small { max-width: 360px; }
.legend { list-style: none; padding: 0; margin: 0; }
.legend li { border-bottom: 1px solid var(--line); }
.legend li > span:first-child, .lg { display: flex; align-items: center; gap: 10px; }
.legend li { padding: 0; font-size: 16px; }
.legend li:not(:has(button)) { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.lg { width: 100%; appearance: none; background: #fff; border: 0; font: inherit; color: inherit; padding: 9px 0; cursor: pointer; text-align: left; }
.lg:hover { background: #f3f3f3; }
.lg[aria-pressed="true"] { font-weight: 700; border-left: 4px solid var(--ink); padding-left: 10px; }
.legend .n { margin-left: auto; font-weight: 700; padding-right: 4px; }
.sw { display: inline-block; width: 16px; height: 16px; border: 1.5px solid #000; flex: none; vertical-align: -2px; margin-right: 8px; }
.legend .sw { margin-right: 0; }
.sw.s-black { background: var(--s-black); } .sw.s-dark { background: var(--s-dark); } .sw.s-light { background: var(--s-light); } .sw.s-white { background: #fff; }
.sw.s-none { background: #fff; border: 1.5px dashed var(--line-2); }
.sw-red, .red-sq { display: inline-block; width: 12px; height: 12px; background: var(--red); flex: none; vertical-align: 1px; }
.red-sq { margin-right: 4px; }

/* tables */
.tbl { overflow-x: auto; margin-top: 6px; }
table.law { border-collapse: collapse; width: 100%; font-size: 15px; }
table.law th, table.law td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); }
table.law thead th { border-bottom: 2px solid var(--ink); font-size: 14px; padding-bottom: 6px; white-space: nowrap; }
table.law thead button { appearance: none; background: none; border: 0; font: 700 14px var(--sans); color: var(--ink); padding: 0; cursor: pointer; }
table.law thead button::after { content: " ↕"; color: var(--line-2); }
table.law thead button[data-dir="asc"]::after { content: " ↑"; color: var(--ink); }
table.law thead button[data-dir="desc"]::after { content: " ↓"; color: var(--ink); }
table.law tbody th { font-weight: 700; white-space: nowrap; }
table.law tbody tr:hover { background: #f6f6f6; }
table.law tr.off { display: none; }
.src { color: var(--muted); font-size: .9em; white-space: nowrap; }
@media (max-width: 700px) {
  table.law thead { display: none; }
  table.law, table.law tbody, table.law tr, table.law th, table.law td { display: block; width: 100%; }
  table.law tr { border-bottom: 2px solid var(--ink); padding: 8px 0; }
  table.law td, table.law tbody th { border: 0; padding: 2px 0; }
  table.law td { display: grid; grid-template-columns: 38% 1fr; gap: 10px; }
  table.law td::before { content: attr(data-label); font-size: 14px; color: var(--muted); }
  table.law td[colspan] { display: block; }
}

/* state page */
.st-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
@media (max-width: 960px) { .st-grid { grid-template-columns: 1fr; gap: 12px; } }
.st-main { max-width: 760px; }
.answer { font-size: 24px; line-height: 1.35; letter-spacing: -.01em; margin: 18px 0 0; font-weight: 400; max-width: 34em; }
.pending { background: var(--warn); border-left: 6px solid var(--ink); padding: 10px 14px; margin: 16px 0 0; }
.pend { background: var(--warn); padding: 0 4px; font-weight: 700; }
table.spec { border-collapse: collapse; width: 100%; margin-top: 20px; border-top: 6px solid var(--ink); font-size: 17px; }
table.spec th, table.spec td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
table.spec th { width: 40%; font-weight: 400; color: var(--ink-2); }
table.spec td { font-weight: 700; }
table.nb { border-collapse: collapse; width: 100%; font-size: 16px; }
table.nb th, table.nb td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
table.nb th { width: 40%; }
.cites { padding-left: 22px; margin: 0; }
.cites li { margin: 10px 0 16px; }
.cites a { font-weight: 700; }
blockquote { margin: 6px 0 0; padding: 4px 0 4px 14px; border-left: 2px solid var(--ink); color: var(--ink-2); font-size: 16px; }
.changes { list-style: none; padding: 0; margin: 0; }
.changes li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.changes .d { font-weight: 700; }
@media (max-width: 520px) { .changes li { grid-template-columns: 1fr; gap: 0; } }
.side-h { font-size: 19px; margin: 26px 0 6px; padding-top: 8px; border-top: 2px solid var(--ink); }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { border-bottom: 1px solid var(--line); }
.plain a { display: block; padding: 7px 0; text-decoration: none; }
.plain a:hover { text-decoration: underline; }

/* home + hubs */
.cat { margin: 26px 0 0; font-size: 19px; padding-bottom: 4px; border-bottom: 2px solid var(--ink); }
.trow { display: grid; grid-template-columns: minmax(220px, 320px) 1fr auto; gap: 16px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.trow:hover { background: #f3f3f3; color: var(--ink); }
.trow:hover .tn { color: var(--red); }
.tn { font-weight: 700; font-size: 18px; }
.td { color: var(--ink-2); font-size: 15px; }
.tc { font-size: 14px; white-space: nowrap; }
@media (max-width: 640px) { .trow { grid-template-columns: 1fr auto; } .td { grid-column: 1 / -1; grid-row: 2; } }
.stlist { list-style: none; padding: 0; margin: 10px 0 0; columns: 4 200px; column-gap: 24px; }
.stlist li { break-inside: avoid; border-bottom: 1px solid var(--line); }
.stlist a { display: block; padding: 7px 0; text-decoration: none; }
.stlist a:hover { text-decoration: underline; }
.stlist.big a { font-size: 19px; font-weight: 700; }
.hubrows { margin-top: 22px; border-top: 6px solid var(--ink); }
.hrow { display: grid; grid-template-columns: 220px 1fr 110px; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); align-items: baseline; }
.hrow:hover { background: #f3f3f3; color: var(--ink); }
.hrow:hover .hn { color: var(--red); }
.hn { font-weight: 700; }
.hv { color: var(--muted); font-size: 14px; text-align: right; }
@media (max-width: 700px) { .hrow { grid-template-columns: 1fr; gap: 2px; } .hv { text-align: left; } }

/* buttons */
.btn { appearance: none; border: 2px solid var(--ink); background: #fff; color: var(--ink); font: 700 16px/1.1 var(--sans); text-decoration: none; padding: 10px 16px; border-radius: 0; cursor: pointer; display: inline-flex; align-items: center; min-height: 46px; }
.btn:hover { background: var(--ink); color: #fff; }
.btn-go { background: var(--ink); color: #fff; }
.btn-go:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ad slot (inactive until approved; never on sensitive topics) */
.ad { margin: 28px 0; min-height: 100px; }

/* footer */
.foot { border-top: 6px solid var(--ink); background: #fff; padding: 24px 0 36px; font-size: 15px; color: var(--muted); margin-top: 56px; }
.foot-note { color: var(--ink-2); max-width: 80ch; margin: 0 0 18px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; }
.foot h2 { font-size: 15px; color: var(--ink); margin: 0 0 6px; letter-spacing: 0; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 3px 0; }
.foot a { color: var(--ink-2); }
.legal { margin: 22px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.st-main .stamp { border-top: 0; padding-top: 0; }
