/* Published county navigation shared by the state landing pages. */
.state-county-navigation {
    /* State templates order their existing flex sections from 1 through 10. */
    order: 11;
    padding: 56px 0 64px;
    border-top: 1px solid #dce7f1;
    background: #f8fbfe;
    color: #234563;
}

.state-county-navigation h2 {
    margin: 0 0 14px;
    color: #0d4f92;
    font-size: clamp(26px, 2.5vw, 36px);
    font-weight: 800;
    line-height: 1.25;
}

.state-county-navigation p {
    margin: 0 0 28px;
    font-size: 17px;
    line-height: 1.65;
}

.state-county-navigation .state-county-navigation__links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.state-county-navigation__links li {
    min-width: 0;
    margin: 0;
    padding: 0;
}

.state-county-navigation .state-county-navigation__links a {
    display: flex;
    align-items: center;
    height: 100%;
    min-height: 54px;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid #cbddec;
    border-radius: 8px;
    background: #fff;
    color: #0d4f92;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: background-color .15s ease, border-color .15s ease;
}

.state-county-navigation .state-county-navigation__links a:hover {
    border-color: #0d4f92;
    background: #eaf4ff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.state-county-navigation .state-county-navigation__links a:focus-visible {
    outline: 3px solid #0d4f92;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .state-county-navigation { padding: 36px 0 40px; }
    .state-county-navigation p { margin-bottom: 22px; font-size: 16px; }
    .state-county-navigation .state-county-navigation__links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .state-county-navigation .state-county-navigation__links a { padding: 12px; font-size: 14px; }
}

@media (max-width: 359px) {
    .state-county-navigation .state-county-navigation__links { grid-template-columns: 1fr; }
}
