* {
    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;
}

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

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

.hero-panel {
    padding: 24px 20px 0;
}

.panel,
.disclaimer-panel {
    padding: 20px;
}

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

.eyebrow {
    margin-bottom: 8px;
}

.hero-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: flex-start;
}

h1 {
    margin: 0;
    font-size: 32px;
    line-height: 1.15;
}

h2 {
    margin: 3px 0 0;
    font-size: 21px;
}

.legal-name,
.location-line {
    margin-top: 7px;
    color: #5f5f5a;
}

.license-box {
    min-width: 190px;
    padding: 12px 14px;
    background: #fafaf8;
    border: 1px solid #e2e2de;
    border-radius: 7px;
}

.license-box strong {
    display: block;
    margin-top: 5px;
}

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

    margin: 24px -20px 0;
    border-top: 1px solid #ecece8;
}

.contact-item {
    min-width: 0;
    padding: 16px 20px;
    border-right: 1px solid #ecece8;
}

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

.contact-item .small-label {
    margin-bottom: 6px;
}

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

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.area-tag {
    display: inline-block;
    border: 1px solid #d3d3ce;
    border-radius: 999px;
    padding: 7px 11px;
    background: #fafaf8;
    font-size: 13px;
    text-decoration: none;
}

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

.note {
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #ecece8;
    color: #696965;
    font-size: 13px;
    line-height: 1.5;
}

.derived-area-section {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #ecece8;
}

.derived-area-section h3 {
    margin: 6px 0 8px;
    font-size: 17px;
}

.derived-area-section p {
    max-width: 820px;
    color: #666662;
    font-size: 13px;
    line-height: 1.5;
}

.derived-area-more {
    margin-bottom: 0;
    font-style: italic;
}

.unknown {
    color: #777772;
    font-style: italic;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding: 12px 14px;
    margin-bottom: 16px;
    background: #fafaf8;
    border: 1px solid #ecece8;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.45;
}

.capability-group {
    border-top: 1px solid #ecece8;
}

.capability-group:last-child {
    border-bottom: 1px solid #ecece8;
}

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

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

.capability-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 12px 20px;
    border-bottom: 1px solid #eeeeeb;
}

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

.capability-name,
.policy-name {
    font-weight: 600;
}

.status-pill {
    flex: 0 0 auto;
    min-width: 105px;
    padding: 5px 8px;
    border: 1px solid #d1d1cc;
    border-radius: 999px;
    font-size: 11px;
    text-align: center;
    font-weight: 700;
}

.status-yes {
    background: #f2f7f2;
}

.status-no {
    background: #faf1f1;
}

.status-unknown {
    background: #f5f5f2;
    color: #6d6d68;
}

.evidence-link {
    margin-top: 5px;
    font-size: 12px;
    color: #62625e;
}

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

.policy-row {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(150px, 260px);

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

.policy-description {
    margin-top: 5px;
    color: #6a6a65;
    font-size: 12px;
    line-height: 1.45;
}

.policy-value {
    text-align: right;
    font-weight: 700;
}

.data-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 1px;
    background: #ecece8;
    border: 1px solid #ecece8;
}

.data-grid > div {
    background: #ffffff;
    padding: 14px 20px;
}

.data-grid .small-label {
    margin-bottom: 5px;
}

.source-link {
    margin-top: 15px;
}

.disclaimer-panel {
    color: #5f5f5a;
    font-size: 13px;
    line-height: 1.55;
}

.disclaimer-panel p:last-child {
    margin-bottom: 0;
}


@media (max-width: 850px) {

    .contact-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .contact-item:nth-child(2) {
        border-right: 0;
    }

    .contact-item:nth-child(-n+2) {
        border-bottom:
            1px solid #ecece8;
    }
}


@media (max-width: 650px) {

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

    .hero-grid {
        display: block;
    }

    .license-box {
        margin-top: 18px;
    }

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

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

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

    .capability-row {
        align-items: flex-start;
    }

    .policy-row {
        grid-template-columns: 1fr;
    }

    .policy-value {
        text-align: left;
    }

    .data-grid {
        grid-template-columns: 1fr;
    }
}
/* Step 47b CTA refinement: prominent, readable primary call action. */
.contact-action-row {
    margin-top: 12px;
}

.public-page .contact-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 48px;
    min-width: 168px;
    padding: 11px 20px;

    border: 1px solid var(--hb-color-action);
    border-radius: 8px;
    background: var(--hb-color-action);
    color: #ffffff;

    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;

    box-shadow: 0 4px 12px rgba(47, 111, 147, 0.22);
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.public-page .contact-action-button:hover {
    border-color: var(--hb-color-action-hover);
    background: var(--hb-color-action-hover);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(47, 111, 147, 0.28);
    transform: translateY(-1px);
}

.public-page .contact-action-button:focus-visible {
    outline: 3px solid rgba(95, 170, 215, 0.38);
    outline-offset: 3px;
}

.public-page .contact-action-button:active {
    transform: translateY(0);
}

.contact-action-icon {
    font-size: 18px;
    line-height: 1;
}

@media (max-width: 650px) {
    .public-page .contact-action-button {
        display: flex;
        width: 100%;
    }
}

/* Step 47o — source-aware public profile facts */
.fact-source-row {
    margin-top: 5px;
}

.fact-source-badge {
    display: inline-block;
    padding: 3px 7px;
    border: 1px solid #d7d7d2;
    border-radius: 999px;
    background: #fafaf8;
    color: #666662;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
}

.fact-source-badge.source-agency {
    background: #f3f7fa;
}

.fact-source-badge.source-public_and_agency {
    background: #f2f7f2;
}

.fact-source-badge.source-conflict {
    background: #faf1f1;
}

.agency-provided-summary {
    max-width: 900px;
    line-height: 1.6;
}

.provided-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 28px;
    margin-top: 18px;
}

.tag-list .fact-source-badge {
    align-self: center;
    margin-right: 6px;
}

@media (max-width: 700px) {
    .provided-contact-grid {
        grid-template-columns: 1fr;
    }
}

.service-area-conflicts {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #ecece8;
}
