:root {
  --navy: #123A70;
  --navy-dark: #0C2A52;
  --amber: #F4A62A;
  --amber-soft: #FFF4DF;
  --surface: #F5F7FA;
  --card: #FFFFFF;
  --ink: #1E293B;
  --muted: #526178;
  --line: #E2E8F0;
  --ok: #0F7B4F;
  --ok-soft: #E7F6EF;
  --warn: #8A5200;
  --warn-soft: #FFF4DF;
  --danger: #B42318;
  --danger-soft: #FEF3F2;
  --info-soft: #E8EFF8;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(18, 58, 112, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: anywhere;
}
h1, h2, h3 { color: var(--navy-dark); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); }
h2 small { font-size: .7em; font-weight: 500; color: var(--muted); }
h3 { font-size: 1.1rem; margin-top: 1.25em; }
p { margin: 0 0 1em; }
a { color: var(--navy); }
a:hover { color: var(--navy-dark); }
img, svg { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.section { margin-top: 32px; margin-bottom: 32px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip-link:focus { left: 8px; }

/* Header */
.site-header { background: var(--navy); color: #fff; position: relative; z-index: 10; }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; padding: 10px 0; }
.brand:hover { color: #fff; }
.brand__mark { flex: none; display: block; }
.nav-check { position: absolute; opacity: 0; width: 44px; height: 44px; right: 16px; top: 8px; margin: 0; cursor: pointer; z-index: 2; }
.nav-button { display: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a { color: #fff; text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: .95rem; font-weight: 500; }
.site-nav a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.nav-check { display: none; }

@media (max-width: 900px) {
  .nav-check { display: block; }
  .nav-check:focus-visible + .nav-button { outline: 3px solid var(--amber); outline-offset: 2px; }
  .nav-button { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; border-radius: 8px; }
  .nav-button span { display: block; height: 2px; background: #fff; border-radius: 2px; }
  .site-nav { display: none; width: 100%; flex-direction: column; padding-bottom: 12px; }
  .site-nav a { padding: 12px 10px; }
  .nav-check:checked ~ .site-nav { display: flex; }
}

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); color: #fff; padding: 36px 0 44px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero__eyebrow { color: var(--amber); font-weight: 700; margin-bottom: .5em; }
.hero__lede { font-size: 1.1rem; max-width: 640px; color: #E3EBF6; }
.hero__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* Buttons */
.btn { display: inline-block; padding: 12px 20px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 2px solid transparent; font-size: 1rem; cursor: pointer; font-family: inherit; line-height: 1.3; }
.btn--amber { background: var(--amber); color: var(--navy-dark); }
.btn--amber:hover { background: #E89A1C; color: var(--navy-dark); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-dark); color: #fff; }
.btn--outline { color: var(--navy); border-color: var(--navy); }

/* Cards */
.rate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.rate-card { display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.rate-card:hover { border-color: var(--navy); }
.rate-card__name { font-weight: 600; color: var(--navy-dark); }
.rate-card__price { font-size: 1.6rem; font-weight: 800; color: var(--navy-dark); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.rate-card__unit { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }

.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tile { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.tile:hover { border-color: var(--navy); color: var(--ink); }
.tile__name { display: block; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.tile__text { display: block; font-size: .92rem; color: var(--muted); line-height: 1.5; }

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip { display: inline-block; padding: 8px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--navy); font-weight: 500; }
.chip:hover { border-color: var(--navy); }
.chip--strong { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip--strong:hover { color: #fff; }

.trust { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: var(--radius); padding: 20px; }
.trust ul { margin: 0 0 12px; padding-left: 20px; }
.trust li { margin-bottom: 8px; }

.empty { background: var(--card); border: 1px dashed #94A3B8; border-radius: var(--radius); padding: 20px; color: var(--muted); margin: 0; }

/* Page head */
.page-head { padding-top: 16px; }
.lede { font-size: 1.08rem; color: var(--ink); max-width: 780px; }
.byline { font-size: .9rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0 0 12px; padding: 0; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 4px; color: #94A3B8; }
.error-page { padding-top: 48px; padding-bottom: 48px; }

/* Notices */
.notice { border-radius: 10px; padding: 12px 16px; margin: 0 0 16px; }
.notice ul { margin: 0; padding-left: 20px; }
.notice--ok { background: var(--ok-soft); color: #0B5C3B; }
.notice--warn { background: var(--warn-soft); color: #6E4200; }
.notice--danger { background: var(--danger-soft); color: var(--danger); }
.notice--info { background: var(--info-soft); color: var(--navy-dark); }
.note { font-size: .9rem; color: var(--muted); margin: 10px 0 0; }

/* Layout with sidebar */
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.main-col { min-width: 0; }
.side-col { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1024px) {
  .with-aside { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
}
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.side-card h2 { font-size: 1rem; }
.side-card ul { list-style: none; margin: 0; padding: 0; }
.side-card li { padding: 6px 0; border-top: 1px solid var(--line); font-size: .93rem; line-height: 1.4; }
.side-card li:first-child { border-top: 0; }

/* Price table */
.table-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.price-table thead th { background: var(--navy); color: #fff; font-size: .85rem; font-weight: 600; border-top: 0; }
.price-table tbody th { font-weight: 600; color: var(--navy-dark); }
.price-table__meta { display: block; font-size: .82rem; font-weight: 400; color: var(--muted); }
.price-table__price { font-weight: 800; font-size: 1.15rem; color: var(--navy-dark); white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-table__checked { font-size: .88rem; }
.price-table__report { display: inline-block; font-size: .8rem; margin-top: 4px; color: var(--muted); padding: 4px 0; }
.price-table tr.is-stale .price-table__price { color: var(--warn); }

@media (max-width: 720px) {
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .price-table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; width: 100%; }
  .price-table tr { padding: 12px 14px; border-top: 1px solid var(--line); }
  .price-table tbody tr:first-child { border-top: 0; }
  .price-table th, .price-table td { padding: 2px 0; border: 0; }
  .price-table__price { font-size: 1.35rem; }
}

.change { font-weight: 600; font-size: .92rem; white-space: nowrap; }
.change--up { color: var(--danger); }
.change--down { color: var(--ok); }
.change--none { color: var(--muted); font-weight: 500; white-space: normal; }
.rate-card .fresh { align-self: flex-start; margin-top: 2px; }
.fresh { display: inline-block; font-size: .82rem; font-weight: 600; border-radius: 6px; padding: 2px 8px; line-height: 1.4; }
.fresh--ok { background: var(--ok-soft); color: #0B5C3B; }
.fresh--stale { background: var(--warn-soft); color: #6E4200; }

/* Places */
.place-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.place-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.place-list a { font-weight: 600; text-decoration: none; }
.place-list a:hover { text-decoration: underline; }
.place-list span { font-weight: 700; color: var(--navy-dark); font-variant-numeric: tabular-nums; white-space: nowrap; }

.city-search { display: block; max-width: 440px; font-weight: 600; margin-bottom: 20px; }
.city-search input { display: block; width: 100%; margin-top: 6px; padding: 12px; font: inherit; font-weight: 400; border: 1px solid #94A3B8; border-radius: 10px; }
.state-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 360px) { .state-list { grid-template-columns: minmax(0, 1fr); } }
.state-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; scroll-margin-top: 16px; }
.state-block h2 { font-size: 1.05rem; }
.state-block ul { list-style: none; margin: 0; padding: 0; }
.state-block li { padding: 8px 0; border-top: 1px solid var(--line); }
.state-block__city { display: block; font-weight: 600; }
.state-block__links { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .9rem; }

/* Trend */
.trend { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.trend svg { display: block; width: 100%; height: auto; }
.trend__axis { stroke: var(--line); stroke-width: 1; }
.trend__area { fill: rgba(18, 58, 112, .08); }
.trend__line { fill: none; stroke: var(--navy); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.trend__dot { fill: var(--amber); stroke: var(--navy); stroke-width: 2; }
.trend__label { font-size: 12px; fill: var(--muted); }
.trend figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }

/* Prose */
.prose { line-height: 1.7; }
.prose h2 { margin-top: 1.5em; }
.prose h2:first-child { margin-top: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1em; background: var(--card); display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose th { background: var(--info-soft); }
.prose li { margin-bottom: .35em; }

/* Forms */
.form label, .filter-form label, .calc__inputs label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 14px; }
.form input[type=text], .form input[type=number], .form textarea,
.filter-form select, .calc__inputs input[type=number], .calc__inputs select {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px; font: inherit; font-weight: 400; color: var(--ink);
  background: #fff; border: 1px solid #94A3B8; border-radius: 10px; min-height: 44px;
}
.filter-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 20px; }
.filter-form label { flex: 1 1 200px; margin: 0; }
.filter-form .btn { min-height: 44px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Calculators */
.calc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
@media (min-width: 720px) { .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .calc .note { grid-column: 1 / -1; } }
.calc__inputs .check { display: flex; align-items: center; gap: 10px; }
.calc__inputs .check input { width: 20px; height: 20px; }
.calc__result { margin: 0; background: var(--surface); border-radius: 10px; padding: 14px; align-self: start; }
.calc__result div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.calc__result div:first-child { border-top: 0; }
.calc__result dt { color: var(--muted); }
.calc__result dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.calc__total dt, .calc__total dd { font-size: 1.15rem; color: var(--navy-dark); font-weight: 800; }

/* Ads: space is reserved up front so the page does not jump when an ad loads. */
.ad { margin: 24px auto; text-align: center; max-width: 1180px; padding: 0 16px; }
.main-col .ad, .side-col .ad, .prose .ad { padding: 0; }
.ad__label { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ad__box { min-height: 100px; }
.ad--top .ad__box { min-height: 100px; }
.ad--in_content .ad__box, .ad--bottom .ad__box { min-height: 280px; }
.ad--sidebar { display: none; margin: 0; }
.ad.ad--empty { display: none !important; }
.ad--custom .ad__box { min-height: 0; }
.ad--custom { overflow: hidden; }
.ad--sidebar .ad__box { min-height: 600px; }
@media (min-width: 1024px) {
  .ad--sidebar { display: block; position: sticky; top: 16px; }
  .ad--top .ad__box { min-height: 90px; }
}
.ad__box--preview { display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(45deg, #EEF2F7, #EEF2F7 10px, #E2E8F0 10px, #E2E8F0 20px); color: var(--muted); border-radius: 8px; font-size: .85rem; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #DCE5F2; margin-top: 48px; padding: 32px 0 16px; font-size: .93rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 3px 0; }
.site-footer__brand { font-weight: 800; color: #fff; font-size: 1.1rem; margin-bottom: 6px; }
.site-footer__title { font-weight: 700; color: var(--amber); margin-bottom: 8px; }
.site-footer__note { font-size: .85rem; color: #B9C6DA; }
.site-footer__bottom { margin-top: 24px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .85rem; color: #B9C6DA; }
