:root {
    --site-nav-height: 71.4px;
    --color-ink: #0a0a0a;
    --color-paper: #fefdfb;
    --color-accent: #4338ca;
    --color-gray-500: #78716c;
    --space-xs: 0.375rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --max-width: 1400px;
    --border: 1px solid var(--color-ink);
    --ios-indigo: #4938d3;
    --ios-violet: #7a35ee;
    --ios-navy: #21135f;
    --ios-red: #e6323d;
    --ios-orange: #ee6418;
    --ios-gold: #cf9412;
    --ios-green: #0d9b70;
    --ios-upload: #2f7ee6;
    --ios-surface: rgb(249 249 251 / 0.92);
    --ios-shadow: 0 14px 38px rgb(27 20 72 / 0.18), 0 2px 7px rgb(17 17 31 / 0.08);
}

body {
    display: flex;
    height: 100dvh;
    min-height: 100%;
    padding-top: var(--site-nav-height);
    flex-direction: column;
}

.navbar {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    left: 0;
    color: var(--color-ink);
    background: var(--color-paper);
    border-bottom: var(--border);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-sm) var(--space-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--color-ink);
    text-decoration: none;
}

.logo:hover { color: var(--color-ink); }

.logo-icon {
    width: 2.25rem;
    height: 2.25rem;
    object-fit: contain;
    border-radius: 4px;
}

.logo-text {
    color: var(--color-accent);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    color: var(--color-gray-500);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-ink);
}

.nav-cta {
    padding: 0.75rem 1.5rem;
    color: var(--color-paper) !important;
    background: var(--color-ink);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.2s ease;
}

.nav-cta:hover { background: var(--color-accent); }

.nav-toggle {
    display: none;
    border: 0;
    padding: var(--space-xs);
    color: #000;
    background: none;
    cursor: pointer;
    font: 13.3333px Arial, sans-serif;
}

.hamburger {
    position: relative;
    display: block;
    width: 28px;
    height: 2px;
    background: var(--color-ink);
}

.hamburger::before,
.hamburger::after {
    position: absolute;
    left: 0;
    width: 28px;
    height: 2px;
    content: '';
    background: var(--color-ink);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

.map-app {
    height: auto;
    min-height: 0;
    flex: 1 1 auto;
}

.map-canvas::before { opacity: 0; }

.leaflet-tile-pane {
    opacity: 1;
    filter: saturate(1.08) brightness(1.03);
}

.map-app[data-map-level="published"] .leaflet-tile-pane { opacity: 1; }

.app-surface {
    border: 1px solid rgb(255 255 255 / 0.62);
    border-radius: 22px;
    background: var(--ios-surface);
    box-shadow: var(--ios-shadow);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
}

.web-map-header {
    position: absolute;
    z-index: 680;
    top: 18px;
    left: 18px;
    width: 334px;
    padding: 14px;
}

.web-map-header .brand-row { gap: 10px; }
.web-map-header .brand-mark { width: 42px; height: 42px; border-radius: 0; }
.web-map-header .brand-name {
    display: block;
    max-width: none;
    font-size: 1.2rem;
    line-height: 1;
}
.map-product-name {
    display: block;
    margin-top: 4px;
    color: #64616d;
    font: 600 0.59rem/1.2 var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.level-breadcrumb {
    display: grid;
    grid-template-columns: auto 8px auto 8px auto 8px auto;
    align-items: center;
    gap: 3px;
    margin-top: 12px;
    padding: 4px;
    border: 1px solid rgb(73 56 211 / 0.13);
    border-radius: 14px;
    background: rgb(255 255 255 / 0.76);
}

.level-breadcrumb button {
    min-height: 30px;
    padding: 0 7px;
    color: #666270;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    font: 500 0.61rem/1 var(--font-body);
    white-space: nowrap;
}
.level-breadcrumb button:hover { background: rgb(73 56 211 / 0.08); }
.level-breadcrumb button.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--ios-indigo), #6d4ae8);
    box-shadow: 0 5px 12px rgb(73 56 211 / 0.25);
    font-weight: 700;
}
.level-breadcrumb span { color: #9c98a4; font-size: 0.82rem; text-align: center; }

.app-download-callout {
    position: absolute;
    z-index: 680;
    top: 18px;
    right: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: center;
    gap: 14px;
    width: 294px;
    padding: 14px 14px 14px 17px;
    color: var(--bb-ink);
    text-decoration: none;
    transition: opacity 170ms ease, transform 170ms ease, visibility 170ms ease;
}
.app-download-copy { min-width: 0; }
.app-download-title-mobile { display: none; }
.app-download-kicker {
    display: block;
    color: var(--ios-indigo);
    font: 700 0.54rem/1 var(--font-mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.app-download-callout strong {
    display: block;
    margin-top: 5px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    line-height: 1.05;
    letter-spacing: -0.025em;
}
.app-download-callout small {
    display: block;
    margin-top: 5px;
    color: #67636f;
    font-size: 0.66rem;
    line-height: 1.3;
}
.app-download-arrow {
    display: grid;
    width: 42px;
    height: 42px;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--ios-indigo), var(--ios-violet));
    box-shadow: 0 8px 18px rgb(73 56 211 / 0.24);
    place-items: center;
}
.app-download-arrow svg {
    width: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}
.app-download-callout:hover {
    transform: translateY(-2px);
}
.app-download-callout:hover .app-download-arrow {
    background: linear-gradient(145deg, var(--ios-violet), var(--ios-indigo));
}
body.has-detail .app-download-callout,
body.has-active-filter .app-download-callout {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
}

.control-panel {
    top: 156px;
    bottom: auto;
    left: 18px;
    width: 334px;
    max-height: calc(100dvh - 174px);
    padding: 20px;
    overflow: visible;
}

.control-panel > .brand-row { display: none; }
.panel-introduction { margin: 0; padding: 0; border: 0; }
.panel-kicker {
    margin: 0 0 10px;
    color: var(--ios-indigo);
    font: 700 0.62rem/1 var(--font-mono);
    letter-spacing: 0.17em;
}
.panel-kicker span {
    display: inline-flex;
    margin-left: 5px;
    padding: 4px 7px;
    color: #fff;
    border-radius: 999px;
    background: var(--ios-indigo);
    font-size: 0.52rem;
    letter-spacing: 0.12em;
}
.panel-introduction h1 { font-size: 1.73rem; line-height: 1.04; }
.intro-copy { max-width: none; margin-top: 8px; font-size: 0.79rem; line-height: 1.4; }
.headline-total {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 15px 0 14px;
}
.headline-total strong { font-size: 1.55rem; }
.headline-total span { color: #6b6872; font-size: 0.72rem; }

.finder-row { display: grid; grid-template-columns: 1fr 46px; gap: 8px; }
.postcode-search { min-width: 0; }
.postcode-search input {
    height: 46px;
    padding-right: 44px;
    border: 1px solid rgb(73 56 211 / 0.18);
    border-radius: 14px;
    background: rgb(255 255 255 / 0.84);
    font-size: 0.8rem;
}
.postcode-icon { display: none; }
.search-button {
    top: 4px;
    right: 4px;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--ios-indigo), var(--ios-violet));
}
.location-button {
    width: 46px;
    height: 46px;
    padding: 0;
    color: var(--ios-indigo);
    border: 1px solid rgb(73 56 211 / 0.18);
    border-radius: 50%;
    background: rgb(255 255 255 / 0.86);
}
.location-button span { display: none; }
.location-button svg { width: 20px; }

.desktop-map-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}
.map-chip,
.map-circle-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    color: #171421;
    border: 1px solid rgb(73 56 211 / 0.14);
    background: rgb(255 255 255 / 0.84);
    box-shadow: 0 7px 18px rgb(33 19 95 / 0.09);
    cursor: pointer;
}
.map-chip { gap: 8px; padding: 0 14px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.map-circle-button { width: 42px; border-radius: 50%; margin-left: auto; }
.map-circle-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.map-chip.is-active,
.map-circle-button.is-active { color: #fff; background: linear-gradient(145deg, var(--ios-indigo), var(--ios-violet)); }
.mini-key-dots { display: flex; gap: 2px; }
.mini-key-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ios-red); }
.mini-key-dots i:nth-child(2) { background: var(--ios-orange); }
.mini-key-dots i:nth-child(3) { background: var(--ios-gold); }
.mini-key-dots i:nth-child(4) { background: var(--ios-green); }
.beta-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    padding: 0 10px;
    color: #fff;
    border-radius: 999px;
    background: var(--ios-indigo);
    font: 700 0.56rem/1 var(--font-mono);
    letter-spacing: 0.14em;
}

@media (min-width: 761px) {
    .finder-row {
        grid-template-columns: minmax(0, 1fr) 46px;
        gap: 8px;
    }
    .postcode-search {
        grid-template-columns: minmax(0, 1fr) 46px;
        gap: 8px;
    }
    .postcode-search input,
    .search-button,
    .location-button {
        height: 46px;
        border-radius: 14px;
    }
    .postcode-search input { padding: 0 13px; }
    .search-button {
        position: static;
        width: 46px;
    }
    .location-button { width: 46px; }
    .desktop-map-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 46px;
        gap: 8px;
    }
    .map-chip,
    .beta-chip,
    .map-circle-button {
        width: 100%;
        height: 46px;
        min-height: 46px;
        margin: 0;
        padding: 0 12px;
        border-radius: 14px;
    }
}

.filter-tray,
.legend {
    position: absolute;
    z-index: 20;
    top: 0;
    left: calc(100% + 18px);
    display: none;
    width: min(360px, calc(100vw - 388px));
    max-height: calc(100dvh - var(--site-nav-height) - 174px);
    padding: 18px;
    overflow-y: auto;
    border: 1px solid rgb(255 255 255 / 0.72);
    border-radius: 20px;
    background: rgb(249 249 251 / 0.96);
    box-shadow: var(--ios-shadow);
    backdrop-filter: blur(28px);
}
.filter-tray.is-open,
.legend.is-open { display: block; }
.legend:focus { outline: none; }

@media (min-width: 761px) {
    .map-app::after {
        position: absolute;
        z-index: 850;
        inset: 0;
        visibility: hidden;
        content: "";
        background: rgb(18 15 31 / 0.34);
        opacity: 0;
        pointer-events: none;
        backdrop-filter: blur(6px);
        transition: opacity 170ms ease, visibility 170ms ease;
    }
    body.has-key-open .map-app::after {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }
    .legend {
        position: fixed;
        z-index: 900;
        top: 50%;
        left: 50%;
        width: min(660px, calc(100vw - 36px));
        max-height: min(760px, calc(100dvh - 36px));
        padding: 20px;
        border-radius: 28px;
        transform: translate(-50%, -50%);
        box-shadow: 0 30px 80px rgb(18 15 31 / 0.26), 0 5px 18px rgb(18 15 31 / 0.12);
    }
    .legend.is-open {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 14px;
    }
    .legend > .tray-heading,
    .legend > .legend-intro,
    .legend > .panel-label,
    .legend > .included-reports,
    .legend > #method-button { grid-column: 1 / -1; }
    .legend > .tray-heading {
        align-items: flex-start;
        margin-bottom: 14px;
        padding-bottom: 14px;
        border-bottom: 1px solid rgb(73 56 211 / 0.09);
    }
    .legend .key-heading small {
        display: block;
        margin: 0 0 5px;
        color: var(--ios-indigo);
        font: 700 0.5rem/1 var(--font-mono);
        letter-spacing: 0.16em;
    }
    .legend .key-heading strong {
        font-family: var(--font-display);
        font-size: 1.65rem;
        line-height: 1;
        letter-spacing: -0.03em;
    }
    .legend > .tray-heading button {
        min-width: 68px;
        min-height: 40px;
        padding: 0 14px;
        border-radius: 999px;
        background: rgb(73 56 211 / 0.08);
        font-size: 0.72rem;
        font-weight: 700;
    }
    .legend > .key-story-card { height: auto; }
}
.tray-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.tray-heading strong { font-size: 0.9rem; }
.tray-heading button { padding: 8px; color: var(--ios-indigo); border: 0; background: transparent; cursor: pointer; font-weight: 600; }
.filter-control {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    overflow: visible;
    border: 0;
    border-radius: 0;
}
.filter-control > .filter-button,
.filter-control > .filter-button:not(:first-child):not(:nth-child(4)),
.filter-control > .filter-button:nth-child(n + 4) {
    grid-column: 1;
    border: 0;
}
.filter-button {
    display: flex;
    align-items: center;
    min-height: 43px;
    gap: 11px;
    padding: 0 13px;
    color: #181522;
    border: 0;
    border-radius: 12px;
    background: rgb(255 255 255 / 0.72);
    cursor: pointer;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 600;
}
.filter-button::after { margin-left: auto; color: var(--ios-indigo); content: ""; }
.filter-button.is-active { color: #fff; background: linear-gradient(135deg, var(--ios-indigo), var(--ios-violet)); }
.filter-button.is-active::after { content: "✓"; }
.filter-button i { width: 11px; height: 11px; border-radius: 50%; background: linear-gradient(135deg, var(--ios-red), var(--ios-orange)); }
.filter-button[data-filter="unusable"] i { background: var(--ios-red); }
.filter-button[data-filter="slow-download"] i { background: var(--ios-orange); }
.filter-button[data-filter="slow-upload"] i { background: var(--ios-upload); }
.filter-button[data-filter="high-latency"] i { background: var(--ios-gold); }
.filter-label-compact, .filter-label-full { display: inline; }
.layer-toggle {
    min-height: 54px;
    margin-top: 10px;
    padding: 8px 10px;
    border: 1px solid rgb(73 56 211 / 0.12);
    border-radius: 14px;
    background: rgb(255 255 255 / 0.76);
}
.layer-toggle-copy strong { font-size: 0.75rem; }
.layer-toggle-copy small { font-size: 0.62rem; }

.legend-intro { margin: 0 0 14px; color: #625e69; font-size: 0.78rem; line-height: 1.42; }
.legend .panel-label { margin: 0 0 5px; }
.legend > div:not(.tray-heading):not(.included-reports) {
    display: grid;
    grid-template-columns: 32px 1fr;
    align-items: start;
    gap: 8px;
    padding: 9px 2px;
    border-bottom: 1px solid rgb(97 92 108 / 0.1);
}
.legend > div strong, .legend > div small { display: block; }
.legend > div strong { font-size: 0.75rem; }
.legend > div small { margin-top: 2px; color: #706c76; font-size: 0.64rem; line-height: 1.35; }
.legend-swatch { width: 26px; height: 26px; border: 5px solid rgb(255 255 255 / 0.6); border-radius: 50%; box-shadow: 0 0 0 1px currentColor; }
.legend-swatch--limited { border: 0; background: repeating-linear-gradient(135deg,#9b9b9b 0 1px,#efefef 1px 5px); box-shadow: inset 0 0 0 1px #aaa; }
.legend #method-button {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding: 0 9px 0 13px;
    color: var(--ios-indigo);
    border: 1px solid rgb(73 56 211 / 0.14);
    border-radius: 13px;
    background: rgb(73 56 211 / 0.07);
    box-shadow: 0 5px 14px rgb(33 19 95 / 0.06);
    font-size: 0.72rem;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.legend .method-button-arrow {
    display: grid;
    width: 27px;
    height: 27px;
    flex: 0 0 auto;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--ios-indigo), var(--ios-violet));
    box-shadow: 0 5px 12px rgb(73 56 211 / 0.2);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
    place-items: center;
}
.legend #method-button:hover {
    border-color: rgb(73 56 211 / 0.24);
    background: rgb(73 56 211 / 0.11);
}
.legend #method-button:active { transform: translateY(1px); }
.legend > .key-story-card {
    display: block;
    margin-top: 12px;
    padding: 15px;
    color: #fff;
    border: 0;
    border-radius: 17px;
    background: linear-gradient(135deg, #220f1b, #7f282b 58%, #e63a3d);
    box-shadow: 0 10px 24px rgb(88 25 39 / 0.18);
}
.legend > .key-story-card--privacy { background: linear-gradient(135deg, #171139, #292270 58%, #5547dd); }
.key-story-card p { margin: 0 0 7px; color: rgb(255 255 255 / 0.72); font: 600 0.52rem/1 var(--font-mono); letter-spacing: 0.16em; }
.key-story-card h2 { margin: 0 0 10px; font-size: 1.15rem; line-height: 1.03; letter-spacing: -0.025em; }
.key-story-card span { display: block; color: rgb(255 255 255 / 0.84); font-size: 0.65rem; line-height: 1.38; }
.legend > .included-reports { display: flex; grid-template-columns: none; align-items: center; justify-content: space-between; margin-top: 10px; padding: 11px 12px; border: 0; border-radius: 13px; background: #fff; font-size: 0.7rem; }
.included-reports strong { color: var(--ios-indigo); font-family: var(--font-mono); }
.privacy-summary { display: none; }

.active-filter {
    position: absolute;
    z-index: 675;
    right: 444px;
    bottom: 22px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    left: 370px;
    width: auto;
    min-width: 0;
    padding: 12px 14px;
    transform: none;
}
.active-filter-icon { width: 12px; height: 12px; margin-left: 5px; border-radius: 50%; background: var(--ios-gold); }
.active-filter > span { min-width: 0; }
.active-filter strong, .active-filter small { display: block; }
.active-filter strong { font-family: var(--font-display); font-size: 1rem; }
.active-filter small { margin-top: 2px; color: #696571; font: 500 0.61rem/1.25 var(--font-mono); }
.active-filter button { display: flex; gap: 7px; align-items: center; padding: 10px 12px; color: var(--ios-indigo); border: 0; border-radius: 12px; background: transparent; cursor: pointer; font-weight: 600; }
.active-filter button span { font-size: 1.25rem; line-height: 0; }

.detail-panel {
    z-index: 700;
    top: 18px;
    right: 18px;
    bottom: 18px;
    width: 408px;
    padding: 0;
    overflow: hidden;
    border-radius: 30px;
}
.sheet-handle { display: none; }
.detail-sheet-title {
    height: 58px;
    padding-top: 21px;
    text-align: center;
    font-size: 0.86rem;
    font-weight: 700;
}
.detail-close {
    position: absolute;
    z-index: 2;
    top: 9px;
    right: 10px;
    min-width: 64px;
    height: 40px;
    padding: 0 14px;
    color: var(--ios-indigo);
    border: 0;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.78);
    box-shadow: 0 7px 20px rgb(33 19 95 / 0.07);
    cursor: pointer;
    font-size: 0.78rem;
}
.detail-scroll { height: calc(100% - 58px); padding: 13px 18px 24px; overflow-y: auto; }
.detail-eyebrow,
.section-label,
.ranking h3 {
    margin: 0 0 9px;
    color: #696571;
    font: 600 0.61rem/1.2 var(--font-mono);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.detail-eyebrow { color: var(--ios-indigo); }
.detail-panel h2 { max-width: 325px; font-size: 2rem; line-height: 1.02; }
.detail-verdict {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 3px 12px;
    align-items: start;
    margin: 12px 0 18px;
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 700;
}
.detail-verdict i {
    position: relative;
    grid-row: 1 / span 2;
    width: 36px;
    height: 36px;
    border: 1px solid color-mix(in srgb, currentColor 32%, white);
    border-radius: 50%;
    background: color-mix(in srgb, currentColor 12%, white);
    box-shadow: none;
}
.detail-verdict i::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    content: "";
    border-radius: 50%;
    background: currentColor;
    transform: translate(-50%, -50%);
}
.detail-verdict > span { display: flex; min-height: 36px; align-items: center; }
.detail-verdict[data-tone="poor"] { color: var(--ios-orange); }
.detail-verdict[data-tone="usable"], .detail-verdict[data-tone="high-latency"] { color: var(--ios-gold); }
.detail-verdict[data-tone="good"] { color: var(--ios-green); }
.detail-verdict[data-tone="limited"] { color: #6b6872; }
.detail-verdict[data-tone="limited"] i { border: 1px solid #aaa; background: repeating-linear-gradient(135deg,#999 0 1px,#ededed 1px 5px); }
.detail-verdict[data-tone="limited"] i::after { display: none; }
.detail-verdict[data-tone="slow-upload"] { color: var(--ios-upload); }
.detail-context {
    grid-column: 2;
    margin: 0;
    color: #77727d;
    font: 400 0.72rem/1.35 var(--font-body);
}
.source-status { margin: 0 0 17px; padding: 12px; border: 1px solid rgb(207 148 18 / 0.24); border-radius: 15px; background: rgb(255 255 255 / 0.64); }
.source-status svg { color: var(--ios-gold); }
.source-status strong { font-size: 0.73rem; }
.source-status p { margin-top: 3px; font-size: 0.67rem; line-height: 1.35; }

.section-label { margin-top: 4px; }
.detail-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 19px; border: 0; }
.detail-metrics > div,
.detail-metrics > div:nth-child(even),
.detail-metrics > div:nth-child(3) {
    position: relative;
    min-height: 130px;
    padding: 16px;
    color: #fff;
    border: 0;
    border-radius: 19px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgb(38 26 105 / 0.14);
}
.detail-metrics > div::before {
    position: absolute;
    right: -15px;
    bottom: -22px;
    width: 94px;
    height: 94px;
    content: "";
    border-radius: 50%;
    background: rgb(255 255 255 / 0.08);
}
.metric-card--reports, .metric-card--areas { background: linear-gradient(135deg, #21135f 0%, #4734c9 62%, #6038ee 100%); }
.metric-card--matching { background: linear-gradient(135deg, #2a1437 0%, #783542 55%, #ec581e 100%); }
.detail-metrics.area-metrics > .metric-card--areas { grid-column: 1 / -1; min-height: 130px !important; background: linear-gradient(135deg, #241259, #3f2fbf 55%, #5146e8); }
.metric-card--download { background: linear-gradient(135deg, #2a1748, #8a5239 58%, #ef7a22); }
.metric-card--worst { background: linear-gradient(135deg, #2a1535, #813240 56%, #e83340); }
.map-app[data-filter-tone="slow-upload"] .metric-card--matching { background: linear-gradient(135deg, #15265c, #285ec4 55%, #2f9cda); }
.map-app[data-filter-tone="high-latency"] .metric-card--matching { background: linear-gradient(135deg, #302139, #8b612d 58%, #e3a519); }
.detail-metrics dt { color: rgb(255 255 255 / 0.78); font: 600 0.56rem/1.25 var(--font-mono); letter-spacing: 0.13em; text-transform: uppercase; }
.detail-metrics dd { margin: 8px 0 0; color: #fff; font-family: var(--font-display); font-size: 1.8rem; line-height: 1; }
.detail-metrics dd small { color: rgb(255 255 255 / 0.82); font: 600 0.72rem/1 var(--font-body); }
.detail-metrics > div > small { display: block; max-width: 150px; margin-top: 9px; color: rgb(255 255 255 / 0.78); font: 500 0.63rem/1.35 var(--font-mono); }
.detail-metrics b { position: absolute; right: 13px; top: 50%; font-size: 1.2rem; opacity: 0.75; transform: translateY(-50%); }
.detail-metrics [role="button"] { cursor: pointer; transition: transform 140ms ease, filter 140ms ease; }
.detail-metrics [role="button"]:hover { filter: brightness(1.06); transform: translateY(-2px); }
.detail-metrics [role="button"]:focus-visible { outline: 3px solid rgb(73 56 211 / 0.3); outline-offset: 3px; }
.cell-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cell-metrics > div,
.cell-metrics > div:first-child,
.cell-metrics > div:nth-child(even),
.cell-metrics > div:nth-child(3),
.cell-metrics.is-filtered > div,
.cell-metrics.is-filtered > div:nth-child(odd),
.cell-metrics.is-filtered > div:nth-child(even),
.cell-metrics.is-filtered > div:nth-child(3) {
    min-height: 130px;
    padding: 16px;
    border: 0;
}
.cell-metrics:not(.is-filtered) > .metric-card--reports { grid-column: 1 / -1; }

.detail-breakdown { margin: -7px 0 18px; padding: 12px; border-radius: 15px; background: rgb(255 255 255 / 0.66); }
.detail-breakdown span { flex: 1 1 100%; font-size: 0.68rem; }
.ranking { margin: 0 0 15px; }
.ranking h3 { margin-bottom: 8px; }
.ranking ol { overflow: hidden; border: 0; border-radius: 17px; background: rgb(255 255 255 / 0.7); box-shadow: 0 8px 24px rgb(33 19 95 / 0.08); }
.ranking li { min-height: 58px; padding: 9px 12px; border-bottom: 1px solid rgb(92 87 101 / 0.14); }
.ranking li:last-child { border-bottom: 0; }
.ranking li:hover, .ranking li:focus-visible { background: rgb(73 56 211 / 0.06); }
.ranking-number { font-family: var(--font-display); font-size: 1.25rem; }
.ranking-copy strong { font-size: 0.75rem; line-height: 1.2; }
.ranking-copy small, .ranking-share { font-size: 0.55rem; }
.detail-method { margin: 0 0 12px; padding: 12px; color: #6d6874; border: 1px solid rgb(73 56 211 / 0.16); border-radius: 15px; background: rgb(255 255 255 / 0.62); font-size: 0.66rem; line-height: 1.42; }
.detail-zoom { display: flex; min-height: 50px; margin: 0 0 12px; color: #fff; border: 0; border-radius: 15px; background: linear-gradient(110deg, #5546e8, #7a35ee); box-shadow: 0 9px 22px rgb(73 56 211 / 0.22); font-weight: 700; }
.detail-zoom svg { order: -1; width: 19px; margin-right: 10px; fill: currentColor; stroke: none; }
.detail-privacy { margin: 0; color: #5e5966; border: 0; background: transparent; font-size: 0.66rem; line-height: 1.35; }
.detail-privacy svg { color: var(--ios-indigo); }

.scoreboard-dialog,
.method-dialog {
    width: min(600px, calc(100vw - 36px));
    max-height: min(780px, calc(100dvh - 36px));
    padding: 0;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 0.7);
    border-radius: 28px;
    background: rgb(249 249 251 / 0.98);
}
.scoreboard-dialog::backdrop,
.method-dialog::backdrop { background: rgb(18 15 31 / 0.42); backdrop-filter: blur(7px); }
.dialog-topbar { position: sticky; z-index: 2; top: 0; display: flex; align-items: flex-start; justify-content: space-between; padding: 20px 20px 14px; background: rgb(249 249 251 / 0.94); backdrop-filter: blur(18px); }
.dialog-topbar p { margin: 0 0 5px; color: var(--ios-indigo); font: 600 0.58rem/1 var(--font-mono); letter-spacing: 0.16em; }
.dialog-topbar h2 { font-size: 1.8rem; }
.dialog-topbar button { min-width: 64px; min-height: 40px; color: var(--ios-indigo); border: 0; border-radius: 999px; background: #fff; cursor: pointer; }
.scoreboard-filter { display: flex; gap: 6px; padding: 0 20px 14px; overflow-x: auto; }
.scoreboard-filter button { flex: 0 0 auto; min-height: 35px; padding: 0 12px; color: #5f5a66; border: 1px solid rgb(73 56 211 / 0.13); border-radius: 999px; background: #fff; cursor: pointer; font-size: 0.65rem; font-weight: 600; }
.scoreboard-filter button.is-active { color: #fff; background: var(--ios-indigo); }
.scoreboard-summary { margin: 0; padding: 0 20px 14px; color: #6a6570; font-size: 0.72rem; line-height: 1.4; }
.scoreboard-list { max-height: 560px; margin: 0; padding: 0 20px 22px; overflow-y: auto; list-style: none; counter-reset: board; }
.scoreboard-list li { counter-increment: board; display: grid; grid-template-columns: 35px minmax(0,1fr) auto; align-items: center; min-height: 66px; padding: 8px 12px; border-bottom: 1px solid rgb(92 87 101 / 0.13); background: #fff; }
.scoreboard-list li:first-child { border-radius: 16px 16px 0 0; }
.scoreboard-list li:last-child { border-bottom: 0; border-radius: 0 0 16px 16px; }
.scoreboard-list li::before { content: counter(board); color: #77727c; font-family: var(--font-display); font-size: 1.15rem; }
.scoreboard-list li.is-selected { color: #fff; background: linear-gradient(120deg, var(--ios-indigo), var(--ios-violet)); }
.scoreboard-list strong, .scoreboard-list small { display: block; }
.scoreboard-list strong { font-size: 0.8rem; }
.scoreboard-list small { margin-top: 3px; color: #77727c; font: 500 0.57rem/1.25 var(--font-mono); }
.scoreboard-list .is-selected small { color: rgb(255 255 255 / 0.74); }
.scoreboard-value { color: var(--ios-indigo); font: 700 0.72rem/1 var(--font-mono); }
.scoreboard-list .is-selected .scoreboard-value { color: #fff; }

.method-dialog {
    padding-bottom: 0;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgb(18 15 31 / 0.26), 0 5px 18px rgb(18 15 31 / 0.12);
}
.method-dialog .dialog-topbar {
    padding: 22px 22px 17px;
    border-bottom: 1px solid rgb(73 56 211 / 0.09);
    background: linear-gradient(135deg, rgb(255 255 255 / 0.98), rgb(244 242 255 / 0.97));
}
.method-dialog .dialog-topbar h2 {
    padding-right: 0;
    font-size: 1.75rem;
    line-height: 1.05;
}
.method-dialog .dialog-topbar button {
    min-width: 68px;
    border: 0;
    background: rgb(73 56 211 / 0.08);
    box-shadow: none;
    font-size: 0.72rem;
    font-weight: 700;
}
.method-dialog .dialog-topbar button:focus-visible {
    outline: 2px solid rgb(73 56 211 / 0.28);
    outline-offset: 2px;
}
.method-dialog-content { padding: 18px 20px 22px; }
.method-dialog .method-dialog-content > .method-intro {
    margin: 0 0 14px;
    padding: 13px 15px;
    color: #4f4a5a;
    border: 1px solid rgb(73 56 211 / 0.09);
    border-radius: 15px;
    background: rgb(73 56 211 / 0.055);
    font-size: 0.76rem;
    line-height: 1.48;
}
.method-explainer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.method-explainer {
    min-width: 0;
    padding: 15px;
    border: 1px solid rgb(73 56 211 / 0.09);
    border-radius: 17px;
    background: rgb(255 255 255 / 0.86);
    box-shadow: 0 7px 20px rgb(33 19 95 / 0.055);
}
.method-explainer--blackspot { border-color: rgb(230 50 61 / 0.13); background: linear-gradient(145deg, rgb(255 255 255 / 0.94), rgb(255 241 242 / 0.9)); }
.method-explainer--privacy { border-color: rgb(73 56 211 / 0.15); background: linear-gradient(145deg, rgb(255 255 255 / 0.94), rgb(241 239 255 / 0.92)); }
.method-dialog .method-explainer p.method-section-label {
    margin: 0 0 8px;
    color: var(--ios-indigo);
    font: 700 0.5rem/1 var(--font-mono);
    letter-spacing: 0.15em;
}
.method-dialog .method-explainer--blackspot p.method-section-label { color: var(--ios-red); }
.method-explainer h3 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 1.08rem;
    line-height: 1.08;
    letter-spacing: -0.02em;
}
.method-dialog .method-explainer p.method-section-copy {
    margin: 0;
    color: #65606b;
    font-size: 0.69rem;
    line-height: 1.48;
}
.method-dialog .method-privacy-link {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding: 0 10px 0 14px;
    color: var(--ios-indigo);
    border: 1px solid rgb(73 56 211 / 0.12);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 14px rgb(33 19 95 / 0.055);
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
}
.method-privacy-link span:last-child {
    display: grid;
    width: 28px;
    height: 28px;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--ios-indigo), var(--ios-violet));
    font-size: 1rem;
    font-weight: 500;
    place-items: center;
}

.map-level-label { display: none; }
.live-status { display: none !important; }
.map-message { z-index: 800; left: 50%; max-width: 360px; transform: translateX(-50%); }
.leaflet-bottom.leaflet-right { right: 18px; bottom: 20px; }
.leaflet-control-zoom.leaflet-bar {
    display: grid;
    width: 48px;
    padding: 5px;
    overflow: visible;
    border: 0 !important;
    border-radius: 17px !important;
    background: rgb(255 255 255 / 0.9);
    box-shadow: var(--ios-shadow) !important;
}
.map-detail-control-label {
    display: block;
    padding: 3px 0 5px;
    color: #6b6673;
    font: 700 0.43rem/1 var(--font-mono);
    letter-spacing: 0.1em;
    text-align: center;
}
.leaflet-control-zoom.leaflet-bar a,
.leaflet-control-zoom.leaflet-bar a:hover {
    width: 38px;
    height: 38px;
    color: var(--ios-indigo);
    background: transparent;
    border: 0;
    border-radius: 11px;
    font-size: 24px;
    line-height: 38px;
}
.leaflet-control-zoom.leaflet-bar a:hover { background: rgb(73 56 211 / 0.08); }
.leaflet-control-zoom.leaflet-bar a + a { border-top: 1px solid rgb(73 56 211 / 0.11); }
.leaflet-control-zoom.leaflet-bar a.leaflet-disabled { color: #aaa6b0; cursor: default; }
.leaflet-control-attribution {
    max-width: min(400px, calc(100vw - 900px));
    overflow: hidden;
    border: 0;
    background: rgb(255 255 255 / 0.72) !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body.has-detail .leaflet-bottom.leaflet-right { right: 444px; }

@media (max-width: 1080px) and (min-width: 761px) {
    .detail-panel { width: 370px; }
    .active-filter { right: 386px; left: 370px; width: auto; min-width: 0; transform: none; }
}

@media (max-width: 900px) and (min-width: 761px) {
    .active-filter { right: auto; left: 18px; width: 334px; }
}

@media (max-height: 760px) and (min-width: 761px) {
    .control-panel { max-height: calc(100dvh - 174px); overflow: visible; }
    .panel-introduction h1 { font-size: 1.55rem; }
    .intro-copy { display: block; font-size: 0.75rem; }
    .headline-total { padding: 12px 0; }
}

@media (max-width: 760px) {
    body,
    .map-canvas { background: #a9dcec; background-image: none; }
    .map-canvas::before { opacity: 0; }
    .web-map-header {
        top: max(10px, env(safe-area-inset-top));
        left: 10px;
        width: calc(100% - 20px);
        padding: 10px;
        border-radius: 20px;
        box-shadow: none;
    }
    .web-map-header .brand-row { display: none; }
    .web-map-header::before {
        display: block;
        margin-bottom: 8px;
        color: #171421;
        content: "Mapping Britain’s Mobile Network";
        font-family: var(--font-display);
        font-size: 0.98rem;
        font-weight: 700;
        text-align: center;
    }
    .app-download-callout {
        top: auto;
        right: 66px;
        bottom: max(18px, env(safe-area-inset-bottom));
        left: 114px;
        grid-template-columns: minmax(0, 1fr) 34px;
        gap: 6px;
        width: auto;
        min-height: 46px;
        padding: 5px 6px 5px 10px;
        border-radius: 23px;
        transform: none;
    }
    .app-download-callout strong {
        margin-top: 0;
        font-family: var(--font-body);
        font-size: 0.78rem;
        font-weight: 700;
        line-height: 1;
        letter-spacing: 0;
        white-space: nowrap;
    }
    .app-download-callout small,
    .app-download-title-desktop { display: none; }
    .app-download-title-mobile { display: inline; }
    .app-download-kicker { display: none; }
    .app-download-arrow { width: 34px; height: 34px; }
    .app-download-callout:hover { transform: translateY(-2px); }
    body.has-detail .app-download-callout,
    body.has-active-filter .app-download-callout,
    body.has-mobile-tray .app-download-callout {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(8px);
    }
    .level-breadcrumb { grid-template-columns: 1fr 5px 1.35fr 5px 1.15fr 5px .7fr; margin-top: 0; }
    .level-breadcrumb button { min-width: 0; min-height: 27px; padding: 0 2px; overflow: hidden; font-size: 0.52rem; text-overflow: ellipsis; }

    .control-panel {
        z-index: 670;
        top: max(94px, calc(env(safe-area-inset-top) + 86px));
        bottom: auto;
        left: 10px;
        width: calc(100% - 20px);
        max-height: none;
        padding: 0;
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }
    .panel-introduction, .headline-total, .privacy-summary { display: none; }
    .finder-row {
        display: grid;
        grid-template-columns: 1fr 46px;
        gap: 8px;
        padding: 7px;
        border: 1px solid rgb(255 255 255 / 0.65);
        border-radius: 17px;
        background: rgb(249 249 251 / 0.82);
        box-shadow: 0 9px 24px rgb(33 19 95 / 0.13);
        backdrop-filter: blur(18px);
    }
    .postcode-search {
        position: static;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 42px;
        gap: 7px;
        width: auto;
        max-width: 100%;
    }
    .postcode-search input {
        width: 100%;
        min-width: 0;
        height: 42px;
        padding: 0 13px;
        border-radius: 13px;
    }
    .search-button {
        position: static;
        display: flex;
        width: 42px;
        height: 42px;
        align-items: center;
        justify-content: center;
        overflow: visible;
        clip: auto;
        border-radius: 50%;
    }
    .location-button { width: 42px; height: 42px; min-height: 42px; }
    .desktop-map-actions {
        position: fixed;
        z-index: 680;
        right: 12px;
        bottom: max(18px, env(safe-area-inset-bottom));
        margin: 0;
    }
    .map-chip { position: fixed; left: 12px; bottom: max(18px, env(safe-area-inset-bottom)); height: 46px; min-height: 46px; }
    .beta-chip { position: fixed; left: 12px; bottom: max(68px, calc(env(safe-area-inset-bottom) + 50px)); }
    .map-circle-button { width: 46px; min-height: 46px; color: #fff; border: 0; background: linear-gradient(145deg, var(--ios-indigo), var(--ios-violet)); }
    .filter-circle { position: relative; z-index: 2; display: flex !important; visibility: visible !important; }
    .filter-tray,
    .legend {
        position: fixed;
        z-index: 900;
        top: auto;
        right: 8px;
        bottom: 8px;
        left: 8px;
        width: auto;
        max-height: min(72dvh, 640px);
        padding: 16px;
        border-radius: 27px;
        transform: none;
    }
    .filter-tray::before,
    .legend::before {
        display: block;
        width: 34px;
        height: 5px;
        margin: -7px auto 10px;
        content: "";
        border-radius: 999px;
        background: #b7b3bb;
    }
    .legend .key-heading small { display: none; }
    .filter-control { grid-template-columns: 1fr; }
    .filter-button { min-height: 48px; font-size: 0.82rem; }

    .active-filter {
        right: 10px;
        bottom: max(74px, calc(env(safe-area-inset-bottom) + 67px));
        left: 10px;
        width: auto;
        min-width: 0;
        padding: 10px 11px;
        transform: none;
        border-radius: 18px;
    }
    .active-filter strong { font-size: 0.95rem; }
    .active-filter button { padding-right: 12px; }

    .detail-panel {
        z-index: 850;
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: min(86dvh, 760px);
        max-height: none;
        border-width: 1px 0 0;
        border-radius: 30px 30px 0 0;
    }
    .sheet-handle { display: block; top: 6px; }
    .detail-sheet-title { height: 56px; padding-top: 24px; }
    .detail-close { top: 9px; right: 10px; }
    .detail-scroll { height: calc(100% - 56px); padding: 12px 18px max(28px, env(safe-area-inset-bottom)); }
    .detail-panel h2 { font-size: 1.85rem; }
    .detail-metrics > div, .detail-metrics > div:nth-child(even), .detail-metrics > div:nth-child(3) { min-height: 118px; padding: 14px; }
    .detail-metrics.area-metrics > .metric-card--areas,
    .cell-metrics > div { min-height: 118px !important; }
    .detail-metrics dd { font-size: 1.6rem; }
    .leaflet-bottom.leaflet-right { right: 12px; bottom: 144px; }
    body.has-detail .leaflet-bottom.leaflet-right { right: 12px; }
    .leaflet-control-attribution { display: none; }
    body.has-detail .desktop-map-actions,
    body.has-detail .active-filter,
    body.has-detail .web-map-header,
    body.has-detail .control-panel { visibility: hidden; }

    .scoreboard-dialog,
    .method-dialog {
        width: 100%;
        max-width: none;
        max-height: 88dvh;
        margin: auto 0 0;
        border-radius: 30px 30px 0 0;
    }
    .method-dialog .dialog-topbar { padding: 18px 18px 14px; }
    .method-dialog .dialog-topbar h2 { font-size: 1.52rem; }
    .method-dialog-content { padding: 14px 14px max(20px, env(safe-area-inset-bottom)); }
    .method-explainer-grid { grid-template-columns: 1fr; }
    .method-explainer { padding: 14px; }
    .scoreboard-list { max-height: 56dvh; }
}

@media (max-width: 768px) {
    :root { --site-nav-height: 61px; }
    .nav-links,
    .nav-cta { display: none; }
    .nav-toggle { display: block; }
    .navbar.open .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: flex;
        padding: var(--space-md);
        flex-direction: column;
        gap: var(--space-md);
        border-bottom: var(--border);
        background: var(--color-paper);
    }
    .navbar.open .nav-cta {
        display: block;
        text-align: center;
    }
}

@media (max-width: 380px) {
    .web-map-header { left: 6px; width: calc(100% - 12px); }
    .control-panel { left: 6px; width: calc(100% - 12px); }
    .level-breadcrumb { gap: 1px; }
    .level-breadcrumb button { padding: 0 3px; font-size: 0.52rem; }
    .detail-scroll { padding-right: 13px; padding-left: 13px; }
    .detail-metrics { gap: 7px; }
    .detail-metrics > div, .detail-metrics > div:nth-child(even), .detail-metrics > div:nth-child(3) { min-height: 112px; padding: 12px; }
    .detail-metrics.area-metrics > .metric-card--areas,
    .cell-metrics > div { min-height: 112px !important; }
    .detail-metrics dt { font-size: 0.5rem; }
    .detail-metrics dd { font-size: 1.45rem; }
}

@media (prefers-reduced-motion: reduce) {
    .detail-metrics [role="button"] { transition: none; }
}

/* Keep the standalone map header aligned with the main site's responsive navigation. */
.nav-menu {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 3vw, 3rem);
    margin-left: auto;
}

@media (max-width: 1180px) {
    .nav-menu { gap: clamp(1rem, 2vw, 2rem); }
    .nav-links { gap: clamp(0.85rem, 1.8vw, 1.5rem); }
    .nav-cta { white-space: nowrap; }
}

@media (max-width: 940px) {
    body.nav-open { overflow: hidden; }

    .nav-container {
        min-height: 60px;
        padding: 0.75rem 1rem;
    }

    .nav-toggle {
        position: relative;
        z-index: 2;
        display: flex;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .nav-toggle:focus-visible { outline-offset: 1px; }

    .nav-menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        height: calc(100dvh - var(--site-nav-height));
        max-height: calc(100dvh - var(--site-nav-height));
        margin: 0;
        padding: 0.5rem 1.25rem 1.25rem;
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        border-bottom: var(--border);
        background: var(--color-paper);
        box-shadow: 0 18px 30px rgb(10 10 10 / 0.12);
        overscroll-behavior: contain;
    }

    .navbar.open .nav-menu { display: flex; }

    .nav-menu .nav-links,
    .navbar.open .nav-menu .nav-links {
        position: static;
        display: flex;
        padding: 0;
        flex-direction: column;
        gap: 0;
        border: 0;
        background: transparent;
    }

    .nav-menu .nav-links li { border-bottom: 1px solid #e7e5e4; }

    .nav-menu .nav-links a {
        display: block;
        padding: 0.85rem 0;
        font-size: 0.8rem;
        line-height: 1.35;
    }

    .nav-menu .nav-links a.active {
        color: var(--color-accent);
        font-weight: 600;
    }

    .nav-menu .nav-cta,
    .navbar.open .nav-menu .nav-cta {
        display: block;
        width: 100%;
        padding: 1rem 1.25rem;
        color: var(--color-paper) !important;
        background: var(--color-ink);
        text-align: center;
        white-space: nowrap;
    }

    .navbar.open .hamburger { background: transparent; }
    .navbar.open .hamburger::before { top: 0; transform: rotate(45deg); }
    .navbar.open .hamburger::after { bottom: 0; transform: rotate(-45deg); }

    .hamburger,
    .hamburger::before,
    .hamburger::after {
        transition: transform 0.18s ease, background 0.18s ease;
    }
}
