/* HOME (Marketing) - uses Agency Governance design system */

/* Make homepage hero slightly roomier than standard sections */
body.home-page .gov-section.pt-header {
    padding-top: 128px !important;
    padding-bottom: 72px !important;
}

body.home-page .home-hero__sub {
    max-width: 70ch;
}

body.home-page .gov-narrow {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

body.home-page .home-cta-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

body.home-page .home-microcopy {
    margin-top: 12px;
    text-align: left;
}

/* Slightly tighter “quick links” card grid for home */
body.home-page .home-quick-grid {
    max-width: 900px;
    margin: 0 auto;
}

body.home-page .home-quick-grid .gov-card {
    height: auto;
}

/* Program links under CTA */
body.home-page .home-program-links {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--gov-text-muted);
}

/* CTA spacing: keep the primary button visually separated from the cards above it. */
body.home-page .home-program-cta {
    margin-top: 72px !important;
}

@media (max-width: 640px) {
    body.home-page .home-program-cta {
        margin-top: 48px !important;
    }
}

body.home-page .home-program-link {
    color: var(--gov-text-muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

body.home-page .home-program-link:hover,
body.home-page .home-program-link:focus-visible {
    color: var(--gov-primary);
    border-bottom-color: rgba(5, 150, 105, 0.35);
}

body.home-page .home-program-sep {
    opacity: 0.7;
}

/* Home map legend (specialized map shows baseline + overlays; make it obvious) */
body.home-page .home-map-legend {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    color: var(--gov-text-muted);
    font-size: 14px;
}

body.home-page .home-map-legend__item {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.home-page .home-map-legend__swatch {
    width: 14px;
    height: 14px;
    border-radius: 6px;
    border: 1px solid rgba(15, 23, 42, 0.18);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

body.home-page .home-map-legend__swatch--naic {
    background: #DCFCE7;
    border-color: #16A34A;
}

body.home-page .home-map-legend__swatch--state {
    background: rgba(14, 165, 233, 0.18);
    border-color: #0EA5E9;
}

body.home-page .home-map-legend__swatch--baseline {
    background: #E2E8F0;
    border-color: #CBD5E1;
}
