/* Consulnest — calm, Apple-style product look: white and light-grey surfaces, large tight headlines,
   rounded tiles, pill buttons. System fonts only (SF on Apple devices), no web fonts (performance budget). */
:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --hair: #e8e8ed;
  --paper: #ffffff;
  --tile: #f5f5f7;
  --card: #ffffff;
  --link: #0066cc;
  --action: #0071e3;
  --action-hover: #0077ed;
  --hl: #e8f1fc;
  --nav-bg: rgba(255, 255, 255, .8);
  --radius: 18px;
  --radius-lg: 28px;
  --wrap: 1024px;
  --prose: 692px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f5f5f7; --muted: #a1a1a6; --line: #424245; --hair: #2c2c2e; --paper: #000000; --tile: #1d1d1f; --card: #1d1d1f;
    --link: #2997ff; --action: #0071e3; --action-hover: #0077ed; --hl: #0b2a4a; --nav-bg: rgba(22, 22, 23, .8);
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.47 var(--font); letter-spacing: -.022em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Links inside running text stay underlined so they can be told apart without colour. */
p a:not(.button), .prose li a, .faq a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: calc(var(--wrap) + 44px); margin: 0 auto; padding: 0 22px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 100; border-radius: 8px; }

/* Header: thin translucent bar that stays on top. */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--hair); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 52px; }
.brand { font: 600 19px/1 var(--font-display); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.site-header .brand { height: 44px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.brand-mark { width: 18px; height: 18px; border-radius: 5px; background: linear-gradient(135deg, var(--brand, #1d4e5f) 60%, var(--accent, #d9822b) 60%); }
.nav-desktop { display: flex; gap: 30px; font-size: 13px; letter-spacing: -.01em; }
.nav-desktop a { color: var(--ink); opacity: .8; text-decoration: none; line-height: 52px; }
.nav-desktop a:hover { opacity: 1; text-decoration: none; }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 16px 0 0; margin: 0; font-size: 13px; color: var(--muted); }
.crumbs li { display: flex; align-items: center; }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* Type scale */
main.wrap { padding-top: 24px; padding-bottom: 72px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); }
h1 { font-size: clamp(32px, 5.2vw, 48px); line-height: 1.08; font-weight: 600; letter-spacing: -.028em; margin: 16px 0 16px; }
h2 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.125; font-weight: 600; letter-spacing: -.022em; margin: 56px 0 16px; }
h3 { font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: -.016em; margin: 28px 0 8px; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(19px, 2.2vw, 21px); line-height: 1.4; letter-spacing: -.016em; color: var(--ink); max-width: var(--prose); }
.muted, .src, .small, .meta { color: var(--muted); }
.src { font-size: 14px; letter-spacing: -.01em; }
.small { font-size: 14px; }
.meta { font-size: 15px; }
.meta a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

.prose { max-width: var(--prose); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.page-head { max-width: var(--prose); }

/* Buttons: pills */
.button { display: inline-block; background: var(--action); color: #fff; padding: 12px 24px; border-radius: 980px; text-decoration: none; font-size: 17px; font-weight: 400; letter-spacing: -.022em; line-height: 1.2; border: 1px solid var(--action); }
.button:hover { background: var(--action-hover); text-decoration: none; }
.button.secondary { background: transparent; color: var(--link); border-color: var(--link); }
.button.secondary:hover { background: var(--link); color: #fff; }

/* Home */
.hero { text-align: center; padding: 40px 0 8px; }
.hero h1 { font-size: clamp(40px, 7.5vw, 80px); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; max-width: 900px; margin: 0 auto 18px; }
.hero .lead { margin: 0 auto 28px; color: var(--muted); }
.cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin: 0 0 40px; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
a.hero-figure { display: block; color: var(--ink); text-decoration: none; }
.hero-figure { background: var(--tile); border-radius: var(--radius-lg); padding: 48px 32px 40px; text-align: center; }
.hero-figure .tile-label { font: 600 21px/1.2 var(--font-display); letter-spacing: -.016em; margin: 0 auto 8px; }
.hero-figure .big { display: block; font: 700 clamp(72px, 13vw, 128px)/1 var(--font-display); letter-spacing: -.045em; margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.hero-figure .unit { font-size: 21px; color: var(--muted); font-weight: 500; letter-spacing: -.016em; }
.hero-figure p { max-width: 560px; margin: 16px auto 0; }
.hero-figure .more { color: var(--link); margin-top: 20px; }
a.hero-figure:hover .more { text-decoration: underline; text-underline-offset: 3px; }
.section-head { text-align: center; }
.section-head + .link-list { margin: 0 auto; }
.two-col + .cta { margin-top: 24px; }

/* Answer box at the top of state pages */
.answer-box { display: flex; gap: 12px 28px; align-items: center; flex-wrap: wrap; background: var(--tile); border-radius: var(--radius); padding: 28px; margin: 24px 0; }
.answer-figure { font: 700 64px/1 var(--font-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.answer-figure span { font-size: 19px; color: var(--muted); font-weight: 500; letter-spacing: -.016em; margin-left: 2px; }
.answer-meta { font-size: 15px; flex: 1 1 260px; }
.answer-meta p { margin: 2px 0; }

/* Tiles */
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.cards > div, .tile { background: var(--tile); border-radius: var(--radius); padding: 28px; }
.cards h3, .tile h3 { margin-top: 0; }
.cards p:last-child, .tile > :last-child { margin-bottom: 0; }

/* Ranked lists: name left, figure right, hairline between rows. */
.mini-rank { margin: 0; padding-left: 28px; font-variant-numeric: tabular-nums; }
.mini-rank li { padding: 10px 0; border-bottom: 1px solid var(--hair); }
.mini-rank li:last-child { border-bottom: 0; }
.mini-rank li > a:first-child { margin-right: 8px; }
.mini-rank strong { float: right; font-weight: 600; }
ul.mini-rank { list-style: none; padding-left: 0; }
.link-list { list-style: none; padding: 0; margin: 0; max-width: var(--prose); }
.link-list li { border-bottom: 1px solid var(--hair); }
.link-list li:first-child { border-top: 1px solid var(--hair); }
.link-list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; color: var(--ink); }
.link-list a::after { content: "›"; color: var(--muted); font-size: 22px; line-height: 1; }
.link-list a:hover { color: var(--link); text-decoration: none; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0; border-radius: var(--radius); background: var(--tile); padding: 6px 0; }
table.rank { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
table.rank th, table.rank td { padding: 11px 16px; text-align: right; border-bottom: 1px solid var(--hair); white-space: nowrap; }
table.rank tbody tr:last-child td { border-bottom: 0; }
table.rank th:nth-child(-n+2), table.rank td:nth-child(-n+2) { text-align: left; }
table.rank thead th { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: -.01em; border-bottom-color: var(--line); }
table.rank tr.hl td { background: var(--hl); font-weight: 600; }
table.rank tr.gap td { text-align: center; color: var(--muted); padding: 2px; }
table.rank th.sortable-th { cursor: pointer; }

/* Charts */
.chart { margin: 24px 0; background: var(--tile); border-radius: var(--radius); padding: 24px; }
.chart figcaption { font: 600 17px/1.3 var(--font-display); margin-bottom: 12px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--action); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
@media (prefers-color-scheme: dark) { .chart .line { stroke: #2997ff; } }
.chart .dot { fill: var(--action); }
.chart .ylab { font-size: 13px; fill: var(--muted); text-anchor: end; }
.chart .xlab { font-size: 13px; fill: var(--muted); text-anchor: middle; }
.chart-data summary { font-size: 14px; color: var(--link); margin-top: 8px; }
.sr-table { font-size: 14px; border-collapse: collapse; margin-top: 8px; }
.sr-table td, .sr-table th { padding: 4px 12px 4px 0; border-bottom: 1px solid var(--hair); text-align: left; }

/* Forms: calculator and newsletter */
.calc { background: var(--tile); border-radius: var(--radius-lg); padding: 32px; margin: 24px 0; max-width: var(--prose); }
.calc-row { display: flex; gap: 16px; flex-wrap: wrap; }
.calc-row + .calc-row { margin-top: 16px; }
.calc label { display: flex; flex-direction: column; font-size: 14px; color: var(--muted); gap: 6px; flex: 1 1 200px; }
.calc input, .calc select, .subscribe input[type=email] {
  font: inherit; font-size: 17px; color: var(--ink); background-color: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; height: 52px; width: 100%; letter-spacing: -.022em;
}
.calc select { -webkit-appearance: none; appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 23px, calc(100% - 16px) 23px; background-size: 6px 6px; background-repeat: no-repeat; }
.calc input:focus, .calc select:focus, .subscribe input[type=email]:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 4px rgba(0, 113, 227, .25); }
.calc-result { font-size: 19px; line-height: 1.5; letter-spacing: -.016em; margin: 24px 0 6px; }
.calc-result strong { font: 600 1.4em/1.2 var(--font-display); letter-spacing: -.02em; }
.calc-note { font-size: 14px; color: var(--muted); margin: 0; }

.subscribe { background: var(--tile); border-radius: var(--radius); padding: 28px; margin: 40px 0; max-width: var(--prose); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.subscribe .sub-title { flex-basis: 100%; margin: 0 0 4px; font: 600 21px/1.2 var(--font-display); letter-spacing: -.016em; }
.subscribe input[type=email] { flex: 1 1 220px; width: auto; }
.subscribe button { font: inherit; font-size: 17px; background: var(--action); color: #fff; border: 0; border-radius: 980px; padding: 0 24px; height: 52px; cursor: pointer; }
.subscribe button:hover { background: var(--action-hover); }
.subscribe .sub-note, .subscribe .sub-msg { flex-basis: 100%; font-size: 13px; color: var(--muted); margin: 0; }
.subscribe .hp { position: absolute; left: -9999px; }

/* FAQ: disclosure rows with a plus that turns into a cross */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font: 600 17px/1.35 var(--font-display); letter-spacing: -.016em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 300; color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > :not(summary) { margin-top: 0; padding-bottom: 8px; }
.sources, .updates { font-size: 15px; color: var(--muted); }

/* On this page */
.toc { background: var(--tile); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0; max-width: var(--prose); font-size: 15px; }
.toc p { margin: 0 0 6px; font: 600 17px/1.3 var(--font-display); }
.toc ol { margin: 0; padding-left: 22px; color: var(--muted); }
.toc a { display: block; padding: 5px 0; line-height: 1.4; }

.see-also { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 16px; max-width: var(--prose); }
.see-also ul { list-style: none; padding: 0; }
.see-also li { border-bottom: 1px solid var(--hair); }
.see-also a { display: block; padding: 12px 0; }

.ad-slot { margin: 32px 0; }
.ad-label { display: block; font-size: 11px; color: var(--muted); letter-spacing: .02em; margin-bottom: 4px; }
.article-grid { display: block; }
.sidebar { display: none; }
@media (min-width: 1100px) {
  .article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
  .sidebar { display: block; }
  .sidebar .ad-slot { position: sticky; top: 72px; }
}
.disclaimer { font-size: 13px; color: var(--muted); max-width: var(--prose); margin-top: 32px; }
.author-photo { border-radius: 50%; float: right; margin: 0 0 12px 16px; }
blockquote { border-left: 3px solid var(--line); margin: 16px 0; padding: 4px 16px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--tile); color: var(--muted); padding: 32px 0 24px; font-size: 13px; letter-spacing: -.01em; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding-bottom: 20px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.site-footer .brand { font-size: 15px; margin-bottom: 8px; }
.site-footer nav { display: flex; flex-direction: column; gap: 2px; }
.site-footer a { color: var(--ink); opacity: .85; }
.site-footer a:hover { opacity: 1; }
.site-footer p { margin: 4px 0; }

/* Touch targets: at least 24px high everywhere a finger is expected (WCAG 2.5.8), 44px on phones. */
.crumbs a, .see-also a, .mini-rank a, .sources a, table.rank a, .site-footer a { display: inline-block; min-height: 28px; line-height: 28px; }
summary { min-height: 32px; cursor: pointer; }

/* Navigation on phones: a native disclosure that opens a full-width sheet (no JavaScript needed). */
.nav-mobile { display: none; }
@media (max-width: 833px) {
  .nav-desktop { display: none !important; }
  .nav-mobile { display: block; }
  .nav-mobile summary { -webkit-tap-highlight-color: transparent; list-style: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; color: var(--ink); }
  .nav-mobile summary::-webkit-details-marker { display: none; }
  .nav-mobile summary::before { content: ""; width: 18px; height: 8px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
  .nav-mobile[open] summary::before { width: 16px; height: 16px; border: 0; background: linear-gradient(45deg, transparent 46%, currentColor 46%, currentColor 54%, transparent 54%), linear-gradient(-45deg, transparent 46%, currentColor 46%, currentColor 54%, transparent 54%); }
  .nav-mobile nav { position: absolute; left: 0; right: 0; top: 52px; height: calc(100vh - 52px); height: calc(100dvh - 52px); overflow-y: auto; background: var(--paper); display: flex; flex-direction: column; padding: 16px 40px 40px; }
  .nav-mobile nav a { font: 600 28px/1.2 var(--font-display); letter-spacing: -.02em; color: var(--ink); text-decoration: none; padding: 10px 0; }
  .nav-mobile[open] nav { animation: sheet .24s ease-out; }
}
@keyframes sheet { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (max-width: 734px) {
  .wrap { padding: 0 16px; }
  main.wrap { padding-top: 16px; padding-bottom: 56px; }
  h2 { margin-top: 44px; }
  .hero { padding-top: 24px; }
  .cta { flex-direction: column; align-items: stretch; max-width: 320px; margin-left: auto; margin-right: auto; }
  .button { text-align: center; padding: 14px 24px; }
  .hero-figure { padding: 36px 20px 32px; border-radius: var(--radius); }
  .answer-box { padding: 22px; }
  .answer-figure { font-size: 52px; }
  .cards > div, .tile, .calc, .subscribe { padding: 22px; }
  .calc { border-radius: var(--radius); }
  .chart { padding: 16px; }
  .subscribe button { width: 100%; }
  table.rank { font-size: 14px; }
  table.rank th, table.rank td { padding: 12px 8px; }
  table.rank th:first-child, table.rank td:first-child { padding-left: 14px; min-width: 0; }
  table.rank thead th { white-space: normal; vertical-align: bottom; min-width: 52px; }
  table.rank td:nth-child(2) { white-space: normal; min-width: 96px; }
  /* The state name stays in view while the figures scroll sideways. */
  table.rank td:nth-child(2), table.rank th:nth-child(2) { position: sticky; left: 0; background: var(--tile); }
  table.rank tr.hl td:nth-child(2) { background: var(--hl); }
  /* Phones: standalone links get a 44px target and small print stays at 16px. Links inside running text are unchanged. */
  .crumbs a, .see-also a, .mini-rank a, .site-footer a { min-height: 44px; line-height: 44px; }
  .mini-rank li { padding: 2px 0; }
  .mini-rank strong { line-height: 44px; }
  .toc a { padding: 10px 0; }
  .meta, .answer-meta, .toc, .sources, .updates, .site-footer, .crumbs ol, .src, .calc-note { font-size: 16px; }
  .site-footer nav { gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
