* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f5f5f2;
    color: #171717;
    font-family:
        Arial,
        Helvetica,
        sans-serif;
}

a {
    color: inherit;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #deded9;
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

.main-nav {
    display: flex;
    gap: 24px;
}

.main-nav a {
    font-size: 14px;
    text-decoration: none;
}

.page-shell {
    max-width: 1180px;
    margin: 30px auto 70px;
    padding: 0 20px;
}

.area-hero,
.panel {
    background: #ffffff;
    border: 1px solid #ddddda;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 18px;
}

.eyebrow,
.small-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #777772;
}

.area-hero h1 {
    margin: 7px 0 10px;
    font-size: 32px;
    line-height: 1.2;
}

.area-hero p,
.body-copy {
    max-width: 820px;
    color: #5f5f5a;
    line-height: 1.55;
}

.primary-action {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    border-radius: 6px;
    background: #171717;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 14px;
    color: #666662;
    font-size: 12px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 17px;
}

.section-heading h2,
.panel h2 {
    margin: 5px 0 0;
    font-size: 21px;
}

.count-pill {
    align-self: flex-start;
    padding: 6px 9px;
    background: #fafaf8;
    border: 1px solid #d8d8d3;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.agency-list {
    border-top: 1px solid #ecece8;
}

.agency-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;

    padding: 18px 20px;
    border-bottom: 1px solid #ecece8;
}

.agency-card h3 {
    margin: 5px 0;
    font-size: 18px;
}

.agency-card h3 a {
    text-decoration: none;
}

.agency-card h3 a:hover {
    text-decoration: underline;
}

.legal-name {
    color: #696965;
    font-size: 12px;
}

.agency-meta {
    margin-top: 8px;
    color: #60605c;
    font-size: 13px;
}

.agency-actions {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 700;
}

.empty-state {
    padding: 20px;
    border: 1px solid #ecece8;
    background: #fafaf8;
}

.data-note {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #ecece8;
    color: #666662;
    font-size: 13px;
    line-height: 1.55;
}

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

.area-card {
    padding: 20px;
    background: #ffffff;
    border: 1px solid #ddddda;
    border-radius: 8px;
}

.area-card h2 {
    margin: 6px 0;
    font-size: 20px;
}

.area-card h2 a {
    text-decoration: none;
}

.area-card h2 a:hover {
    text-decoration: underline;
}

.area-count {
    margin-top: 10px;
    color: #62625e;
    font-size: 13px;
}

.area-link {
    display: inline-block;
    margin-top: 15px;
    font-size: 13px;
    font-weight: 700;
}

.area-evidence-summary {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #ecece8;
}

.agency-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.research-signal {
    display: inline-block;
    padding: 4px 7px;
    border: 1px solid #d8d8d3;
    border-radius: 999px;
    background: #fafaf8;
    color: #62625e;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.capability-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

.capability-preview span {
    padding: 5px 8px;
    border-radius: 5px;
    background: #f5f5f2;
    color: #5f5f5a;
    font-size: 11px;
}

.agency-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 9px;
}

.secondary-agency-action {
    color: #666662;
    font-size: 12px;
    font-weight: 600;
}

.top-capabilities {
    margin: 18px 0 20px;
    padding: 16px;
    border: 1px solid #e1e1dc;
    border-radius: 7px;
    background: #fafaf8;
}

.top-capability-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.top-capability-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 11px;
    background: #ffffff;
    border: 1px solid #ecece8;
    border-radius: 6px;
    font-size: 12px;
}

.top-capability-item span {
    flex: 0 0 auto;
    color: #666662;
}

.nearby-area-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.nearby-area-link {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e1e1dc;
    border-radius: 7px;
    background: #fafaf8;
    text-decoration: none;
}

.nearby-area-link:hover strong {
    text-decoration: underline;
}

.nearby-area-link span {
    flex: 0 0 auto;
    color: #6a6a65;
    font-size: 11px;
}

.area-evidence-breakdown {
    margin-top: 6px;
    color: #777772;
    font-size: 11px;
}


@media (max-width: 720px) {

    .area-grid {
        grid-template-columns: 1fr;
    }

    .agency-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .agency-actions {
        align-items: flex-start;
    }

    .top-capability-grid,
    .nearby-area-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 650px) {

    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .section-heading {
        display: block;
    }

    .count-pill {
        display: inline-block;
        margin-top: 12px;
    }
}

.area-snapshot {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    margin-bottom: 18px;

    background: #ffffff;
    border: 1px solid #ddddda;
    border-radius: 8px;
    overflow: hidden;
}

.snapshot-item {
    padding: 20px;
    border-right: 1px solid #ecece8;
}

.snapshot-item:last-child {
    border-right: 0;
}

.snapshot-number {
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}

.snapshot-label {
    margin-top: 7px;
    color: #666662;
    font-size: 12px;
    line-height: 1.45;
}

.service-category {
    border-top: 1px solid #ecece8;
}

.service-category:last-of-type {
    border-bottom: 1px solid #ecece8;
}

.service-category summary {
    padding: 14px 0;
    font-weight: 700;
    cursor: pointer;
}

.service-list {
    border-top: 1px solid #ecece8;
}

.service-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    padding: 13px 20px;
    border-bottom: 1px solid #ecece8;
}

.service-row:last-child {
    border-bottom: 0;
}

.service-name {
    font-weight: 600;
}

.service-count {
    flex: 0 0 auto;
    color: #60605c;
    font-size: 13px;
}

.faq-list {
    margin-top: 16px;
    border-top: 1px solid #ecece8;
}

.faq-item {
    border-bottom: 1px solid #ecece8;
}

.faq-item summary {
    padding: 15px 0;
    font-weight: 700;
    cursor: pointer;
}

.faq-item p {
    margin: 0;
    padding: 0 20px 14px;
    color: #60605c;
    line-height: 1.55;
}

.text-action {
    display: inline-block;
    margin: 0 20px 16px;
    font-size: 13px;
    font-weight: 700;
}


@media (max-width: 700px) {

    .area-snapshot {
        grid-template-columns: 1fr;
    }

    .snapshot-item {
        border-right: 0;
        border-bottom: 1px solid #ecece8;
    }

    .snapshot-item:last-child {
        border-bottom: 0;
    }

    .service-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 520px) {

    .top-capability-grid,
    .nearby-area-grid {
        grid-template-columns: 1fr;
    }

    .top-capability-item,
    .nearby-area-link {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}
