:root {
  --ink: #14212b; --ink-2: #4a5864; --muted: #6b7782; --line: #e3e0d8; --bg: #faf8f4; --card: #ffffff;
  --accent: #0f5c6e; --accent-2: #e6f1f3; --neg: #b3361f; --warn: #9a6400; --good: #1d7a3a;
  --series-1: #2a78d6; --series-2: #eb6834; --insp: #eda100;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.55 var(--sans); color: var(--ink); background: var(--bg); }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: .3em 0 .3em; }
h2 { font-size: 1.35rem; margin: 1.8em 0 .6em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); } .small { font-size: .85em; }
.neg { color: var(--neg); font-weight: 600; } .warn { color: var(--warn); font-weight: 600; }
button { font: inherit; cursor: pointer; }

/* header */
.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { color: #fff; text-decoration: none; font-family: var(--serif); font-size: 1.15rem; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.logo { width: 22px; height: 22px; border-radius: 5px; background: linear-gradient(90deg, #7fc3d1 0 18%, transparent 18% 27%, #7fc3d1 27% 45%, transparent 45% 54%, #7fc3d1 54% 72%, transparent 72% 81%, #eb6834 81%); }
.hsearch { flex: 1; display: flex; max-width: 420px; margin-left: auto; }
.hsearch input { flex: 1; border: 0; border-radius: 6px 0 0 6px; padding: 8px 12px; font: inherit; }
.hsearch button { border: 0; background: #7fc3d1; color: var(--ink); border-radius: 0 6px 6px 0; padding: 0 14px; font-weight: 600; }
.site-header nav { display: flex; gap: 16px; align-items: center; }
.site-header nav a { color: #dfe7ea; text-decoration: none; font-size: .95rem; white-space: nowrap; }
.msearch-btn { display: none; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.22); border-radius: 6px; padding: 5px 10px; font-size: .88rem; }
.msearch-drawer { background: #1c2d3a; border-top: 1px solid rgba(255,255,255,.1); padding: 10px 0; }
.msearch-form { display: flex; }
.msearch-form input { flex: 1; border: 0; border-radius: 6px 0 0 6px; padding: 9px 12px; font: inherit; }
.msearch-form button { border: 0; background: #7fc3d1; color: var(--ink); border-radius: 0 6px 6px 0; padding: 0 14px; font-weight: 600; }
.cmp-count:not(:empty) { background: var(--series-2); color: #fff; border-radius: 10px; padding: 0 7px; font-size: .8em; margin-left: 2px; }
@media (max-width: 760px) { .hsearch { display: none; } .msearch-btn { display: inline-block; } .site-header nav { margin-left: auto; } }

/* hero */
.hero { background: linear-gradient(180deg, #eef4f3, var(--bg)); padding: 56px 0 40px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--accent); font-weight: 700; margin: 0; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 20ch; }
.hero h1 em { font-style: italic; color: var(--accent); }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.lede-sm { color: var(--ink-2); max-width: 75ch; }
.big-search { display: flex; max-width: 640px; margin: 24px 0 8px; box-shadow: 0 6px 24px rgba(20,33,43,.12); border-radius: 10px; }
.big-search input { flex: 1; font: inherit; font-size: 1.1rem; padding: 16px 18px; border: 1px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px; }
.big-search button { background: var(--accent); color: #fff; border: 0; padding: 0 26px; font-size: 1.05rem; font-weight: 600; border-radius: 0 10px 10px 0; }
.try { color: var(--muted); font-size: .92rem; }
.geo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; }
.geo-btn { background: var(--card); color: var(--accent); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: .86rem; font-weight: 600; }
.geo-btn:hover { background: var(--accent-2); border-color: var(--accent); }
.geo-btn:disabled { opacity: .6; cursor: wait; }
.faq-list { display: grid; gap: 10px; max-width: 780px; }
.faq-list details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.faq-list summary { cursor: pointer; font-weight: 650; }
.faq-list details p { margin: 8px 0 2px; color: var(--ink-2); }
.footer-links { margin: 10px 0 6px; }
.footer-disc { margin: 6px 0 0; font-size: .8rem; color: var(--muted); }
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px 22px 14px; }
.card h3 { font-size: 1.1rem; }
.steps { padding-left: 1.2em; } .steps li { margin: .4em 0; }
.state-grid { list-style: none; padding: 0; columns: 4 200px; column-gap: 24px; }
.state-grid li { padding: 4px 0; break-inside: avoid; }

/* results */
.page { padding-top: 18px; padding-bottom: 60px; }
.results { list-style: none; padding: 0; margin: 0; }
.result { display: flex; align-items: center; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; flex-wrap: wrap; }
.r-main { flex: 1 1 320px; }
.r-name { font-weight: 650; font-size: 1.08rem; text-decoration: none; }
.r-stats { display: flex; gap: 22px; margin: 0; }
.r-stats div { min-width: 92px; } .r-stats dt { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; } .r-stats dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.btn, .btn-sm { background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 10px 16px; font-weight: 600; text-decoration: none; display: inline-block; }
.btn.ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-sm { padding: 6px 12px; font-size: .88rem; background: var(--accent-2); color: var(--accent); }
.btn-sm.added, .btn.added { background: var(--good); color: #fff; }
.link { background: none; border: 0; color: #dfe7ea; text-decoration: underline; }
.note { color: var(--muted); font-size: .88rem; }
.stars { color: #c98500; letter-spacing: 1px; } .stars .off { color: #d9d4c7; }

/* facility */
.crumbs { font-size: .88rem; color: var(--muted); } .crumbs a { color: var(--muted); }
.f-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.addr { margin: 0; } .f-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 18px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 22px 0 8px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; }
.k-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.k-val { font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; font-family: var(--serif); }
.k-sub { font-size: .85rem; color: var(--ink-2); }
.period { font-size: .85rem; color: var(--ink-2); background: var(--accent-2); border-radius: 8px; padding: 8px 12px; display: inline-block; }
.two { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px; }
@media (max-width: 860px) { .two { grid-template-columns: minmax(0,1fr); } }

.chart { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 10px; position: relative; }
.chart svg { width: 100%; height: auto; display: block; }
.chart figcaption { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: .85rem; color: var(--ink-2); margin-bottom: 6px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.sw-wd { background: var(--series-1); } .sw-we { background: var(--series-2); }
.sw-exp { height: 0; border-top: 2px dashed var(--ink-2); border-radius: 0; width: 18px; vertical-align: 3px; }
.sw-insp { background: rgba(237,161,0,.22); border: 1px solid var(--insp); }
.grid { stroke: #ece9e2; stroke-width: 1; } .baseline { stroke: #cfcac0; }
.axis { fill: var(--muted); font-size: 11px; } .val { fill: var(--ink); font-size: 12px; font-weight: 600; }
.bar-wd { fill: var(--series-1); } .bar-we { fill: var(--series-2); }
.daily-svg rect[data-tip]:hover, .dow path:hover { opacity: .7; }
.expected { stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 5 4; }
.exp-label { fill: var(--ink-2); font-size: 11px; font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.insp-band { fill: rgba(237,161,0,.18); } .insp-label { fill: #8a5a00; font-size: 10px; font-weight: 700; }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font-size: .8rem; line-height: 1.4; padding: 8px 10px; border-radius: 6px; white-space: nowrap; z-index: 5; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.tip b { font-size: .9rem; }
.dow { max-width: 460px; }

table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.data, .mini { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.data th, .data td, .mini th, .mini td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data thead th, .mini tr:first-child th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #f6f4ef; }
.kv th { width: 55%; font-weight: 500; color: var(--ink-2); }
.mini { margin-top: 12px; }
.table-scroll { overflow-x: auto; }
.big { font-size: 1.6rem; font-family: var(--serif); font-weight: 700; margin: 0 0 10px; } .big .muted { font-size: 1rem; font-family: var(--sans); font-weight: 400; }

.flags { list-style: none; padding: 0; margin: 0; }
.flag { display: flex; gap: 12px; padding: 12px 14px; border-radius: 10px; margin-bottom: 8px; background: #fbf3e4; border: 1px solid #f0dcb4; }
.flag.high { background: #fbeae6; border-color: #f0c5bb; }
.flag p { margin: 2px 0 0; font-size: .9rem; color: var(--ink-2); }
.f-ico { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--warn); font-size: .85rem; }
.flag.high .f-ico { background: var(--neg); }
.ok-note { background: #e9f4ec; border: 1px solid #c4e1cc; padding: 12px 14px; border-radius: 10px; }
.owners summary { cursor: pointer; font-weight: 600; } .owners h4 { margin: 12px 0 4px; font-size: .9rem; color: var(--ink-2); } .owners ul { margin: 0; padding-left: 1.2em; }

/* partners & ads */
.partners { margin: 32px auto; max-width: 1080px; display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; padding: 14px 16px; border: 1px dashed #cfc9bb; border-radius: 12px; background: #fffdf8; }
.wrap .partners { margin: 32px 0; }
.sponsored { width: 100%; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.partner { flex: 1 1 260px; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; }
.partner span { font-size: .88rem; color: var(--ink-2); }
.ad-slot { margin: 28px 0; border: 1px dashed #cfc9bb; color: var(--muted); text-align: center; padding: 34px; border-radius: 10px; font-size: .85rem; }

/* compare */
.cmp { background: var(--card); border: 1px solid var(--line); border-radius: 12px; min-width: 640px; }
.cmp th, .cmp td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp thead th { font-family: var(--serif); font-size: 1.05rem; position: relative; padding-right: 34px; }
.cmp tbody th { font-weight: 500; color: var(--ink-2); width: 22%; }
.cmp td.best { background: #e9f4ec; font-weight: 700; }
.cmp .x { position: absolute; right: 8px; top: 10px; border: 0; background: none; color: var(--muted); }
.cflags { margin: 0; padding-left: 1.1em; font-size: .88rem; } .cflags .high { color: var(--neg); }
.print-bar { display: flex; gap: 14px; align-items: center; margin: 18px 0; }
.checklists { margin-top: 30px; }
.checklist { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 26px; margin-bottom: 24px; }
.checklist h2 { margin: .2em 0; } .checklist h3 { font-size: 1rem; margin: 18px 0 6px; font-family: var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.cl-why { font-weight: 650; margin: 10px 0 2px; }
.boxes { list-style: none; padding: 0; margin: 0; }
.boxes li { position: relative; padding: 6px 0 4px 26px; }
.boxes li::before { content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 14px; border: 1.5px solid var(--ink-2); border-radius: 3px; }
.boxes .line { display: block; border-bottom: 1px solid #d9d4c7; height: 18px; }
.notes-lines { height: 110px; background: repeating-linear-gradient(transparent 0 26px, #d9d4c7 26px 27px); }
.src { font-size: .75rem; color: var(--muted); margin-top: 14px; }

.cmp-tray { position: fixed; bottom: 0; left: 0; right: 0; background: var(--ink); color: #fff; padding: 10px 0; z-index: 20; box-shadow: 0 -4px 16px rgba(0,0,0,.15); }
.cmp-tray .wrap { display: flex; gap: 14px; align-items: center; } .cmp-tray [data-cmp-names] { flex: 1; font-size: .92rem; }
.cmp-tray .btn { background: var(--series-2); }
.prose { max-width: 780px; }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 70px; font-size: .88rem; color: var(--ink-2); background: #f3f1ec; }

@media print {
  .site-header, .site-footer, .no-print, .cmp-tray, .partners, .ad-slot { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .checklist { border: 0; padding: 0; page-break-after: always; }
  .wrap { max-width: none; padding: 0; }
}
@media (max-width: 480px) {
  .site-header nav a[href="/methodology"] { display: none; }
  .brand { font-size: 1rem; }
  .r-stats { gap: 14px; } .r-stats div { min-width: 0; }
}
@media (max-width: 600px) {
  .data th, .data td, .mini th, .mini td { padding: 7px 6px; font-size: .85rem; overflow-wrap: anywhere; }
  .data thead th { font-size: .68rem; }
}

/* search type-ahead */
.has-suggest { position: relative; }
.suggest { position: absolute; top: 100%; left: 0; right: 0; margin: 4px 0 0; padding: 4px 0; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(20,33,43,.15); z-index: 30; text-align: left; }
.suggest a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 14px; color: var(--ink); text-decoration: none; }
.suggest b { font-weight: 600; } .suggest span { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.suggest li.active a, .suggest a:hover { background: var(--accent-2); }
.alts { font-size: .92rem; }
