/* ============================================================================
   HireTheVeterans.com — Resources Directory Styles
   /assets/css/resources.css

   V8 — summary field (HTV-README-65). Listing card description block
        is now plain text (admin summary or auto-excerpt) instead of
        clamped TinyMCE HTML — so the line-clamp rules are gone. Detail
        page gets a new .res-detail-lede block above "About".

   V7 — per-organisation detail pages (HTV-README-64).
        Card title is a link (.res-card-title-link).
        Detail page styles live in the .res-detail-* block below.

   V6 — logo column added, row restructured into logo + 3-line body.
        Flag emoji replaced with PNG <img> from /images/flags/.

   Layout (listing card):
     ┌──────┬──────────────────────────────────────────────┐
     │      │  Organisation Name (link)         🇺🇸 🇬🇧    │
     │ LOGO │  Summary text (1-2 sentences, plain text)     │
     │      │  🌐 website.org              ✉ contact@org   │
     └──────┴──────────────────────────────────────────────┘

   WCAG 2.1 AA compliance (federal Section 508 baseline):
   - Body #1a1a1a on #fff = 21:1
   - Muted #3a4654 on #fff = 8.6:1 (well above 4.5:1)
   - Borders #b8bdc4+ for non-text contrast (3:1 minimum)
   - Focus rings: 2px solid + 2px offset on every interactive element
   - Touch targets: 44px minimum on tappable elements
   - No colour-only meaning — flags pair colour with text labels

   DEPLOYMENT MARKER: PUBLIC_RESOURCES_CSS_V8_SUMMARY_FIELD
   ============================================================================ */

/* ── Base layout ─────────────────────────────────────────────────────── */
.res-page {
    background: #ffffff;
    min-height: 60vh;
    color: #1a1a1a;
}

.res-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* ── Page Header ─────────────────────────────────────────────────────── */
.res-header {
    background: linear-gradient(135deg, #0F1D36 0%, #1B2A4A 100%);
    color: #fff;
    padding: 48px 0 0;
}

.res-header .res-container {
    padding-bottom: 24px;
}

.res-title {
    font-family: 'Barlow Condensed', 'Barlow', sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 8px;
    color: #fff;
}

.res-subtitle {
    font-size: 16px;
    color: #e8e8e8;
    margin: 0 0 28px;
    max-width: 720px;
    line-height: 1.5;
}

/* ── Country tabs ────────────────────────────────────────────────────── */
.res-country-tabs {
    display: flex;
    gap: 4px;
    margin: 0;
}

.res-country-tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    border: 2px solid transparent;
    border-bottom: none;
    transition: background 0.15s, color 0.15s;
    min-height: 44px;
    box-sizing: border-box;
}

/* PNG flag inside the country tab — fixed size, slight border for
   definition against gradient (mainly visible behind UK flag whites) */
.res-country-tab-flag {
    display: block;
    width: 28px;
    height: 20px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.res-country-tab:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    text-decoration: none;
}

.res-country-tab:focus-visible {
    outline: 2px solid #FFD24A;
    outline-offset: 2px;
}

.res-country-tab.is-active {
    background: #f0f2f5;
    color: #0F1D36;
}

.res-country-tab.is-active .res-country-tab-flag {
    /* Drop the white halo on the active tab — light bg shows it as a smudge */
    box-shadow: 0 0 0 1px rgba(15, 29, 54, 0.18);
}

/* ── Layout: sidebar + content ───────────────────────────────────────── */
.res-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    padding-top: 32px;
    padding-bottom: 64px;
    align-items: start;
}

@media (max-width: 880px) {
    .res-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ── Sidebar ─────────────────────────────────────────────────────────── */
.res-sidebar {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 24px;
}

@media (max-width: 880px) {
    .res-sidebar { position: static; }
}

.res-sidebar-title {
    font-family: 'Barlow Condensed', 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0F1D36;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #C0392B;
}

.res-sidebar-empty {
    color: #3a4654;
    font-size: 14px;
    margin: 0;
}

.res-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.res-sidebar-list li {
    margin: 0;
}

.res-sidebar-list li + li {
    border-top: 1px solid #eef0f2;
}

.res-sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 4px;
    color: #1a2a44;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s;
    min-height: 40px;
    box-sizing: border-box;
}

.res-sidebar-link:hover {
    color: #C0392B;
    text-decoration: underline;
}

.res-sidebar-link:focus-visible {
    outline: 2px solid #2C5F8A;
    outline-offset: 1px;
    border-radius: 3px;
}

.res-sidebar-link-text { flex: 1; }

.res-sidebar-link-count {
    font-size: 12px;
    background: #eef2f7;
    color: #1a2a44;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    flex-shrink: 0;
}

.res-sidebar-cta {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eef0f2;
    text-align: center;
}

.res-sidebar-cta p {
    font-size: 13px;
    color: #2a3340;
    margin: 0 0 12px;
    line-height: 1.4;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* ── Main Content ───────────────────────────────────────────────────── */
.res-content {
    min-width: 0;
}

.res-results-meta {
    font-size: 14px;
    color: #2a3340;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.res-results-meta strong { color: #0F1D36; }

.res-meta-flag {
    display: inline-block;
    width: 20px;
    height: 14px;
    border-radius: 1px;
    box-shadow: 0 0 0 1px rgba(15, 29, 54, 0.15);
    vertical-align: middle;
}

/* ── Empty State ────────────────────────────────────────────────────── */
.res-empty {
    background: #fff;
    border-radius: 8px;
    padding: 48px 24px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.res-empty h2 {
    font-family: 'Barlow Condensed', 'Barlow', sans-serif;
    font-size: 22px;
    color: #0F1D36;
    margin: 0 0 12px;
    font-weight: 700;
}

.res-empty p {
    color: #2a3340;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

.res-empty a {
    color: #2C5F8A;
    font-weight: 600;
    text-decoration: underline;
}

.res-empty a:hover { color: #C0392B; }

/* ── Category Section ───────────────────────────────────────────────── */
.res-category {
    margin-bottom: 40px;
    scroll-margin-top: 80px;
}

.res-category-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 4px;
    padding-bottom: 8px;
    border-bottom: 3px solid #C0392B;
    flex-wrap: wrap;
}

.res-category-title {
    font-family: 'Barlow Condensed', 'Barlow', sans-serif;
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0F1D36;
    margin: 0;
}

.res-category-count {
    font-size: 13px;
    font-weight: 600;
    color: #2a3340;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.res-category-desc {
    font-size: 14px;
    color: #2a3340;
    line-height: 1.5;
    margin: 12px 0 16px;
    max-width: 800px;
}

/* ── Listing rows — V6 logo + 3-line body layout ─────────────────────── */
.res-listings {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.res-card {
    display: flex;
    gap: 18px;
    padding: 16px 20px;
    border-bottom: 1px solid #eef0f2;
    border-left: 4px solid transparent;
    transition: background 0.15s, border-left-color 0.15s;
    align-items: flex-start;
}

.res-card:last-child {
    border-bottom: none;
}

.res-card:hover {
    background: #fafbfc;
    border-left-color: #C0392B;
}

/* Logo column: fixed-width square box, light grey field so transparent
   PNGs and SVGs sit cleanly without disappearing into the row background.
   1px border for definition; placeholder gets a slightly lighter wash. */
.res-card-logo {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    background: #f5f7fa;
    border: 1px solid #d4d9df;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4px;
    box-sizing: border-box;
}

.res-card-logo--placeholder {
    background: #f8f9fb;
    border-style: dashed;
    border-color: #c4ccd6;
}

.res-card-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Body column: flex-column, fills remaining width */
.res-card-body {
    flex: 1;
    min-width: 0;   /* allow children to shrink below their intrinsic width */
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Generic line wrapper — provides the consistent vertical rhythm */
.res-card-line {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

/* Line 1: name (left) + flag(s) (right) */
.res-card-line--head {
    justify-content: space-between;
    gap: 14px;
}

.res-card-title {
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0F1D36;
    margin: 0;
    line-height: 1.3;
    overflow-wrap: break-word;
    word-break: break-word;
    flex: 1;
    min-width: 0;
}

/* V7: title is a link to the per-organisation detail page.
   Inherits typography from .res-card-title; adds hover/focus affordance. */
.res-card-title-link {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 0.18s ease, color 0.18s ease;
}

.res-card-title-link:hover,
.res-card-title-link:focus-visible {
    color: #C0392B;
    background-size: 100% 1px;
}

.res-card-title-link:focus-visible {
    outline: 2px solid #2C5F8A;
    outline-offset: 3px;
    border-radius: 2px;
}

/* Logo wrapping anchor — keep the image visually identical, just make it
   tappable. tabindex=-1 in markup keeps it out of the tab order so screen
   reader users only hit the visible title link, not a duplicate link. */
.res-card-logo-link {
    display: block;
    width: 100%;
    height: 100%;
}

/* Line 2: summary text (plain, 1-2 sentences). Input is bounded by
   admin-form maxlength=240 and the auto-excerpt cap of 160 chars, so
   no CSS clamp needed — natural wrapping gives 1-3 lines max. */
.res-card-line--desc {
    display: block;
    font-size: 13px;
    color: #3a4654;
    line-height: 1.4;
    margin: 0;
}

/* (V8) Nested-element rules dropped — listing card now renders plain
   text only. The .res-card-line--desc element is itself a <p>, with
   no children that need targeting. */

/* Line 3: contact — website left, email right via space-between.
   When only one is present, an empty <span> spacer is rendered server-side
   so the layout still pins the present link to the correct edge. */
.res-card-line--contact {
    justify-content: space-between;
    gap: 14px;
    margin-top: 2px;
    flex-wrap: wrap;
}

.res-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2C5F8A;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 0;
    min-height: 28px;
    max-width: 100%;
    overflow: hidden;
}

.res-card-link:hover {
    color: #C0392B;
    text-decoration: underline;
}

.res-card-link:focus-visible {
    outline: 2px solid #2C5F8A;
    outline-offset: 2px;
    border-radius: 2px;
}

.res-card-link-icon {
    flex-shrink: 0;
    font-size: 14px;
    width: 18px;
    text-align: center;
    line-height: 1;
}

.res-card-link-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.res-card-link--website .res-card-link-text { max-width: 280px; }
.res-card-link--email .res-card-link-text   { max-width: 280px; }

.res-external-icon {
    font-size: 11px;
    color: #4a5560;
    margin-left: 4px;
    flex-shrink: 0;
}

/* ── Country flag badges — PNG <img> based, sized for clarity ──────── */
.res-flag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    line-height: 0;   /* kill descender gap around the SVGs */
}

.res-flag-img {
    display: block;
    width: 28px;
    height: 20px;
    border-radius: 2px;
    /* Subtle outline gives definition on white and dark backgrounds alike */
    box-shadow: 0 0 0 1px rgba(15, 29, 54, 0.15);
}

.res-flag-pair .res-flag-img + .res-flag-img {
    margin-left: 0;
}

/* ── Back to top ─────────────────────────────────────────────────────── */
.res-back-to-top {
    text-align: right;
    margin: 12px 0 0;
}

.res-back-to-top a {
    color: #2C5F8A;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.res-back-to-top a:hover { text-decoration: underline; }

.res-back-to-top a:focus-visible {
    outline: 2px solid #2C5F8A;
    outline-offset: 2px;
    border-radius: 2px;
}

/* ── Mobile — keep logo on the left; let lines wrap as needed ───────── */
@media (max-width: 720px) {
    .res-card {
        gap: 14px;
        padding: 14px 16px;
    }

    .res-card-logo {
        flex: 0 0 56px;
        width: 56px;
        height: 56px;
    }

    .res-card-line--head {
        flex-wrap: wrap;
    }

    .res-card-title {
        font-size: 15px;
    }

    .res-card-line--contact {
        gap: 8px 14px;
    }

    .res-card-link--website .res-card-link-text,
    .res-card-link--email .res-card-link-text {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .res-card {
        flex-wrap: wrap;
    }

    .res-card-line--contact {
        /* Stack contact links on very narrow screens to avoid two truncated
           halves competing for the same row */
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .res-header { padding-top: 32px; }
    .res-country-tab { padding: 8px 14px; font-size: 14px; gap: 8px; }
    .res-country-tab-flag { width: 24px; height: 17px; }
    .res-category-title { font-size: 20px; }
    .res-flag-img { width: 24px; height: 17px; }
}

/* ── Print ───────────────────────────────────────────────────────────── */
@media print {
    .res-sidebar,
    .res-country-tabs,
    .res-back-to-top,
    .res-sidebar-cta { display: none; }
    .res-layout { grid-template-columns: 1fr; }
    .res-listings { box-shadow: none; }
    .res-card { break-inside: avoid; border-bottom: 1px solid #ccc; }
    .res-card-logo { border-color: #999; }
}

/* ============================================================================
   V7 — Resource Detail Page (/resources/{slug})
   .res-detail-* namespace, separate from listing card styles above.
   ============================================================================ */

.res-detail {
    background: #ffffff;
    color: #1a1a1a;
    min-height: 60vh;
}

/* ── Breadcrumb ──────────────────────────────────────────────────────── */
.res-detail-crumbs {
    background: #f4f6f8;
    border-bottom: 1px solid #c4ccd6;
    padding: 12px 0;
}

.res-detail-crumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 0;
    font-size: 13px;
    color: #3a4654;
}

.res-detail-crumbs li {
    display: inline-flex;
    align-items: center;
}

.res-detail-crumbs li + li::before {
    content: "›";
    margin: 0 10px;
    color: #8a93a0;
    font-weight: 600;
}

.res-detail-crumbs a {
    color: #2C5F8A;
    text-decoration: none;
}

.res-detail-crumbs a:hover,
.res-detail-crumbs a:focus-visible { text-decoration: underline; }

.res-detail-crumbs li[aria-current="page"] {
    color: #1a1a1a;
    font-weight: 600;
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.res-detail-hero {
    background: linear-gradient(135deg, #0F1D36 0%, #1B2A4A 100%);
    color: #fff;
    padding: 36px 0;
}

.res-detail-hero-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

.res-detail-hero-logo {
    flex: 0 0 auto;
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.res-detail-hero-logo--placeholder {
    background: #f4f6f8;
}

.res-detail-hero-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.res-detail-hero-text {
    flex: 1;
    min-width: 0;
}

.res-detail-hero-eyebrow {
    margin: 0 0 6px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #c8d2e0;
}

.res-detail-hero-eyebrow-link {
    color: #c8d2e0;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.18s ease, color 0.18s ease;
}

.res-detail-hero-eyebrow-link:hover,
.res-detail-hero-eyebrow-link:focus-visible {
    color: #fff;
    border-bottom-color: #fff;
}

.res-detail-hero-name {
    font-family: 'Barlow Condensed', 'Barlow', sans-serif;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    color: #fff;
    line-height: 1.15;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.res-detail-hero-name-text {
    flex: 1;
    min-width: 0;
}

/* ── Body ────────────────────────────────────────────────────────────── */
.res-detail-body {
    padding: 36px 24px 48px;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 32px;
    align-items: start;
}

/* (V8) Lede — the admin-written summary (or auto-excerpt fallback) shown
   as a visible opening paragraph above the description. Spans both
   columns so the description and contact card can sit side-by-side
   underneath. Italic + slightly larger than body to read as a "tagline"
   without competing with the H1 above. */
.res-detail-lede {
    grid-column: 1 / -1;
    margin: 0;
    padding: 16px 20px;
    background: #f4f6f8;
    border-left: 4px solid #2C5F8A;
    border-radius: 0 6px 6px 0;
    font-size: 17px;
    line-height: 1.55;
    color: #2a3340;
    font-style: italic;
}

.res-detail-section {
    background: #fff;
    border: 1px solid #c4ccd6;
    border-radius: 8px;
    padding: 24px;
}

.res-detail-section-title {
    font-family: 'Barlow Condensed', 'Barlow', sans-serif;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0F1D36;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #C0392B;
}

/* Description — full TinyMCE-rich content, no clamp */
.res-detail-desc {
    grid-column: 1;
}

.res-detail-desc-content {
    font-size: 15px;
    line-height: 1.65;
    color: #1a1a1a;
}

.res-detail-desc-content p { margin: 0 0 14px; }
.res-detail-desc-content p:last-child { margin-bottom: 0; }
.res-detail-desc-content h3 {
    font-family: 'Barlow Condensed', 'Barlow', sans-serif;
    font-size: 19px;
    color: #0F1D36;
    margin: 22px 0 8px;
}
.res-detail-desc-content h4 {
    font-size: 16px;
    color: #0F1D36;
    margin: 18px 0 6px;
}
.res-detail-desc-content ul,
.res-detail-desc-content ol { margin: 0 0 14px 22px; padding: 0; }
.res-detail-desc-content li { margin: 4px 0; }
.res-detail-desc-content blockquote {
    margin: 14px 0;
    padding: 8px 16px;
    border-left: 4px solid #2C5F8A;
    background: #f4f6f8;
    color: #2a3340;
    font-style: italic;
}
.res-detail-desc-content a {
    color: #2C5F8A;
    text-decoration: underline;
}
.res-detail-desc-content a:hover,
.res-detail-desc-content a:focus-visible { color: #C0392B; }
.res-detail-desc-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 8px 0;
}
.res-detail-desc-content table {
    border-collapse: collapse;
    margin: 14px 0;
    max-width: 100%;
}
.res-detail-desc-content table td,
.res-detail-desc-content table th {
    border: 1px solid #c4ccd6;
    padding: 6px 10px;
}

/* Contact card */
.res-detail-contact {
    grid-column: 2;
    position: sticky;
    top: 24px;
}

.res-detail-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.res-detail-contact-item {
    display: grid;
    grid-template-columns: 28px 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 2px;
    align-items: start;
}

.res-detail-contact-icon {
    grid-row: 1 / span 2;
    font-size: 18px;
    line-height: 1;
    padding-top: 2px;
    color: #2C5F8A;
}

.res-detail-contact-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
    font-weight: 600;
}

.res-detail-contact-value {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 15px;
    word-break: break-word;
    border-bottom: 1px solid transparent;
    transition: color 0.18s ease, border-color 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 28px;
}

.res-detail-contact-value:hover,
.res-detail-contact-value:focus-visible {
    color: #C0392B;
    border-bottom-color: #C0392B;
}

/* Back link */
.res-detail-back {
    grid-column: 1 / -1;
    margin: 8px 0 0;
    font-size: 14px;
}

.res-detail-back a {
    color: #2C5F8A;
    text-decoration: none;
    font-weight: 600;
}

.res-detail-back a:hover,
.res-detail-back a:focus-visible { text-decoration: underline; color: #C0392B; }

/* ── Detail page responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .res-detail-body {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px 16px 36px;
    }
    .res-detail-desc,
    .res-detail-contact { grid-column: 1; }
    .res-detail-contact { position: static; }
}

@media (max-width: 600px) {
    .res-detail-hero { padding: 28px 0; }
    .res-detail-hero-inner { flex-direction: column; text-align: center; gap: 16px; }
    .res-detail-hero-logo { width: 96px; height: 96px; }
    .res-detail-hero-name { justify-content: center; gap: 10px; }
    .res-detail-section { padding: 18px; }
    .res-detail-crumbs ol { font-size: 12px; }
    .res-detail-crumbs li + li::before { margin: 0 6px; }
    .res-detail-lede { font-size: 15px; padding: 14px 16px; }
}

/* ── Detail page print ───────────────────────────────────────────────── */
@media print {
    .res-detail-hero { background: none; color: #000; border-bottom: 2px solid #000; }
    .res-detail-hero-name,
    .res-detail-hero-eyebrow,
    .res-detail-hero-eyebrow-link { color: #000; }
    .res-detail-back,
    .res-detail-crumbs { display: none; }
    .res-detail-body { grid-template-columns: 1fr; }
    .res-detail-section { border: 1px solid #999; }
    .res-detail-contact { position: static; }
    .res-detail-lede { background: none; border-left-color: #000; color: #000; }
}
