:root {
    --site-black: #111111;
    --site-text: #1a1a1a;
    --site-muted: #5c5c5c;
    --site-border: #d9d9d9;
    --site-border-strong: #222222;
    --site-bg: #f7f7f7;
    --site-panel: #ffffff;
    --site-focus: #222222;
    --site-success: #1f1f1f;
    --site-error: #111111;
    --site-max: 960px;
    --site-rule: 1px solid var(--site-border);
    --site-accent: 4px solid var(--site-black);
    --space-xs: 4px;
    --space-s: 8px;
    --space-m: 16px;
    --space-l: 24px;
    --space-xl: 32px;
    --text-small: 0.95rem;
    --text-lead: 1.15rem;
    --text-h3: 1.25rem;
    --text-h2: 1.5rem;
    --text-h1: clamp(2rem, 4vw, 3rem);
}

* {
    box-sizing: border-box;
}

/* Skip-to-content link — visually hidden until focused by keyboard users */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 9999;
    padding: 12px 20px;
    background: #0b0c0c;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.skip-link:focus {
    top: 0;
}

/* Noscript navigation — displayed only when JavaScript is disabled */
.noscript-nav {
    background: #0b0c0c;
    padding: 8px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.noscript-nav a {
    color: #ffffff;
    text-decoration: underline;
    font-size: 14px;
}

[x-cloak] {
    display: none !important;
}

html {
    background: var(--site-bg);
    height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--site-text);
    background: var(--site-bg);
    line-height: 1.55;
}

a {
    color: #1d70b8;
}

a:hover {
    color: #003078;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--site-focus);
    outline-offset: 2px;
}

.site-header {
    flex-shrink: 0;
    background: #ffffff;
    color: var(--site-black);
    border-bottom: var(--site-rule);
}

.site-header__inner,
.site-footer__inner,
.site-main,
.site-breadcrumbs {
    width: min(calc(100% - 32px), var(--site-max));
    margin: 0 auto;
}

.site-header__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
}

.site-header__brand {
    width: 100%;
    text-align: left;
}

.site-brand {
    color: var(--site-black);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.01em;
}

.site-tagline {
    margin: 4px 0 0;
    color: var(--site-muted);
    font-size: 0.95rem;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    justify-content: flex-start;
    /* Keep the full nav (including a wrapped Area summaries control) above page
       content such as map canvases that sit just under the header. */
    position: relative;
    z-index: 1001;
}

.site-nav-toggle {
    display: none;
    align-self: flex-start;
    border: 1px solid var(--site-border-strong);
    background: #ffffff;
    color: var(--site-black);
    padding: 10px 12px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.site-nav a {
    color: var(--site-black);
    text-decoration: none;
    padding: 10px;
    border-bottom: 3px solid transparent;
    font-size: var(--text-small);
    font-weight: 600;
}

.site-nav a:hover {
    text-decoration: underline;
}

.site-nav a.active,
.nav-group:has(.nav-group-items a.active) .nav-group-toggle {
    border-bottom-color: var(--site-black);
}

/* Navigation dropdown groups */
.nav-group {
    position: relative;
    flex: 0 0 auto;
}

.nav-group-toggle {
    color: var(--site-black);
    text-decoration: none;
    padding: 10px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    font: inherit;
    font-size: var(--text-small);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-group-toggle:hover,
.nav-group-toggle[aria-expanded="true"] {
    background: var(--site-bg);
}

.nav-group-toggle::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 4px;
    transition: transform 0.2s;
}

.nav-group-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.nav-group-items {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid var(--site-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    z-index: 1001;
    padding: 8px 0;
}

.nav-group-items a {
    display: block;
    padding: 10px 16px;
    border: none;
    white-space: nowrap;
}

.nav-group-items a:hover,
.nav-group-items a.active {
    background: var(--site-bg);
    border: none;
}

.nav-group-items a.active {
    box-shadow: inset 3px 0 0 var(--site-black);
}

.site-breadcrumbs {
    padding: 16px 0 0;
    font-size: 0.95rem;
    color: var(--site-muted);
}

.site-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-breadcrumbs li + li::before {
    content: "/";
    margin-right: 8px;
}

.site-breadcrumbs a[aria-current="page"] {
    color: inherit;
    text-decoration: none;
}

.site-main {
    flex: 1 0 auto;
    padding: 24px 0 64px;
}

.service-hero {
    padding-bottom: var(--space-l);
    margin-bottom: var(--space-xl);
    border-bottom: var(--site-rule);
}

.service-kicker {
    color: var(--site-muted);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 8px;
}

.service-title {
    margin: 0 0 12px;
    font-size: var(--text-h1);
    line-height: 1.08;
    color: var(--site-black);
    font-weight: 700;
}

.service-lead {
    font-size: var(--text-lead);
    color: var(--site-muted);
    margin: 0;
    text-wrap: pretty;
}

.article-cta.postcode-check--hero {
    max-width: 40rem;
    border: 1px solid var(--site-border);
    background: var(--site-panel);
}

.home-strengths {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: 0.95rem;
    font-weight: 600;
}

.home-strengths li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-strengths li::before {
    content: "";
    width: 5px;
    height: 10px;
    margin: -3px 0 0 3px;
    border: solid var(--site-black);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

@media (max-width: 700px) {
    .article-cta.postcode-check--hero {
        border: 0;
        padding: 0;
        background: none;
    }

    .home-strengths {
        flex-direction: column;
    }
}

.why-report {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.why-report li {
    padding-top: 12px;
    border-top: 1px solid var(--site-border);
}

.why-report strong {
    display: block;
    margin-bottom: 4px;
}

@media (max-width: 700px) {
    .why-report {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.home-support {
    margin: 14px 0 0;
    max-width: 46rem;
    font-size: 1.05rem;
    color: var(--site-text);
    line-height: 1.5;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.home-product {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    margin-top: 16px;
}

.home-product__media {
    flex: 0 0 230px;
}

.home-product__media img {
    width: 100%;
    height: auto;
    border: 1px solid #d9d9d9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Cover page peeking out behind the map page so the map reads as part of a report */
.report-stack {
    position: relative;
    display: block;
    padding: 16px 16px 0 0;
}

.report-stack__back {
    position: absolute;
    top: 0;
    right: 0;
    width: calc(100% - 16px);
}

.report-stack__front {
    position: relative;
    display: block;
    width: calc(100% - 16px);
}

.home-product__body {
    flex: 1;
    min-width: 240px;
}

.home-product__body p {
    margin: 0 0 12px;
    line-height: 1.55;
}

.home-product__price {
    color: var(--site-muted);
}

@media (max-width: 640px) {
    .home-product {
        flex-direction: column;
    }

    .home-product__media {
        flex-basis: auto;
        max-width: 220px;
    }
}

.article-cta {
    border: var(--site-rule);
    border-left: var(--site-accent);
    background: var(--site-panel);
    padding: var(--space-l);
}

.article-cta__title {
    margin: 0 0 var(--space-s);
    font-size: var(--text-lead);
    font-weight: 700;
}

.article-cta__copy {
    margin: 0 0 16px;
    line-height: 1.55;
    max-width: 46rem;
}

.postcode-check {
    margin-top: 24px;
}

#postcode-check-status {
    margin-top: 16px;
}

.postcode-check__links a {
    display: block;
    padding: 12px 0;
}

.article-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.faq-item {
    border: 1px solid #d9d9d9;
    background: #ffffff;
    margin-top: 10px;
}

.faq-item summary {
    cursor: pointer;
    padding: 14px 16px;
    font-weight: 700;
    list-style-position: inside;
}

.faq-item summary:hover {
    background: #f7f7f7;
}

.faq-item[open] summary {
    border-bottom: 1px solid #ececec;
}

.faq-item__body {
    padding: 14px 16px;
    line-height: 1.55;
    max-width: 52rem;
}

.trust-list,
.content-list {
    margin: 16px 0 0;
    padding-left: 20px;
}

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

.summary-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.summary-card {
    background: #ffffff;
    border: 1px solid var(--site-border);
    padding: 20px;
}

.summary-card__label {
    color: var(--site-muted);
    font-size: 0.95rem;
    margin: 0 0 6px;
}

.summary-card__value {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--site-black);
}

.section-title {
    margin: 0 0 12px;
    font-size: var(--text-h2);
    color: var(--site-black);
}

.section-body {
    margin-bottom: var(--space-xl);
}

/* About page: supplementary note beneath the stat cards. */
.coverage-note {
    margin-top: 16px;
    font-size: 1rem;
    color: var(--site-muted);
}

.area-list {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.area-list__item {
    margin: 0;
    padding: 16px 18px;
    border: 1px solid var(--site-border);
    background: #ffffff;
}

.area-list__link {
    font-weight: 700;
    color: var(--site-black);
    text-decoration: none;
}

.area-list__link:hover,
.area-list__link:focus-visible {
    text-decoration: underline;
}

.area-list__force {
    margin: 6px 0 0;
    color: var(--site-text);
    font-size: 0.95rem;
    font-weight: 600;
}

.area-list__covers {
    margin: 8px 0 0;
    color: var(--site-muted);
    font-size: 0.98rem;
    line-height: 1.45;
}

/* Postcode-district index: dense grids of short codes grouped by area */
.district-find {
    margin: 20px 0 0;
}

.district-find__row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.district-find__row .article-search__input {
    flex: 1 1 16rem;
}

.district-find__row .button {
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.district-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 24px 0 8px;
}

.district-jump a {
    font-weight: 700;
}

.district-group__title {
    margin: 28px 0 8px;
    font-size: 1.1rem;
    scroll-margin-top: 16px;
}

.district-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 8px;
}

.district-list--names {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.district-list__item {
    margin: 0;
}

.district-list__item a {
    display: block;
    padding: 8px 4px;
    text-align: center;
    font-weight: 700;
    color: var(--site-black);
    text-decoration: none;
    border: 1px solid var(--site-border);
    background: #ffffff;
}

.district-list__item a:hover,
.district-list__item a:focus-visible {
    text-decoration: underline;
}

.area-subtitle {
    margin: var(--space-xl) 0 12px;
    font-size: var(--text-h3);
    color: var(--site-black);
}

.district-chart {
    display: flex;
    align-items: stretch;
    gap: 6px;
    height: 160px;
    margin: 8px 0 24px;
}

.district-chart__col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.district-chart__track {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.district-chart__bar {
    width: 100%;
    max-width: 28px;
    min-height: 2px;
    background: var(--site-black);
}

.district-chart__bar--unpublished {
    height: 100%;
    box-sizing: border-box;
    border: 1px dashed var(--site-muted);
    background: repeating-linear-gradient(135deg, transparent 0 5px, var(--site-muted) 5px 6px);
}

.district-chart__label {
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--site-muted);
}

.district-chart--values {
    --peak-line: 16px;
    --month-label-row: 25px;
    height: 190px;
    background:
        linear-gradient(var(--site-border), var(--site-border)) 0 var(--peak-line) / 100% 1px no-repeat,
        linear-gradient(var(--site-border-strong), var(--site-border-strong)) 0 calc(100% - var(--month-label-row)) / 100% 1px no-repeat;
}

.district-chart--values .district-chart__track {
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: var(--peak-line) 0 1px;
}

.district-chart__bar--partial {
    background: repeating-linear-gradient(135deg, var(--site-black) 0 4px, #8a8a8a 4px 7px);
}

.district-chart__value {
    font-size: 0.7rem;
    line-height: 14px;
    color: var(--site-text);
    white-space: nowrap;
}

.district-chart__axis {
    flex: 0 0 auto;
    min-width: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    padding: calc(var(--peak-line) - 7px) 0 calc(var(--month-label-row) - 7px);
    font-size: 0.7rem;
    line-height: 14px;
    color: var(--site-muted);
}

.district-chart__axis span {
    padding-left: 2px;
    background: var(--site-bg);
}

.district-map svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Under the map, not over it, so it never hides a hexagon. */
.district-map__credit {
    display: block;
    margin-top: 2px;
    text-align: right;
    font-size: 0.6875rem;
    line-height: 1.3;
}

.share-bars {
    list-style: none;
    margin: var(--space-m) 0 0;
    padding: 0;
    display: grid;
    gap: 14px;
    max-width: 40rem;
}

.share-bars__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-weight: 600;
}

.share-bars__track {
    position: relative;
    height: 10px;
    margin-top: 6px;
    background: var(--site-border);
}

.share-bars__fill {
    display: block;
    height: 100%;
    background: #1d70b8;
}

.share-bars__marker {
    position: absolute;
    top: -4px;
    bottom: -4px;
    width: 3px;
    margin-left: -1px;
    background: var(--site-black);
}

.share-bars__meta {
    margin: 6px 0 0;
    font-size: var(--text-small);
    color: var(--site-muted);
}

.table-wrap {
    overflow-x: auto;
}

.area-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.area-table th,
.area-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--site-border);
    vertical-align: top;
}

.area-table th {
    color: var(--site-muted);
    font-weight: 600;
}

@media (max-width: 640px) {
    .area-table--compact th,
    .area-table--compact td {
        padding: 8px 4px;
        font-size: 0.875rem;
    }
}

.summary-card__value--text {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Articles list */
.article-search__label {
    display: block;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--site-black);
}

.article-search__input {
    width: 100%;
    max-width: 32rem;
    padding: 12px 14px;
    border: 2px solid var(--site-black);
    background: #ffffff;
    color: var(--site-black);
    font: inherit;
}

.article-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.article-list__item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 24px;
    border-top: 1px solid var(--site-border);
    padding: 16px 0;
}

.article-list__item[hidden],
.article-list__item.is-hidden {
    display: none !important;
}

.article-list__item:last-child {
    border-bottom: 1px solid var(--site-border);
}

.article-list__title {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--site-black);
    text-decoration: none;
}

.article-list__title:hover {
    color: #003078;
    text-decoration: underline;
}

.article-list__date {
    color: var(--site-muted);
    font-size: 0.95rem;
    white-space: nowrap;
}

.article-list__empty {
    margin: 0;
    color: var(--site-muted);
}

.article-body > :first-child {
    margin-top: 0;
}

.article-body > :last-child {
    margin-bottom: 0;
}

.article-body h2 {
    margin: var(--space-xl) 0 12px;
    font-size: var(--text-h2);
    color: var(--site-black);
}

.article-body p,
.article-body ul,
.article-body ol {
    margin: 0 0 16px;
}

.article-body ul,
.article-body ol {
    padding-left: 20px;
}

.article-body blockquote {
    margin: 16px 0;
    padding: 0 0 0 16px;
    border-left: var(--site-accent);
    color: var(--site-muted);
    font-style: italic;
}

.article-body blockquote p {
    margin: 0;
}

.article-body blockquote p + p {
    margin-top: 12px;
}

.article-body blockquote p:first-child::before {
    content: "\201C";
}

.article-body blockquote p:last-child::after {
    content: "\201D";
}

.article-body img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
    margin: 20px 0 8px;
    border: 1px solid var(--site-border);
    background: #ffffff;
}

.article-body p:has(> img) {
    margin: 20px 0 8px;
    max-width: 100%;
}

.article-body p:has(> em:only-child) {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--site-muted);
    font-size: 0.95rem;
}

.article-chooser {
    margin: 0 0 24px;
    border-top: 1px solid var(--site-border);
}

.article-chooser__item {
    padding: 16px 0;
    border-bottom: 1px solid var(--site-border);
}

.article-chooser__question {
    margin: 0 0 6px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--site-black);
}

.article-chooser__answer {
    margin: 0;
    color: var(--site-text);
}

.article-body table {
    width: 100%;
    margin: 0 0 24px;
    border-collapse: collapse;
    background: #ffffff;
}

.article-body th,
.article-body td {
    padding: 12px 14px;
    border-top: 1px solid var(--site-border);
    text-align: left;
    vertical-align: top;
}

.article-body thead th {
    border-top: 0;
    border-bottom: 2px solid var(--site-border-strong);
    font-weight: 700;
}

.article-body tbody tr:last-child td {
    border-bottom: 1px solid var(--site-border);
}

/* Public forms (help / feedback) */
.site-form {
    margin: 0;
    max-width: 640px;
}

.site-form__field {
    margin: 0 0 18px;
}

.site-form__label {
    display: block;
    margin: 0 0 6px;
    font-weight: 700;
    color: var(--site-black);
}

.site-form__hint {
    margin: 4px 0 0;
    color: var(--site-muted);
    font-size: 0.95rem;
}

.site-form__error {
    margin: 6px 0 0;
    color: var(--site-black);
    font-weight: 700;
}

.site-form__input,
.site-form__select,
.site-form__textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--site-black);
    background: #ffffff;
    color: var(--site-text);
    font: inherit;
}

.site-form__textarea {
    min-height: 160px;
    resize: vertical;
}

.site-form__input:focus,
.site-form__select:focus,
.site-form__textarea:focus {
    outline: 3px solid var(--site-focus);
    outline-offset: 0;
}

.site-form__field--error .site-form__input,
.site-form__field--error .site-form__select,
.site-form__field--error .site-form__textarea {
    border-color: #942514;
}

.site-form__honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.site-form__actions {
    margin-top: 24px;
}

.site-form button.button {
    cursor: pointer;
    font: inherit;
}

/* Description list — gov.uk-style bordered key/value list */
.description-list {
    margin: 0;
    padding: 0;
}

.description-list__item {
    border-top: 1px solid var(--site-border);
    padding: 16px 0;
}

.description-list__item:last-child {
    border-bottom: 1px solid var(--site-border);
}

.description-list__item dt {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--site-black);
    margin: 0 0 4px;
}

.description-list__item dd {
    margin: 0;
    color: var(--site-text);
}

.description-list__item dd + dd {
    margin-top: 8px;
}

.button,
.button-secondary {
    display: inline-block;
    padding: 12px 18px;
    border: 2px solid var(--site-black);
    background: var(--site-black);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
}

.button:hover,
.button-secondary:hover {
    background: #333333;
    border-color: #333333;
    color: #ffffff;
}

.button-secondary {
    background: #ffffff;
    color: var(--site-black);
}

.button[hidden],
.button-secondary[hidden] {
    display: none;
}

.inset-text {
    border-left: var(--site-accent);
    background: #ffffff;
    padding: 16px;
    margin: 20px 0;
}

.notice,
.flash-success,
.flash-error {
    padding: 16px;
    margin-bottom: 16px;
    border-left: var(--site-accent);
    background: #ffffff;
}

.site-footer {
    flex-shrink: 0;
    margin-top: auto;
    border-top: 1px solid var(--site-border);
    background: #ffffff;
}

.site-footer__inner {
    padding: 24px 0 40px;
    color: var(--site-muted);
    font-size: 0.95rem;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}

.site-footer__links a {
    color: var(--site-black);
}

@media (max-width: 900px) {
    .summary-grid,
    .summary-grid--three,
    .area-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .summary-grid,
    .summary-grid--three,
    .area-list {
        grid-template-columns: 1fr;
    }

    .article-cta {
        padding: var(--space-m);
    }

    .site-header__inner {
        align-items: stretch;
    }

    .site-nav-toggle {
        display: none;
        justify-content: center;
        width: fit-content;
    }

    .js-enabled .site-nav {
        display: none;
    }

    .js-enabled .site-nav.is-open {
        display: flex;
    }

    .js-enabled .site-nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        flex-direction: column;
    }

    .site-nav a.active,
    .nav-group:has(.nav-group-items a.active) .nav-group-toggle {
        border-bottom-color: transparent;
        box-shadow: inset 3px 0 0 var(--site-black);
    }

    .nav-group-items {
        position: static;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--site-border);
        margin-left: 12px;
        padding: 4px 0;
    }

    .nav-group-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .nav-group-items a {
        padding: 8px 16px;
    }
}

@media (max-width: 700px) {
    .summary-grid.summary-grid--compact {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--space-s);
    }

    .summary-grid--compact .summary-card {
        padding: 10px;
    }

    .summary-grid--compact .summary-card__label {
        font-size: 0.8rem;
    }

    .summary-grid--compact .summary-card__value {
        font-size: 1.25rem;
    }

    .district-chart--values {
        gap: 2px;
    }

    .district-chart--values .district-chart__value {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .district-chart--values .district-chart__col:not(.district-chart__col--phone-label) .district-chart__label {
        visibility: hidden;
    }
}

@media (max-width: 340px) {
    .district-chart--values .district-chart__value {
        font-size: 0.55rem;
    }
}

:root {
    --cm-brand: #111111;
    --cm-brand-dark: #111111;
    --cm-brand-bg: rgba(17, 17, 17, 0.08);
    --cm-text: #111111;
    --cm-text-secondary: #5c5c5c;
    --cm-text-muted: #777777;
    --cm-border: #bfbfbf;
    --cm-border-light: #dddddd;
    --cm-surface: #ffffff;
    --cm-surface-soft: #f7f7f7;
    --cm-success-bg: #f0f0f0;
    --cm-success-text: #111111;
    --cm-error-bg: #f3f3f3;
    --cm-error-text: #111111;
    --cm-warning-bg: #f3f3f3;
    --cm-warning-text: #111111;
    --cm-info-bg: #f3f3f3;
    --cm-info-text: #111111;
    --cm-space-1: 4px;
    --cm-space-2: 8px;
    --cm-space-3: 12px;
    --cm-space-4: 16px;
    --cm-space-5: 20px;
    --cm-space-6: 24px;
    --cm-space-8: 32px;
    --cm-radius: 0;
    --cm-shadow: none;
    --cm-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.cm-page {
    max-width: 960px;
    margin: 0 auto;
    font-family: var(--cm-font);
}

/* Form components */

.cm-form-field {
    margin-bottom: var(--cm-space-5);
}

.cm-form-label {
    display: block;
    margin-bottom: var(--cm-space-2);
    font-weight: 700;
    color: var(--cm-text);
}

.cm-input {
    width: 100%;
    padding: 12px;
    font: inherit;
    border: 2px solid var(--cm-border);
    background: #fff;
    color: var(--cm-text);
}

.cm-input:focus {
    border-color: var(--cm-brand-dark);
    box-shadow: 0 0 0 3px var(--cm-brand-bg);
    outline: none;
}

.cm-form-field.has-error .cm-input {
    border-color: var(--cm-error-text);
}

.cm-error {
    margin-top: var(--cm-space-2);
    color: var(--cm-error-text);
    font-weight: 700;
}

.cm-help-text {
    font-size: 0.875rem;
    color: #505a5f;
    margin-top: 4px;
}

/* Buttons */

.cm-btn {
    display: inline-block;
    padding: 12px 18px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--cm-brand);
    background: #fff;
    color: var(--cm-brand-dark);
    cursor: pointer;
}

.cm-btn:hover {
    background: #f2f2f2;
}

.cm-btn-primary {
    background: var(--cm-brand);
    color: #fff;
}

.cm-btn-primary:hover {
    background: #333333;
    border-color: #333333;
}

.cm-btn-block {
    width: 100%;
    text-align: center;
}

/* Badges */

.cm-badge {
    display: inline-block;
    padding: 6px 10px;
    font-size: 0.95rem;
    font-weight: 700;
    background: #f2f2f2;
    color: #111111;
}

.cm-badge-success {
    background: #e8f5ef;
    color: #003d1f;
}

.cm-badge-info {
    background: #dce9f8;
    color: #00205f;
}

.cm-badge-warning {
    background: #fef4e6;
    color: #6b3a00;
}

.cm-badge-error {
    background: #faeaea;
    color: #6b0000;
}

/* Alert */

.cm-alert {
    padding: 14px 16px;
    border-left: 4px solid #111111;
    background: #fff;
}

/* Table */

.cm-table {
    width: 100%;
    border-collapse: collapse;
}

.cm-table th,
.cm-table td {
    padding: 12px;
    border-bottom: 1px solid var(--cm-border-light);
    text-align: left;
    vertical-align: top;
}

.cm-table th {
    font-weight: 700;
}

.cm-table-link {
    color: var(--cm-brand);
    font-weight: 700;
}

/* Utility */

.cm-text-muted {
    color: var(--cm-text-secondary);
}

.cm-text-sm {
    font-size: 0.95rem;
}

.cm-mt-4 {
    margin-top: var(--cm-space-4);
}

@media (max-width: 860px) {
    .cm-table,
    .cm-table tbody,
    .cm-table tr,
    .cm-table td,
    .cm-table th,
    .cm-table thead {
        display: block;
    }

    .cm-table thead {
        display: none;
    }
}

.reports-page,
.reports-landing {
    max-width: 960px;
    margin: 0 auto;
}

.reports-messages {
    margin-bottom: 20px;
}

.reports-lead-list {
    margin: 12px 0 0;
    padding-left: 20px;
}

.reports-hero {
    padding-bottom: 24px;
    margin-bottom: 32px;
    border-bottom: var(--site-rule);
}

.service-lead--short {
    display: none;
}

.order-form-reassure {
    margin: 0 0 14px;
    font-size: 0.95rem;
    color: #333333;
}

.order-form-legal {
    margin-top: 16px;
}

.reports-return-actions {
    flex-shrink: 0;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.reports-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.tier-fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.tier-fieldset legend {
    padding: 0;
}

.order-error-summary {
    border-left-color: #b10e1e;
    margin-top: 0;
}

.order-error-summary__title {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.order-error-summary__list {
    margin: 0 0 8px;
    padding-left: 20px;
}

.order-error-summary__list a {
    color: #b10e1e;
}

.reports-upsell {
    margin-top: 20px;
}

/* Tier selection — order form */
.tier-choices {
    margin-bottom: 20px;
}

.tier-choice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-top: 1px solid #d9d9d9;
    padding: 16px 0;
    cursor: pointer;
}

.tier-choice:last-child {
    border-bottom: 1px solid #d9d9d9;
}

.tier-choice:has(input:checked) {
    border-left: 4px solid #111111;
    padding-left: 12px;
}

.tier-choice input[type="radio"] {
    margin-top: 4px;
    flex-shrink: 0;
}

.tier-choice__content {
    flex: 1;
}

.tier-choice__row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.tier-choice__name {
    font-weight: 700;
    flex: 1;
}

.tier-choice__price {
    font-weight: 700;
    font-size: 1.1rem;
}

.tier-choice__per {
    font-size: 0.9rem;
    font-weight: 400;
    margin-left: 1px;
}

.tier-choice__features {
    margin: 4px 0 0;
    font-size: 0.95rem;
    color: #5c5c5c;
}

/* Collapsible discount code field */
.discount-disclosure {
    margin-top: 4px;
}

.discount-disclosure__summary {
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0b63ce;
    text-decoration: underline;
    margin-bottom: 10px;
}

/* Search form spacing */
.reports-search-form {
    margin-bottom: 24px;
}

.reports-reference-input {
    text-transform: uppercase;
}

.reports-inline-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Status page */
.reports-status-meta {
    margin-top: 20px;
}

.reports-reference-block {
    border-left: var(--site-accent);
    background: #f7f7f7;
    padding: 18px;
    margin-bottom: 20px;
}

.reports-reference-label {
    margin: 0 0 8px;
    font-weight: 700;
    color: #5c5c5c;
}

.reports-reference-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.reports-reference-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.reports-status-box .cm-table td,
.reports-status-box .cm-table th {
    overflow-wrap: anywhere;
}

.reports-error {
    color: var(--cm-error-text);
    font-weight: 700;
}

.reports-support-note {
    margin-top: 16px;
    color: var(--cm-text-secondary);
}

/* Featured map page */
.report-map-feature {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #d9d9d9;
    background: #fafafa;
}

.report-map-feature__media {
    flex: 0 0 250px;
    display: block;
}

.report-map-feature__media img {
    width: 100%;
    height: auto;
    border: 1px solid #d9d9d9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Cover page peeking out behind the map page so the map reads as part of a report */
.report-stack {
    position: relative;
    display: block;
    padding: 16px 16px 0 0;
}

.report-stack__back {
    position: absolute;
    top: 0;
    right: 0;
    width: calc(100% - 16px);
}

.report-stack__front {
    position: relative;
    display: block;
    width: calc(100% - 16px);
}

.report-map-feature__body {
    flex: 1;
    min-width: 240px;
}

.report-map-feature__body h3 {
    margin: 0 0 10px;
}

.report-map-feature__body p {
    margin: 0 0 12px;
    line-height: 1.55;
}

@media (max-width: 700px) {
    .report-map-feature {
        flex-direction: column;
    }

    .report-map-feature__media {
        flex-basis: auto;
        max-width: 220px;
    }

    .reports-landing__hero {
        padding-bottom: 12px;
        margin-bottom: 12px;
    }

    .reports-landing__teaser {
        margin-bottom: 16px;
        padding: 16px 16px;
    }

    .service-lead--long,
    .reports-actions--desktop {
        display: none;
    }

    .service-lead--short {
        display: block;
        margin: 0;
    }

    .reports-landing .service-title {
        font-size: 1.55rem;
        margin-bottom: 6px;
    }

    .price-card--pack {
        display: none;
    }

    .reports-page .cm-input {
        font-size: 16px;
        min-height: 44px;
        box-sizing: border-box;
    }

    .reports-page .cm-btn-block {
        min-height: 48px;
    }

    .reports-page .order-form-reassure {
        margin-top: 8px;
    }
}

/* Sample report thumbnails */
.sample-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 320px));
    gap: 24px;
    margin: 16px 0 8px;
}

.sample-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 200px));
    gap: 16px;
}

.sample-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.sample-card__image {
    width: 100%;
    height: auto;
    border: 1px solid #d9d9d9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.15s ease;
}

.sample-card:hover .sample-card__image {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}

.sample-card__label {
    display: block;
    margin-top: 10px;
    font-weight: 700;
    color: #0b63ce;
    text-decoration: underline;
}

.sample-card__note {
    display: block;
    margin-top: 2px;
    font-size: 0.92rem;
    color: #5c5c5c;
}

/* Pricing cards */
.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin: 16px 0 20px;
    align-items: stretch;
}

@media (min-width: 900px) {
    .price-grid--four {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.price-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #d9d9d9;
    padding: 20px;
    background: #ffffff;
}

.price-card--featured {
    border: 2px solid #111111;
}

.price-card__badge {
    margin: 0 0 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #ffffff;
    background: #111111;
    padding: 4px 8px;
    align-self: flex-start;
}

.price-card__name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.price-card__price {
    margin: 4px 0 10px;
    font-size: 1.7rem;
    font-weight: 800;
}

.price-grid--plans .price-card__price {
    font-size: 1.35rem;
}

.price-card__copy {
    margin: 0 0 16px;
    font-size: 0.95rem;
    color: #444444;
    flex-grow: 1;
}

@media (max-width: 860px) {
    .reports-reference-code {
        font-size: 1.05rem;
    }
}
