/* Florida Keys Cost: one stylesheet, no framework. */
:root {
    --bg: #f4f8f9;
    --surface: #ffffff;
    --ink: #10242c;
    --ink-2: #41606b;
    --muted: #6a8590;
    --line: #dde8eb;
    --sea: #0b4f63;
    --sea-2: #0e6a82;
    --accent: #0e7490;
    --accent-2: #e0f2f6;
    --sand: #fff7e6;
    --sand-ink: #8a5a00;
    --link: #0b6b8a;
    --good: #15803d;
    --bad: #b91c1c;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(16, 36, 44, .05), 0 1px 3px rgba(16, 36, 44, .07);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 700; margin-top: 1.4em; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
li { margin-bottom: .35em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.main { padding-top: 28px; padding-bottom: 48px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 760px; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

/* Header */
.site-header { background: var(--sea); color: #fff; position: sticky; top: 0; z-index: 1100; box-shadow: 0 2px 8px rgba(16, 36, 44, .18); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
.brand-accent { color: #22c3d6; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: #cfe6ec; padding: 6px 10px; border-radius: 8px; font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a.active { color: #fff; background: var(--sea-2); text-decoration: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0 36px; color: var(--ink-2); }
.footer-note { font-size: .9rem; max-width: 820px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0; }
.footer-copy { font-size: .85rem; color: var(--muted); margin: 0; }

/* Cards and notes */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card + .card { margin-top: 16px; }
.grid-2 > .card + .card { margin-top: 0; }   /* the grid gap spaces cards side by side */
.note { background: var(--sand); color: var(--sand-ink); border-radius: 10px; padding: 12px 14px; font-size: .92rem; }
.note p:last-child { margin-bottom: 0; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--accent-2); color: var(--accent); }

/* Buttons */
.btn { display: inline-block; padding: 10px 16px; border-radius: 10px; border: 1px solid transparent; background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { background: var(--sea-2); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--line); }
.btn-ghost:hover { background: var(--accent-2); }
.btn-sm { padding: 6px 10px; font-size: .85rem; }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: .78rem; color: var(--muted); }
input[type=number], input[type=text], input[type=search], select {
    width: 100%; font: inherit; padding: 9px 10px; border: 1px solid #c8d8dd; border-radius: 8px; background: #fff; color: var(--ink);
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.check { display: flex; flex-direction: row; align-items: center; gap: 8px; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; flex: 0 0 auto; margin: 0; accent-color: var(--accent); }
fieldset { border: 0; padding: 0; margin: 0 0 16px; }
legend { font-weight: 700; margin-bottom: 10px; font-size: 1rem; }
.hp { position: absolute; left: -9999px; }

/* Calculator layout */
.calc { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.results { position: static; }
.big { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.big-sub { color: var(--ink-2); margin-bottom: 14px; }
.breakdown { width: 100%; border-collapse: collapse; font-size: .95rem; }
.breakdown td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.breakdown tr.total td { font-weight: 800; border-bottom: 2px solid var(--ink); }
.breakdown tr.sub td { color: var(--ink-2); }
.breakdown .why { display: block; font-size: .78rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; background: var(--surface); font-size: .95rem; }
table.data th, table.data td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.data th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); background: #f8fbfc; }
table.data td.num, table.data th.num { text-align: right; }
table.data tr.total td { font-weight: 800; }

/* Rules */
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rules .card h2 { margin-top: 0; }
.rules dl { display: grid; grid-template-columns: 9.5em 1fr; gap: 6px 12px; margin: 0 0 12px; font-size: .93rem; }
.rules dt { font-weight: 600; color: var(--ink-2); }
.rules dd { margin: 0; }

.mobile-bar { display: none; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

@media (max-width: 860px) {
    .calc, .rules, .grid-2 { grid-template-columns: 1fr; }
    .results { position: static; scroll-margin-top: 112px; }
    .mobile-bar {
        display: flex; align-items: center; justify-content: space-between; gap: 10px;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -2px 8px rgba(16, 36, 44, .08);
        color: var(--ink);
    }
    .mobile-bar strong { font-size: 1.15rem; }
    .mobile-bar span { white-space: nowrap; }
    .mobile-bar:hover { text-decoration: none; }
    body { padding-bottom: 64px; }
}
@media (max-width: 480px) {
    .form-grid { grid-template-columns: 1fr; }
    .rules dl { grid-template-columns: 1fr; }
    .rules dt { margin-top: 6px; }
    .big { font-size: 2rem; }
}

/* ---- Map and house pages ---- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.map-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; margin: 16px 0 12px; }
.search-box { position: relative; flex: 1 1 320px; max-width: 480px; }
.search-box input { width: 100%; }
.search-results { position: absolute; z-index: 1000; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px 0; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(16, 36, 44, .14); max-height: 320px; overflow-y: auto; }
.search-results li { padding: 0; }
.search-results li.muted { padding: 10px 14px; font-size: .9rem; }
.search-results a { display: block; padding: 9px 14px; color: var(--ink); }
.search-results a:hover, .search-results a:focus { background: var(--accent-2); text-decoration: none; outline: none; }
.area-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.map-wrap { position: relative; }
#map { height: 68vh; min-height: 380px; border-radius: var(--radius); border: 1px solid var(--line); z-index: 0; }
.map-msg { position: absolute; z-index: 500; top: 12px; left: 50%; transform: translateX(-50%); background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .88rem; box-shadow: var(--shadow); max-width: calc(100% - 80px); text-align: center; }
.leaflet-popup-content { font-family: inherit; font-size: .9rem; line-height: 1.45; }
.crumbs { margin: 0 0 6px; color: var(--muted); }
.facts { width: 100%; border-collapse: collapse; }
.facts td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts td:first-child { color: var(--ink-2); padding-right: 12px; }
.facts td:last-child { text-align: right; }
.facts tr:last-child td { border-bottom: 0; }
.link-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
@media (max-width: 480px) {
    #map { height: 60vh; }
    .area-buttons .btn { flex: 1 1 auto; }
}
table.data.compact th, table.data.compact td { padding: 6px 8px; font-size: .88rem; }
table.data .why { display: block; font-size: .78rem; color: var(--muted); }
.value-chart { width: 100%; max-width: 420px; height: auto; display: block; }
.value-chart .grid { stroke: var(--line); stroke-width: 1; }
.value-chart .tick { fill: var(--muted); font-size: 11px; }
.value-chart .lbl { fill: var(--ink-2); font-size: 11px; font-weight: 600; }
.value-chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.value-chart .dot { stroke: var(--surface); stroke-width: 2; }
.value-chart .market { stroke: #2a78d6; }
.value-chart .taxed { stroke: #eb6834; }
.value-chart .dot.market { fill: #2a78d6; stroke: var(--surface); }
.value-chart .dot.taxed { fill: #eb6834; stroke: var(--surface); }
.value-chart circle { cursor: default; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; color: var(--ink-2); margin-top: 4px; }
.legend .sw { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.legend .sw.market { background: #2a78d6; }
.legend .sw.taxed { background: #eb6834; }
.facts .why { display: block; font-size: .78rem; color: var(--muted); }
.card h3 { color: var(--ink); }
/* House page header: address on the left, aerial photo on the right */
.house-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 16px; }
.house-head > div { min-width: 0; }
.aerial { margin: 0; flex: 0 0 240px; }
.aerial-img { position: relative; }
.aerial img { display: block; width: 240px; height: 160px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--accent-2); }
.aerial .pin { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px #b45309, 0 1px 4px rgba(0,0,0,.5); pointer-events: none; }
.aerial figcaption { font-size: .72rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 600px) {
    .house-head { flex-direction: column; gap: 8px; }
    .aerial { flex: none; width: 100%; max-width: 360px; }
    .aerial img { width: 100%; height: auto; aspect-ratio: 3 / 2; }
}

/* ---- Articles ---- */
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 8px; }
.grid-2 > .card + .card, .art-grid > .card + .card { margin-top: 0; }
.art-card { display: flex; flex-direction: column; color: var(--ink); transition: box-shadow .15s, transform .15s; }
.art-card:hover, .art-card:focus { text-decoration: none; box-shadow: 0 6px 18px rgba(16, 36, 44, .12); transform: translateY(-2px); }
.art-card h2 { font-size: 1.1rem; margin: 0 0 8px; line-height: 1.3; color: var(--sea); }
.art-card p { color: var(--ink-2); font-size: .95rem; margin: 0 0 12px; flex: 1; }
.art-scheduled { color: #b45309; }
.art-page { max-width: 760px; font-size: 1.02rem; line-height: 1.65; }
.art-page h1 { margin: 8px 0 6px; line-height: 1.2; }
.art-page h2 { margin: 30px 0 10px; font-size: 1.3rem; }
.art-date { color: var(--muted); font-size: .92rem; margin: 0 0 20px; }
.art-page .lead { font-size: 1.15rem; }
.art-page li { margin-bottom: 6px; }
.art-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 8px 0 12px; }
.art-stat .stat-num { font-size: 1.8rem; font-weight: 800; color: var(--sea); line-height: 1.1; }
.art-stat p { margin: 4px 0 0; font-size: .92rem; color: var(--ink-2); line-height: 1.45; }
.art-sources li { font-size: .9rem; color: var(--ink-2); }
.art-cta { margin-top: 32px; }
.art-cta h2 { margin-top: 0; }
.art-cta-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 0; }
.art-cta-buttons .btn-ghost { background: var(--surface); }
.art-more { padding-left: 20px; }
.tag-new { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .02em; color: var(--sand-ink); background: var(--sand); border-radius: 999px; padding: 1px 7px; margin-left: 4px; vertical-align: 2px; }
.art-thumb { display: block; width: calc(100% + 40px); max-width: none; margin: -20px -20px 14px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; background: var(--accent-2); }
.art-hero { display: block; width: 100%; max-width: 520px; aspect-ratio: 16 / 9; border-radius: var(--radius); margin: 0 0 22px; background: var(--accent-2); }

/* Home page: a summary of the whole site */
.home-hero { position: relative; overflow: hidden; border-radius: var(--radius); margin-top: 4px; background: var(--sea); }
.home-hero-img { display: block; width: 100%; height: 300px; object-fit: cover; object-position: center 62%; }
.home-hero-text { padding: 26px 28px 6px; max-width: 820px; }
.home-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; margin: 0 0 12px; color: #fff; }
.home-hero .lead { color: #e6f3f6; }
.home-hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .65); }
.home-hero .btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.home-credit { margin: 0; padding: 6px 28px 14px; font-size: .75rem; color: rgba(255, 255, 255, .7); }
@media (max-width: 600px) { .home-hero-img { height: 180px; } .home-hero-text { padding: 20px 18px 6px; } .home-credit { padding: 6px 18px 12px; } }

/* Charts: HTML bars sized by percentage, so labels stay readable at any width.
   Colors are the validated categorical slots; every bar also carries a visible value or legend. */
.sw-loan { background: #2a78d6; } .sw-ins { background: #eb6834; } .sw-tax { background: #1baf7a; } .sw-live { background: #eda100; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: 1px; }
.stackbar { display: flex; gap: 2px; height: 22px; border-radius: 6px; overflow: hidden; margin: 2px 0 10px; }
.stackbar span { display: block; min-width: 2px; }
.stackbar-note { margin: 0 0 6px; color: var(--ink-2); font-size: .95rem; }
.barchart { margin: 10px 0 6px; }
.barchart-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--ink-2); margin-bottom: 10px; }
.barchart-group { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.barchart-group > .barchart-label { grid-row: span 2; font-weight: 600; color: var(--ink); font-size: .95rem; }
.barchart-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.barchart-bar { height: 14px; border-radius: 0 4px 4px 0; flex: none; }
.barchart-val { font-size: .88rem; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 480px) { .barchart-group { grid-template-columns: 1fr; } .barchart-group > .barchart-label { grid-row: auto; } }
.home-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.home-section { margin-top: 36px; }
.home-section > h2 { margin-bottom: 14px; }
.home-example { max-width: 640px; }
.home-lines { list-style: none; margin: 0; padding: 0; }
.home-lines li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.home-lines li span { color: var(--ink); }
.home-lines li small { display: block; color: var(--muted); font-size: .85rem; margin-top: 2px; }
.home-lines li b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.home-lines .home-total { border-bottom: 2px solid var(--sea); }
.home-lines .home-total span, .home-lines .home-total b { font-weight: 800; color: var(--sea); }
.home-lines li:last-child { border-bottom: 0; font-size: 1.1rem; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.home-grid > .card + .card, .home-section .grid-2 > .card + .card { margin-top: 0; }
.home-card { display: flex; flex-direction: column; color: var(--ink); transition: box-shadow .15s, transform .15s; }
.home-card:hover, .home-card:focus { text-decoration: none; box-shadow: 0 6px 18px rgba(16, 36, 44, .12); transform: translateY(-2px); }
.home-topic { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.home-num { font-size: 1.9rem; font-weight: 800; color: var(--sea); line-height: 1.15; margin: 6px 0 4px; }
.home-card p { color: var(--ink-2); font-size: .95rem; margin: 4px 0 12px; flex: 1; }
.home-more { font-weight: 600; color: var(--link); font-size: .92rem; }
.home-more::after { content: " \2192"; }
@media (max-width: 860px) { .home-section .grid-2 { grid-template-columns: 1fr; } }

/* Photo band near the top of a page (Views/Shared/_PagePhoto.cshtml) */
.page-photo { margin: 6px 0 22px; }
.page-photo img { display: block; width: 100%; height: 260px; object-fit: cover; border-radius: var(--radius); background: var(--accent-2); }
.page-photo figcaption { margin-top: 6px; font-size: .85rem; color: var(--ink-2); }
.page-photo figcaption span { color: var(--muted); }
@media (max-width: 600px) { .page-photo img { height: 170px; } }
.barchart-single .barchart-group { grid-template-columns: 190px minmax(0, 1fr); }
.barchart-single .barchart-group > .barchart-label { grid-row: auto; font-weight: 500; }
@media (max-width: 480px) { .barchart-single .barchart-group { grid-template-columns: 1fr; } }
.page-diagram img { height: auto; object-fit: contain; }
.photo-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0 8px; }
.photo-pair img { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--accent-2); }
.photo-pair figcaption { margin-top: 6px; font-size: .85rem; color: var(--ink-2); }
@media (max-width: 600px) { .photo-pair { grid-template-columns: 1fr; } }
.side-photo { float: right; width: min(40%, 420px); margin: 4px 0 16px 28px; }
.side-photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--accent-2); }
.side-photo figcaption { margin-top: 6px; font-size: .85rem; color: var(--ink-2); }
@media (max-width: 700px) {
    .side-photo { float: none; width: 100%; margin: 6px 0 22px; }
    .side-photo img { height: 220px; object-fit: cover; object-position: center 35%; }
}
.stores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 6px 0 6px; }
.store { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.store img, .store-mark { flex: none; width: 64px; height: 64px; object-fit: contain; }
.store img[src*="ace"] { width: 84px; }
.store-mark { display: grid; place-items: center; border-radius: 10px; background: #8a5a00; color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .02em; }
.store strong { display: block; color: #10242c; }
.store span { display: block; font-size: .85rem; color: #3d5a64; line-height: 1.35; }
.stores-note { margin: 0 0 22px; }
@media (max-width: 860px) { .stores { grid-template-columns: 1fr; } }
.photo-pair figcaption span { color: var(--muted); }
.photo-pair-even img { aspect-ratio: 3 / 2; object-fit: cover; }
.stores-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.store-wide { flex-direction: column; align-items: flex-start; gap: 10px; }
.store.store-wide img { width: 170px; height: 40px; object-fit: contain; object-position: left center; }
@media (max-width: 600px) { .stores-2 { grid-template-columns: 1fr; } }
.chain-logo { display: inline-block; margin: 4px 0 18px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.chain-logo img { display: block; width: 170px; height: 40px; object-fit: contain; object-position: left center; }
.chain-logo-section { margin: 1.6em 0 10px; }
.chain-logo + h2 { margin-top: 0; }
.logo-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 12px; }
.logo-row .chain-logo { margin: 0; }
.logo-row .chain-logo img { width: 130px; }
.sample-bill { max-width: 560px; margin: 16px 0 24px; }
.bill { background: #fff; border: 1px solid var(--line); border-top: 6px solid #0e7490; border-radius: 8px; padding: 16px 18px 12px; box-shadow: var(--shadow); color: #10242c; }
.bill-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px dashed #b9cbd1; }
.bill-head span { font-size: .85rem; color: #3d5a64; }
.bill table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.bill th { text-align: left; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: #3d5a64; padding: 10px 0 6px; }
.bill td { padding: 8px 0; border-bottom: 1px solid #e6eef0; vertical-align: top; }
.bill td span { display: block; font-size: .8rem; color: #3d5a64; }
.bill .num { text-align: right; font-variant-numeric: tabular-nums; padding-left: 16px; white-space: nowrap; }
.bill tfoot td { border-bottom: 0; border-top: 2px solid #10242c; font-weight: 700; font-size: 1.05rem; padding-top: 10px; }
.sample-bill figcaption { margin-top: 6px; font-size: .85rem; color: var(--ink-2); }
.lead-row { display: grid; grid-template-columns: minmax(0, 760px) 260px; gap: 28px; align-items: start; margin-bottom: 16px; }
.lead-row .lead { margin: 0; }
.utility-logos { display: flex; flex-direction: column; gap: 8px; }
.utility-logo { display: flex; align-items: center; justify-content: center; height: 48px; padding: 8px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.utility-logo img { display: block; max-width: 100%; max-height: 38px; width: auto; height: auto; }
.utility-logo-dark { background: #0b4f63; border-color: #0b4f63; }
@media (max-width: 860px) {
    .lead-row { grid-template-columns: 1fr; gap: 14px; }
    .utility-logos { flex-direction: row; flex-wrap: wrap; }
    .utility-logo { flex: 1 1 150px; }
}
.text-photo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 40%); gap: 24px; align-items: stretch; margin-bottom: 8px; }
.text-photo > div > :first-child { margin-top: 0; }
.text-photo > div > :last-child { margin-bottom: 0; }
.text-photo-fig { display: flex; flex-direction: column; margin: 0; }
.text-photo-img { position: relative; display: block; flex: 1; min-height: 200px; }
.text-photo-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.text-photo-fig figcaption { margin-top: 6px; font-size: .85rem; color: var(--ink-2); }
@media (max-width: 700px) {
    .text-photo { grid-template-columns: 1fr; }
    .text-photo-img { flex: none; height: 220px; }
}
.photo-pair-small { max-width: 680px; }
/* Sticky header: keep jump-link targets clear of it. */
h2[id], h3[id], :target { scroll-margin-top: 120px; }
@media (max-width: 700px) {
    .nav { flex: 1 1 100%; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin-right: -16px; padding-right: 16px; }
    .nav::-webkit-scrollbar { display: none; }
    .nav a { white-space: nowrap; flex: none; }
}
