/* ArthritisMap 1.0.0
   Type:  Besley (display, a Clarendon in the tradition of map and barometer lettering) and Atkinson Hyperlegible Next
          (text, drawn for low-vision readers). Both self-hosted.
   Color: chart-blue ink, fog-gray page, brass gold. The five rating colors run from rain blue (1 star) to gold
          (5 stars) with lightness rising at every step, so the order survives color blindness and grayscale.
   Sizes: 18px base text and 48px minimum controls. Many readers here have sore hands and tired eyes. */

@font-face { font-family: "Besley"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(fonts/besley-latin-wght.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(fonts/atkinson-hyperlegible-next-latin-wght.woff2) format("woff2"); }

:root {
  --ink: #0C2A3D;
  --ink-2: #163B52;
  --ink-3: #24516C;
  --fog: #EEF3F6;
  --paper: #FFFFFF;
  --line: #CAD6DD;
  --slate: #465E6C;
  --link: #1B5E96;
  --brass: #8A5A00;
  --gold: #FFCF39;
  --gold-2: #F2B10C;
  --wash: #FFF6DA;
  --r1: #387EC1; --r2: #6398C3; --r3: #9DAEB9; --r4: #DDBD6E; --r5: #FFCF39;
  --display: "Besley", Georgia, "Times New Roman", serif;
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --focus: #1B5E96;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.amap { margin: 0; background: var(--fog); color: var(--ink); font: 400 1.125rem/1.6 var(--body); }
.amap img, .amap svg { max-width: 100%; }
.amap-sprite { position: absolute; }
.amap h1, .amap h2, .amap h3 { margin: 0; line-height: 1.15; text-wrap: balance; }
.amap h1 { font: 700 clamp(2.1rem, 4.4vw, 3.3rem)/1.08 var(--display); letter-spacing: -0.012em; }
.amap h2 { font: 650 clamp(1.55rem, 2.6vw, 2rem)/1.15 var(--display); letter-spacing: -0.006em; }
.amap h3 { font: 700 1.2rem/1.3 var(--body); }
.amap p { margin: 0 0 1em; }
.amap a { color: var(--link); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
.amap a:hover { text-decoration-thickness: 0.16em; }
.amap :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.amap .plate :focus-visible, .amap .site-foot :focus-visible { outline-color: var(--gold); }
.amap strong { font-weight: 700; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--gold); color: var(--ink) !important; padding: 12px 18px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
.muted { color: var(--slate); }
.small { font-size: 0.94rem; color: var(--slate); }
.num { text-align: right; font-variant-numeric: tabular-nums; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.read { max-width: 46rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0.7em 1.3em; border: 2px solid var(--ink); border-radius: 10px; background: var(--ink); color: #fff !important; font: 700 1.05rem/1.2 var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--ink-3); border-color: var(--ink-3); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--ink) !important; }
.btn--gold:hover { background: #FFDC6B; border-color: #FFDC6B; }
.btn--quiet { background: transparent; color: var(--ink) !important; }
.btn--quiet:hover { background: rgba(12, 42, 61, 0.08); border-color: var(--ink); }
.plate .btn--quiet { border-color: rgba(255, 255, 255, 0.6); color: #fff !important; }
.plate .btn--quiet:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

/* Stars: gold with a brass edge on light backgrounds, plain gold on the dark plates */
.stars { display: inline-flex; gap: 1px; vertical-align: -0.16em; white-space: nowrap; }
.star { width: 1.02em; height: 1.02em; fill: none; stroke: #9FB0BA; stroke-width: 1.6; stroke-linejoin: round; }
.star.on { fill: var(--gold-2); stroke: var(--brass); }
.plate .star, .site-foot .star { stroke: rgba(255, 255, 255, 0.5); }
.plate .star.on { fill: var(--gold); stroke: var(--gold); }
.stars--lg { font-size: 1.55rem; gap: 3px; }

/* Header */
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-head__in { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink) !important; text-decoration: none; min-height: 48px; }
.brand__mark { color: var(--gold-2); flex: none; }
.brand__mark circle { stroke: var(--ink); }
.brand__name { font: 750 1.45rem/1 var(--display); letter-spacing: -0.01em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-right: auto; }
.site-nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: 8px; color: var(--ink); font-weight: 600; text-decoration: none; }
.site-nav a:hover { background: var(--fog); }
.site-nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--gold-2); border-radius: 8px 8px 0 0; }

/* Search */
.search { position: relative; display: flex; gap: 8px; }
.search input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 2px solid var(--slate); border-radius: 10px; background: #fff; color: var(--ink); font: 400 1.05rem var(--body); }
.search input::placeholder { color: #5D7482; opacity: 1; }
.search button { height: 48px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 10px; background: var(--ink); color: #fff; font: 700 1rem var(--body); cursor: pointer; }
.search button:hover { background: var(--ink-3); }
.search--head { width: min(100%, 320px); }
.search--hero, .search--page { max-width: 520px; margin-top: 22px; }
.search--hero input, .search--page input { height: 58px; border-color: #fff; font-size: 1.15rem; }
.search--hero button, .search--page button { height: 58px; background: var(--gold); border-color: var(--gold); color: var(--ink); font-size: 1.08rem; }
.search--hero button:hover, .search--page button:hover { background: #FFDC6B; }
.search__list { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none; background: #fff; border: 2px solid var(--ink); border-radius: 12px; box-shadow: 0 14px 30px rgba(12, 42, 61, 0.22); max-height: 22rem; overflow: auto; }
.search__list a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.search__list a span { color: var(--slate); }
.search__list a:hover, .search__list [aria-selected="true"] a { background: var(--wash); }
.search__none { padding: 12px 14px; color: var(--slate); }

/* Plates: the dark chart-blue panels that carry maps, dials and page titles */
.plate { background-color: var(--ink); color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='520' viewBox='0 0 900 520' fill='none' stroke='%23FFFFFF' stroke-opacity='.055' stroke-width='1.4'%3E%3Cpath d='M-40 120C140 20 300 190 470 120S760 10 940 110'/%3E%3Cpath d='M-40 190C150 90 310 260 480 190S770 80 940 180'/%3E%3Cpath d='M-40 262C160 170 320 330 490 262S780 150 940 250'/%3E%3Cpath d='M-40 336C170 250 330 400 500 336S790 224 940 322'/%3E%3Cpath d='M-40 412C180 332 340 470 510 412S800 300 940 396'/%3E%3Cpath d='M-40 490C190 416 350 540 520 490S810 380 940 472'/%3E%3C/svg%3E"); background-size: 900px 520px; }
.plate a { color: #fff; }
.plate .lede { color: #D5E0E7; }
.plate--inset { border-radius: 16px; padding: 22px; margin: 22px 0; }
.lede { font-size: 1.22rem; line-height: 1.55; max-width: 40rem; }

/* Home hero */
.hero { padding-block: clamp(28px, 4vw, 56px); }
.hero__in { display: grid; grid-template-columns: minmax(300px, 430px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero__text .lede { margin-top: 18px; }
.hero__map { min-width: 0; }
.hero__small { margin: 10px 0 0; font-size: 0.98rem; color: #C6D4DC; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hero__small-label { margin-right: 4px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 999px; color: var(--ink) !important; font-weight: 700; font-size: 0.95rem; text-decoration: none; }
.chip:hover { filter: brightness(1.08); }
.chip.r1 { background: var(--r1); color: #fff !important; } .chip.r2 { background: var(--r2); } .chip.r3 { background: var(--r3); } .chip.r4 { background: var(--r4); } .chip.r5 { background: var(--r5); }

.legend { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 7px; font-size: 1rem; }
.legend li { display: grid; grid-template-columns: 26px 5.2em 1fr; align-items: center; gap: 10px; }
.legend__sw { width: 26px; height: 18px; border-radius: 4px; }
.legend__sw.r1 { background: var(--r1); } .legend__sw.r2 { background: var(--r2); } .legend__sw.r3 { background: var(--r3); } .legend__sw.r4 { background: var(--r4); } .legend__sw.r5 { background: var(--r5); }
.legend__t { font-weight: 700; }
.legend--below { display: none; }
.legend__r { color: #C6D4DC; }

/* U.S. map */
.usmap { display: block; width: 100%; height: auto; overflow: hidden; border-radius: 14px; }
.usmap.is-zoomed { background: rgba(255, 255, 255, 0.04); }
.usmap path, .usmap circle { vector-effect: non-scaling-stroke; }
.usmap .st path { stroke: var(--ink); stroke-width: 0.6; transition: opacity 0.25s; }
.usmap .st { cursor: pointer; outline: none; }
.st.r1 path, .dot.r1 circle { fill: var(--r1); } .st.r2 path, .dot.r2 circle { fill: var(--r2); } .st.r3 path, .dot.r3 circle { fill: var(--r3); } .st.r4 path, .dot.r4 circle { fill: var(--r4); } .st.r5 path, .dot.r5 circle { fill: var(--r5); }
.usmap__borders { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; pointer-events: none; }
.usmap .st:hover path, .usmap .st:focus-visible path { stroke: #fff; stroke-width: 2.6; paint-order: stroke; }
.usmap__labels text { font: 700 11.5px var(--body); fill: var(--ink); pointer-events: none; }
.usmap__labels text.l1 { fill: #fff; }
.usmap.is-zoomed .usmap__labels { display: none; }
.usmap.is-zoomed .st:not(.is-active) path { opacity: 0.22; }
.usmap.is-zoomed .st.is-active path { stroke: #fff; stroke-width: 1.5; fill: var(--ink-3); }
.usmap.is-zoomed .usmap__borders { opacity: 0.4; }
.dot circle { stroke: var(--ink); cursor: pointer; }
.usmap .dot circle { stroke-width: 2; }
.dot:hover circle, .dot:focus-visible circle, .dot.is-hot circle { stroke: #fff; }
.dot { outline: none; }
.dot .dot__ring { fill: none !important; stroke: #fff; }

/* State panel (appears beside the map after a state is chosen) */
.hero__panel { align-self: start; outline: none; }
.hero__panel h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.panel__score { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin: 10px 0 4px; }
.panel__n { font: 700 2.4rem/1 var(--display); color: var(--gold); }
.panel__of { color: #C6D4DC; }
.panel__list { list-style: none; margin: 14px 0 16px; padding: 0; max-height: 19.5rem; overflow: auto; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.panel__list li { border-bottom: 1px solid rgba(255, 255, 255, 0.22); }
.panel__list a { display: grid; grid-template-columns: 1fr auto 2.2em; gap: 10px; align-items: center; min-height: 48px; padding: 6px 4px; text-decoration: none; }
.panel__list a:hover, .panel__list a:focus-visible { background: rgba(255, 255, 255, 0.1); }
.panel__list b { font-weight: 700; text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.18em; }
.panel__list i { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.panel__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Sections */
.band { padding-block: clamp(36px, 5vw, 64px); }
.band--white { background: var(--paper); }
.band__intro { margin-top: 10px; color: var(--slate); max-width: 44rem; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px clamp(24px, 5vw, 72px); margin-top: 22px; }
.toplist { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: n; border-top: 2px solid var(--ink); }
.toplist li { counter-increment: n; display: grid; grid-template-columns: 1.9em minmax(0, 1fr) auto 2.2em; gap: 4px 10px; align-items: center; min-height: 54px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.toplist li::before { content: counter(n); font: 700 1.05rem var(--display); color: var(--slate); }
.toplist a { font-weight: 700; }
.toplist__st { grid-column: 2; grid-row: 2; font-size: 0.92rem; color: var(--slate); margin-top: -6px; }
.toplist .stars { grid-column: 3; grid-row: 1 / span 2; }
.toplist__n { grid-column: 4; grid-row: 1 / span 2; text-align: right; font: 700 1.25rem var(--display); }

.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 72px); margin-top: 20px; align-items: start; }
.weights { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.weights li { display: grid; grid-template-columns: 11.5em minmax(0, 1fr) 2.8em; gap: 12px; align-items: center; }
.weights__name { grid-column: 1; grid-row: 1; font-weight: 600; }
.weights__bar { grid-column: 2; grid-row: 1; height: 16px; border-radius: 4px; background: var(--ink); width: calc(var(--w) / 24 * 100%); min-width: 6px; }
.weights__pct { grid-column: 3; text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }

.stategrid { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 0 36px; }
.stategrid li { display: grid; grid-template-columns: minmax(0, 1fr) auto 2em; gap: 0 10px; align-items: center; min-height: 58px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.stategrid a { font-weight: 700; }
.stategrid__n { text-align: right; font: 700 1.15rem var(--display); }
.stategrid__c { grid-column: 1 / -1; font-size: 0.9rem; color: var(--slate); margin-top: -6px; }
.stategrid--compact { grid-template-columns: 1fr; max-width: 34rem; }
.stategrid--compact li { grid-template-columns: 2.2em minmax(0, 1fr) auto 2em; min-height: 50px; }
.stategrid__rank { font-variant-numeric: tabular-nums; color: var(--slate); }
.stategrid li.is-current { background: var(--wash); box-shadow: -10px 0 0 var(--wash), 10px 0 0 var(--wash); }

/* Page heads for city, state and document pages */
.pagehead { padding-block: clamp(24px, 3.5vw, 48px); }
.pagehead--slim .lede { margin-top: 14px; }
.pagehead__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: clamp(24px, 5vw, 64px); align-items: center; }
.pagehead__in--map { grid-template-columns: minmax(0, 1fr) minmax(280px, 440px); }
.pagehead__text .lede { margin-top: 16px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0 0 14px; padding: 0; font-size: 0.98rem; }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: #8FA6B3; }
.crumbs li[aria-current] { color: #C6D4DC; }
.facts { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 30px; color: #D5E0E7; }
.facts strong { color: #fff; font: 700 1.15rem var(--display); margin-right: 3px; }

.scorecard { text-align: center; }
.dial { display: block; width: 100%; max-width: 280px; margin-inline: auto; }
.dial__band { fill: none; stroke-width: 17; }
.dial__band.r1 { stroke: var(--r1); } .dial__band.r2 { stroke: var(--r2); } .dial__band.r3 { stroke: var(--r3); } .dial__band.r4 { stroke: var(--r4); } .dial__band.r5 { stroke: var(--r5); }
.dial__tick { font: 600 10px var(--body); fill: #A9BDC9; }
.dial__needle { stroke: #fff; stroke-width: 3.5; stroke-linecap: round; }
.dial__hub { fill: #fff; }
.amap .scorecard p { margin: 0; }
.scorecard__num { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-top: 4px !important; }
.scorecard__n { font: 700 4.4rem/1 var(--display); }
.scorecard__of { color: #C6D4DC; }
.scorecard__stars { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 8px !important; }
.scorecard__tier { font-weight: 700; font-size: 1.15rem; }
.scorecard__label { margin-top: 6px !important; font-size: 0.95rem; color: #A9BDC9; }
.statescore { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: 20px; }
.statescore__n { font: 700 3.6rem/1 var(--display); color: var(--gold); }
.statescore__of { color: #C6D4DC; margin-right: 8px; }
.statescore__tier { font-weight: 700; font-size: 1.15rem; }
.statemap { display: block; width: 100%; height: auto; max-height: 440px; overflow: visible; }
.statemap__shape { fill: var(--ink-3); stroke: #7F9BAB; stroke-linejoin: round; }
.statemap__label { font-family: var(--body); font-weight: 700; fill: #fff; stroke: var(--ink-3); paint-order: stroke; stroke-linejoin: round; pointer-events: none; }
.statemap__label.is-focus { fill: var(--gold); }

/* Article layout */
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; padding-block: clamp(28px, 4vw, 52px); }
.toc { position: sticky; top: 20px; display: grid; gap: 2px; font-size: 1rem; }
.amap .toc h2 { font: 700 0.98rem var(--body); color: var(--slate); margin-bottom: 8px; }
.toc a:not(.btn) { display: flex; align-items: center; min-height: 44px; padding: 4px 12px; border-left: 3px solid var(--line); color: var(--ink); text-decoration: none; }
.toc a:not(.btn):hover { border-left-color: var(--gold-2); background: var(--paper); }
.toc .btn { margin-top: 16px; text-align: center; font-size: 0.98rem; }
.article { min-width: 0; max-width: 50rem; }
.article--wide { max-width: none; padding-block: clamp(28px, 4vw, 52px); }
.article--doc { max-width: 48rem; margin-inline: auto; padding-block: clamp(28px, 4vw, 52px); }
.wrap.article--doc { width: min(100% - 40px, 48rem); }
.article section + section, .article > p + section { margin-top: clamp(36px, 5vw, 60px); }
.article h2 { margin-bottom: 14px; }
.article h3 { margin: 26px 0 8px; }
.article ul:not([class]), .article ol:not([class]) { padding-left: 1.3em; margin: 0 0 1em; }
.article li { margin-bottom: 0.45em; }
.lede-doc { font-size: 1.25rem; line-height: 1.5; }
.note { background: var(--wash); border-left: 5px solid var(--gold-2); border-radius: 0 10px 10px 0; padding: 14px 18px; }
.fine { font-size: 0.98rem; color: var(--slate); border-top: 1px solid var(--line); padding-top: 24px; }
.amap .fine h2 { font: 700 1.1rem var(--body); color: var(--ink); }
.eq { font: 600 1.08rem/1.5 var(--body); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; }
.cite { display: inline-block; min-width: 1.5em; padding: 0 0.3em; margin-left: 2px; border-radius: 4px; background: var(--paper); border: 1px solid var(--line); text-align: center; font-size: 0.82em; text-decoration: none; font-weight: 700; }
.sources { padding-left: 1.4em; font-size: 1rem; }
.sources li { margin-bottom: 0.7em; }
.sources li:target { background: var(--wash); }
.amap code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.92em; background: var(--paper); padding: 0.1em 0.35em; border-radius: 4px; }

/* Tables */
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.amap table { width: 100%; border-collapse: collapse; font-size: 1.02rem; }
.amap th, .amap td { padding: 12px 12px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.amap tr > :first-child { padding-left: 0; }
.amap tr > :last-child { padding-right: 0; }
.amap th.num, .amap td.num { text-align: right; }
.is-sortable thead th.num button { flex-direction: row-reverse; }
.amap thead th { font-size: 0.94rem; font-weight: 700; color: var(--slate); border-bottom: 2px solid var(--ink); vertical-align: bottom; white-space: nowrap; }
.amap tbody th { font-weight: 700; }
.amap tfoot th, .amap tfoot td { border-top: 2px solid var(--ink); border-bottom: 0; font-weight: 700; }
.is-sortable thead th button { all: unset; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; font: inherit; color: inherit; }
.is-sortable thead th button::after { content: ""; width: 0; height: 0; border: 5px solid transparent; border-top-color: #9FB0BA; transform: translateY(3px); }
.is-sortable thead th[aria-sort="ascending"] button::after { border-top-color: transparent; border-bottom-color: var(--ink); transform: translateY(-3px); }
.is-sortable thead th[aria-sort="descending"] button::after { border-top-color: var(--ink); }
.is-sortable thead th button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.factors td:nth-child(2) { color: var(--slate); }
.factors td:nth-child(2) strong { color: var(--ink); font-size: 1.08rem; }
.factors td:nth-child(3) { white-space: nowrap; }
.bar { display: inline-block; vertical-align: middle; width: clamp(70px, 16vw, 190px); height: 12px; border-radius: 4px; background: #D7E1E7; overflow: hidden; }
.bar__fill { display: block; height: 100%; border-radius: 4px; background: var(--ink); }
.bar__n { display: inline-block; min-width: 2.2em; margin-left: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.normals { font-size: 0.95rem; }
.normals th, .normals td { padding: 9px 6px; }
.versus__what { display: block; font-weight: 400; font-size: 0.9rem; color: var(--slate); }
.cmp { font-weight: 700; }
.cmp--up::before { content: "\25B2\00A0"; color: var(--brass); }
.cmp--down::before { content: "\25BC\00A0"; color: var(--r1); }
.cmp--flat { font-weight: 400; color: var(--slate); }
.formula--stars { max-width: 34rem; }
.filter { display: grid; gap: 6px; max-width: 26rem; margin-bottom: 8px; }
.filter label { font-weight: 700; }
.filter input { height: 52px; padding: 0 14px; border: 2px solid var(--slate); border-radius: 10px; font: 400 1.05rem var(--body); color: var(--ink); background: #fff; }
.filter__count { font-size: 0.95rem; color: var(--slate); min-height: 1.4em; }

/* Month strip */
.months { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; }
.months li { display: grid; justify-items: center; align-content: start; gap: 2px; min-height: 104px; padding: 10px 2px 8px; border-radius: 6px; color: var(--ink); margin: 0; }
.months li.r1 { background: var(--r1); color: #fff; } .months li.r2 { background: var(--r2); } .months li.r3 { background: var(--r3); } .months li.r4 { background: var(--r4); } .months li.r5 { background: var(--r5); }
.months__m { font-weight: 700; font-size: 0.95rem; }
.months__n { font: 700 1.5rem/1.1 var(--display); }
.months__flag { font-size: 0.72rem; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: var(--ink); color: #fff; }
.months__flag--low { background: #fff; color: var(--ink); }

/* Care, steps, tips */
.who { margin: 18px 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.who > div { display: grid; grid-template-columns: 13.5rem minmax(0, 1fr); gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.who dt { font-weight: 700; }
.who dd { margin: 0; }
.steps { margin: 12px 0 20px; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 4px 3.1rem; margin-bottom: 12px; min-height: 2.4rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 2.3rem; height: 2.3rem; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font: 700 1.05rem var(--display); }
.tips { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; border-top: 2px solid var(--ink); }
.tips li { padding: 18px 0; border-bottom: 1px solid var(--line); margin: 0; }
.amap .tips h3 { margin: 0 0 4px; }
.tips__why { font-size: 0.94rem; color: var(--slate); margin-bottom: 8px !important; }
.tips p:last-child { margin-bottom: 0; }
.why { margin: 0; }
.why > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.why dt { font: 650 1.2rem var(--display); margin-bottom: 4px; }
.why dd { margin: 0; }
.compare { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr); gap: 28px; align-items: start; }
.compare .plate--inset { margin: 0; }

/* Questions */
.faq { border-top: 2px solid var(--ink); }
.faq details, .more { border-bottom: 1px solid var(--line); }
.faq summary, .more summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 12px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.12rem; }
.faq summary::-webkit-details-marker, .more summary::-webkit-details-marker { display: none; }
.faq summary::after, .more summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.15s; }
.faq details[open] summary::after, .more[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq__a { padding: 0 0 12px; max-width: 44rem; }
.more { border-top: 1px solid var(--line); margin-top: 18px; }
.more > .scroll { padding-bottom: 14px; }

/* All-cities directory */
.jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 26px; }
.jump a { display: inline-grid; place-items: center; min-width: 48px; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font-weight: 700; text-decoration: none; }
.jump a:hover { border-color: var(--ink); }
.statelist { padding: 18px 0; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.amap .statelist h3 { margin: 0 0 10px; font: 650 1.35rem var(--display); }
.statelist ul { list-style: none; margin: 0; padding: 0; columns: 4 200px; column-gap: 32px; }
.statelist li { break-inside: avoid; padding: 5px 0; margin: 0; }

/* Footer */
.site-foot { background: var(--ink); color: #D5E0E7; margin-top: clamp(40px, 6vw, 80px); }
.site-foot a { color: #fff; }
.site-foot__in { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 32px clamp(24px, 5vw, 72px); padding-block: clamp(32px, 5vw, 56px) 28px; }
.site-foot nav { display: grid; align-content: start; gap: 2px; }
.amap .site-foot h2 { font: 700 1rem var(--body); color: #A9BDC9; margin-bottom: 8px; }
.site-foot nav a { display: flex; align-items: center; min-height: 44px; }
.brand--foot { color: #fff !important; }
.brand--foot .brand__mark circle { stroke: #fff; }
.brand--foot .brand__mark { color: var(--gold); }
.site-foot__about p { max-width: 30rem; margin-top: 12px; }
.site-foot__small { font-size: 0.94rem; color: #A9BDC9; }
.site-foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-block: 18px 26px; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.94rem; color: #A9BDC9; }

/* Narrower screens */
@media (max-width: 1000px) {
  .hero__in, .pagehead__in, .pagehead__in--map, .how, .compare { grid-template-columns: minmax(0, 1fr); }
  .legend--side { display: none; }
  .hero__map { order: 2; }
  .hero__panel { order: 3; }
  .hero.is-zoomed .hero__small, .hero.is-zoomed .legend--below { display: none; }
  .legend--below { display: grid; margin-top: 18px; }
  .pagehead__score { max-width: 320px; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .legend { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (max-width: 720px) {
  body.amap { font-size: 1.0625rem; }
  .site-head__in { gap: 6px 12px; }
  .site-nav { order: 3; width: calc(100% + 16px); margin: 0 -8px; flex-wrap: nowrap; overflow-x: auto; gap: 0; }
  .site-nav a { padding: 0 9px; white-space: nowrap; font-size: 1rem; }
  .search--head { order: 2; width: 100%; }
  .duo, .tips, .site-foot__in { grid-template-columns: minmax(0, 1fr); }
  .months { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .who > div { grid-template-columns: minmax(0, 1fr); }
  .weights li { grid-template-columns: 9.2em minmax(0, 1fr) 2.6em; gap: 8px; }
  .plate--inset { padding: 14px; border-radius: 12px; }
  .factors thead th:nth-child(4), .factors td:nth-child(4) { display: none; }
  .usmap__labels text { font-size: 15px; }
  .scorecard__n { font-size: 3.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .amap * { transition: none !important; }
}
@media print {
  .site-head, .site-foot, .toc, .search, .btn { display: none !important; }
  .plate { background: #fff !important; color: #000 !important; }
  .plate .lede, .facts, .crumbs li[aria-current] { color: #000 !important; }
}
