/* EOHU theme — pure CSS, no JS. WCAG 2.0 AA.
   Faithfully replicates the Bolt 3 EOHU visual design. */

:root {
    --brand-blue:   #085dad;
    --navy:         #0d2d5e;
    --link-hover:   #0470c4;
    --ink:          #1a1f24;
    --paper:        #ffffff;
    --muted:        #5c6b77;
    --line:         #e5eaef;
    --soft:         #f4f7fb;
    --focus:        #ffbf47;
    --nav-border:   #d6dee8;
}

html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
}

h2, h3 { font-weight: 700; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-blue); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5rem; line-height: 1.25; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.5rem; }

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.skip-link {
    position: absolute; left: .5rem; top: -4rem; z-index: 1000;
    padding: .5rem 1rem; background: var(--ink); color: #fff;
    border-radius: 4px; text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: .5rem; color: #fff; }

a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, [tabindex]:focus-visible, label:focus-visible {
    outline: 3px solid var(--focus); outline-offset: 2px;
}

.visually-hidden {
    position: absolute !important; clip: rect(0 0 0 0);
    width: 1px; height: 1px; margin: -1px;
    overflow: hidden; white-space: nowrap; border: 0;
}

/* ── Extreme Heat Warning Banner (WCAG 2.0 AA Contrast Compliant Red) ── */
.heat-warning-banner {
    background-color: #c0000b;
    color: #ffffff;
    text-align: center;
    padding: 9px 15px;
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: .01em;
}
.heat-warning-banner a {
    color: #ffffff !important;
    text-decoration: underline;
    font-weight: 700;
}
.heat-warning-banner a:hover {
    color: var(--focus) !important;
}

/* ── Top contact bar ── */
.top-contact {
    background-color: var(--brand-blue);
    color: #fff; font-size: 1rem;
    height: 44px; line-height: 44px;
}
.top-contact .container {
    display: flex; align-items: center;
    justify-content: space-between; height: 100%;
    padding: 0 15px;
}
.top-contact ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.8rem; align-items: center; }
.top-contact ul a { color: #fff; text-decoration: none; }
.top-contact ul a:hover { color: #ccc; text-decoration: underline; }

.question-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; background-color: #ffffff;
    border-radius: 3px; color: var(--brand-blue);
    font-size: 13px; font-weight: 700;
    margin-right: 6px; vertical-align: middle; line-height: 1;
}

.top-contact .socials a {
    background: #ffffff;
    border-radius: 4px;
    width: 30px; height: 30px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0;
    transition: background .15s;
}
.top-contact .socials a:hover { background: #dce8f8; }
.top-contact .socials i { color: var(--brand-blue); font-size: 15px; line-height: 1; }

/* ── Nav bar ── */
.site-header { background: var(--paper); }
.main-menu-bar { position: relative; background: var(--paper); box-shadow: 0 2px 8px rgba(0,0,0,.09); }
.main-menu-bar .container { display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 0 15px; }

.logo { display: flex; align-items: center; padding: 5px 0; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo img { height: 70px; width: auto; }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label {
    display: none;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--nav-border);
    border-radius: 4px;
    cursor: pointer;
    background: var(--paper);
}
.hamburger { position: relative; display: block; width: 22px; height: 2px; background: var(--ink); }
.hamburger::before,
.hamburger::after {
    content: "";
    position: absolute;
    left: 0;
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
}
.hamburger::before { top: -7px; }
.hamburger::after  { top:  7px; }

/* ── Nav list ── */
.site-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; display: flex; align-items: center; }

.nav-item > a,
.nav-item > .nolink,
.nav-item > .nav-drop > summary,
.nav-item > .nav-drop > .nolink-summary {
    display: flex; align-items: center;
    padding: 0 18px;
    color: var(--ink); text-decoration: none;
    font-size: .95rem; font-weight: 600;
    border-left: 1px solid var(--line);
    white-space: nowrap; height: 72px;
    transition: color .15s, background .15s;
}
.nav-item:first-child > a,
.nav-item:first-child > .nolink,
.nav-item:first-child > .nav-drop > summary { border-left: 0; }

.nav-item > a:hover,
.nav-item > .nolink:hover,
.nav-item > .nav-drop > summary:hover { color: var(--brand-blue); background: var(--soft); text-decoration: none; }

.nav-drop { position: relative; display: flex; align-items: center; height: 100%; }
.nav-drop > summary { list-style: none; cursor: pointer; gap: .35rem; display: flex; align-items: center; height: 100%; }
.nav-drop > summary::-webkit-details-marker { display: none; }
/* Font Awesome chevron — stays pointing down while the sub-menu is open. */
.nav-drop > summary::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro";
    font-weight: 900;
    font-size: .7em;
    line-height: 1;
    display: inline-block;
}

/* ── Search bar ── */
.search-form {
    position: relative;
    display: flex; align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}
.search-field {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 9px 42px 9px 16px;
    width: 260px;
    font-size: .9rem;
    line-height: 1.2;
    background: var(--soft);
    transition: border-color .15s, background .15s;
}
.search-field:focus { outline: 3px solid var(--focus); outline-offset: 0; background: #fff; border-color: var(--brand-blue); }
.search-btn {
    position: absolute;
    right: 6px; top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: var(--brand-blue);
    cursor: pointer;
    padding: 6px;
    display: inline-flex;
}
.search-btn i { font-size: 16px; line-height: 1; }
.search-btn:hover { color: var(--link-hover); }

/* ── Dropdown ── */
.dropdown { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; z-index: 200; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.12); overflow: hidden; }
.nav-drop[open] > .dropdown { display: block; }
.dropdown ul { list-style: none; margin: 0; padding: 0; }
.dropdown a, .dropdown .nolink { display: block; padding: .6rem 1rem; color: var(--ink); text-decoration: none; font-size: .9rem; border-bottom: 1px solid var(--line); transition: background .12s; }
.dropdown a:hover { background: var(--soft); color: var(--brand-blue); }

/* ── Mega-panel ── */
/* The nav bar is the positioning context (full viewport width), so the panel
   sits directly beneath it and is centred on the main content column. */
.nav-item.nav-mega { position: static; }
.nav-item.nav-mega > .nav-drop { position: static; }
.mega-wrapper {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: min(1110px, calc(100vw - 30px));
    z-index: 200;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 16px 40px rgba(0,0,0,.15);
    justify-content: center;
}
.nav-drop[open] > .mega-wrapper { display: flex; }

.mega-radio { position: absolute; opacity: 0; width: 0; height: 0; }

.mega-tabs { display: flex; flex-direction: column; flex: 0 0 220px; background: var(--soft); border-right: 1px solid var(--line); }
.mega-tab { display: flex; align-items: center; padding: .8rem 1rem; cursor: pointer; font-size: .9rem; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; transition: background .15s; }
.mega-tab:hover { background: var(--line); }

.mega-radio:nth-of-type(1):checked ~ .mega-tabs .mega-tab:nth-of-type(1),
.mega-radio:nth-of-type(2):checked ~ .mega-tabs .mega-tab:nth-of-type(2),
.mega-radio:nth-of-type(3):checked ~ .mega-tabs .mega-tab:nth-of-type(3),
.mega-radio:nth-of-type(4):checked ~ .mega-tabs .mega-tab:nth-of-type(4),
.mega-radio:nth-of-type(5):checked ~ .mega-tabs .mega-tab:nth-of-type(5),
.mega-radio:nth-of-type(6):checked ~ .mega-tabs .mega-tab:nth-of-type(6) { background: var(--brand-blue); color: #fff; font-weight: 600; border-left-color: #fff; }

.mega-radio:nth-of-type(1):focus-visible ~ .mega-tabs .mega-tab:nth-of-type(1),
.mega-radio:nth-of-type(2):focus-visible ~ .mega-tabs .mega-tab:nth-of-type(2),
.mega-radio:nth-of-type(3):focus-visible ~ .mega-tabs .mega-tab:nth-of-type(3),
.mega-radio:nth-of-type(4):focus-visible ~ .mega-tabs .mega-tab:nth-of-type(4),
.mega-radio:nth-of-type(5):focus-visible ~ .mega-tabs .mega-tab:nth-of-type(5),
.mega-radio:nth-of-type(6):focus-visible ~ .mega-tabs .mega-tab:nth-of-type(6) { outline: 3px solid var(--focus); outline-offset: 2px; }

.mega-panes { flex: 1; max-width: 920px; overflow: auto; }
.mega-pane { display: none; padding: 1.25rem; }
.mega-radio:nth-of-type(1):checked ~ .mega-panes .mega-pane:nth-of-type(1),
.mega-radio:nth-of-type(2):checked ~ .mega-panes .mega-pane:nth-of-type(2),
.mega-radio:nth-of-type(3):checked ~ .mega-panes .mega-pane:nth-of-type(3),
.mega-radio:nth-of-type(4):checked ~ .mega-panes .mega-pane:nth-of-type(4),
.mega-radio:nth-of-type(5):checked ~ .mega-panes .mega-pane:nth-of-type(5),
.mega-radio:nth-of-type(6):checked ~ .mega-panes .mega-pane:nth-of-type(6) { display: block; }

.mega-pane-inner { columns: 2; column-gap: 2rem; }
.mega-group { break-inside: avoid; margin-bottom: .3rem; border-bottom: 1px solid var(--line); }
.mega-group > summary {
    display: flex; align-items: baseline; gap: .35rem;
    list-style: none; cursor: pointer;
    font-size: .9rem; font-weight: 700; color: var(--ink);
    padding: .5rem 0; transition: color .12s;
}
/* Hide the native disclosure triangle (both engines) */
.mega-group > summary::-webkit-details-marker { display: none; }
.mega-group > summary::marker { content: none; }
/* +/- toggle in place of an arrow */
.mega-group > summary::before { content: "+"; width: 1rem; color: var(--brand-blue); font-weight: 700; }
.mega-group[open] > summary::before { content: "–"; }
.mega-group > summary:hover { color: var(--brand-blue); }
.mega-group > summary a,
.mega-group > summary .nolink { color: inherit; text-decoration: none; font-weight: 700; }
.mega-group > summary a:hover { color: var(--brand-blue); }

/* Pure-CSS collapse/uncollapse effect: expands smoothly on every open */
.mega-group > ul {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    list-style: none;
    margin: 0 0 0 1.4rem;
    padding: 0;
}
/* The open state persists after the animation (keyframes alone reset on finish) */
.mega-group[open] > ul {
    max-height: 600px;
    opacity: 1;
    animation: mega-open .3s ease;
}
@keyframes mega-open {
    from { max-height: 0; opacity: 0; }
    to   { max-height: 600px; opacity: 1; }
}
.mega-group li { padding: 2px 0; }
.mega-group li a, .mega-group li .nolink { font-size: .87rem; text-decoration: none; color: var(--muted); }
.mega-group li a:hover { color: var(--brand-blue); text-decoration: underline; }

/* ── Jumbotron ── */
.jumbotron {
    position: relative;
    height: 340px; display: flex; align-items: center;
    overflow: hidden;
}
/* Dark gradient overlay keeps white text WCAG AA against any image */
.jumbotron::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(5,20,55,.92) 0%, rgba(5,20,55,.65) 55%, rgba(5,20,55,.15) 100%);
}
.jumbotron-inner { position: relative; z-index: 1; padding: 0 48px; width: 55%; }
.jumbotron h1 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800; line-height: 1.2; color: #fff; margin-bottom: 1.25rem;
}
.btn-jumbotron {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .65rem 1.5rem;
    background: #fff; color: var(--brand-blue) !important;
    border-radius: 6px; font-weight: 700; font-size: 1rem;
    text-decoration: none !important;
    transition: background .18s, color .18s;
}
.btn-jumbotron:hover { background: var(--brand-blue); color: #fff !important; }

/* ── Notices / alert boxes (Faithfully styled like .alert-info) ── */
.notices { padding-top: 1.5rem; }
.notices .alert { min-height: 64px; display: flex; align-items: center; justify-content: center; }
.notices .alert > a { display: block; width: 100%; }
.alert { padding: 14px 18px; margin-bottom: 12px; border: 1px solid transparent; border-radius: 6px; }
.alert p { margin: 0; }
.alert-info {
    background-color: #e8f4fd;
    border-color: #bde0f8;
    color: #1a4e6e;
    text-align: center;
}
.alert-info a {
    color: #0d3f58 !important;
    text-decoration: none;
    font-weight: 700;
}
.alert-info a:hover {
    text-decoration: underline;
}

/* ── Cards grid ── */
.card-grid { padding: 2rem 0; }
.card-grid-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 0 15px; }
.card-item { display: flex; flex-direction: column; }
.card-item > .item { height: 100%; display: flex; }
.card-item:hover .post { box-shadow: 0 8px 24px rgba(0,0,0,.13); transform: translateY(-3px); }
.post {
    background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
    width: 100%; height: 100%; display: flex; flex-direction: column; overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.post-top { flex: 0 0 auto; }
.post-thumbnail { display: block; width: 100%; overflow: hidden; }
.post-thumbnail img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.post-content { flex: 1 1 auto; display: flex; flex-direction: column; }
.post-title { color: var(--brand-blue); font-weight: 500; text-align: center; font-size: 1rem; padding: .75rem .75rem .9rem; line-height: 1.4; flex: 1 1 auto; display: flex; align-items: center; justify-content: center; min-height: 5.85rem; }
.post-title a { color: var(--brand-blue); text-decoration: none; }
.post-title a:hover { color: var(--link-hover); text-decoration: underline; }
.img-placeholder { width: 100%; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #eef8fa, #d9eef3); color: #2f6f7c; font-weight: 600; padding: 1rem; text-align: center; font-size: .9rem; }

/* ── Record & Listing ── */
.page-head { background: var(--soft); border-bottom: 1px solid var(--line); padding: 2rem 0; }
.page-head h1 { color: var(--brand-blue); }
.article { max-width: none; margin: 0; padding: 2rem 0 3rem; }
.article h1 { color: var(--brand-blue); margin-bottom: 1rem; }
.article .article-date { display: block; color: var(--muted); font-size: .95rem; margin-bottom: 1.25rem; }
.article img { border-radius: 4px; margin-bottom: 1rem; }
.templatefields-subheader { font-size: 1.4rem; color: var(--brand-blue); }
.templatefields-intro { border-left: 4px solid var(--brand-blue); padding-left: 1rem; margin: 1.25rem 0; color: #555; }

.listing { padding: 1.5rem 0 2rem; }
.listing-item { border-bottom: 1px solid var(--line); padding: 1.25rem 0; }
.listing-item h2 { font-size: 1.1rem; margin-bottom: .2rem; }
.listing-item h2 a { color: var(--brand-blue); text-decoration: none; }
.listing-item h2 a:hover { color: var(--link-hover); }
.listing-item time { color: var(--muted); font-size: .875rem; }
.pager { display: flex; gap: .35rem; flex-wrap: wrap; padding: 1.5rem 0; }
.pager a, .pager span { padding: .35rem .65rem; border: 1px solid var(--line); border-radius: 3px; text-decoration: none; color: var(--brand-blue); }
.pager a:hover { background: var(--soft); }
.pager span { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); }

/* ── Footer ── */
/* Legacy grey footer. */
.site-footer { background: #666; color: #f2f2f2; font-size: .9rem; }
.footer-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 3rem; padding: 0 15px 2.5rem; max-width: 1140px; margin: 0 auto; }
.footer-col h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; padding-top: 1.5rem; padding-bottom: .4rem; margin-bottom: .75rem; border-bottom: 1px solid rgba(255,255,255,.2); color: #fff; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { padding: 0 0 .5rem; }
.footer-col a { color: #e6e6e6; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.living-wage { display: inline-block; margin-top: 1.25rem; border-radius: 4px; overflow: hidden; }
.living-wage img { width: 160px; height: auto; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.15);
    padding: 1.5rem 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .9rem;
    text-align: center;
    font-size: .875rem; color: #f2f2f2;
    max-width: 1140px; margin: 0 auto;
}
.footer-bottom p { margin: 0; max-width: 70ch; }
.footer-bottom a { color: #e6e6e6; }
.footer-bottom a:hover { color: #fff; text-underline-offset: 3px; }
.footer-bottom .socials a { background: rgba(255,255,255,.1); }
.footer-bottom .socials a:hover { background: rgba(255,255,255,.25); }

.socials { display: flex; gap: .6rem; }
.socials a { display: inline-flex; padding: .3rem; border-radius: 4px; }
.socials i { font-size: 20px; line-height: 1; color: #fff; }
.footer-phone { display: inline-flex; align-items: center; gap: .3rem; }
.footer-phone i { font-size: .9em; }

/* ── Mobile ── */
@media (max-width: 991px) {
    .nav-toggle-label { display: flex; }
    .main-menu-bar .container { flex-wrap: wrap; min-height: auto; padding: .5rem 15px; row-gap: .5rem; }
    .logo { padding: .5rem 0; }
    .logo img { height: 54px; }

    /* Mobile nav: the toggled panel replaces the horizontal list. */
    .site-nav {
        display: none;
        width: 100%;
        order: 10;
        max-height: calc(100vh - 200px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-top: 1px solid var(--line);
    }
    .nav-toggle:checked ~ .main-menu-bar .site-nav { display: block; }
    .nav-list { flex-direction: column; align-items: stretch; width: 100%; }
    .nav-item { display: block; width: 100%; }
    /* Sub-menus stack underneath their parent instead of sitting beside it. */
    .nav-drop { display: block; height: auto; }
    .nav-item > a,
    .nav-item > .nolink,
    .nav-item > .nav-drop > summary {
        display: flex; align-items: center; justify-content: space-between;
        min-height: 44px; height: auto; width: 100%;
        padding: .7rem .25rem;
        border-left: 0; border-top: 1px solid var(--line);
        font-size: 1rem; white-space: normal;
    }
    .nav-item:first-child > a,
    .nav-item:first-child > .nav-drop > summary { border-top: 0; }
    /* A clear, always-visible disclosure affordance for sub menus. */
    .nav-drop > summary::after { font-size: 1rem; }

    /* Sub-menus are in-flow, not floating, and start collapsed. */
    .dropdown,
    .mega-wrapper {
        position: static; display: none; width: 100%; max-width: none;
        transform: none; box-shadow: none; border: 0; border-radius: 0;
        background: var(--soft);
    }
    .nav-drop[open] > .dropdown { display: block; }
    .nav-drop[open] > .mega-wrapper { display: block; }
    .dropdown a, .dropdown .nolink { padding: .6rem .25rem .6rem 1.25rem; border-bottom: 0; font-size: .95rem; }

    .mega-tabs { flex: 0 0 auto; flex-direction: row; flex-wrap: wrap; gap: .3rem; padding: .5rem 0; border-right: 0; background: none; }
    .mega-tab { border: 1px solid var(--line); border-radius: 4px; padding: .35rem .7rem; border-left-width: 1px; font-size: .9rem; }
    .mega-panes { max-width: none; overflow: visible; }
    .mega-pane { padding: .5rem 0; }
    .mega-pane-inner { columns: 1; }
    .mega-group { border-bottom: 0; }
    .mega-group > summary { padding: .5rem .25rem .5rem 1rem; }
    .mega-group > ul { margin-left: 2rem; }
    .mega-group li a, .mega-group li .nolink { font-size: .9rem; }

    .search-form { order: 11; width: 100%; margin: .5rem 0 0; }
    .search-field { width: 100%; }

    /* The right-hand sidebar is hidden on small screens. */
    .content-layout .sidebar:not(.sidebar--left) { display: none; }

    .card-grid-inner { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .footer-inner { grid-template-columns: 1fr; }
    .jumbotron-inner { width: 75%; }
}

@media (max-width: 600px) {
    .card-grid-inner { grid-template-columns: 1fr; }
    .jumbotron { height: auto; }
    .jumbotron-inner { width: 100%; padding: 2rem 1.25rem; }
    .top-contact { height: auto; line-height: 1.4; }
    .top-contact .container { flex-wrap: wrap; padding: .5rem 15px; height: auto; gap: .5rem; }
    /* Topic / classes landing pages: drop the illustration on phones. */
    .topic-image-col { display: none; }
}

/* ── Forms (rendered by js/forms.js from window.formConfig) ── */
.form-page { max-width: 900px; margin: 0 auto; padding: 2rem 15px; }
.form-page h1 { font-size: 2rem; margin-bottom: 1rem; color: var(--brand-blue); }
.form-page h2, .form-page h3 { color: var(--brand-blue); }
.form-intro, .form-footer { margin-bottom: 1.5rem; }

.eohu-form .form-header { font-weight: 700; margin-bottom: 1rem; }

.eohu-form .form-fieldset {
    border: 1px solid var(--line); border-radius: 6px;
    padding: 1rem 1.25rem 1.25rem; margin: 0 0 1.5rem;
}
.eohu-form .form-fieldset legend { font-weight: 700; padding: 0 .5rem; }

.eohu-form .form-field { margin-bottom: 1.1rem; }
.eohu-form .form-field > label,
.eohu-form .repeater-label { display: block; font-weight: 600; margin-bottom: .3rem; }

.eohu-form input[type=text],
.eohu-form input[type=date],
.eohu-form input[type=time],
.eohu-form textarea,
.eohu-form select {
    width: 100%; padding: .5rem .65rem;
    border: 1px solid var(--line); border-radius: 4px;
    background: #fff; color: var(--ink); font-size: 1rem;
}
.eohu-form input:focus, .eohu-form textarea:focus, .eohu-form select:focus {
    outline: 3px solid var(--brand-blue); outline-offset: 1px; border-color: var(--brand-blue);
}
.eohu-form .invalid { border-color: #c0000b; }

.eohu-form .choice-list { display: flex; flex-direction: column; gap: .45rem; }
.eohu-form .choice-row { display: flex; align-items: center; gap: .5rem; }
.eohu-form .choice-row label { font-weight: 400; margin: 0; }
.eohu-form input[type=checkbox], .eohu-form input[type=radio] { width: 1.25rem; height: 1.25rem; }

.eohu-form .form-error { color: #c0000b; font-size: .875rem; margin: .35rem 0 0; }
.eohu-form .form-separator { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }

.eohu-form .repeater-list { margin-bottom: .5rem; }
.eohu-form .repeater-item {
    border: 1px dashed var(--line); border-radius: 4px;
    padding: .75rem; margin-bottom: .6rem; position: relative;
}
.eohu-form .btn-remove-row {
    position: absolute; top: .35rem; right: .35rem;
    border: 1px solid var(--line); background: var(--paper); color: var(--muted);
    width: 1.6rem; height: 1.6rem; border-radius: 4px; cursor: pointer;
}
.eohu-form .btn-remove-row:hover { color: #c0000b; border-color: #c0000b; }
.eohu-form .btn-add-row, .eohu-form .btn-clear-canvas {
    border: 1px solid var(--brand-blue); background: var(--paper); color: var(--brand-blue);
    padding: .35rem .8rem; border-radius: 4px; cursor: pointer; font-size: .9rem;
}
.eohu-form .btn-add-row:hover, .eohu-form .btn-clear-canvas:hover { background: var(--soft); }

.eohu-form .canvas-input {
    width: 100%; max-width: 400px; height: 140px;
    border: 1px solid var(--line); border-radius: 4px; background: #fff;
    touch-action: none; display: block; margin-bottom: .4rem;
}

.eohu-form .btn-submit {
    background: var(--brand-blue); color: #fff; border: 0;
    padding: .6rem 1.6rem; border-radius: 6px; font-size: 1rem; font-weight: 600;
    cursor: pointer;
}
.eohu-form .btn-submit:hover { background: var(--link-hover); }
.eohu-form .btn-submit:disabled { opacity: .6; cursor: default; }

.eohu-form .form-status { min-height: 1.4rem; margin-top: .75rem; }
.eohu-form .form-status-error { color: #c0000b; }

.form-success { border: 1px solid var(--line); border-radius: 6px; padding: 1.5rem; background: var(--paper); }
.form-success p { font-weight: 700; }
.form-success .success-content { margin-top: .5rem; }

/* ── Search results: matched forms section ── */
.search-forms { margin-bottom: 2rem; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.search-forms h2 { margin: 0 0 .5rem; }
.search-forms ul { margin: 0; padding-left: 1.25rem; }
.search-forms li { padding: .15rem 0; }
.search-forms a { color: var(--brand-blue); }
.search-forms a:hover { color: var(--link-hover); }

/* ── Ported content templates (pages/myhealth/mycommunity/myenvironment) ── */
.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}
/* The grid item must stretch: `margin: 0 auto` on `.article` would otherwise turn
   it into a shrink-to-fit box centred inside its track. The top padding is
   removed so the page title lines up with the top of the sidebar. */
.content-layout > .content-main { width: 100%; max-width: none; margin: 0; padding-top: 0; }
@media (min-width: 992px) {
    .content-layout:has(.sidebar) { grid-template-columns: minmax(0, 1fr) 220px; }
    .content-layout .sidebar { grid-column: 2; grid-row: 1; }
    .content-layout .content-main { grid-column: 1; grid-row: 1; }
    .content-layout:has(.sidebar) .content-main { padding-right: 0; }
    /* municipalities template: sidebar on the left */
    .content-layout .sidebar--left { grid-column: 1; grid-row: 1; }
    .content-layout .sidebar--left ~ .content-main { grid-column: 2; grid-row: 1; }
}

.article hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }

/* Sidebar — legacy look: images with a caption, no surrounding box. */
.sidebar { background: none; border: 0; border-radius: 0; padding: 0; }
.sidebar-heading { font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line); padding-bottom: .4rem; margin-bottom: .75rem; }
.sidebar-item { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.sidebar-item:last-child { border-bottom: 0; }
.sidebar-title { font-weight: 600; }
.sidebar-list { list-style: none; margin: 0; padding: 0; }
.sidebar-list li { padding: .4rem 0; border-bottom: 1px solid var(--line); }
.sidebar-list li:last-child { border-bottom: 0; }

/* Sidebar image cards (from the `settings` content type `sidebar` collection) */
.sidebar-card { display: block; margin-bottom: 1.75rem; color: inherit; text-decoration: none; }
.sidebar-card:last-child { margin-bottom: 0; }
.sidebar-card img { display: block; width: 100%; height: auto; border-radius: 0; }
.sidebar-card .sidebar-title {
    display: block; margin-top: .6rem; line-height: 1.35;
    text-align: center; font-weight: 400; font-size: 1rem; color: var(--brand-blue);
}
.sidebar-card:hover .sidebar-title { color: var(--link-hover); text-decoration: underline; }

/* Breadcrumb */
.breadcrumb { padding: .75rem 0; font-size: .875rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li + li::before { content: "›"; margin: 0 .5rem; color: var(--muted); }
.breadcrumb a { color: var(--brand-blue); }
.breadcrumb li[aria-current] { color: var(--muted); }

/* ── Tables ── */
/* Content tables (imported HTML has bare `<table>` markup) must not show gaps
   between cells, and every cell needs a bit of breathing room. */
.table-wrap { overflow-x: auto; }
.article table,
.content-main table,
.table-plain,
.table-responsive table,
.signage-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin-bottom: 1rem;
    font-size: .95rem;
}
.article table th, .article table td,
.content-main table th, .content-main table td,
.table-plain th, .table-plain td { text-align: left; padding: .6rem .8rem; vertical-align: top; }
.table-plain thead th { background: var(--soft); border-bottom: 2px solid var(--line); font-weight: 700; }
.table-plain td { border-bottom: 1px solid var(--line); }
.table-striped tbody tr:nth-child(odd) { background: #fbfcfe; }
.table-bordered th, .table-bordered td { border: 1px solid var(--line); }
.nowrap { white-space: nowrap; }
.board-photo { width: 110px; }
.board-photo img { width: 100px; height: auto; }

/* Offices (contact page) */
.offices-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.office-card { border: 1px solid var(--line); border-radius: 6px; padding: 1rem 1.25rem; background: var(--paper); }
.office-title { color: var(--brand-blue); margin-bottom: .5rem; }

/* Topics / classes landing columns */
.topic-columns { display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding-top: 0; padding-bottom: 2rem; }
@media (min-width: 992px) {
    .topic-columns { grid-template-columns: repeat(3, 1fr); }
    .topic-columns:has(.topic-image-col) { grid-template-columns: repeat(3, 1fr); }
}
/* Tablets: image on the left, the link columns stack on the right */
@media (min-width: 601px) and (max-width: 991px) {
    .topic-columns { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-content: start; }
    .topic-image-col { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
    .topic-links-col { grid-column: 2; }
}
/* Both link groups in one column (classes landing) */
@media (min-width: 601px) {
    .topic-columns--single-links:has(.topic-image-col) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; column-gap: .75rem; }
}
.topic-image-col img { border-radius: 6px; width: 100%; max-width: 440px; height: auto; }
.topic-links-col h2 { font-size: 1.05rem; }
.topic-links-col hr { border: 0; border-top: 1px solid var(--line); margin: .75rem 0; }

/* Landing pages (classes-clinics, topics): the title belongs flush left with the
   container and right above the columns, not inside the centred .article box. */
.content-layout:has(+ .topic-columns) { padding-bottom: 1rem; }
.content-layout:has(+ .topic-columns) .article { max-width: none; margin: 0; padding: 0; }
.content-layout:has(+ .topic-columns) .article h1 { margin-bottom: 0; }

/* Accordion (tabs, core indicators) */
.accordion { border-top: 1px solid var(--line); margin: 1rem 0; }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-item > summary {
    list-style: none; cursor: pointer; padding: .9rem 1rem;
    font-weight: 700; color: var(--ink); background: var(--paper);
    display: flex; align-items: center; gap: .5rem;
}
.accordion-item > summary::-webkit-details-marker { display: none; }
.accordion-item > summary::before { content: "+"; color: var(--brand-blue); font-weight: 700; width: 1rem; }
.accordion-item[open] > summary::before { content: "–"; }
.accordion-item > summary:hover { color: var(--brand-blue); background: var(--soft); }
.accordion-body { padding: .25rem 1rem 1rem; }
.accordion-item--nested { border: 1px solid var(--line); border-radius: 4px; margin: .5rem 0; }

/* Parent link button */
.btn-parent {
    display: inline-block; padding: .6rem 1.2rem; margin: 1rem 0 2rem;
    background: var(--brand-blue); color: #fff !important; border-radius: 6px;
    font-weight: 600; text-decoration: none !important;
}
.btn-parent:hover { background: var(--link-hover); }

/* Videos listing */
.video-search { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 1rem 0; }
.video-search input[type=search] { border: 1px solid var(--line); border-radius: 4px; padding: .5rem .65rem; min-width: 240px; }
.video-search button, .btn-submit {
    background: var(--brand-blue); color: #fff; border: 0;
    padding: .55rem 1.2rem; border-radius: 6px; font-weight: 600; cursor: pointer;
    display: inline-block; text-decoration: none;
}
.video-search button:hover, .btn-submit:hover { background: var(--link-hover); color: #fff; text-decoration: none; }
.video-sort-links { font-size: .9rem; margin: 0 0 1rem; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; margin-bottom: 1.5rem; }
.video-item { border: 1px solid var(--line); border-radius: 6px; padding: .75rem; background: var(--paper); }
.video-item img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 4px; }
.video-item p { margin: .4rem 0 0; font-size: .9rem; }

/* Video record page (video.twig) — responsive YouTube embed */
.video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 1rem 0;
}
.video-wrap iframe,
.video-wrap object,
.video-wrap embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Embedded video inside imported page bodies: fill the column and keep the
   aspect ratio instead of the fixed width/height attributes YouTube emits. */
.article iframe,
.content-main iframe,
.article video,
.content-main video {
    display: block;
    width: 100% !important;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    margin-bottom: 1rem;
}
/* An iframe wrapped this way is already sized by .video-wrap */
.video-wrap iframe { position: absolute; height: 100%; aspect-ratio: auto; margin: 0; }

/* Legacy bodies wrap embeds in Bootstrap's `.embed-responsive` helper. Keep the
   same behaviour (fluid width, intrinsic ratio) without Bootstrap. */
.embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    overflow: hidden;
}
.embed-responsive::before { content: ""; display: block; padding-top: 56.25%; }
.embed-responsive-4by3::before { padding-top: 75%; }
.embed-responsive-21by9::before { padding-top: 42.857143%; }
.embed-responsive > iframe,
.embed-responsive > embed,
.embed-responsive > object,
.embed-responsive > video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto;
    border: 0;
    margin: 0;
}

/* Carousel (replace_tags) */
.carousel { margin: 1rem 0; }
.carousel figure { margin: 0; }
.carousel img { width: 100%; border-radius: 6px; }

.muted { color: var(--muted); }

.img-placeholder--compact { min-height: 100px; }
.img-placeholder--small { min-height: 140px; padding: 1rem; }

/* ── Dynamic homepage jumbotron / notices ── */
.homepage-jumbotron {
    position: relative;
    min-height: 300px;
    margin: 20px 0 0;
    padding: 2rem 2.5rem;
    background-position: center left;
    background-size: cover;
    background-color: #e8f6f8;
    border: 2px solid var(--line);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.homepage-jumbotron h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: .75rem; }
.homepage-jumbotron h2 { font-size: 1.25rem; }
.homepage-jumbotron h2 a { text-decoration: none; color: #666; }
.homepage-jumbotron h2 a:hover { text-decoration: underline; }
.homepage-jumbotron h3 { font-size: 1rem; color: var(--ink); }

.alert-warning {
    background-color: #fcf3d9;
    border-color: #f0d98c;
    color: #6b5300;
}
.alert-danger {
    background-color: #fde7e9;
    border-color: #f5b8bd;
    color: #8f1d27;
}

/* ── Section pages ── */
.section-layout { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) {
    .section-layout:has(.section-image) { grid-template-columns: 260px minmax(0, 1fr); }
}
.section-image img { border-radius: 6px; }
/* Topic link lists (topics-landing / classes-clinics landing).
   Legacy look: the top level keeps the section heading, everything below it is
   a plain bulleted list with regular-weight links. */
.section-links ul { list-style: disc; margin: 0 0 .75rem; padding-left: 1.25rem; }
.section-links li { padding: .15rem 0; border-bottom: 0; }
.section-links h3 { font-size: 1rem; font-weight: 400; margin: 0; }
.section-links h3 a { font-weight: 400; }
.section-links ul ul { margin-top: .25rem; padding-left: 1.25rem; }
.section-links li li { padding: .15rem 0; }

/* ── Tables helpers for class/immunization pages ── */
.col-25 { width: 25%; }
.col-50 { width: 50%; }
.right { text-align: right; }
.full { color: #c0000b; font-weight: 700; }

/* ── COVID dashboard stat cards ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin: 1rem 0; }
.stat-card { border: 1px solid var(--line); border-radius: 6px; padding: 1rem; text-align: center; background: var(--paper); }
.stat-card h2 { font-size: .9rem; margin-bottom: .5rem; }
.stat-card p { font-size: 1.5rem; font-weight: 700; margin: 0; color: var(--brand-blue); }

/* ── Smoke-free signage request (js/signage.js) ── */
#signage-app-container { margin: 1rem 0 2rem; }
.signage-error { color: #c0000b; padding-top: 10px; font-weight: 600; }

.signage-cart-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: .75rem;
    margin: 1rem 0 1.5rem; padding: .75rem 1rem;
    border: 1px solid var(--line); border-radius: 6px; background: var(--soft);
}
.signage-cart-bar .btn-view-cart { margin-left: auto; }

.signage-facility {
    border: 1px solid var(--line); border-radius: 6px;
    margin: 0 0 .75rem; background: var(--paper);
}
.signage-facility-title {
    list-style: none; cursor: pointer; font-weight: 700; font-size: 1.1rem;
    padding: .85rem 1rem; color: var(--brand-blue);
}
.signage-facility-title::-webkit-details-marker { display: none; }
.signage-facility-title::before { content: "▸ "; color: var(--muted); }
.signage-facility[open] .signage-facility-title::before { content: "▾ "; }
.signage-facility-body { padding: 0 1rem 1rem; }
.signage-facility-body .alert { margin-top: .5rem; }

.signage-signs {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem; margin-top: .5rem;
}
.signage-sign-card {
    display: flex; flex-direction: column;
    border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
    background: var(--paper);
}
.signage-card-img { width: 100%; height: 180px; object-fit: contain; background: var(--soft); }
.signage-card-placeholder {
    display: flex; align-items: center; justify-content: center;
    min-height: 180px; padding: 1rem; text-align: center; font-weight: 700;
    color: var(--brand-blue); background: linear-gradient(135deg, #eef8fa 0%, #d9eef3 100%);
}
.signage-card-body { padding: .75rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.signage-card-title { font-size: 1rem; margin: 0; }
.signage-card-purpose { font-size: .9rem; margin: 0; }
.signage-card-dimensions { font-size: .9rem; color: var(--muted); margin: 0; }
.signage-card-body .alert { margin: 0; font-size: .875rem; }
.signage-qty-row { display: flex; align-items: center; gap: .5rem; margin-top: auto; }
.signage-qty-label { font-size: .9rem; font-weight: 600; }
.signage-qty { padding: .3rem .5rem; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.signage-card-body > .btn-submit, .signage-card-body > .btn-signage-remove { margin-top: .4rem; align-self: flex-start; }

.btn-signage-remove {
    background: #fff; color: #c0000b; border: 1px solid #c0000b;
    padding: .4rem .9rem; border-radius: 4px; cursor: pointer; font-size: .875rem;
}
.btn-signage-remove:hover { background: #fdecec; }

.btn-signage-secondary {
    background: #fff; color: var(--brand-blue); border: 1px solid var(--brand-blue);
    padding: .5rem 1.2rem; border-radius: 6px; cursor: pointer; font-weight: 600;
}
.btn-signage-secondary:hover { background: var(--soft); }

/* Modals */
.signage-backdrop {
    position: fixed; inset: 0; z-index: 1040; background: rgba(0, 0, 0, .5);
}
.signage-modal {
    position: fixed; z-index: 1050; top: 50%; left: 50%;
    transform: translate(-50%, -50%); width: min(760px, calc(100vw - 2rem));
    max-height: 88vh; overflow-y: auto;
    background: var(--paper); border-radius: 8px; box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
}
.signage-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem; border-bottom: 1px solid var(--line);
}
.signage-modal-header h3 { margin: 0; }
.signage-modal-close {
    border: 0; background: none; font-size: 1.6rem; line-height: 1;
    color: var(--muted); cursor: pointer; padding: 0 .25rem;
}
.signage-modal-body { padding: 1.25rem; }
.signage-modal-footer {
    display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-end;
    padding: 1rem 1.25rem; border-top: 1px solid var(--line);
}

/* Cart / order tables */
.signage-table-wrap { overflow-x: auto; }
.signage-table { width: 100%; border-collapse: collapse; margin: 0 0 1rem; }
.signage-table th, .signage-table td {
    border: 1px solid var(--line); padding: .55rem .65rem; text-align: left; font-size: .9rem;
}
.signage-table th { background: var(--soft); }

.signage-order-info { list-style: none; padding: 0; margin: 0 0 1rem; }
.signage-order-info li { padding: .25rem 0; border-bottom: 1px solid var(--line); }

/* Checkout form */
.signage-form-request { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.signage-field { margin-bottom: 1.1rem; }
.signage-field > label, .signage-field legend { display: block; font-weight: 600; margin-bottom: .3rem; }
.signage-input {
    width: 100%; max-width: 480px; padding: .5rem .65rem;
    border: 1px solid var(--line); border-radius: 4px; background: #fff;
    color: var(--ink); font-size: 1rem;
}
.signage-input:focus { outline: 3px solid var(--brand-blue); outline-offset: 1px; border-color: var(--brand-blue); }
.signage-input-invalid { border-color: #c0000b !important; }

.signage-locations { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.signage-location-card { display: block; cursor: pointer; }
.signage-location-card input[type=radio] {
    position: absolute; opacity: 0; width: 0; height: 0;
}
.signage-location-inner {
    display: block; border: 2px solid var(--line); border-radius: 6px;
    padding: .75rem; height: 100%; background: var(--paper);
}
.signage-location-card input[type=radio]:checked + .signage-location-inner {
    border-color: #2ecc71; box-shadow: 0 0 0 1px #2ecc71;
}
.signage-location-card input[type=radio]:focus-visible + .signage-location-inner {
    outline: 3px solid var(--focus); outline-offset: 2px;
}
.signage-location-title { display: block; font-weight: 700; margin-bottom: .3rem; }
.signage-location-address { font-size: .9rem; color: var(--muted); }

.signage-consent .signage-consent-label { display: flex; align-items: flex-start; gap: .5rem; font-weight: 400; }
.signage-consent input[type=checkbox] { width: 1.25rem; height: 1.25rem; margin-top: .15rem; }
.signage-consent-list { margin-top: .5rem; }

/* Validation feedback — must never be silent. */
.signage-fieldset-invalid,
.signage-pickup-field.signage-input-invalid { border: 2px solid #c0000b !important; border-radius: 6px; padding: .75rem; }
.signage-fieldset-invalid legend { color: #c0000b; }
.signage-input-invalid.signage-input { border-width: 2px; }
.signage-validation {
    display: none; margin: 1rem 0; padding: .75rem 1rem;
    border: 1px solid #c0000b; border-radius: 4px;
    background: #fdecea; color: #8a0008; font-weight: 600;
}

@media (max-width: 576px) {
    .signage-table .hide-mobile { display: none; }
    .signage-modal { width: calc(100vw - 1rem); }
}

/* ─────────────────────────────────────────────────────────────
   Hedgehog (HH5) facility / inspection pages
   Ported from the legacy Bootstrap-based styles, adapted to the
   pure-CSS theme (WCAG 2.0 AA). ───────────────────────────────── */

.main-content-hedgehog h1 {
    color: var(--brand-blue);
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 400;
    padding-bottom: 1rem;
}
.main-content-hedgehog h2 { color: var(--brand-blue); font-size: 1.4rem; }
.main-content-hedgehog h3 { padding-bottom: .6rem; }
.main-content-hedgehog ul { list-style: square; margin-left: 2rem; }
.main-content-hedgehog li { margin-left: 1.2rem; padding-bottom: .25rem; }

/* The hedgehog templates use Bootstrap's `.table` / `.row` / `.col-sm-12`
   classes, which the pure-CSS theme has to provide itself. */
.main-content-hedgehog .row { display: flex; flex-wrap: wrap; margin: 0; }
.main-content-hedgehog .row > [class*="col-"] { flex: 0 0 100%; max-width: 100%; }
.main-content-hedgehog .table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin-bottom: 1rem;
}
.main-content-hedgehog .table th,
.main-content-hedgehog .table td {
    padding: .6rem .8rem;
    text-align: left;
    vertical-align: top;
}
.main-content-hedgehog .table thead th { background: var(--soft); border-bottom: 2px solid var(--line); font-weight: 700; }
.main-content-hedgehog .table td { border-bottom: 1px solid var(--line); }

.facility-listing-container { margin-top: 1.25rem; overflow-x: auto; clear: both; }
.search-facilities-form { margin-bottom: 1.25rem; }
/* Legacy hedgehog pages had full-width form controls. */
.main-content-hedgehog .form-control { max-width: none; }

/* Inspection result badges */
.inspection-result-container-header {
    padding: .6rem 0;
    font-size: 1.25rem;
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
}
.inspection-result-container-listing {
    font-size: .8rem;
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
    display: inline-block;
    padding: .1rem .6rem;
    border-radius: 4px;
}
.inspection-pass { background-color: #2e7d32; color: #fff; }
.inspection-conditional { background-color: #ffd772; color: #1a1f24; }
.inspection-closure { background-color: #c62828; color: #fff; }

/* Simple card (facility information / inspection detail) */
.card { border: 1px solid var(--line); border-radius: 6px; margin: 1rem 0; }
.card-header {
    padding: .75rem 1rem;
    background: var(--soft);
    border-bottom: 1px solid var(--line);
}
.card-header h2 { margin: 0; font-size: 1.1rem; }
.card-body { padding: 1rem; }
.card-body dl { margin: 0 0 .75rem; }
.card-body dt { font-weight: 700; }

/* Zebra table rows (used with .table-plain) */
.table-striped tbody tr:nth-of-type(odd) { background: var(--soft); }
.table-responsive { overflow-x: auto; }

/* Hedgehog search form */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 700; margin-bottom: .35rem; }
.form-control {
    width: 100%; max-width: 32rem;
    padding: .45rem .6rem;
    border: 1px solid var(--line); border-radius: 4px;
    font: inherit; color: var(--ink); background: var(--paper);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: .5rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand-blue); color: #fff; }
.btn-primary:hover { background: var(--link-hover); color: #fff; }
.btn-secondary { background: var(--paper); color: var(--brand-blue); border-color: var(--brand-blue); }
.btn-secondary:hover { background: var(--soft); }
.btn-danger { background: #c62828; color: #fff; }
.btn-danger:hover { background: #a51d1d; color: #fff; }
/* Legacy content uses `class="btn-custom"` for its green call-to-action links. */
a.btn-custom {
    display: inline-block;
    border-radius: 18px;
    padding: 10px 20px;
    background: #1e7a4f;
    color: #ffffff !important;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none !important;
}
a.btn-custom:hover { background: #006633; color: #ffffff !important; text-decoration: none !important; }
.float-right { float: right; }
.mb-3 { margin-bottom: 1rem; }

/* ─────────────────────────────────────────────────────────────
   Advisories and Reports pages ───────────────────────────────── */

.alert-danger {
    background: #fdecec;
    border: 1px solid #c62828;
    border-radius: 6px;
    padding: .75rem 1rem;
    color: #7c1111;
}
.text-uppercase { text-transform: uppercase; }
.text-center { text-align: center; }
.btn-block { display: block; width: 100%; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
.anchor { scroll-margin-top: 6rem; }
