/*
Theme Name: Ossian
Theme URI: https://ossianny.us
Author: AllSupport
Author URI: https://allsupport.co
Description: Custom WordPress theme for the Town of Ossian, New York.
Version: 1.0.9
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
Text Domain: ossian
*/

/* =========================================================
   FONTS, served from this theme (1.0.2)
   Inter and Playfair Display are variable fonts: one file
   per character set covers every weight the site uses.
   ========================================================= */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("inter-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Playfair Display";
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("playfair-display-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Playfair Display";
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("playfair-display-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* =========================================================
   OSSIAN THEME STYLESHEET

   FILE RULES
   - One stylesheet per theme. Nothing else is enqueued.
   - Every media query lives in the RESPONSIVE section. Do not add them elsewhere.
   - The nav hover override stays absolute last. Nothing goes after it.
   - New component sections insert before RESPONSIVE, never after.

   SECTION INDEX
   01. DESIGN TOKENS
   02. RESET AND BASE
   03. TYPOGRAPHY
   04. LAYOUT AND CONTAINER
   05. BUTTONS
   06. SKIP LINK
   07. TOP BAR
   08. SITE HEADER
   09. PRIMARY NAV
   10. DROPDOWN MENUS
   11. MOBILE NAV
   12. HOME HERO
   13. SECTION SHELL
   14. SERVICE CARDS
   15. DEPARTMENT TILES
   16. SPLIT SECTIONS
   17. SVC-HERO (INTERIOR PAGE HERO)
   18. INFO PANELS
   19. OFFICIALS DIRECTORY
   20. DOCUMENT ROWS
   21. YEAR GROUPS
   22. LINK LISTS AND SUB-NAV
   23. EVENT CARDS
   24. COMMUNITY CALENDAR
   25. NEWS CARDS
   26. MEDIA AND GALLERY
   27. TABLES
   28. FORMS (CF7)
   29. MAP EMBED
   30. CTA SECTION
   31. SITE FOOTER
   32. FOOTER BOTTOM BAR
   33. SCROLL TO TOP
   34. COOKIE BANNER
   35. 404 AND SEARCH
   36. UTILITIES AND SCROLL REVEAL
   37. RESPONSIVE
   38. NAV HOVER OVERRIDE (ALWAYS LAST)
   ========================================================= */


/* =========================================================
   01. DESIGN TOKENS
   ========================================================= */

:root {

    /* Brand */
    --blue:         #1b6cb3; /* 1.0.3: was #1e73be, darkened for 4.5:1 on --blue-tint */
    --blue-light:   #7eb7e9; /* 1.0.3: was #3d8dd4, lightened for 4.5:1 on navy, blue-darker and the hero card */
    --blue-dark:    #175a95;
    --blue-darker:  #0e3a61;
    --blue-tint:    #eaf2fa;

    /* Neutrals */
    --black:        #0b1622;
    --navy:         #12283f;
    --navy-soft:    #1b3a5c;
    --ink:          #1f2a37;
    --gray:         #6b6b6b; /* 1.0.3: was #8a8a8a (3.4:1 as link hover) */
    --muted:        #5c6875; /* 1.0.3: was #6a7683, darkened for 4.5:1 on --bg-alt and --blue-tint */
    --line:         #e3e8ee;
    --line-soft:    #eef1f5;
    --line-strong:  #848f9c; /* 1.0.3: form field borders, 3:1 on white (WCAG 1.4.11) */
    --bg:           #ffffff;
    --bg-alt:       #f5f7fa;
    --white:        #ffffff;

    /* Status */
    --gold:         #c8973a;

    /* Typography */
    --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --fs-xs:    0.75rem;
    --fs-sm:    0.875rem;
    --fs-base:  1rem;
    --fs-md:    1.0625rem;
    --fs-lg:    1.25rem;
    --fs-xl:    1.5rem;
    --fs-2xl:   2rem;
    --fs-3xl:   2.5rem;
    --fs-4xl:   3.25rem;

    --lh-tight: 1.15;
    --lh-snug:  1.35;
    --lh-base:  1.7;

    /* Spacing */
    --space-3xs: 0.25rem;
    --space-2xs: 0.5rem;
    --space-xs:  0.75rem;
    --space-sm:  1rem;
    --space-md:  1.5rem;
    --space-lg:  2rem;
    --space-xl:  3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Radii */
    --radius-sm: 3px;
    --radius:    5px;
    --radius-lg: 8px;
    --radius-pill: 999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(11, 22, 34, 0.07);
    --shadow:    0 4px 16px rgba(11, 22, 34, 0.08);
    --shadow-lg: 0 12px 40px rgba(11, 22, 34, 0.13);

    /* Motion */
    --transition:      0.25s ease;
    --transition-slow: 0.4s ease;
    --ease-out:        cubic-bezier(0.22, 1, 0.36, 1);

    /* Layout */
    --container:      1200px;
    --container-narrow: 900px;
    --header-height:  90px;
}


/* =========================================================
   02. RESET AND BASE
   ========================================================= */

*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 1rem); /* 1.0.3: focused items never sit under the sticky header */
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--fs-md);
    line-height: var(--lh-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

iframe { max-width: 100%; border: 0; }

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

a:hover { color: var(--gray); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* 1.0.3: the blue ring is under 3:1 on the dark bands, so it turns white there. */
.top-bar :focus-visible,
.home-hero :focus-visible,
.svc-hero :focus-visible,
.section-dark :focus-visible,
.section-blue :focus-visible,
.cta-section :focus-visible,
.calendar__head :focus-visible,
.site-footer :focus-visible,
.cookie-banner :focus-visible { outline-color: var(--white); }

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content { flex: 1 0 auto; }

hr {
    border: 0;
    height: 1px;
    background: var(--line);
    margin: var(--space-lg) 0;
}

hr.short {
    width: 8rem;
    background: var(--blue);
    height: 2px;
    margin: var(--space-sm) 0;
}

.section-dark hr.short { background: var(--blue-light); }


/* =========================================================
   03. TYPOGRAPHY
   ========================================================= */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--black);
    line-height: var(--lh-tight);
    margin: 0 0 var(--space-sm);
    font-weight: 700;
    text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.25rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 1.05rem + 0.9vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); }
h5 { font-size: 1.0625rem; font-family: var(--font-body); font-weight: 700; }
h6 { font-size: 0.95rem; font-family: var(--font-body); font-weight: 700; }

p { margin: 0 0 var(--space-sm); }

p:last-child,
ul:last-child,
ol:last-child { margin-bottom: 0; }

strong, b { font-weight: 700; color: var(--black); }

blockquote {
    margin: var(--space-md) 0;
    padding: var(--space-sm) var(--space-md);
    border-left: 3px solid var(--blue);
    background: var(--bg-alt);
    font-style: italic;
    color: var(--muted);
}

.section-dark blockquote {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--blue-light);
    color: rgba(255, 255, 255, 0.8);
}

ul, ol {
    margin: 0 0 var(--space-sm);
    padding-left: 1.35rem;
}

li { margin-bottom: var(--space-3xs); }

.lead {
    font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem);
    color: var(--muted);
    line-height: 1.75;
}

.section-dark .lead { color: rgba(255, 255, 255, 0.78); }

.section-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blue);
    margin: 0 0 var(--space-2xs);
}

.section-dark .section-eyebrow { color: var(--blue-light); }

.section-title { margin-bottom: var(--space-sm); }

.section-head {
    max-width: 760px;
    margin-bottom: var(--space-xl);
}

.section-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-head--center hr.short { margin-left: auto; margin-right: auto; }

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 { color: var(--white); }

.section-dark { color: rgba(255, 255, 255, 0.78); }
.section-dark a { color: var(--blue-light); }
.section-dark a:hover { color: var(--white); }
.section-dark strong { color: var(--white); }

/* 1.0.3: links inside running text are underlined so they never rely on color
   alone (WCAG 1.4.1). Zero specificity on purpose: any link with a class
   (buttons, card links, row links) and the row lists below keep their own look. */
:where(.site-content) :where(p, li, dd, blockquote, figcaption, .info-row__val, .svc-hero__card-val) a:where(:not([class])) {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.link-list li a,
.sub-nav li a,
.doc-list a { text-decoration: none; }


/* =========================================================
   04. LAYOUT AND CONTAINER
   ========================================================= */

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container--narrow { max-width: var(--container-narrow); }

.page-section {
    padding: var(--space-3xl) 0;
    position: relative;
}

.page-section--tight { padding: var(--space-2xl) 0; }

.section-alt { background: var(--bg-alt); }

.section-dark {
    background: var(--navy);
    outline: 1px solid var(--navy);
}

.section-blue { background: var(--blue-darker); color: rgba(255, 255, 255, 0.8); outline: 1px solid var(--blue-darker); }
.section-blue h1, .section-blue h2, .section-blue h3, .section-blue h4 { color: var(--white); }
.section-blue .section-eyebrow { color: var(--blue-light); }

.grid { display: grid; gap: var(--space-md); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.page-content { overflow: unset; }


/* =========================================================
   05. BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xs);
    padding: 0.8rem 1.6rem;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn:hover { transform: translateY(-2px); }

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

.btn-primary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border-color: var(--blue);
    color: var(--blue);
}

.btn-outline:hover {
    background: var(--blue);
    color: var(--white);
}

.section-dark .btn-outline,
.section-blue .btn-outline,
.home-hero .btn-outline,
.cta-section .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.section-dark .btn-outline:hover,
.section-blue .btn-outline:hover,
.home-hero .btn-outline:hover,
.cta-section .btn-outline:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--blue-darker);
}

/* 1.0.4: the same white outline on the inner-page hero and on dark bands set inline in page content */
.svc-hero .btn-outline,
[style*="--blue-darker"] .btn-outline,
[style*="--navy"] .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.svc-hero .btn-outline:hover,
[style*="--blue-darker"] .btn-outline:hover,
[style*="--navy"] .btn-outline:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--blue-darker);
}

.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--blue);
    padding-left: 0;
    padding-right: 0;
}

.btn-ghost:hover { color: var(--blue-dark); }

.btn-white {
    background: var(--white);
    border-color: var(--white);
    color: var(--blue-darker);
}

.btn-white:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-lg { padding: 1rem 2.1rem; font-size: var(--fs-base); }
.btn-sm { padding: 0.55rem 1.1rem; font-size: var(--fs-xs); }

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}


/* =========================================================
   06. SKIP LINK
   ========================================================= */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    padding: var(--space-2xs) var(--space-sm);
    background: var(--blue);
    color: var(--white);
    font-weight: 700;
    border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
    left: 0;
    color: var(--white);
}


/* =========================================================
   07. TOP BAR
   ========================================================= */

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    min-height: 54px;
    padding: 0.5rem var(--space-lg) 0.5rem var(--space-xl);
    background: var(--navy);
    color: rgba(255, 255, 255, 0.72);
    font-size: var(--fs-xs);
    letter-spacing: 0.02em;
}

.top-bar__right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.top-bar__list {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.top-bar__list li { margin: 0; }

.top-bar a { color: rgba(255, 255, 255, 0.85); }
.top-bar a:hover { color: var(--blue-light); }

/* Icon-bearing links align their SVG with the label text. */
.top-bar__list a,
.top-bar__email {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.top-bar__hours {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.62);
    white-space: nowrap;
}

.top-bar__hours strong {
    color: var(--white);
    font-weight: 600;
}

/* Envelope and clock glyphs in the utility bar. */
.top-bar__icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    fill: currentColor;
    opacity: 0.85;
}


/* =========================================================
   08. SITE HEADER

   Full-width header. The brand is a blue block flush to the left
   edge holding the white logo; the nav and phone sit on white to
   the right. No centered container here on purpose, so the blue
   reaches the viewport edge the way the live site does.
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    display: flex;
    align-items: stretch;
    min-height: var(--header-height);
    background: var(--white);
    transition: box-shadow var(--transition);
}

.site-header.is-stuck { box-shadow: var(--shadow); }

.site-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: var(--space-2xs) var(--space-xl);
    background: var(--blue);
}

.site-brand img {
    max-height: 58px;
    width: auto;
}

.site-brand__text {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
}

.site-header__bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-lg);
    flex: 1;
    min-width: 0;
    padding: 0 var(--space-lg);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.3rem;
    background: var(--blue);
    color: var(--white);
    border-radius: var(--radius);
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
    transition: background var(--transition);
}

.header-phone:hover { background: var(--blue-darker); color: var(--white); }

.header-phone svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }


/* =========================================================
   09. PRIMARY NAV
   ========================================================= */

.primary-nav { margin-left: auto; }

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-nav li { margin: 0; position: relative; }

.primary-nav > ul > li > a {
    display: block;
    padding: 0.6rem 0.5rem;
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ink);
    position: relative;
}

.primary-nav > ul > li > a::after {
    content: "";
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.25rem;
    height: 2px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.primary-nav > ul > li.current-menu-item > a::after,
.primary-nav > ul > li.current-menu-ancestor > a::after,
.primary-nav > ul > li.current_page_item > a::after,
.primary-nav > ul > li.current_page_ancestor > a::after { transform: scaleX(1); }

.primary-nav > ul > li.menu-item-has-children > a { padding-right: 1.15rem; }

.primary-nav > ul > li.menu-item-has-children > a::before {
    content: "";
    position: absolute;
    right: 0.35rem;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.55;
    transition: transform var(--transition);
}


/* =========================================================
   10. DROPDOWN MENUS
   ========================================================= */

.primary-nav ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 210;
    display: block;
    min-width: 260px;
    margin: 0;
    padding: var(--space-2xs) 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 3px solid var(--blue);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.primary-nav ul ul li {
    display: block;
    width: 100%;
    margin: 0;
}

.primary-nav ul ul li a {
    display: block;
    width: 100%;
    padding: 0.6rem var(--space-sm);
    font-size: var(--fs-sm);
    font-weight: 500;
    letter-spacing: 0;
    color: var(--ink);
    background: transparent;
    border: 0;
    text-transform: none;
    white-space: normal;
}

.primary-nav ul ul li a::after,
.primary-nav ul ul li a::before { display: none; }

.primary-nav li:hover > ul,
.primary-nav li:focus-within > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* =========================================================
   11. MOBILE NAV
   ========================================================= */

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 8px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.submenu-toggle {
    display: none;
    position: absolute;
    top: 2px;
    right: 0;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: var(--ink);
}

.submenu-toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    margin: -6px 0 0 -4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform var(--transition);
}

.submenu-toggle.is-open::after { transform: rotate(-135deg); margin-top: -2px; }


/* =========================================================
   12. HOME HERO
   ========================================================= */

.home-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 620px;
    padding: var(--space-3xl) 0;
    background: var(--black);
    overflow: hidden;
}

.home-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.home-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
}

.home-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(11, 22, 34, 0.9) 0%, rgba(11, 22, 34, 0.72) 45%, rgba(18, 40, 63, 0.45) 100%);
}

.home-hero .container {
    position: relative;
    z-index: 1;
}

.home-hero__inner { max-width: 720px; }

.home-hero__eyebrow {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    margin-bottom: var(--space-sm);
    background: rgba(30, 115, 190, 0.22);
    border: 1px solid rgba(61, 141, 212, 0.5);
    border-radius: var(--radius-pill);
    color: #bcdcf7;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.home-hero__title {
    color: var(--white);
    font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4rem);
    margin-bottom: var(--space-sm);
}

.home-hero__title span { color: var(--blue-light); }

.home-hero__sub {
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
    max-width: 560px;
    margin-bottom: var(--space-lg);
}

.home-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.home-hero__meta-item { min-width: 150px; }

.home-hero__meta-label {
    display: block;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue-light);
    margin-bottom: 0.2rem;
}

.home-hero__meta-value {
    display: block;
    color: var(--white);
    font-size: var(--fs-base);
    font-weight: 600;
    line-height: 1.4;
}

.home-hero__meta-value a {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}


/* =========================================================
   13. SECTION SHELL
   ========================================================= */

.section-divider {
    display: block;
    width: 8rem;
    height: 2px;
    background: var(--blue);
    border: 0;
    margin: var(--space-sm) 0 var(--space-md);
}

.section-head--center .section-divider { margin-left: auto; margin-right: auto; }

.section-dark .section-divider { background: var(--blue-light); }


/* =========================================================
   14. SERVICE CARDS
   ========================================================= */

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.service-card {
    display: flex;
    flex-direction: column;
    padding: var(--space-lg);
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 3px solid var(--blue);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-top-color: var(--blue-darker);
}

.service-card__icon {
    width: 46px;
    height: 46px;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-tint);
    border-radius: var(--radius);
    color: var(--blue);
    flex-shrink: 0;
}

.service-card__icon svg { width: 22px; height: 22px; fill: currentColor; }

.service-card__title {
    font-size: 1.2rem;
    margin-bottom: var(--space-2xs);
}

.service-card__title a { color: var(--black); }
.service-card__title a:hover { color: var(--blue); }

.service-card p {
    font-size: var(--fs-sm);
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: var(--space-sm);
}

.service-card__link {
    margin-top: auto;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
}

.service-card__link::after {
    content: "\2192";
    margin-left: 0.4rem;
    transition: margin-left var(--transition);
    display: inline-block;
}

.service-card__link:hover::after { margin-left: 0.7rem; }


/* =========================================================
   15. DEPARTMENT TILES
   ========================================================= */

.dept-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
}

.dept-tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-md);
    min-height: 170px;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.dept-tile:hover {
    background: rgba(30, 115, 190, 0.16);
    border-color: rgba(61, 141, 212, 0.55);
    transform: translateY(-3px);
}

.dept-tile__num {
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--blue-light);
}

.dept-tile__title {
    font-size: 1.15rem;
    margin: 0;
}

.dept-tile__title a { color: var(--white); }
.dept-tile__title a:hover { color: var(--blue-light); }

.dept-tile p {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.62);
    margin: 0;
}


/* =========================================================
   16. SPLIT SECTIONS
   ========================================================= */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.split__media { position: relative; }

.split__media img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.split__media--framed::before {
    content: "";
    position: absolute;
    left: -14px;
    bottom: -14px;
    width: 55%;
    height: 55%;
    border-left: 3px solid var(--blue);
    border-bottom: 3px solid var(--blue);
    border-radius: 0 0 0 var(--radius);
    z-index: -1;
}

.split--narrow { gap: var(--space-xl); }


/* =========================================================
   17. SVC-HERO (INTERIOR PAGE HERO)
   ========================================================= */

.svc-hero {
    position: relative;
    padding: var(--space-2xl) 0;
    background: var(--navy);
    outline: 1px solid var(--navy);
    color: rgba(255, 255, 255, 0.78);
    overflow: hidden;
}

.svc-hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 44%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 115, 190, 0.22) 0%, rgba(30, 115, 190, 0) 65%);
    pointer-events: none;
}

.svc-hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: var(--space-2xl);
    align-items: center;
}

.svc-hero h1 {
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.svc-hero__label {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blue-light);
    margin-bottom: var(--space-2xs);
}

.svc-hero__sub {
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1rem, 0.95rem + 0.35vw, 1.15rem);
    max-width: 620px;
    margin-bottom: 0;
}

.svc-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.svc-hero__proof {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.svc-hero__proof-item { min-width: 140px; }

.svc-hero__proof-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.25;
}

.svc-hero__proof-label {
    display: block;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.15rem;
}

/* Hero widget: contact card */
.svc-hero__card {
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(3px);
}

.svc-hero__card-title {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue-light);
    margin-bottom: var(--space-sm);
}

.svc-hero__card-row {
    display: flex;
    justify-content: space-between;
    gap: var(--space-sm);
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    font-size: var(--fs-sm);
}

.svc-hero__card-row:last-child { border-bottom: 0; }

.svc-hero__card-key { color: rgba(255, 255, 255, 0.7); }

.svc-hero__card-val {
    color: var(--white);
    font-weight: 600;
    text-align: right;
}

.svc-hero__card-val a { color: var(--blue-light); }

/* Hero widget: seal / crest block */
.svc-hero__seal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--radius-lg);
    text-align: center;
}

.svc-hero__seal img { max-width: 150px; }

.svc-hero__seal-text {
    font-size: var(--fs-xs);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}


/* =========================================================
   18. INFO PANELS
   ========================================================= */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
}

.info-panel {
    padding: var(--space-lg);
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 3px solid var(--blue);
    border-radius: var(--radius);
}

.section-alt .info-panel { background: var(--white); }

.info-panel__title {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: var(--space-2xs);
}

.info-panel p { margin-bottom: 0.35rem; font-size: var(--fs-sm); }

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

.info-row {
    display: flex;
    justify-content: space-between;
    gap: var(--space-sm);
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: var(--fs-sm);
}

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

.info-row__key { color: var(--muted); font-weight: 600; }
.info-row__val { text-align: right; font-weight: 600; color: var(--black); }

.callout {
    padding: var(--space-md) var(--space-lg);
    background: var(--blue-tint);
    border-left: 4px solid var(--blue);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: var(--space-md) 0;
}

.callout p:last-child { margin-bottom: 0; }

.callout--warn {
    background: #fdf4e6;
    border-left-color: var(--gold);
}

.date-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.date-list li {
    display: flex;
    justify-content: space-between;
    gap: var(--space-sm);
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: var(--fs-sm);
    margin: 0;
}

.date-list li:last-child { border-bottom: 0; }

.date-list__label { color: var(--ink); }
.date-list__value { font-weight: 700; color: var(--blue); text-align: right; white-space: nowrap; }


/* =========================================================
   19. OFFICIALS DIRECTORY
   ========================================================= */

.officials-group { margin-bottom: var(--space-xl); }

.officials-group:last-child { margin-bottom: 0; }

.officials-group__title {
    font-size: 1.35rem;
    margin-bottom: var(--space-2xs);
    padding-bottom: var(--space-2xs);
    border-bottom: 2px solid var(--blue);
    display: inline-block;
}

.officials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.official-card {
    padding: var(--space-md) var(--space-lg);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

.official-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.official-card__name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--black);
    margin: 0 0 0.15rem;
}

.official-card__role {
    display: block;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: var(--space-2xs);
}

.official-card__contact {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: var(--fs-sm);
}

.official-card__contact li {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.2rem;
    color: var(--muted);
}

.official-card__contact span { color: var(--muted); flex-shrink: 0; }


/* =========================================================
   20. DOCUMENT ROWS
   ========================================================= */

.doc-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
    list-style: none;
    margin: 0;
    padding: 0;
}

.doc-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    margin: 0;
}

.doc-row:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-sm);
    transform: translateX(3px);
}

.doc-row__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    background: var(--blue-tint);
    border-radius: var(--radius-sm);
    color: var(--blue);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.doc-row__body { flex: 1; min-width: 0; }

.doc-row__title {
    display: block;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--black);
    line-height: 1.4;
    margin: 0;
}

.doc-row:hover .doc-row__title { color: var(--blue); }

.doc-row__meta {
    display: block;
    font-size: var(--fs-xs);
    color: var(--muted);
    margin-top: 0.1rem;
}

.doc-row__action {
    flex-shrink: 0;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
    white-space: nowrap;
}

.doc-row--plain {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
    padding-left: 0;
    padding-right: 0;
}

.doc-row--plain:hover { transform: none; box-shadow: none; border-color: transparent; border-bottom-color: var(--blue); }

.doc-empty {
    padding: var(--space-lg);
    background: var(--bg-alt);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    text-align: center;
    font-size: var(--fs-sm);
}


/* =========================================================
   21. YEAR GROUPS
   ========================================================= */

.year-group { margin-bottom: var(--space-xl); }

.year-group:last-child { margin-bottom: 0; }

.year-group__head {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.year-group__year {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--blue);
    line-height: 1;
    margin: 0;
}

.year-group__rule {
    flex: 1;
    height: 2px;
    background: var(--line);
    border: 0;
    margin: 0;
}

.year-group__count {
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}


/* =========================================================
   22. LINK LISTS AND SUB-NAV
   ========================================================= */

.sub-nav {
    padding: var(--space-lg);
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.sub-nav__title {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: var(--space-sm);
}

.sub-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sub-nav li {
    margin: 0;
    border-bottom: 1px solid var(--line);
}

.sub-nav li:last-child { border-bottom: 0; }

.sub-nav li a {
    display: block;
    padding: 0.7rem 0;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--ink);
}

.sub-nav li a:hover { color: var(--blue); padding-left: 0.35rem; }

.link-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-2xs);
    list-style: none;
    margin: 0;
    padding: 0;
}

.link-list li { margin: 0; }

.link-list li a {
    display: flex;
    align-items: center;
    gap: var(--space-2xs);
    padding: 0.8rem var(--space-sm);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--ink);
    transition: border-color var(--transition), color var(--transition), transform var(--transition);
}

.link-list li a::before {
    content: "";
    width: 6px;
    height: 6px;
    flex-shrink: 0;
    background: var(--blue);
    border-radius: 50%;
}

.link-list li a:hover {
    border-color: var(--blue);
    color: var(--blue);
    transform: translateX(3px);
}

.check-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.check-list li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: var(--space-2xs);
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 8px;
    height: 8px;
    background: var(--blue);
    border-radius: 2px;
    transform: rotate(45deg);
}

.section-dark .check-list li::before { background: var(--blue-light); }


/* =========================================================
   23. EVENT CARDS
   ========================================================= */

.event-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.event-card {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

.event-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

/* The freshness script hides past and over-limit cards with the hidden
   attribute. This rule lets that win over .event-card display:flex. */
.event-card[hidden] { display: none; }

.event-card__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    flex-shrink: 0;
    background: var(--blue);
    color: var(--white);
    border-radius: var(--radius);
    line-height: 1;
}

.event-card__day {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
}

.event-card__month {
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 0.2rem;
    opacity: 0.9;
}

.event-card__body { flex: 1; min-width: 0; }

.event-card__title {
    font-size: 1.15rem;
    margin: 0 0 0.25rem;
}

.event-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    font-size: var(--fs-sm);
    color: var(--muted);
}

.event-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.event-card__link {
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


/* =========================================================
   24. COMMUNITY CALENDAR
   ========================================================= */

.calendar {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.calendar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--navy);
    color: var(--white);
}

.calendar__title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

.calendar__nav { display: flex; gap: var(--space-2xs); }

.calendar__btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: background var(--transition);
}

.calendar__btn:hover { background: var(--blue); border-color: var(--blue); }

.calendar__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
}

.calendar__weekday {
    padding: var(--space-2xs);
    text-align: center;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar__cell {
    min-height: 108px;
    padding: 0.4rem;
    border-right: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    background: var(--white);
}

.calendar__cell:nth-child(7n) { border-right: 0; }

.calendar__cell--empty { background: var(--bg-alt); }

.calendar__cell--today { background: var(--blue-tint); }

.calendar__daynum {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 0.25rem;
}

.calendar__cell--today .calendar__daynum {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--blue);
    color: var(--white);
    border-radius: 50%;
}

.calendar__event {
    display: block;
    width: 100%;
    margin-bottom: 0.2rem;
    padding: 0.25rem 0.4rem;
    background: var(--blue);
    border: 0;
    border-radius: var(--radius-sm);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
    transition: background var(--transition);
}

.calendar__event:hover { background: var(--blue-darker); }

.calendar__event-time {
    display: block;
    font-weight: 400;
    opacity: 0.95; /* 1.0.3: was 0.85 (4.0:1) */
    font-size: 0.65rem;
}

.calendar__detail {
    padding: var(--space-md);
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
}

.calendar__detail[hidden] { display: none; }

.calendar__detail-title {
    font-size: 1.1rem;
    margin: 0 0 0.25rem;
}

.calendar__detail-meta {
    font-size: var(--fs-sm);
    color: var(--muted);
    margin: 0;
}

.calendar__empty {
    padding: var(--space-lg);
    text-align: center;
    color: var(--muted);
    font-size: var(--fs-sm);
}


/* =========================================================
   25. NEWS CARDS
   ========================================================= */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

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

.news-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--bg-alt);
    overflow: hidden;
}

.news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.news-card:hover .news-card__media img { transform: scale(1.04); }

.news-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: var(--space-md);
}

.news-card__date {
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: var(--space-2xs);
}

.news-card__title {
    font-size: 1.2rem;
    margin-bottom: var(--space-2xs);
}

.news-card__title a { color: var(--black); }
.news-card__title a:hover { color: var(--blue); }

.news-card p {
    font-size: var(--fs-sm);
    color: var(--muted);
    margin-bottom: var(--space-sm);
}

.news-card__link {
    margin-top: auto;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


/* =========================================================
   26. MEDIA AND GALLERY
   ========================================================= */

.media-figure { margin: 0 0 var(--space-md); }

.media-figure img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.media-figure figcaption {
    margin-top: var(--space-2xs);
    font-size: var(--fs-sm);
    font-style: italic;
    color: var(--muted);
    text-align: center;
}

.photo-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
}

.photo-strip img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius);
}

.photo-strip--natural img {
    aspect-ratio: auto;
    object-fit: unset;
}

.photo-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.photo-card img { width: 100%; }

.photo-card__caption {
    padding: var(--space-2xs) var(--space-sm);
    font-size: var(--fs-sm);
    color: var(--muted);
    text-align: center;
}


/* =========================================================
   27. TABLES
   ========================================================= */

.table-container { overflow-x: auto; }

.responsive-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin-bottom: var(--space-md);
    font-size: var(--fs-sm);
    background: var(--white);
}

.responsive-table th,
.responsive-table td {
    padding: 0.7rem var(--space-sm);
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.responsive-table thead th {
    background: var(--navy);
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: var(--fs-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 0;
}

.responsive-table tbody tr:nth-child(even) { background: var(--bg-alt); }

.responsive-table tbody tr:hover { background: var(--blue-tint); }

.responsive-table a { color: var(--blue); text-decoration: none; }
.responsive-table a:visited { color: var(--blue); }

.responsive-table a:hover {
    color: var(--white);
    background: var(--blue);
    padding: 0 0.2rem;
    border-radius: var(--radius-sm);
}

.responsive-table td strong { color: var(--black); }

.responsive-table .num { text-align: right; white-space: normal; font-variant-numeric: tabular-nums; }

.responsive-table td:first-child { width: 70%; }
.responsive-table td:last-child  { width: 30%; }
.responsive-table th:last-child   { text-align: right; }


/* =========================================================
   28. FORMS (CF7)
   ========================================================= */

.form-panel {
    padding: var(--space-lg);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.wpcf7 { max-width: 100%; }

.wpcf7 form { margin: 0; }

.wpcf7 label {
    display: block;
    margin-bottom: var(--space-sm);
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--black);
}

.wpcf7 .required { color: var(--blue); }

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="date"],
.wpcf7 input[type="number"],
.wpcf7 select,
.wpcf7 textarea {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.75rem var(--space-sm);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: 400;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 1px var(--blue);
    outline: none;
}

.wpcf7 textarea { min-height: 150px; resize: vertical; }

.wpcf7 input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    margin-top: var(--space-2xs);
    padding: 0.9rem 2rem;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--blue);
    border: 2px solid var(--blue);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.wpcf7 input[type="submit"]:hover {
    background: var(--blue-darker);
    border-color: var(--blue-darker);
    transform: translateY(-2px);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 var(--space-md);
}

.wpcf7 .wpcf7-not-valid-tip {
    display: block;
    margin-top: 0.3rem;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: #b3261e;
}

.wpcf7 .wpcf7-not-valid { border-color: #b3261e; }

.wpcf7-response-output {
    margin: var(--space-md) 0 0 !important;
    padding: var(--space-sm) var(--space-md) !important;
    border-radius: var(--radius);
    border-width: 1px !important;
    font-size: var(--fs-sm);
}

.wpcf7 form.sent .wpcf7-response-output {
    border-color: var(--blue) !important;
    background: var(--blue-tint);
    color: var(--blue-darker);
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
    border-color: #b3261e !important;
    background: #fdecea;
    color: #7a1c15;
}

.wpcf7-spinner { margin-left: var(--space-2xs); }

.form-note {
    margin-top: var(--space-sm);
    font-size: var(--fs-xs);
    color: var(--muted);
}


/* =========================================================
   29. MAP EMBED
   ========================================================= */

.map-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-alt);
}

.map-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-embed--tall { aspect-ratio: 4 / 3; }


/* =========================================================
   30. CTA SECTION
   ========================================================= */

.cta-section {
    background: var(--blue-darker);
    outline: 1px solid var(--blue-darker);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.cta-section h2 { color: var(--white); }

.cta-section .container { max-width: 780px; }

.cta-section .section-eyebrow { color: var(--blue-light); }

.cta-section .btn-row { justify-content: center; }

.cta-section p { color: rgba(255, 255, 255, 0.78); }


/* =========================================================
   31. SITE FOOTER
   ========================================================= */

.site-footer {
    background: var(--black);
    color: rgba(255, 255, 255, 0.62);
    font-size: var(--fs-sm);
    padding-top: var(--space-2xl);
}

.site-footer h2,
.site-footer h3,
.site-footer h4 { color: var(--white); }

.site-footer a { color: rgba(255, 255, 255, 0.72); }
.site-footer a:hover { color: var(--blue-light); }

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
}

.footer-brand img {
    max-height: 76px;
    width: auto;
    margin-bottom: var(--space-sm);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.55);
    font-size: var(--fs-sm);
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

.footer-contact {
    list-style: none;
    margin: 0 0 var(--space-md);
    padding: 0;
}

.footer-contact li {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    color: rgba(255, 255, 255, 0.62);
}

.footer-contact strong {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    flex-shrink: 0;
}

.footer-col__title {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue-light);
    margin-bottom: var(--space-sm);
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col li { margin-bottom: 0.45rem; }

.footer-col li a {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.62);
}

.footer-col li a:hover { color: var(--blue-light); padding-left: 0.25rem; }

.footer-utility {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1rem;
    border: 1px solid rgba(61, 141, 212, 0.5);
    border-radius: var(--radius-sm);
    background: rgba(30, 115, 190, 0.12);
    color: rgba(140, 195, 240, 0.95);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background var(--transition), color var(--transition);
}

.footer-utility:hover {
    background: var(--blue);
    color: var(--white);
}


/* =========================================================
   32. FOOTER BOTTOM BAR
   ========================================================= */

.footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(61, 141, 212, 0.14);
    margin-top: 1rem;
}

.footer-bottom span { font-size: 0.72rem; color: rgba(255, 255, 255, 0.6); }

.footer-bottom__credit { text-align: right; }

.footer-bottom a { color: rgba(255, 255, 255, 0.6); transition: color var(--transition); }

.footer-bottom a:hover { color: var(--blue-light); opacity: 1; }

.footer-policies ul {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-policies ul li { margin: 0; }

.footer-policies ul li a {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    transition: color var(--transition);
}

.footer-policies ul li a:hover { color: var(--blue-light); opacity: 1; }


/* =========================================================
   33. SCROLL TO TOP
   ========================================================= */

.scroll-top {
    position: fixed;
    right: var(--space-md);
    bottom: var(--space-md);
    z-index: 150;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    background: var(--blue);
    border: 0;
    border-radius: 50%;
    color: var(--white);
    box-shadow: var(--shadow);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition), background var(--transition);
}

.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover { background: var(--blue-darker); }

.scroll-top svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: currentColor;
}


/* =========================================================
   34. COOKIE BANNER
   ========================================================= */

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 300;
    background: var(--navy);
    border-top: 3px solid var(--blue);
    box-shadow: 0 -6px 30px rgba(11, 22, 34, 0.25);
    transform: translateY(100%);
    transition: transform 0.35s ease;
}

.cookie-banner.is-visible { transform: translateY(0); }

.cookie-banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding-top: var(--space-sm);
    padding-bottom: var(--space-sm);
}

.cookie-banner p {
    margin: 0;
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.78);
}

.cookie-banner a { color: var(--blue-light); text-decoration: underline; }

.cookie-banner__actions {
    display: flex;
    gap: var(--space-2xs);
    flex-shrink: 0;
}

.cookie-banner__accept,
.cookie-banner__decline {
    padding: 0.6rem 1.4rem;
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.cookie-banner__accept {
    background: var(--blue);
    border: 1px solid var(--blue);
    color: var(--white);
}

.cookie-banner__accept:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

.cookie-banner__decline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.78);
}

.cookie-banner__decline:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }


/* =========================================================
   35. 404 AND SEARCH
   ========================================================= */

.error-code {
    font-family: var(--font-display);
    font-size: clamp(4rem, 2rem + 10vw, 8rem);
    font-weight: 700;
    line-height: 1;
    color: var(--blue-light);
    opacity: 0.35;
    margin: 0 0 var(--space-sm);
}

.search-form {
    display: flex;
    gap: var(--space-2xs);
    max-width: 480px;
    margin: var(--space-md) 0;
}

.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 0.75rem var(--space-sm);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
}

.search-form input[type="search"]:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 1px var(--blue);
    outline: none;
}

.search-form button {
    padding: 0.75rem 1.4rem;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--blue);
    border: 1px solid var(--blue);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition);
}

.search-form button:hover { background: var(--blue-darker); }

.svc-hero .search-form input[type="search"] {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.3);
}

.search-result {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--line);
}

.search-result:last-child { border-bottom: 0; }

.search-result__type {
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
}

.search-result__title { font-size: 1.3rem; margin: 0.2rem 0 0.35rem; }

.search-result p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }

.helpful-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}


/* =========================================================
   36. UTILITIES AND SCROLL REVEAL
   ========================================================= */

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

.text-center { text-align: center; }
.text-right  { text-align: right; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.reveal-item {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal-item.is-revealed,
.reveal-item:focus-within {
    opacity: 1;
    transform: translateY(0);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3xs);
    justify-content: center;
    margin-top: var(--space-xl);
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.65rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--ink);
}

.pagination .page-numbers:hover { border-color: var(--blue); color: var(--blue); }

.pagination .page-numbers.current {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
}


/* =========================================================
   37. RESPONSIVE

   Every media query in the theme lives in this section.
   Desktop first, max-width queries, in descending order.
   ========================================================= */

@media (max-width: 1024px) {

    :root { --header-height: 78px; }

    .container { padding: 0 var(--space-sm); }

    .page-section { padding: var(--space-2xl) 0; }

    .primary-nav ul { gap: 0.15rem; }

    .primary-nav > ul > li > a { padding: 0.6rem 0.35rem; font-size: 0.82rem; }

    .site-brand img { max-height: 52px; }

    .svc-hero .container { grid-template-columns: 1fr 320px; gap: var(--space-lg); }

    .home-hero { min-height: 520px; }

    .service-grid { grid-template-columns: repeat(2, 1fr); }

    .dept-grid { grid-template-columns: repeat(2, 1fr); }

    .news-grid { grid-template-columns: repeat(2, 1fr); }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }

    .split { gap: var(--space-lg); }

    .calendar__cell { min-height: 92px; }
}


@media (max-width: 900px) {

    /* Hamburger takes over. Desktop nav hides, mobile panel appears. */

    .nav-toggle { display: flex; }

    .submenu-toggle { display: block; }

    .primary-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 190;
        display: none;
        max-height: calc(100vh - var(--header-height));
        margin: 0;
        padding: var(--space-sm) 0 var(--space-md);
        background: var(--white);
        border-top: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
    }

    .primary-nav.is-open { display: block; }

    .primary-nav > ul {
        display: block;
        padding: 0 var(--space-sm);
    }

    .primary-nav > ul > li {
        display: block;
        border-bottom: 1px solid var(--line-soft);
    }

    .primary-nav > ul > li:last-child { border-bottom: 0; }

    .primary-nav > ul > li > a {
        padding: 0.85rem 0;
        font-size: var(--fs-base);
    }

    .primary-nav > ul > li > a::after { display: none; }

    .primary-nav > ul > li.menu-item-has-children > a::before { display: none; }

    .primary-nav > ul > li.current-menu-item > a,
    .primary-nav > ul > li.current_page_item > a { color: var(--blue); }

    /* Mobile submenus: collapsed by default, opened by the toggle button. */
    .primary-nav ul ul {
        position: static;
        display: none;
        min-width: 0;
        margin: 0 0 var(--space-2xs);
        padding: 0 0 0 var(--space-sm);
        background: var(--bg-alt);
        border: 0;
        border-left: 2px solid var(--blue);
        border-radius: var(--radius-sm);
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .primary-nav ul ul.is-open { display: block; }

    .primary-nav li:hover > ul,
    .primary-nav li:focus-within > ul { display: none; }

    .primary-nav li:hover > ul.is-open,
    .primary-nav li:focus-within > ul.is-open { display: block; }

    .primary-nav ul ul li a { padding: 0.6rem 0; }

    .site-brand { padding: var(--space-2xs) var(--space-md); }

    .site-brand img { max-height: 44px; }

    .site-header__bar { gap: var(--space-sm); padding: 0 var(--space-sm); }

    .header-phone span { display: none; }

    .header-phone { padding: 0.7rem 0.85rem; }

    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
        padding: var(--space-2xs) var(--space-md);
    }

    .top-bar__right {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .top-bar__hours { white-space: normal; }

    /* Interior hero collapses to a single column. */
    .svc-hero .container { grid-template-columns: 1fr; }

    .svc-hero__card,
    .svc-hero__seal { max-width: 460px; }

    .home-hero { min-height: 460px; }

    .home-hero__meta { gap: var(--space-md); }

    .split { grid-template-columns: 1fr; }

    .split__media { order: -1; }

    .split__media--framed::before { display: none; }

    .form-grid { grid-template-columns: 1fr; }

    .cookie-banner .container { flex-direction: column; align-items: stretch; text-align: center; }

    .cookie-banner__actions { justify-content: center; }
}


@media (max-width: 768px) {

    .page-section { padding: var(--space-xl) 0; }

    .service-grid { grid-template-columns: 1fr; }

    .dept-grid { grid-template-columns: 1fr; }

    .news-grid { grid-template-columns: 1fr; }

    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

    .info-grid { grid-template-columns: 1fr; }

    .officials-grid { grid-template-columns: 1fr; }

    .link-list { grid-template-columns: 1fr; }

    .photo-strip { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); }

    .footer-bottom { grid-template-columns: 1fr; text-align: center; gap: 0.5rem; }

    .footer-bottom__credit { text-align: center; }

    .footer-policies ul { justify-content: center; }

    .section-head { margin-bottom: var(--space-lg); }

    /* Calendar: the month grid stops being readable at this width, so it
       becomes a stacked agenda list. Both markup states are rendered by
       the calendar script. */
    .calendar__weekdays { display: none; }

    .calendar__grid { grid-template-columns: 1fr; }

    .calendar__cell {
        min-height: 0;
        display: flex;
        gap: var(--space-sm);
        padding: var(--space-2xs) var(--space-sm);
        border-right: 0;
    }

    .calendar__cell--empty { display: none; }

    .calendar__cell--no-events { display: none; }

    .calendar__daynum {
        width: 2.4rem;
        flex-shrink: 0;
        margin-bottom: 0;
        padding-top: 0.25rem;
    }

    .calendar__cell-events { flex: 1; min-width: 0; }

    .calendar__event { font-size: var(--fs-sm); padding: 0.4rem 0.6rem; }

    .calendar__event-time { font-size: var(--fs-xs); }

    .event-list { grid-template-columns: 1fr; }

    .event-card { flex-direction: column; gap: var(--space-sm); }

    .event-card__date { width: 64px; height: 64px; }

    .doc-row { flex-wrap: wrap; gap: var(--space-sm); }

    .doc-row__action { width: 100%; }

    .responsive-table th { white-space: nowrap; }
    .responsive-table td { white-space: normal; }
}


@media (max-width: 480px) {

    body { font-size: var(--fs-base); }

    .container { padding: 0 var(--space-sm); }

    .page-section { padding: var(--space-lg) 0; }

    .btn { width: 100%; }

    .btn-row { flex-direction: column; }

    .btn-row .btn { width: 100%; }

    .svc-hero__actions { flex-direction: column; }

    .svc-hero__actions .btn { width: 100%; }

    .svc-hero__proof { flex-direction: column; gap: var(--space-sm); }

    .home-hero__meta { flex-direction: column; gap: var(--space-sm); }

    .search-form { flex-direction: column; }

    .search-form button { width: 100%; }

    .info-panel,
    .form-panel,
    .sub-nav { padding: var(--space-md); }

    .official-card { padding: var(--space-md); }

    .scroll-top { right: var(--space-sm); bottom: var(--space-sm); }

    .year-group__year { font-size: 1.6rem; }
}


@media (prefers-reduced-motion: reduce) {

    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal-item {
        opacity: 1;
        transform: none;
    }

    .btn:hover,
    .service-card:hover,
    .news-card:hover,
    .event-card:hover,
    .official-card:hover,
    .doc-row:hover,
    .dept-tile:hover { transform: none; }
}


@media print {

    .top-bar,
    .site-header,
    .site-footer,
    .scroll-top,
    .cookie-banner,
    .map-embed,
    .btn { display: none !important; }

    body { color: #000; font-size: 12pt; }

    .svc-hero { background: none; color: #000; padding: 0 0 1rem; }

    .svc-hero h1 { color: #000; }

    .page-section { padding: 0 0 1rem; }

    a { color: #000; text-decoration: underline; }
}


/* =========================================================
   38. NAV HOVER OVERRIDE

   Stays absolute last in this file. Nothing goes after it.
   ========================================================= */

.primary-nav > ul > li > a:hover { color: var(--blue); }

.primary-nav > ul > li > a:hover::after { transform: scaleX(1); }

.primary-nav ul ul li a:hover {
    background: var(--blue-tint);
    color: var(--blue);
}

/* =========================================================
   39. NOTICE BANNERS
   Rendered by the [ossian_notices] shortcode on the Home page.
   Three types: info (blue), alert (gold), urgent (red).
   ========================================================= */

.notice-banner {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-left: 5px solid var(--blue);
    border-radius: var(--radius);
    background: var(--blue-tint);
    margin-bottom: var(--space-2xs);
}

.notice-banner + .notice-banner {
    margin-top: var(--space-2xs);
}

.notice-banner strong {
    display: block;
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.2rem;
}

.notice-banner p {
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--ink);
    line-height: var(--lh-base);
}

/* Info: blue (default) */
.notice-banner.notice-info {
    background: var(--blue-tint);
    border-left-color: var(--blue);
}

.notice-banner.notice-info strong {
    color: var(--blue-darker);
}

/* Alert: gold */
.notice-banner.notice-alert {
    background: #fdf4e6;
    border-left-color: var(--gold);
}

.notice-banner.notice-alert strong {
    color: #7a5900;
}

.notice-banner.notice-alert p {
    color: #5a4000;
}

/* Urgent: red */
.notice-banner.notice-urgent {
    background: #fdecea;
    border-left-color: #b3261e;
}

.notice-banner.notice-urgent strong {
    color: #7a1c15;
}

.notice-banner.notice-urgent p {
    color: #5a0e0e;
}

/* When notices sit above the first page-section, give the block a container
   and some breathing room so it doesn't bleed edge-to-edge. */
.notice-banner-wrap {
    max-width: var(--container);
    margin: var(--space-md) auto 0;
    padding: 0 var(--space-md);
}

/* =========================================================
   40. PUBLIC NOTICE BANNERS (TOWN MANAGER PLUGIN)
   Rendered by the [allsupport_public_notices] shortcode on the
   Home page. Markup comes from the AllSupport Municipal Platform
   plugin, which prints its own generic styles late in wp_head,
   AFTER this stylesheet. Ties lose, so every selector here must
   strictly out-rank the plugin's. Do not lower specificity.
   Layout properties (display) are left alone on purpose: the
   plugin's own 640px media query handles mobile stacking.
   Severities: info (blue), warning (gold), alert (red), success (green).
   Section 39 above styles the retired .notice-banner markup and can
   be deleted once no stored page content still uses those classes.
   ========================================================= */

section.astm-public-notices {
    max-width: var(--container);
    margin: var(--space-lg) auto;
    padding: 0 var(--space-md);
    gap: var(--space-sm);
}

.astm-public-notices .astm-public-notice {
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 5px solid var(--blue);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-md) clamp(var(--space-md), 4vw, var(--space-lg));
}

.astm-public-notices .astm-public-notice-label {
    align-self: flex-start;
    background: var(--blue-tint);
    border-radius: var(--radius-pill);
    color: var(--blue-darker);
    font-size: var(--fs-xs);
    justify-content: center;
    line-height: 1;
    min-width: 92px;
    padding: 0.5rem 0.9rem;
}

.astm-public-notices .astm-public-notice h2 {
    color: var(--navy);
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    line-height: var(--lh-snug);
    margin: 0 0 var(--space-3xs);
}

.astm-public-notices .astm-public-notice p {
    color: var(--ink);
    font-size: var(--fs-base);
    line-height: var(--lh-base);
}

/* Severity accents. Cards stay white so the shadow reads as lift;
   the left bar and label pill carry the severity color. Alerts get
   a faint tint so urgent notices still register at a glance. */
.astm-public-notices .astm-public-notice-warning { border-left-color: var(--gold); }
.astm-public-notices .astm-public-notice-warning .astm-public-notice-label { background: #fdf4e6; color: #7a5900; }

.astm-public-notices .astm-public-notice-alert { background: #fffbfa; border-left-color: #b3261e; }
.astm-public-notices .astm-public-notice-alert .astm-public-notice-label { background: #fdecea; color: #7a1c15; }

.astm-public-notices .astm-public-notice-success { border-left-color: #1e7a43; }
.astm-public-notices .astm-public-notice-success .astm-public-notice-label { background: #e8f5ec; color: #1e5c38; }
/* Phones (Title II audit 11-13): the officials grid fits at 320px (a 270px minimum column plus padding was 4px too wide). */
@media (max-width: 600px) {
    .officials-grid { grid-template-columns: minmax(0, 1fr); }
    .official-card { min-width: 0; overflow-wrap: anywhere; }
}
