/*
Theme Name: Harm Reduction Finder
Theme URI: https://harmreductionfinder.com
Description: Standalone theme for the Harm Reduction subdomain - a separate site focused on harm reduction resources and agencies.
Version: 2.0.0
Author: Waypoint Harm Reduction
Author URI: https://waypointharmreduction.org
Text Domain: hr-finder
*/

/* ===========================
   CSS VARIABLES
   =========================== */
:root {
    /* Accent — reserved for urgent/highlight moments only (was the primary color everywhere) */
    --hr-primary: #1C5A96;
    --hr-primary-dark: #14406B;
    --hr-primary-light: #E8ECF0;
    --hr-charcoal: #1F2933;
    /* Action — the single color for every primary call-to-action (call, get naloxone, search) */
    --hr-success: var(--hr-primary);
    --hr-success-dark: var(--hr-primary-dark);
    --hr-success-light: var(--hr-primary-light);
    --hr-danger: #dc2626;
    --hr-white: #ffffff;
    --hr-canvas: #EEF1F4;
    --hr-gray-50: #f9fafb;
    --hr-gray-100: #f3f4f6;
    --hr-gray-200: #e5e7eb;
    --hr-gray-300: #d1d5db;
    --hr-gray-500: #6b7280;
    --hr-gray-600: #4b5563;
    --hr-gray-700: #374151;
    --hr-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --hr-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --hr-shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.1);
    --hr-shadow-xl: 0 20px 40px -5px rgba(0,0,0,0.15);
    --hr-radius-sm: 8px;
    --hr-radius: 12px;
    --hr-radius-lg: 16px;
    --hr-radius-xl: 20px;
    --hr-radius-full: 50px;
    --hr-transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

/* ===========================
   RESET & BASE STYLES
   =========================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--hr-canvas);
    color: var(--hr-charcoal);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--hr-primary);
    text-decoration: none;
    transition: var(--hr-transition);
}

a:hover {
    color: var(--hr-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ===========================
   CONTAINER
   =========================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 640px) {
    .container {
        padding: 0 24px;
    }
}

/* Small phones: reclaim horizontal space and shrink body copy slightly
   so paragraphs fit more words per line instead of wrapping narrow. This
   is intentionally global -- it only touches inherited text sizing and
   the shared container gutter, not rem-sized nav/button/heading chrome. */
@media (max-width: 480px) {
    body {
        font-size: 0.95rem;
    }

    .container {
        padding: 0 12px;
    }
}

/* ===========================
   CRISIS BANNER
   =========================== */
.crisis-banner {
    background: linear-gradient(90deg, var(--hr-danger) 0%, #b91c1c 100%);
    color: var(--hr-white);
    padding: 10px 16px;
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.4;
}

.crisis-banner strong {
    display: block;
    margin-bottom: 4px;
}

.crisis-banner a {
    color: var(--hr-white);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (min-width: 640px) {
    .crisis-banner {
        padding: 12px 20px;
        font-size: 0.9375rem;
    }

    .crisis-banner strong {
        display: inline;
        margin-right: 8px;
        margin-bottom: 0;
    }
}

/* ===========================
   HEADER
   =========================== */
.site-header {
    background: var(--hr-charcoal);
    padding: 10px 12px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--hr-shadow-lg);
}

@media (min-width: 480px) {
    .site-header {
        padding: 12px 16px;
    }
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

@media (min-width: 480px) {
    .header-container {
        gap: 16px;
    }
}

.site-logo {
    flex: 1;
    min-width: 0; /* Allow shrinking below content size */
}

.site-logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.site-logo h1 {
    color: var(--hr-white);
    font-size: clamp(0.75rem, 3.5vw, 1rem);
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.site-logo h1 span {
    color: var(--hr-primary);
}

/* Very small screens - stack logo text */
@media (max-width: 359px) {
    .site-logo h1 {
        font-size: 0.6875rem;
    }
}

@media (min-width: 480px) {
    .site-logo h1 {
        font-size: 1rem;
    }
}

@media (min-width: 640px) {
    .site-logo h1 {
        font-size: 1.25rem;
    }
}

/* Desktop Navigation */
.header-nav {
    display: none;
}

.header-nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
}

.header-nav a {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 8px 0;
    position: relative;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--hr-primary);
    transition: width 0.3s;
}

.header-nav a:hover {
    color: var(--hr-white);
}

.header-nav a:hover::after {
    width: 100%;
}

/* Header CTA */
.header-cta {
    display: none;
}

.header-cta .btn-primary {
    background: var(--hr-success);
    color: var(--hr-white);
    padding: 10px 20px;
    border-radius: var(--hr-radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    transition: var(--hr-transition);
}

.header-cta .btn-primary:hover {
    background: var(--hr-success-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(28,90,150,0.35);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px; /* Prevent shrinking */
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: var(--hr-radius-sm);
    color: var(--hr-white);
    font-size: 1.25rem;
    transition: var(--hr-transition);
}

.mobile-menu-toggle:hover {
    background: rgba(255,255,255,0.2);
}

@media (min-width: 480px) {
    .mobile-menu-toggle {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 1.5rem;
    }
}

/* Mobile Navigation Menu */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hr-charcoal);
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-header h2 {
    color: var(--hr-white);
    font-size: 1.25rem;
}

.mobile-nav-header h2 span {
    color: var(--hr-primary);
}

.mobile-nav-close {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: var(--hr-radius-sm);
    color: var(--hr-white);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    margin-bottom: 8px;
}

.mobile-nav a {
    display: block;
    color: var(--hr-white);
    font-size: 1.125rem;
    font-weight: 500;
    padding: 16px 20px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--hr-radius);
    transition: var(--hr-transition);
}

.mobile-nav a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--hr-primary);
}

.mobile-nav-cta {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-cta a {
    display: block;
    background: var(--hr-success);
    color: var(--hr-white);
    text-align: center;
    padding: 16px;
    border-radius: var(--hr-radius-full);
    font-weight: 600;
    font-size: 1rem;
}

.mobile-nav-crisis {
    margin-top: 30px;
    padding: 20px;
    background: rgba(220, 38, 38, 0.2);
    border-radius: var(--hr-radius);
    text-align: center;
}

.mobile-nav-crisis h4 {
    color: var(--hr-white);
    margin-bottom: 12px;
    font-size: 0.875rem;
}

.mobile-nav-crisis a {
    display: inline-block;
    background: var(--hr-danger);
    color: var(--hr-white);
    padding: 12px 24px;
    border-radius: var(--hr-radius-full);
    font-weight: 600;
}

@media (min-width: 900px) {
    .site-header {
        padding: 15px 24px;
    }

    .header-nav {
        display: block;
    }

    .header-cta {
        display: block;
    }

    .mobile-menu-toggle {
        display: none;
    }
}

/* ===========================
   NEVER USE ALONE BANNER
   =========================== */
.never-use-alone-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 16px;
}

.nua-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nua-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 20px;
    border-radius: var(--hr-radius-lg);
    background: rgba(255,255,255,0.05);
}

.nua-box-call {
    border-left: none;
    border-top: 4px solid var(--hr-primary);
}

.nua-box-naloxone {
    border-top: 4px solid var(--hr-success);
    background: rgba(28, 90, 150, 0.1);
}

.nua-icon {
    font-size: 2rem;
}

.nua-text {
    flex: 1;
}

.nua-text strong {
    color: var(--hr-white);
    font-size: 1rem;
    display: block;
    margin-bottom: 6px;
}

.nua-text p {
    color: rgba(255,255,255,0.85);
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.nua-phone,
.nua-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: var(--hr-radius-full);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--hr-transition);
    width: 100%;
}

.nua-phone {
    background: var(--hr-success);
    color: var(--hr-white);
}

.nua-phone:hover {
    background: var(--hr-success-dark);
    color: var(--hr-white);
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(28,90,150,0.35);
}

.nua-btn-naloxone {
    background: var(--hr-success);
    color: var(--hr-white);
}

.nua-btn-naloxone:hover {
    background: var(--hr-success-dark);
    transform: scale(1.02);
}

@media (min-width: 640px) {
    .nua-wrapper {
        padding: 0 8px;
    }

    .nua-box {
        flex-direction: row;
        text-align: left;
        padding: 24px;
        border-top: none;
        border-left: 4px solid var(--hr-primary);
    }

    .nua-box-naloxone {
        border-left: 4px solid var(--hr-success);
    }

    .nua-phone,
    .nua-btn {
        width: auto;
    }
}

@media (min-width: 900px) {
    .nua-wrapper {
        flex-direction: row;
    }

    .nua-wrapper.nua-two-column .nua-box {
        flex: 1;
    }
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--hr-radius-full);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: var(--hr-transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    line-height: 1.4;
}

.btn-primary {
    background: var(--hr-success);
    color: var(--hr-white);
    border-color: var(--hr-success);
}

.btn-primary:hover {
    background: var(--hr-success-dark);
    border-color: var(--hr-success-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(28,90,150,0.3);
    color: var(--hr-white);
}

.btn-secondary {
    background: var(--hr-white);
    color: var(--hr-charcoal);
    border-color: var(--hr-charcoal);
}

.btn-secondary:hover {
    background: var(--hr-charcoal);
    color: var(--hr-white);
}

/* White outline "ghost" button for use on a colored section (e.g. the berry
   CTA gradient) — transparent fill so the section's own color shows through,
   instead of inheriting .btn-secondary's solid white fill. */
.cta-ghost-btn {
    background: transparent;
    border-color: var(--hr-white);
    color: var(--hr-white);
}

.cta-ghost-btn:hover {
    background: var(--hr-white);
    color: var(--hr-primary-dark);
}

.btn-white {
    background: var(--hr-white);
    color: var(--hr-primary);
    border-color: var(--hr-white);
}

.btn-white:hover {
    background: var(--hr-gray-100);
    color: var(--hr-primary-dark);
}

/* ===========================
   HERO SECTION
   =========================== */
.hero-section {
    background: linear-gradient(135deg, var(--hr-charcoal) 0%, #323f4b 100%);
    padding: 40px 16px;
    text-align: center;
    color: var(--hr-white);
}

.hero-section h1 {
    font-size: 1.75rem;
    margin-bottom: 16px;
    line-height: 1.2;
    font-weight: 800;
}

.hero-section h1 span {
    color: var(--hr-primary);
}

.hero-section > .container > p {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-stat {
    text-align: center;
    padding: 16px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--hr-radius);
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--hr-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat-label {
    opacity: 0.8;
    font-size: 0.875rem;
}

.hero-name-search {
    display: flex;
    max-width: 420px;
    margin: 26px auto 0;
    gap: 8px;
}

.hero-name-search input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: var(--hr-radius-sm);
    background: rgba(255,255,255,0.08);
    color: var(--hr-white);
    font-size: 0.875rem;
}

.hero-name-search input[type="text"]::placeholder {
    color: rgba(255,255,255,0.55);
}

.hero-name-search input[type="text"]:focus {
    outline: none;
    border-color: var(--hr-primary);
    background: rgba(255,255,255,0.12);
}

.hero-name-search button {
    padding: 11px 18px;
    border: none;
    border-radius: var(--hr-radius-sm);
    background: var(--hr-primary);
    color: var(--hr-white);
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--hr-transition);
    white-space: nowrap;
}

.hero-name-search button:hover {
    background: var(--hr-primary-dark);
}

.hero-name-search button:focus-visible,
.hero-name-search input[type="text"]:focus-visible {
    outline: 2px solid var(--hr-white);
    outline-offset: 2px;
}

@media (max-width: 400px) {
    .hero-name-search {
        flex-direction: column;
    }
}

.hero-learn-link {
    margin: 22px 0 0;
    font-size: 0.875rem;
    opacity: 0.85;
}

.hero-learn-link a {
    color: var(--hr-white);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hero-learn-link a:hover {
    color: var(--hr-primary);
}

.hero-learn-link a:focus-visible {
    outline: 2px solid var(--hr-white);
    outline-offset: 2px;
    border-radius: 2px;
}

@media (min-width: 480px) {
    .hero-stats {
        flex-direction: row;
        justify-content: center;
        gap: 16px;
    }

    .hero-stat {
        flex: 1;
        max-width: 150px;
    }
}

@media (min-width: 640px) {
    .hero-section {
        padding: 60px 24px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section > .container > p {
        font-size: 1.125rem;
    }

    .hero-stats {
        gap: 30px;
    }

    .hero-stat {
        padding: 20px 24px;
        max-width: 180px;
    }

    .hero-stat-number {
        font-size: 2.5rem;
    }
}

@media (min-width: 900px) {
    .hero-section h1 {
        font-size: 3rem;
    }

    .hero-stats {
        gap: 50px;
    }
}

/* ===========================
   SEARCH SECTION
   =========================== */
.search-section {
    background: var(--hr-white);
    padding: 24px 16px;
    margin: -20px 16px 0;
    border-radius: var(--hr-radius-xl);
    box-shadow: var(--hr-shadow-xl);
    position: relative;
    z-index: 10;
}

@media (min-width: 640px) {
    .search-section {
        padding: 30px 24px;
        margin: -30px 24px 0;
    }
}

@media (min-width: 1150px) {
    .search-section {
        max-width: 1100px;
        margin: -30px auto 0;
    }
}

/* Location Banner */
.location-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--hr-gray-100);
    border: 1.5px solid var(--hr-gray-200);
    border-radius: var(--hr-radius);
    margin-bottom: 20px;
}

.location-icon {
    font-size: 1.25rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.location-banner span:not(.location-icon) {
    flex: 1;
    min-width: 150px;
    font-weight: 600;
    color: var(--hr-charcoal);
    font-size: 0.9375rem;
}

.clear-location-btn {
    background: transparent;
    border: 1px solid var(--hr-charcoal);
    color: var(--hr-charcoal);
    padding: 6px 14px;
    border-radius: var(--hr-radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--hr-transition);
}

.clear-location-btn:hover {
    background: var(--hr-charcoal);
    color: var(--hr-white);
}

/* Search Form */
.search-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.search-field {
    flex: 1;
}

.search-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--hr-charcoal);
    font-size: 0.875rem;
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--hr-gray-200);
    border-radius: var(--hr-radius);
    font-size: 1rem;
    transition: var(--hr-transition);
    background: var(--hr-white);
    color: var(--hr-charcoal);
    -webkit-appearance: none;
}

.search-field input::placeholder {
    color: var(--hr-gray-500);
}

.search-field input:focus,
.search-field select:focus {
    outline: none;
    border-color: var(--hr-success);
    box-shadow: 0 0 0 3px rgba(28, 90, 150, 0.12);
}

.search-field .btn {
    width: 100%;
    padding: 14px 24px;
}

@media (min-width: 640px) {
    .search-row {
        flex-direction: row;
        align-items: flex-end;
    }

    .search-field:first-child {
        flex: 2;
    }

    .search-field:nth-child(2) {
        flex: 1;
        min-width: 180px;
    }

    .search-field:last-child {
        flex: 0 0 auto;
    }

    .search-field .btn {
        width: auto;
        min-width: 120px;
    }
}

/* Use Your Location button */
.hr-location-btn {
    padding: 12px 18px;
    background: #1565C0;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.hr-location-btn:hover { background: #0D47A1; }
.hr-location-btn:disabled { opacity: 0.6; cursor: wait; }
.hr-location-btn .hr-loc-spinner {
    display: none;
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: hrLocSpin 0.8s linear infinite;
}
.hr-location-btn.loading .hr-loc-spinner { display: inline-block; }
.hr-location-btn.loading .hr-loc-icon { display: none; }
@keyframes hrLocSpin { to { transform: rotate(360deg); } }

/* Service Filters */
.service-filters {
    border-top: 1px solid var(--hr-gray-200);
    padding-top: 20px;
}

.filter-label {
    font-weight: 600;
    color: var(--hr-charcoal);
    display: block;
    margin-bottom: 12px;
    font-size: 0.875rem;
}

.filter-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--hr-gray-50);
    border: 2px solid var(--hr-gray-200);
    border-radius: var(--hr-radius-full);
    cursor: pointer;
    transition: var(--hr-transition);
    font-size: 0.8125rem;
    user-select: none;
}

.filter-checkbox:hover {
    border-color: var(--hr-success);
    background: var(--hr-success-light);
}

.filter-checkbox input {
    display: none;
}

.filter-checkbox:has(input:checked) {
    border-color: var(--hr-success);
    background: var(--hr-success-light);
}

.filter-checkbox:has(input:checked) .filter-text {
    color: var(--hr-success-dark);
}

.filter-icon {
    display: inline-flex;
    width: 15px;
    height: 15px;
    color: var(--hr-gray-600);
}

.filter-icon svg {
    width: 100%;
    height: 100%;
}

.filter-checkbox:has(input:checked) .filter-icon {
    color: var(--hr-success-dark);
}

.filter-text {
    font-weight: 500;
}

@media (min-width: 640px) {
    .filter-checkbox {
        padding: 10px 16px;
        font-size: 0.875rem;
    }
}

.service-filters-other { margin-top: 14px; }
.service-filters-other summary { font-size: 0.8125rem; font-weight: 600; color: var(--hr-gray-600); cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; }
.service-filters-other summary::-webkit-details-marker { display: none; }
.service-filters-other summary::before { content: '+'; color: var(--hr-primary); font-weight: 700; font-size: 1rem; line-height: 1; }
.service-filters-other[open] summary::before { content: '\2212'; }
.service-filters-other summary:hover { color: var(--hr-charcoal); }
.service-filters-other summary:focus-visible { outline: 2px solid var(--hr-primary); outline-offset: 2px; }
.service-filters-other .filter-checkboxes { margin-top: 10px; }

/* ===========================
   STATE INFO SECTION
   =========================== */
.hr-state-info-section {
    padding: 20px 16px;
}

.hr-state-info {
    max-width: 900px;
    margin: 0 auto;
    background: var(--hr-white);
    border: 1px solid var(--hr-gray-200);
    border-radius: var(--hr-radius-lg);
    box-shadow: var(--hr-shadow);
    padding: 24px;
}

.hr-state-info h2 {
    font-size: 1.25rem;
    color: var(--hr-charcoal);
    margin-bottom: 14px;
}

.hr-state-info p {
    color: var(--hr-gray-700);
    line-height: 1.7;
    margin-bottom: 14px;
}

.hr-state-info p:last-of-type {
    margin-bottom: 0;
}

.hr-state-sources {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--hr-gray-200);
}

.hr-state-sources summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--hr-gray-600);
    font-size: 0.9rem;
}

.hr-state-sources ul {
    margin: 10px 0 0;
    padding-left: 20px;
    font-size: 0.85rem;
}

.hr-state-sources li {
    margin-bottom: 6px;
}

.hr-state-sources a {
    color: var(--hr-success-dark);
}

.hr-state-updated {
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--hr-gray-500);
}

@media (max-width: 480px) {
    .hr-state-info-section {
        padding: 16px 8px;
    }

    .hr-state-info {
        padding: 18px;
    }
}

@media (min-width: 640px) {
    .hr-state-info-section {
        padding: 24px;
    }

    .hr-state-info {
        padding: 32px;
    }

    .hr-state-info h2 {
        font-size: 1.5rem;
    }
}

/* State FAQ accordion. Collapsed by default behind a single open button,
   then each question expands independently. Content is always present in
   the HTML (just visually hidden), which is what Google's FAQ rich result
   guidelines expect from an accordion pattern. */
.hr-state-faq-section {
    padding: 0 16px 20px;
}

.hr-state-faq {
    max-width: 900px;
    margin: 0 auto;
    background: var(--hr-white);
    border: 1px solid var(--hr-gray-200);
    border-radius: var(--hr-radius-lg);
    box-shadow: var(--hr-shadow);
    overflow: hidden;
}

.hr-state-faq-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 20px 24px;
    background: var(--hr-white);
    border: none;
    text-align: left;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--hr-charcoal);
    cursor: pointer;
    transition: var(--hr-transition);
}

.hr-state-faq-toggle:hover {
    background: var(--hr-gray-50);
}

.hr-state-faq-toggle-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--hr-success);
    color: var(--hr-white);
    font-size: 1.25rem;
    line-height: 1;
    transition: transform 0.25s ease;
}

.hr-state-faq-toggle.open .hr-state-faq-toggle-icon {
    transform: rotate(45deg);
}

.hr-state-faq-list {
    border-top: 1px solid var(--hr-gray-200);
}

.hr-state-faq-item {
    border-bottom: 1px solid var(--hr-gray-200);
}

.hr-state-faq-item:last-child {
    border-bottom: none;
}

.hr-state-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 16px 24px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--hr-charcoal);
    cursor: pointer;
    transition: var(--hr-transition);
}

.hr-state-faq-question:hover {
    background: var(--hr-gray-50);
}

.hr-state-faq-icon {
    flex-shrink: 0;
    color: var(--hr-success-dark);
    font-size: 1.125rem;
    line-height: 1;
    transition: transform 0.25s ease;
}

.hr-state-faq-question.open .hr-state-faq-icon {
    transform: rotate(45deg);
}

.hr-state-faq-answer {
    padding: 0 24px 18px;
    color: var(--hr-gray-700);
    line-height: 1.7;
    font-size: 0.9375rem;
}

@media (min-width: 640px) {
    .hr-state-faq-section {
        padding: 0 24px 24px;
    }
}

/* ===========================
   THREE COLUMN LAYOUT
   =========================== */
.three-column-layout {
    padding: 40px 16px;
    background: var(--hr-canvas);
    overflow: hidden;
}

.three-column-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Main Content First on Mobile */
.main-content {
    order: -1;
    min-width: 0;
    overflow: hidden;
}

.sidebar-widget {
    order: 1;
}

@media (min-width: 900px) {
    .three-column-layout {
        padding: 60px 24px;
    }

    .three-column-wrapper {
        display: grid;
        grid-template-columns: 1fr minmax(0, 2fr) 1fr;
        gap: 30px;
    }

    .main-content {
        order: 0;
    }

    .sidebar-widget {
        order: 0;
    }

    .sidebar-widget:first-child {
        grid-column: 1;
    }

    .main-content {
        grid-column: 2;
    }

    .sidebar-widget:last-of-type {
        grid-column: 3;
    }
}

@media (min-width: 1200px) {
    .three-column-wrapper {
        grid-template-columns: 280px minmax(0, 1fr) 280px;
        gap: 30px;
    }
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--hr-charcoal);
}

.section-header p {
    color: var(--hr-gray-600);
    font-size: 1rem;
}

@media (min-width: 640px) {
    .section-header h2 {
        font-size: 1.75rem;
    }
}

/* Agencies List */
.agencies-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .agencies-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Plain state landing page (e.g. /ohio/): capped sample of cards fades
   out at the bottom into a "View All" button rather than ending abruptly. */
.hr-state-sample-wrap {
    position: relative;
}

.hr-fade-list {
    position: relative;
}

.hr-fade-list::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 220px;
    background: linear-gradient(to bottom, rgba(238, 241, 244, 0) 0%, var(--hr-canvas) 85%);
    pointer-events: none;
}

.hr-view-all-wrap {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-top: -70px;
    padding-bottom: 10px;
}

.hr-view-all-wrap .btn {
    padding: 14px 32px;
    font-size: 1rem;
    box-shadow: var(--hr-shadow-lg);
}

/* Browse by City grid (on .states-section, a white background, so this
   fades to white rather than the page canvas). The button here expands the
   list in place with JS instead of linking away, since there is no separate
   "all cities" page to send it to. */
.hr-fade-list-white {
    position: relative;
}

.hr-fade-list-white::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, var(--hr-white) 85%);
    pointer-events: none;
}

.hr-city-hidden {
    display: none !important;
}

.hr-view-cities-wrap {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-top: -30px;
    padding-bottom: 10px;
}

.hr-view-cities-wrap .btn {
    padding: 14px 32px;
    font-size: 1rem;
    box-shadow: var(--hr-shadow-lg);
}

/* ===========================
   AGENCY CARDS
   =========================== */
.agencies-section {
    padding: 40px 16px;
    background: var(--hr-canvas);
}

.agencies-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .agencies-section {
        padding: 60px 24px;
    }

    .agencies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

.agency-card {
    background: var(--hr-white);
    border: 1px solid var(--hr-gray-200);
    border-radius: var(--hr-radius-lg);
    overflow: hidden;
    box-shadow: var(--hr-shadow);
    transition: var(--hr-transition);
    display: flex;
    flex-direction: column;
}

.agency-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hr-shadow-xl);
}

.agency-card-header {
    background: var(--hr-primary-dark);
    padding: 12px 14px;
    color: var(--hr-white);
}

@media (min-width: 640px) {
    .agency-card-header {
        padding: 14px 16px;
    }
}

.agency-card-category {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #F0C878;
    background: rgba(0,0,0,0.22);
    padding: 2px 8px;
    border-radius: 6px;
    margin-bottom: 6px;
}

.agency-card-header h3 {
    font-size: 0.9375rem;
    margin-bottom: 2px;
    line-height: 1.3;
}

.agency-card-header h3 a {
    color: var(--hr-white);
}

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

.agency-card-location {
    opacity: 0.85;
    font-size: 0.75rem;
    line-height: 1.3;
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin-top: 4px;
}

.agency-card-location svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    margin-top: 1px;
}

.hr-card-directions {
    color: var(--hr-success-dark);
    font-weight: 600;
    text-decoration: underline;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Inside the pink card header, the dark green above has almost no contrast
   against the pink background, so it switches to white there instead. */
.agency-card-header .hr-card-directions {
    color: var(--hr-white);
}

.hr-card-directions:hover {
    color: var(--hr-success);
}

.agency-card-body {
    padding: 12px 14px;
    flex: 1;
}

@media (min-width: 640px) {
    .agency-card-body {
        padding: 14px 16px;
    }
}

/* Phone Box - Prominent */
.agency-phone-box {
    margin-bottom: 10px;
}

.agency-phone-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--hr-primary);
    color: var(--hr-white);
    padding: 10px 14px;
    border-radius: var(--hr-radius);
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: var(--hr-transition);
}

.agency-phone-link:hover {
    background: var(--hr-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(20,64,107,0.35);
    color: var(--hr-white);
}

.agency-phone-link .phone-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.agency-phone-link .phone-icon svg {
    width: 100%;
    height: 100%;
}

.agency-phone-link .phone-number {
    letter-spacing: 0.5px;
}

/* Hours Box */
.agency-hours-box {
    background: var(--hr-gray-50);
    border: 1px solid var(--hr-gray-200);
    border-radius: var(--hr-radius);
    padding: 8px 12px;
    margin-bottom: 10px;
}

.hours-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: var(--hr-charcoal);
    font-size: 0.8125rem;
    margin-bottom: 4px;
}

.hours-label svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--hr-gray-500);
}

.hours-text {
    color: var(--hr-gray-700);
    font-size: 0.8125rem;
    line-height: 1.5;
}

/* Service Icons */
.agency-service-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--hr-gray-200);
}

.service-icon-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: var(--hr-radius-full);
    padding: 5px 10px 5px 8px;
    font-size: 0.75rem;
}

.service-icon-badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.service-icon-badge.tag-green {
    background: var(--hr-success-light);
    color: var(--hr-success-dark);
}

.service-icon-badge.tag-slate {
    background: var(--hr-gray-100);
    color: var(--hr-charcoal);
}

.service-icon-badge .service-icon-label {
    font-size: 0.75rem;
    font-weight: 600;
}

@media (min-width: 640px) {
    .service-icon-badge {
        font-size: 0.8125rem;
        padding: 6px 12px 6px 9px;
    }

    .service-icon-badge .service-icon-label {
        font-size: 0.8125rem;
    }
}

/* Contact Grid */
.agency-contact-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.contact-icon {
    display: inline-flex;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    color: var(--hr-gray-500);
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-item a {
    color: var(--hr-charcoal);
    font-weight: 600;
    word-break: break-word;
}

.contact-item span:not(.contact-icon) {
    color: var(--hr-gray-600);
}

/* How To Access */
.agency-how-to {
    background: var(--hr-success-light);
    padding: 8px 10px;
    border-radius: var(--hr-radius-sm);
    font-size: 0.75rem;
    color: #14406B;
    margin-top: 8px;
    line-height: 1.4;
}

.agency-how-to strong {
    color: #14406B;
}

/* In the News (card) */
.agency-media-mentions {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--hr-gray-200);
}

.media-mentions-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--hr-gray-500);
    margin-bottom: 4px;
}

.media-mention-link {
    display: block;
    font-size: 0.75rem;
    color: var(--hr-charcoal);
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 3px;
}

.media-mention-link:hover {
    text-decoration: underline;
}

.media-mention-source {
    color: var(--hr-gray-500);
    font-weight: 400;
}

/* Card Footer */
.agency-card-footer {
    padding: 10px 14px;
    background: var(--hr-gray-50);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hr-card-verified {
    font-size: 0.6875rem;
    color: var(--hr-gray-500);
    white-space: nowrap;
    margin-left: auto;
}

@media (min-width: 640px) {
    .agency-card-footer {
        padding: 12px 16px;
    }
}

.agency-card-footer .btn {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    font-size: 0.8125rem;
}

/* "View Details" reads as the secondary action — the phone number above it (or the
   Call button below, on the /agencies/ archive) is the real primary action. */
.agency-card-footer .btn-primary {
    background: var(--hr-white);
    border-color: var(--hr-gray-300);
    color: var(--hr-charcoal);
}

.agency-card-footer .btn-primary:hover {
    background: var(--hr-charcoal);
    border-color: var(--hr-charcoal);
    color: var(--hr-white);
    box-shadow: none;
    transform: none;
}

/* "Call" (used on the /agencies/ archive card footer) is the primary action */
.agency-card-footer .btn-secondary {
    background: var(--hr-success);
    color: var(--hr-white);
    border-color: var(--hr-success);
}

.agency-card-footer .btn-secondary:hover {
    background: var(--hr-success-dark);
    border-color: var(--hr-success-dark);
    color: var(--hr-white);
}

/* ===========================
   SIDEBAR WIDGETS
   =========================== */
.tips-widget,
.goals-widget {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: var(--hr-radius-xl);
    padding: 24px 20px;
    color: var(--hr-white);
    box-shadow: var(--hr-shadow-lg);
}

@media (min-width: 640px) {
    .tips-widget,
    .goals-widget {
        padding: 30px 25px;
    }
}

.widget-quote {
    font-style: italic;
    font-size: 0.9375rem;
    line-height: 1.6;
    padding: 16px;
    margin: 0 0 24px 0;
    background: rgba(255, 255, 255, 0.08);
    color: var(--hr-white);
    border-left: 4px solid var(--hr-primary);
    border-radius: 0 var(--hr-radius) var(--hr-radius) 0;
}

.widget-title {
    color: var(--hr-primary);
    font-size: 1.25rem;
    margin: 0 0 12px 0;
}

.widget-intro {
    font-size: 0.9375rem;
    line-height: 1.6;
    opacity: 0.9;
    margin: 0 0 24px 0;
}

.widget-section {
    margin-bottom: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.widget-section h4 {
    color: var(--hr-primary);
    font-size: 1rem;
    margin: 0 0 16px 0;
}

/* Safety Tips */
.safety-tips .safety-tip {
    padding: 12px 12px 12px 16px;
    margin-bottom: 25px;
    background: rgba(255,255,255,0.05);
    border-left: 3px solid var(--hr-primary);
    border-radius: var(--hr-radius);
}

.safety-tip:last-child {
    margin-bottom: 0;
}

.safety-tip strong {
    color: var(--hr-primary);
    display: block;
    font-size: 0.875rem;
    margin-bottom: 4px;
}

.safety-tip p {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    opacity: 0.9;
}

.safety-tip a {
    color: var(--hr-white);
    font-weight: 600;
    text-decoration: underline;
}

/* Goals List */
.goals-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.goals-list li {
    padding: 12px 14px;
    margin-bottom: 25px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--hr-radius);
    border-left: 3px solid var(--hr-primary);
    font-size: 0.8125rem;
    line-height: 1.6;
}

.goals-list li:last-child {
    margin-bottom: 0;
}

.goals-list li strong {
    color: var(--hr-primary);
    display: block;
    margin-bottom: 4px;
    font-size: 0.875rem;
}

/* Widget Crisis Buttons */
.widget-crisis {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.widget-crisis h4 {
    color: var(--hr-white);
    font-size: 0.9375rem;
    margin: 0 0 16px 0;
    text-align: center;
}

.crisis-btn {
    display: block;
    background: var(--hr-success);
    color: var(--hr-white);
    padding: 12px 16px;
    border-radius: var(--hr-radius-full);
    text-align: center;
    font-weight: 600;
    font-size: 0.8125rem;
    margin-bottom: 10px;
    transition: var(--hr-transition);
}

.crisis-btn:last-child {
    margin-bottom: 0;
}

.crisis-btn:hover {
    background: var(--hr-success-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(28,90,150,0.35);
    color: var(--hr-white);
}

/* ===========================
   SERVICES SHOWCASE
   =========================== */
.services-showcase {
    background: var(--hr-primary-light);
    padding: 40px 16px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 480px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 640px) {
    .services-showcase {
        padding: 60px 24px;
    }

    .services-grid {
        gap: 20px;
    }
}

@media (min-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

.service-card {
    background: var(--hr-white);
    padding: 24px 20px;
    border-radius: var(--hr-radius-lg);
    border-top: 3px solid var(--hr-primary);
    text-align: center;
    transition: var(--hr-transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hr-shadow-lg);
}

.service-card h3 {
    margin-bottom: 8px;
    color: var(--hr-charcoal);
    font-size: 1rem;
}

.service-card p {
    color: var(--hr-gray-600);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ===========================
   BROWSE BY STATE
   =========================== */
.states-section {
    padding: 40px 16px;
    background: var(--hr-white);
}

@media (min-width: 640px) {
    .states-section {
        padding: 60px 24px;
    }
}

.states-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 480px) {
    .states-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 640px) {
    .states-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (min-width: 900px) {
    .states-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.state-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 12px;
    background: var(--hr-gray-50);
    border: 2px solid var(--hr-gray-200);
    border-radius: var(--hr-radius);
    text-decoration: none;
    transition: var(--hr-transition);
}

.state-card:hover {
    border-color: var(--hr-primary);
    background: var(--hr-primary-light);
    transform: translateY(-3px);
    box-shadow: var(--hr-shadow-lg);
}

.state-abbr {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--hr-primary);
    line-height: 1;
    margin-bottom: 6px;
}

.state-card:hover .state-abbr {
    color: var(--hr-primary-dark);
}

.state-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--hr-gray-600);
    text-align: center;
}

.state-card:hover .state-name {
    color: var(--hr-primary-dark);
}

/* ===========================
   INFO SECTION
   =========================== */
.info-section {
    padding: 40px 16px;
    background: var(--hr-white);
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .info-section {
        padding: 60px 24px;
    }
}

@media (min-width: 900px) {
    .info-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: center;
    }
}

.info-content h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--hr-charcoal);
}

@media (min-width: 640px) {
    .info-content h2 {
        font-size: 2rem;
    }
}

.info-content p {
    color: var(--hr-gray-600);
    margin-bottom: 16px;
    line-height: 1.7;
}

.info-content ul {
    list-style: none;
    margin: 24px 0;
}

.info-content li {
    padding: 10px 0 10px 30px;
    position: relative;
    font-size: 0.9375rem;
    color: var(--hr-gray-700);
}

.info-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--hr-success);
    font-weight: bold;
    font-size: 1.125rem;
}

.info-image {
    border-radius: var(--hr-radius-xl);
    overflow: hidden;
    box-shadow: var(--hr-shadow-lg);
}

/* ===========================
   CTA SECTION
   =========================== */
.cta-section {
    background: linear-gradient(135deg, var(--hr-primary) 0%, var(--hr-primary-dark) 100%);
    padding: 50px 16px;
    text-align: center;
    color: var(--hr-white);
}

@media (min-width: 640px) {
    .cta-section {
        padding: 80px 24px;
    }
}

.cta-section h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

@media (min-width: 640px) {
    .cta-section h2 {
        font-size: 2rem;
    }
}

.cta-section p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

@media (min-width: 640px) {
    .cta-section p {
        font-size: 1.125rem;
    }
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
}

@media (min-width: 480px) {
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
        max-width: none;
    }
}

/* ===========================
   NO RESULTS
   =========================== */
.no-results {
    text-align: center;
    padding: 40px 20px;
    background: var(--hr-white);
    border-radius: var(--hr-radius-lg);
    margin: 20px 0;
}

.no-results h2 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.no-results p {
    color: var(--hr-gray-600);
    margin-bottom: 20px;
}

/* ===========================
   PAGINATION
   =========================== */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 10px 16px;
    background: var(--hr-white);
    border-radius: var(--hr-radius-sm);
    color: var(--hr-charcoal);
    box-shadow: var(--hr-shadow-sm);
    transition: var(--hr-transition);
    font-size: 0.875rem;
}

.pagination a:hover {
    background: var(--hr-primary);
    color: var(--hr-white);
}

.pagination .current {
    background: var(--hr-primary);
    color: var(--hr-white);
}

/* ===========================
   SINGLE AGENCY PAGE
   =========================== */
.single-agency {
    background: var(--hr-gray-50);
    min-height: 100vh;
}

.single-header {
    background: var(--hr-charcoal);
    padding: 24px 16px;
}

@media (min-width: 640px) {
    .single-header {
        padding: 30px 24px;
    }
}

.single-header-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.breadcrumb {
    margin-bottom: 12px;
    font-size: 0.8125rem;
}

.breadcrumb a {
    color: rgba(255,255,255,0.7);
}

.breadcrumb a:hover {
    color: var(--hr-white);
}

.breadcrumb span {
    color: rgba(255,255,255,0.5);
    margin: 0 6px;
}

/* Shared breadcrumb component (state/city pages, agency pages) — rendered by
   rdhr_render_breadcrumbs() in inc/hr-schema.php from the same item data used
   to build the page's BreadcrumbList JSON-LD, so the two never disagree. */
.hr-breadcrumbs { margin-bottom: 12px; font-size: 0.8125rem; }
.hr-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; padding: 0; margin: 0; }
.hr-breadcrumbs li { display: flex; align-items: center; }
.hr-breadcrumbs li:not(:last-child)::after { content: '/'; margin: 0 8px; color: var(--hr-gray-300); }
.hr-breadcrumbs a { color: var(--hr-gray-600); text-decoration: none; }
.hr-breadcrumbs a:hover { color: var(--hr-primary); text-decoration: underline; }
.hr-breadcrumbs a:focus-visible { outline: 2px solid var(--hr-primary); outline-offset: 2px; border-radius: 2px; }
.hr-breadcrumbs [aria-current="page"] { color: var(--hr-charcoal); font-weight: 600; }

.hr-breadcrumbs--dark a { color: rgba(255,255,255,0.7); }
.hr-breadcrumbs--dark a:hover { color: var(--hr-white); }
.hr-breadcrumbs--dark a:focus-visible { outline-color: var(--hr-white); }
.hr-breadcrumbs--dark li:not(:last-child)::after { color: rgba(255,255,255,0.5); }
.hr-breadcrumbs--dark [aria-current="page"] { color: var(--hr-white); }

.single-header h1 {
    color: var(--hr-white);
    font-size: 1.5rem;
    margin: 0;
    line-height: 1.3;
}

@media (min-width: 640px) {
    .single-header h1 {
        font-size: 2rem;
    }
}

.single-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 640px) {
    .single-container {
        padding: 40px 24px;
        gap: 30px;
    }
}

@media (min-width: 900px) {
    .single-container {
        display: grid;
        grid-template-columns: 1fr 320px;
        gap: 40px;
        align-items: start;
    }
}

.single-main {
    background: var(--hr-white);
    border-radius: var(--hr-radius-lg);
    box-shadow: var(--hr-shadow);
    overflow: hidden;
}

.single-section {
    padding: 20px;
    border-bottom: 1px solid var(--hr-gray-200);
}

@media (min-width: 640px) {
    .single-section {
        padding: 25px 30px;
    }
}

.single-section:last-child {
    border-bottom: none;
}

/* Nearby Agencies (cross-links between agency pages) */
.nearby-agencies-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 480px) {
    .nearby-agencies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.nearby-agency-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    background: var(--hr-gray-50);
    border: 2px solid var(--hr-gray-200);
    border-radius: var(--hr-radius);
    text-decoration: none;
    transition: var(--hr-transition);
}

.nearby-agency-card:hover {
    border-color: var(--hr-primary);
    background: var(--hr-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--hr-shadow);
}

.nearby-agency-name {
    font-weight: 600;
    color: var(--hr-charcoal);
    font-size: 0.9375rem;
}

.nearby-agency-location {
    font-size: 0.8125rem;
    color: var(--hr-gray-600);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.nearby-agency-distance {
    display: inline-block;
    padding: 1px 8px;
    background: var(--hr-gray-200);
    color: var(--hr-gray-700);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 10px;
}

.nearby-agencies-more {
    margin-top: 16px;
    text-align: center;
}

.nearby-agencies-more a {
    color: var(--hr-success-dark);
    font-weight: 600;
    text-decoration: none;
}

.nearby-agencies-more a:hover {
    text-decoration: underline;
}

.single-section h2 {
    font-size: 1rem;
    color: var(--hr-charcoal);
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--hr-gray-200);
}

.hr-last-verified {
    font-size: 0.8125rem;
    color: var(--hr-gray-500);
    margin: 0 0 16px 0;
}

/* Info Rows */
.info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-row .info-icon {
    width: 40px;
    height: 40px;
    background: var(--hr-gray-100);
    color: var(--hr-charcoal);
    border-radius: var(--hr-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-row .info-icon svg {
    width: 19px;
    height: 19px;
}

.info-row .info-icon.icon-address {
    background: var(--hr-primary-light);
    color: var(--hr-primary);
}

.info-row .info-icon.icon-phone {
    background: var(--hr-success-light);
    color: var(--hr-success-dark);
}

@media (min-width: 640px) {
    .info-row .info-icon {
        width: 45px;
        height: 45px;
    }

    .info-row .info-icon svg {
        width: 21px;
        height: 21px;
    }
}

.info-row .info-content {
    flex: 1;
    min-width: 0;
}

.info-label {
    font-size: 0.75rem;
    color: var(--hr-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.info-value {
    color: var(--hr-charcoal);
    font-weight: 500;
    font-size: 0.9375rem;
    word-break: break-word;
}

.info-value a {
    color: var(--hr-charcoal);
    font-weight: 700;
}

.info-value.hours-value {
    line-height: 1.7;
    white-space: pre-line;
}

.info-row-hours {
    background: var(--hr-gray-50);
    padding: 16px;
    border-radius: var(--hr-radius);
    margin-top: 8px;
}

/* Service Icons Grid (Single Page) */
.services-icon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 480px) {
    .services-icon-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 640px) {
    .services-icon-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 15px;
    }
}

.service-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 12px;
    background: var(--hr-gray-100);
    border-radius: var(--hr-radius);
    transition: var(--hr-transition);
}

.service-icon-item.tag-green {
    background: var(--hr-success-light);
}

.service-icon-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--hr-shadow-lg);
}

.service-icon-large {
    width: 26px;
    height: 26px;
    margin-bottom: 8px;
    color: var(--hr-charcoal);
}

.service-icon-item.tag-green .service-icon-large {
    color: var(--hr-success-dark);
}

@media (min-width: 640px) {
    .service-icon-large {
        width: 32px;
        height: 32px;
    }
}

.service-icon-item .service-icon-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--hr-charcoal);
    line-height: 1.3;
}

.service-icon-item.tag-green .service-icon-label {
    color: var(--hr-success-dark);
}

@media (min-width: 640px) {
    .service-icon-item .service-icon-label {
        font-size: 0.8125rem;
    }
}

/* Services Badges */
.services-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-badge {
    background: var(--hr-gray-100);
    color: var(--hr-charcoal);
    padding: 8px 14px;
    border-radius: var(--hr-radius-full);
    font-weight: 500;
    font-size: 0.8125rem;
}

@media (min-width: 640px) {
    .service-badge {
        padding: 10px 18px;
        font-size: 0.875rem;
    }
}

/* How To Box */
.how-to-box {
    background: var(--hr-success-light);
    border-left: 4px solid var(--hr-success);
    padding: 16px;
    border-radius: 0 var(--hr-radius) var(--hr-radius) 0;
}

@media (min-width: 640px) {
    .how-to-box {
        padding: 20px;
    }
}

.how-to-box h3 {
    color: #14406B;
    margin: 0 0 8px 0;
    font-size: 0.9375rem;
}

.how-to-box p {
    color: #14406B;
    margin: 0;
    line-height: 1.6;
    font-size: 0.875rem;
}

/* In the News (single agency page) */
.media-mentions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.media-mention-item {
    display: block;
    padding: 12px 16px;
    background: var(--hr-gray-50);
    border-radius: var(--hr-radius);
    text-decoration: none;
    transition: var(--hr-transition);
}

.media-mention-item:hover {
    background: var(--hr-gray-100);
}

.media-mention-title {
    display: block;
    color: var(--hr-charcoal);
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 3px;
}

.media-mention-meta {
    display: block;
    color: var(--hr-gray-500);
    font-size: 0.8125rem;
}

/* Single Sidebar */
.single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 900px) {
    .single-sidebar {
        position: sticky;
        top: 80px;
    }
}

.sidebar-cta {
    background: linear-gradient(135deg, var(--hr-charcoal) 0%, #323f4b 100%);
    border-radius: var(--hr-radius-lg);
    padding: 24px;
    text-align: center;
    color: var(--hr-white);
}

.sidebar-cta h3 {
    margin: 0 0 8px 0;
    font-size: 1.125rem;
}

.sidebar-cta p {
    opacity: 0.9;
    margin: 0 0 20px 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.cta-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--hr-success);
    color: var(--hr-white);
    padding: 14px;
    border-radius: var(--hr-radius-full);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 12px;
    transition: var(--hr-transition);
}

.cta-call svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.cta-call:hover {
    background: var(--hr-success-dark);
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
    color: var(--hr-white);
}

.cta-directions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.3);
    color: var(--hr-white);
    padding: 12px;
    border-radius: var(--hr-radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--hr-transition);
}

.cta-directions svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.cta-directions:hover {
    background: rgba(255,255,255,0.3);
    color: var(--hr-white);
}

.crisis-box {
    background: var(--hr-white);
    border-radius: var(--hr-radius-lg);
    padding: 20px;
    text-align: center;
    box-shadow: var(--hr-shadow);
}

.crisis-box h4 {
    color: var(--hr-charcoal);
    margin: 0 0 8px 0;
    font-size: 1rem;
}

.crisis-box p {
    color: var(--hr-gray-600);
    font-size: 0.8125rem;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.crisis-number {
    display: block;
    background: var(--hr-success-light);
    color: var(--hr-success-dark);
    padding: 12px;
    border-radius: var(--hr-radius);
    font-size: 1rem;
    font-weight: 700;
    transition: var(--hr-transition);
}

.crisis-number:hover {
    background: var(--hr-success);
    color: var(--hr-white);
}

.map-embed {
    border-radius: var(--hr-radius-lg);
    overflow: hidden;
    box-shadow: var(--hr-shadow);
}

.map-embed iframe {
    display: block;
    width: 100%;
    height: 180px;
    border: none;
}

@media (min-width: 640px) {
    .map-embed iframe {
        height: 200px;
    }
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
    background: var(--hr-charcoal);
    color: rgba(255,255,255,0.7);
    padding: 40px 16px 24px;
    margin-top: 40px;
}

@media (min-width: 640px) {
    .site-footer {
        padding: 50px 24px 30px;
        margin-top: 60px;
    }
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 480px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .footer-container {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 40px;
    }
}

.footer-section h3 {
    color: var(--hr-white);
    margin-bottom: 16px;
    font-size: 1rem;
}

.footer-section p {
    margin-bottom: 12px;
    line-height: 1.7;
    font-size: 0.875rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    transition: var(--hr-transition);
}

.footer-section a:hover {
    color: var(--hr-primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.8125rem;
}

.footer-bottom a {
    color: var(--hr-primary);
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip-to-content link: hidden off-screen until keyboard-focused, so a
   keyboard user isn't forced to tab through the crisis banner, header, nav,
   and sitewide finder on every single page before reaching real content. */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--hr-primary);
    color: var(--hr-white);
    padding: 12px 20px;
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    z-index: 100000;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--hr-white);
    outline-offset: -3px;
}

/* ===========================
   BODY LOCK FOR MOBILE MENU
   =========================== */
body.menu-open {
    overflow: hidden;
}

/* ===========================
   FAQ SECTION
   =========================== */
.hr-faq-section {
    padding: 60px 0 80px;
    background: var(--hr-white);
}

.hr-faq-section h2 {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--hr-charcoal);
    margin-bottom: 40px;
    line-height: 1.3;
}

.hr-faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hr-faq-item {
    border: 1px solid var(--hr-gray-200);
    border-radius: var(--hr-radius);
    overflow: hidden;
    transition: var(--hr-transition);
    background: var(--hr-white);
}

.hr-faq-item:hover {
    border-color: var(--hr-primary-light);
    box-shadow: var(--hr-shadow-sm);
}

.hr-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: var(--hr-gray-50);
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--hr-charcoal);
    text-align: left;
    cursor: pointer;
    transition: var(--hr-transition);
    line-height: 1.4;
}

.hr-faq-question:hover {
    background: var(--hr-primary-light);
    color: var(--hr-primary-dark);
}

.hr-faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--hr-primary);
    color: var(--hr-white);
    font-size: 1.125rem;
    font-weight: 700;
    transition: var(--hr-transition);
    line-height: 1;
}

.hr-faq-item.open .hr-faq-icon {
    background: var(--hr-primary-dark);
    transform: rotate(45deg);
}

.hr-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 20px;
}

.hr-faq-item.open .hr-faq-answer {
    max-height: 500px;
    padding: 0 20px 20px;
}

.hr-faq-answer p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--hr-gray-600);
    margin: 0;
}

@media (min-width: 640px) {
    .hr-faq-section {
        padding: 80px 0 100px;
    }
    .hr-faq-section h2 {
        font-size: 2rem;
    }
    .hr-faq-question {
        padding: 20px 24px;
        font-size: 1.0625rem;
    }
    .hr-faq-answer {
        padding: 0 24px;
    }
    .hr-faq-item.open .hr-faq-answer {
        padding: 0 24px 24px;
    }
}

/* Diamond SVG Pattern on Hero */
.hero-section { position: relative; overflow: hidden; }
.hero-section::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpolygon points='30,5 55,30 30,55 5,30' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    pointer-events: none; z-index: 0;
}
.hero-section::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpolygon points='60,10 110,60 60,110 10,60' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1.5'/%3E%3C/svg%3E");
    background-size: 120px 120px;
    pointer-events: none; z-index: 0;
}
.hero-section > * { position: relative; z-index: 1; }

/* Compact page typography shared across locator, city and agency pages. */
body .hero-section h1, body .single-header h1 { font-size:clamp(1.5rem,2.2vw,1.875rem); line-height:1.25; margin-bottom:12px; }
body .hero-section > .container > p { font-size:.9375rem; line-height:1.5; margin-bottom:16px; }
body .hero-section { padding:24px 16px; }
body .section-header h2, body .hr-state-info h2, body .info-content h2,
body .cta-section h2, body .hr-faq-section h2 { font-size:1.375rem; line-height:1.3; }
body .hero-stat-number { font-size:1.5rem; }
body .cta-section p, body .single-header .agency-description { font-size:.9375rem; line-height:1.5; }

/* About page uses the same compact scale as directory introductions. */
body .hrf-about-entity { padding:24px 20px; }
body .hrf-about-entity h1 { font-size:clamp(1.5rem,2.2vw,1.875rem); line-height:1.25; margin-bottom:12px; }
body .hrf-about-entity p { font-size:.9375rem; line-height:1.5; }
body .hrf-who-we-are h2, body .hrf-mission h2 { font-size:1.375rem; line-height:1.3; }
body .founder-info h3 { font-size:1.25rem; }
body .who-we-are-intro, body .shared-mission-card p, body .hrf-mission p { font-size:.9375rem; line-height:1.5; }
body .shared-mission-card .closing-statement { font-size:.9375rem !important; }

/* State hub city navigation: compact, alphabetized links with live listing counts. */
.hr-state-cities { padding: 28px 0 32px; }
.hr-state-cities-header { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:18px; }
.hr-state-cities-header h2 { margin:0 0 5px; color:var(--hr-charcoal); font-size:1.5rem; line-height:1.3; }
.hr-state-cities-header p { margin:0; color:var(--hr-gray-600); font-size:.9375rem; line-height:1.5; }
.hr-state-cities-total { flex-shrink:0; color:var(--hr-primary-dark); font-size:.875rem; }
.hr-state-cities-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; list-style:none; padding:0; margin:0; }
.hr-state-cities-grid li { min-width:0; margin:0; padding:0; }
.hr-state-city-link { display:flex; flex-direction:column; justify-content:center; gap:3px; min-height:76px; height:100%; padding:12px 16px; border:1px solid var(--hr-gray-300); border-radius:var(--hr-radius-sm); background:var(--hr-white); text-decoration:none; }
.hr-state-city-name { color:var(--hr-primary-dark); font-size:1rem; font-weight:650; line-height:1.35; overflow-wrap:anywhere; }
.hr-state-city-count { color:var(--hr-gray-600); font-size:.8125rem; line-height:1.4; }
.hr-state-city-link:hover { background:var(--hr-success-light); border-color:var(--hr-success); text-decoration:none; }
.hr-state-city-link:focus-visible { outline:3px solid var(--hr-primary); outline-offset:3px; background:var(--hr-success-light); }
@media (max-width:900px) { .hr-state-cities-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:640px) {
    .hr-state-cities { padding:24px 0; }
    .hr-state-cities-header { align-items:flex-start; gap:8px; flex-direction:column; }
    .hr-state-cities-header h2 { font-size:1.375rem; }
    .hr-state-cities-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
    .hr-state-city-link { padding:12px; }
    .hr-state-city-name { font-size:.9375rem; }
}
@media (max-width:340px) { .hr-state-cities-grid { grid-template-columns:minmax(0,1fr); } }
@media (prefers-reduced-motion:reduce) { .hr-state-city-link { transition:none; } }

/* Other cities in the state (e.g. a county page that only has one card-
   sized match): small wrapping pills instead of full-size cards, so the
   rest of the state's cities are still reachable without dominating the
   page. */
.hr-state-cities-pills { display:flex; flex-wrap:wrap; gap:8px; list-style:none; padding:0; margin:14px 0 0; }
.hr-state-cities-pills li { margin:0; padding:0; }
.hr-state-city-pill { display:inline-flex; align-items:center; gap:5px; padding:6px 12px; border:1px solid var(--hr-gray-300); border-radius:var(--hr-radius-full); background:var(--hr-white); text-decoration:none; line-height:1.3; }
.hr-state-city-pill-name { color:var(--hr-primary-dark); font-size:.8125rem; font-weight:650; }
.hr-state-city-pill-count { color:var(--hr-gray-500); font-size:.75rem; }
.hr-state-city-pill:hover { background:var(--hr-success-light); border-color:var(--hr-success); text-decoration:none; }
.hr-state-city-pill:focus-visible { outline:3px solid var(--hr-primary); outline-offset:2px; background:var(--hr-success-light); }
@media (prefers-reduced-motion:reduce) { .hr-state-city-pill { transition:none; } }

/* How to Use Narcan state section */
.hrf-narcan-howto { background:var(--hr-gray-50); border:1px solid var(--hr-gray-200); border-radius:var(--hr-radius); padding:22px 24px; margin:24px 0; overflow:auto; }
.hrf-narcan-howto-title { margin:0 0 10px; font-size:1.2rem; font-weight:750; color:var(--hr-charcoal); }
.hrf-narcan-howto-intro { margin:0 0 14px; color:var(--hr-gray-600); font-size:.95rem; line-height:1.55; }
.hrf-narcan-howto-steps { margin:0 0 18px; padding-left:22px; color:var(--hr-charcoal); font-size:.92rem; line-height:1.65; }
.hrf-narcan-howto-steps li { margin-bottom:8px; }
.hrf-narcan-howto-cta { display:inline-flex; align-items:center; gap:6px; background:var(--hr-primary); color:#fff; font-weight:700; font-size:.9rem; padding:11px 20px; border-radius:999px; text-decoration:none; clear:both; }
.hrf-narcan-howto-cta:hover { background:var(--hr-primary-dark); text-decoration:none; }
.hrf-narcan-howto-note { margin:10px 0 0; font-size:.8rem; color:var(--hr-gray-600); font-style:italic; clear:both; }
.hrf-narcan-video-wrap { position:relative; float:left; width:100%; max-width:300px; padding-bottom:56.25%; height:0; overflow:hidden; border-radius:var(--hr-radius-sm); margin:2px 20px 16px 0; background:#000; }
.hrf-narcan-video-wrap.hrf-narcan-video-wide { max-width:100%; float:none; padding-bottom:56.25%; margin-right:0; }
.hrf-narcan-video-wrap iframe { position:absolute; top:0; left:0; width:100%; height:100%; border:0; }
@media (max-width: 640px) {
    .hrf-narcan-video-wrap { float:none; max-width:100%; padding-bottom:56.25%; margin-right:0; }
}
