﻿/* ============================================================
   QuilCedaVillage.org – custom.css
   Brand design system overrides
   ============================================================ */

/* Google Fonts import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Roboto+Slab:wght@700&display=swap');

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
    --color-teal: #0A7070;
    --color-purple: #773A6F;
    --color-dark: #212024;
    --color-mint: #E2EFEA;
    --color-white: #FFFFFF;
    --spacing-sm: 1.5rem;
    --spacing-md: 2.5rem;
    --spacing-lg: 7.5rem;
}

/* ── Base Typography ────────────────────────────────────────── */
body {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 1rem; /* 16px */
    color: var(--color-dark);
    background-color: var(--color-white);
}

@media (max-width: 567px) {
    body {
        font-size: 0.95rem;
    }
}

.body-home {
    background-color: var(--color-white);
    color: var(--color-dark);
}

/* Serif headings helper */
.font-serif {
    font-family: 'Roboto Slab', Georgia, serif;
}

/* Prose content - for rich text areas with multiple paragraphs */
.prose-content p {
    margin-bottom: 1rem;
}

.prose-content p:last-child {
    margin-bottom: 0;
}

/* ── Brand Utility Classes ─────────────────────────────────────────────────── */
.text-brand-purple    { color: var(--color-purple); }
.text-brand-dark      { color: var(--color-dark); }
.text-brand-teal      { color: var(--color-teal); }
.bg-brand-mint        { background-color: var(--color-mint); }
.border-brand-divider { border-color: var(--color-purple); }

/* ── Container Utilities ────────────────────────────────────── */
.container-main {
    max-width: 1600px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.container-main-no-padding {
    max-width: 1600px;
    margin: 0 auto;
}

@media (max-width: 1599px) {
    main {
        margin-top: -5px;
        margin-bottom: 10px;
        top: -5px;
        position: relative;
    }
}

@media (max-width: 767px) {
    main {
        margin-top: 0;
    }
}


/* ── Heading Utilities ──────────────────────────────────────── */
/* Home page */
.home-h1 {
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: 4.063rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-dark);
    line-height: 1.15;
}

.home-h2 {
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: 3.438rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-dark);
    line-height: 1.2;
    text-transform: uppercase;
}

.home-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-dark);
}

/* Sub-pages */
.sub-h1 {
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: 2.25rem; /* 36px */
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--color-dark); /* #212024 */
    line-height: 1.2;
    text-transform: uppercase;
}

.sub-h2 {
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: 1.8rem; /* 30px */
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--color-dark); /* #212024 */
    line-height: 1.3;
    text-transform: uppercase;
}

/* Shared H3 */
.text-h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-purple);
}

@media (max-width: 767px) {
    /* Sub-pages */
    .sub-h1 {
        font-size: 1.75em; 
        line-height: 1.95rem;
      }

    .sub-h2 {
        font-size: 1.5rem; 
        line-height: 1.8rem;
    }

    /* Shared H3 */
    .text-h3 {
        font-size: 1.1rem;
    }
}

/* H3 links - use brand purple, not Tailwind purple */
.text-h3 a,
.h3-link {
    color: var(--color-purple);
    text-decoration: none;
    transition: color 0.2s ease;
}

.text-h3 a:hover,
.h3-link:hover {
    color: var(--color-teal);
}

/* ── Inline content links (blue, visited purple) ────────────── */
.content-link {
    color: #2563eb;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.content-link:hover {
    color: #1d4ed8;
}

.content-link:visited {
    color: var(--color-purple);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-white);
    background-color: var(--color-teal);
    padding: 15px 40px;
    border-radius: 60px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

    .btn-primary:hover {
        background-color: #085c5c;
        transform: translateY(-1px);
    }

@media (max-width: 767px) {
    .home-text-container .home-text-content {
      margin-bottom: 0;
    }

    .btn-primary {
        font-size: 1em;
        padding: 9px 35px;
    }
}

.btn-outline {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-teal);
    background-color: transparent;
    border: 2px solid var(--color-teal);
    padding: 13px 38px;
    border-radius: 60px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .btn-outline:hover {
        background-color: var(--color-teal);
        color: var(--color-white);
    }

/* ── Navigation ─────────────────────────────────────────────── */

/* ── Mobile Navigation (1023px and below) ───────────────────── */

/* Hamburger button */
.mobile-menu-btn {
    display: none; /* hidden by default (desktop) */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    transition: border-color 0.2s ease;
}

@media (max-width: 1023px) {
    .mobile-menu-btn {
        display: flex; /* show hamburger on mobile */
    }
}

.mobile-menu-btn:hover {
    border-color: rgba(255, 255, 255, 0.9);
}

.mobile-menu-btn[aria-expanded="true"] {
    border-color: var(--color-white);
}

/* Nav links: visible on desktop, hidden on mobile until toggled */
.nav-links-mobile-hidden {
    display: none !important;
}

@media (min-width: 1024px) {
    .nav-links-mobile-hidden {
        display: flex !important;
    }
}

/* The three bars */
.mobile-menu-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
}

/* Animate bars into X when open */
.mobile-menu-btn[aria-expanded="true"] .mobile-menu-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] .mobile-menu-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn[aria-expanded="true"] .mobile-menu-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu panel — shown when JS removes max-lg:hidden */
@media (max-width: 1023px) {
    #mobileMenu.mobile-open {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(25, 25, 25, 0.97);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0 0 12px 12px;
        padding: 1px 0 5px 0;
        z-index: 50;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }

    /* Each top-level nav item */
    #mobileMenu > li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

        #mobileMenu > li:last-child {
            border-bottom: none;
        }

    /* Top-level nav links */
    #mobileMenu .nav-link {
        display: block;
        width: 100%;
        padding: 0.80rem 1.5rem .40rem 1.5rem;
        font-size: 1rem;
        font-weight: 700;
        color: var(--color-white);
    }

        #mobileMenu .nav-link:hover {
            color: var(--color-mint);
            opacity: 1;
        }

    /* Desktop dropdowns become always-visible stacked lists on mobile */
    #mobileMenu .nav-dropdown {
        visibility: visible;
        opacity: 1;
        position: static;
        transform: none;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.3);
        border: none;
        border-radius: 0;
        padding: 0.5rem 0 0.75rem 1.5rem;
        box-shadow: none;
        transition: none;
    }

    /* Mobile dropdown links */
    #mobileMenu .nav-dropdown-link {
        font-size: 0.9375rem;
        padding: 0.5rem 1rem;
    }

    .nav-dropdown-sublink {
        padding-left: 0!important;
    }

    .projectmanagement .nav-dropdown-sublink {
        padding-left: 0 !important;
    }

    ul.dept-menu .sub-child.project {
        margin: 4px 0 0 0 !important;
    }

    ul.dept-menu > li + li.nav-operation {

        margin-top: 3px;
    }

    ul.dept-menu .nav-tds {
        margin-top: 0 !important;
    }

    /* Subpage search button on mobile */
    #mobileMenu .subpage-search-btn {
        margin: 0.5rem 1.5rem;
    }

    .village-menu li {
        margin-block-end: 0;
    }

    .dept-menu li.nav-charitable {
        margin: 4px 0 4px 0px !important;
    }

    .dept-menu .nav-cityadmin {
        margin: 0!important;
    }

    .dept-menu li.nav-cityadmin .px-2 {
        margin: 4px 0 4px 0px !important;
        padding-left: 0 !important;
    }

    .dept-menu li.nav-operation .px-2 {
        margin: 4px 0 4px 0px !important;
        padding-left: 0 !important;
    }

    .dept-menu li.nav-publicworks .px-2{
        margin: 4px 0 4px 0px !important;
        padding-left: 0!important;
    }

    .dept-menu li.nav-hr {
        margin-top: -7px !important;
    }

    .nav-dropdown-children.expanded {
        margin-left: 2rem!important;
    }

    .dept-menu .maintenance {
        margin: -3px 0 10px 0 !important;
    }

   /* .nav-cityadmin a.nav-dropdown-sublink.px-2 {
        padding-left: 15px!important;
    }*/
/*
    .nav-marketing a.nav-dropdown-sublink.px-2 {
        padding-left: 15px !important;
    }

    .nav-publicworks a.nav-dropdown-sublink.px-2 {
        padding-left: 15px !important;
    }*/
}

@media (max-width: 567px) {
    #mobileMenu.mobile-open {
        padding-top: 0;
    }

    /* Mobile dropdown links */
    #mobileMenu .nav-link {
        display: block;
        width: 100%;
        padding: .5rem 1.5rem 0 1.5rem;
        font-size: 0.90rem;
        font-weight: 700;
        color: var(--color-white);
        line-height: 1.5rem;
    }

    #mobileMenu .nav-dropdown-sublink {
        font-size: 0.8125rem;
        padding: 0.35rem 1rem;
    }


    #mobileMenu .nav-dropdown-link {
        font-size: 0.9rem;
        padding: 0.3rem 1rem;
    }

    .nav-dropdown a {
        line-height: 1.0;
    }
 }

/* ── Main navigation container */
.nav-container {
    max-width: 90%;
    margin: 0 auto;
    position: relative;
    padding-left: 0;
    padding-right: 0;
}

@media (min-width: 991px) {
    .nav-container {
        max-width: 900px;
    }
}

@media (min-width: 1024px) {
    .nav-container {
        max-width: 950px;
    }
}

@media (min-width: 1200px) {
    .nav-container {
        max-width: 1100px;
    }
}

@media (min-width: 1400px) {
    .nav-container {
        max-width: 1300px;
    }
}

@media (min-width: 1600px) {
    .nav-container {
        max-width: 1400px;
        padding-left: 0;
        padding-right: 0;
    }
}

/* Extra large screens: minimal padding */
@media (min-width: 1800px) {
    .nav-container {
        max-width: 1600px;
        padding-left: 0;
        padding-right: 0;
    }
}


/* Navigation wrapper with top padding - 96px (1 inch from top) */
.nav-wrapper {
    padding-top: 20px;
}

@media (min-width: 991px) {
    .nav-wrapper {
        padding-top: 35px;
    }
}

@media (min-width: 1100px) {
    .nav-wrapper {
       padding-top: 45px;
    }
}

/* Navigation logo */
.nav-logo {
    height: 5rem;
}

@media (min-width: 568px) {
    .nav-logo {
        height: 6rem; /* h-48 = 192px */
    }
}

@media (min-width: 768px) {
    .nav-logo {
        height: 8rem; /* h-48 = 192px */
    }
}

/* Navigation links */
.nav-links {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    color: var(--color-white);
}

.nav-link {
    color: var(--color-white);
}

/* Subpage search button */
.subpage-search-btn {
    background-color: rgba(200, 200, 200, 0.5);
    border-color: rgba(200, 200, 200, 0.7);
    padding: 10px;
    transition: opacity 200ms ease, visibility 200ms ease;
}

.subpage-search-btn:hover {
    background-color: rgba(200, 200, 200, 0.7);
}

/* Hide button when search is expanded (keeps space reserved) */
.subpage-search-btn.search-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.subpage-search-icon {
    color: #4b5563;
    width: 1.25rem;
    height: 1.25rem;
}

/* Subpage search expanded overlay */
.subpage-search-expanded-overlay {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 50%;
    z-index: 100;
    opacity: 0;
    transform-origin: right center;
    transform: translateY(-50%) scaleX(0);
    pointer-events: none;
    transition: opacity 500ms ease-out, transform 500ms ease-out;
}

.subpage-search-expanded-overlay.is-open {
    opacity: 1;
    transform: translateY(-50%) scaleX(1);
    pointer-events: auto;
}

.subpage-search-expanded-inner {
    position: relative;
}

/* Subpage search field - dark grey border and X */
.subpage-search-expanded-inner .flex.items-center {
    border-color: #6b7280 !important;
}

.subpage-search-expanded-inner #subpageSearchCloseBtn {
    color: #6b7280 !important;
}

.subpage-search-expanded-inner #subpageSearchCloseBtn:hover {
    color: #4b5563 !important;
}

/* Subpage search suggestions dropdown - positioned relative to expanded search */
.subpage-search-expanded-overlay #subpageSearchSuggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    margin-top: 0.5rem;
    transform: none;
    max-width: none;
}

/* Remove default search input X button to prevent duplicate */
#subpageSearchInput::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

#subpageSearchInput::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

/* Home page welcome section */
.home-welcome-container {
    width: 100%;
    max-width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 50px;
    padding-bottom: 1.5rem;
}

@media (max-width: 767px) {
    .home-welcome-container {
        padding-top: 25px;
        padding-bottom: 0;
        padding-left: 0;
        padding-right: 0;
        text-align: center;
    }
}

@media (max-width: 567px) {
    .home-welcome-container {
        padding-top: 45px;
    }
}


/* sm-tablet: 1024px to 1199px */
@media (min-width: 768px) {
    .home-welcome-container {
        padding-top: 15px;
        padding-bottom: 0;
        padding-left: 5rem;
        padding-right: 5rem;
    }
}

/* sm-tablet: 1024px to 1199px */
@media (min-width: 991px) {
    .home-welcome-container {
        padding-top: 30px;
        padding-bottom: 0;
        padding-left: 5rem;
        padding-right: 5rem;
    }
}

/* sm-tablet: 1024px to 1199px */
@media (min-width: 1024px) {
    .home-welcome-container {
        padding-top: 45px;
        padding-bottom: 0;
        padding-left: 14rem;
        padding-right: 14rem;
    }
}

/* sm-tablet: 1024px to 1199px */
@media (min-width: 1099px) {
    .home-welcome-container {
        padding-top: 60px;
        padding-bottom: 0;
        padding-left: 16rem;
        padding-right: 16rem;
    }
}


/* Tablet: 1200px to 1400px */
@media (min-width: 1200px) {
    .home-welcome-container {
        padding-top: 80px;
        padding-bottom: 3rem;
        padding-left: 4.5rem;
        padding-right: 4.5rem;
    }
}

/* Desktop: 1400px and up */
@media (min-width: 1400px) {
    .home-welcome-container {
        padding-top: 25px;
        padding-bottom: 3rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Search bar wrapper - ensure it takes full width */
.home-search-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.home-welcome-text-top {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px; /* Mobile default */
    font-weight: 600;
    color: var(--color-white);
    letter-spacing: 4px;
}

@media (min-width: 768px) {
    .home-welcome-text-top {
        font-size: 20px; /* Tablet */
    }
}

@media (min-width: 1024px) {
    .home-welcome-text-top {
        font-size: 24px; /* Large tablet/small desktop */
    }
}

@media (min-width: 1400px) {
    .home-welcome-text-top {
        font-size: 32px; /* Desktop */
    }
}

.home-welcome-text-main {
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: 28px; /* Mobile default */
    font-weight: 500;
    color: var(--color-white);
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 4px;
}

@media (max-width: 767px) {
    .home-welcome-container .mb-3 {
        margin-bottom: 4px;
    }

    .home-welcome-text-main {
        font-size: 25px;
     }
}

@media (min-width: 768px) {
    .home-welcome-text-main {
        font-size: 36px; /* Tablet */
        margin-top: 2px;
        margin-bottom: 0;
    }
}

@media (min-width: 1024px) {
    .home-welcome-text-main {
        font-size: 42px; /* Large tablet/small desktop */
        letter-spacing: 5px;
    }
}

@media (min-width: 1400px) {
    .home-welcome-text-main {
        font-size: 48px; /* Desktop */
        letter-spacing: 6px;
    }
}

/* Home search bar */
.home-search-bar {
    border-color: #cccccc;
    width: 60%; /* Mobile default */
    max-width: 60%;
    height: 30px;
}

@media (min-width: 768px) {
    .home-search-bar {
        height: 35px; /* Tablet */
    }
}

@media (min-width: 1024px) {
    .home-search-bar {
        height: 35px; /* Large tablet/small desktop */
    }
}

@media (min-width: 1400px) {
    .home-search-bar {
        max-width: 700px;
        width: 700px;
        height: 45px; /* Desktop */
    }
}

@media (max-width: 600px) {
    .home-search-bar {
        max-width: 80%;
        width: 80%;
    }
}

.home-search-btn {
    background-color: transparent;
    color: #999999;
    width: 37px;
    height: 37px;
    margin-right: 4px;
    padding-right: 2px;
}

/* Home search suggestions dropdown */
.home-search-suggestions {
    width: 90%; /* Mobile default */
    max-width: 500px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 50;
    border: 1px solid #e2e8f0;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}

@media (min-width: 768px) {
    .home-search-suggestions {
        max-width: 650px;
    }
}

@media (min-width: 1024px) {
    .home-search-suggestions {
        max-width: 680px;
    }
}

@media (min-width: 1400px) {
    .home-search-suggestions {
        max-width: 700px;
        width: 700px;
    }
}

    .home-search-suggestions .search-suggestion-item {
        cursor: pointer;
        text-decoration: none;
        color: #334155;
    }

        .home-search-suggestions .search-suggestion-item:hover {
            background-color: var(--color-mint);
            text-decoration: none;
        }

/* Line clamp utility for snippets */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dropdown menu */
.nav-dropdown {
    background-color: rgba(40, 40, 40, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.1);
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
}

.nav-dropdown-link {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
    font-weight: 400;
}

    .nav-dropdown-link:hover,
    .nav-dropdown-link.active {
        color: var(--color-teal);
    }

.nav-dropdown-sublink {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8125rem;
    font-weight: 400;
    padding-left: .3rem;
}

    .nav-dropdown-sublink:hover,
    .nav-dropdown-sublink.active {
        color: var(--color-teal);
    }

/* Search overlay animation */
.search-overlay {
    width: min(40rem, calc(100vw - 3rem));
    opacity: 0;
    transform-origin: right;
    transform: scaleX(0);
    pointer-events: none;
    transition: opacity 500ms ease-out, transform 500ms ease-out;
}

    .search-overlay.is-open {
        opacity: 1;
        transform: scaleX(1);
        pointer-events: auto;
    }

/* Dropdown link spacing - 6px between items */
.dept-menu > li + li {
    margin-top: 6px;
}

.dept-menu .nav-charitable {
    margin: 4px 0 6px 8px!important;
}

.dept-menu .nav-cityadmin {
    margin: 0 0 7px 0!important;
}

.dept-menu .codeenforcement {
    margin-top: -3px !important;
}

.dept-menu .finance {
    margin: 2px 0 8px 0!important;
}

.dept-menu .wetland {
    margin: 0 !important;
    padding-top: 0!important
}

    .dept-menu li.wetland a.pt-2 {
        padding-top: 0!important;
    }

.dept-menu .nav-hr {
    margin-top: 0 !important;
}

.dept-menu .nav-operations {
    margin-top: -2px !important;
}

.dept-menu .marketing {
    margin-top: -4px !important;
}

.dept-menu .projectmanagement {
    margin: -8px 0 2px 0 !important;
}

.dept-menu .building {
    margin: 10px 0 -8px 0!important;
}

@media (max-width: 1023px) {
    .dept-menu .building {
        margin: 12px 0 -10px 0 !important;
    }

    ul.dept-menu .nav-publicworks {
        margin-top: -9px !important;
    }

    li.nav-operation .sub-child ul.dept-menu .projectmanagement {
        margin-bottom: -4px!important;
    }
}

.dept-menu .project {
    margin: 4px 0 -8px -8px!important;
}

.dept-menu .bidding {
    margin: -5px 0 8px 0 !important;
}

.dept-menu .archivedprojects {
    margin: 10px 0 12px 0 !important;
}

.dept-menu .nav-publicworks {
    margin-top: -5px !important;
}

.dept-menu .maintenance {
    margin: -3px 0 10px 0!important;
}

.dept-menu .facilities {
    margin: 2px 0 10px 0 !important;
}

.dept-menu .grounds {
    margin: 2px 0 10px 0 !important;
}

.dept-menu .roads {
    margin: 2px 0 10px 0 !important;
}

.dept-menu .nav-tds {
    margin-top: 6px !important;
}

.government-menu > li + li {
    margin-top: 6px;
}

.village-menu > li + li {
    margin-top: 6px;
}

.dept-menu > li + li.public-works,
.dept-menu > li + li.tulalip-data {
    margin-top: 0.75rem;
}

.dept-menu a {
    display: block;
}

.nav-dropdown a {
    line-height: 1.50;
}

/* Collapsible dropdown items */
.nav-dropdown-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
    cursor: pointer;
}

/* Nested dropdown parent (like Project Management under Operations) */
.nav-dropdown-children .nav-dropdown-parent {
    gap: 0.25rem;
    margin-left: 0;
    padding-left: 0.5rem;
}

.nav-dropdown-parent .nav-dropdown-link,
.nav-dropdown-parent .nav-dropdown-sublink {
    flex: 1 1 auto;
    line-height: 1.25;
}

.nav-dropdown-arrow {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Minimum 44×44px touch target */
    min-width: 44px;
    min-height: 44px;
    transition: transform 0.2s ease;
    font-size: 1.15rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    margin-right: -0.5rem;
}

@media (max-width: 1023px) {
    .nav-dropdown-arrow {
        font-size: 2.25rem;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.85);
        min-width: 56px;
        min-height: 48px;
        padding-left: 16px;
    }
}

.nav-dropdown-parent.expanded .nav-dropdown-arrow {
    transform: rotate(90deg);
}

.nav-dropdown-children {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 0;
    margin-left: 1rem;
}

    .nav-dropdown-children.expanded {
        max-height: 500px;
        margin-top: 0;
    }

    /* Nested children under nested parent (Bidding Opportunities, Current Projects) */
    .nav-dropdown-children .nav-dropdown-children {
        margin-left: 1rem;
    }

    .nav-dropdown-children .nav-dropdown-children.expanded {
        margin-top: 0.25rem;
    }

/* Sidebar navigation highlighting */
.sidebar-section {
    border-bottom: 1px solid var(--color-teal);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

    /* Remove border from last section (Careers) */
    .sidebar-section:last-child {
        border-bottom: none;
    }

    /* Active section - make items bold instead of background highlighting */
    .sidebar-section.active .sidebar-section-heading {
        color: var(--color-teal) !important;
        font-weight: 700;
    }

    .sidebar-section.active .sidebar-link {
        font-weight: 700;
    }

.sidebar-section-heading {
    color: var(--color-purple);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-link {
    color: var(--color-dark);
    text-decoration: none;
}

    .sidebar-link:hover,
    .sidebar-link.active {
        color: var(--color-teal);
        text-decoration: underline;
    }

.sidebar-collapsible {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    gap: 0.25rem;
}

    .sidebar-collapsible .sidebar-link {
        flex: 1 1 auto;
    }

.charitable-side {

}

.charitable-image-wrap {
    overflow: hidden;
}

    .charitable-image-wrap img {
        float: left;
        width: 420px;
        margin-right: 1.5rem;
        margin-bottom: .5rem;
        border-radius: 0.5rem;
        margin-top: 8px;
    }

@media (max-width: 1399px) {
    .charitable-image-wrap img {
        float: none;
        width: 95%;
        margin-right: 0;
        margin-bottom: 2rem;
        margin-top: 0;
    }
}

@media (max-width: 1199px) {
    .charitable-image-wrap img {
        width: 100%;
        margin-right: 0;
        margin-bottom: 2rem;
        margin-top: 0;
    }
}

.charitable-image-wrap h2 {
    margin-top: 0;
    padding-top: 0;
}

.cityadmin-side {
    height: 18px;
    margin-top: 14px;
}

.humanresources-side {
    position: relative;
    margin-bottom: 20px;
    line-height: 32px;
}

.wetland-side {
    padding-bottom: 6px;
}

.operations-side {
    height: 10px;
    margin-top: 12px;
    margin-bottom: 9px;
}

.marketing-side {
    margin-top: 0;
    padding-top: 4px;
}

.projectgroup-side {
    margin-bottom: 1px;
}

.bidding-side {
    line-height: 20px;
}

.archived-side {
    line-height: 31px;
    top: 3px;
    position: relative;
}

.roads-side {
    line-height: 18px;
    top: 1px;
    bottom: -1px;
    position: relative;
}

.projectmanagement-side {
    margin-top: -4px;
    margin-bottom: -12px;
    line-height: 18px;
}

.publicworks-side {
    margin-top: -6px;
    margin-bottom: -13px;
    line-height: 18px;
}

.tds-side {
    line-height: 48px;
    margin-top: 14px;
}

.sidebar-arrow {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    transition: transform 0.2s ease;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-teal);
    cursor: pointer;
    margin-right: -0.5rem;
}

.sidebar-collapsible.expanded .sidebar-arrow {
    transform: rotate(90deg);
}

.sidebar-children {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

    .sidebar-children.expanded {
        max-height: 500px;
    }

/* ── Wave Dividers ──────────────────────────────────────────── */
.wave-divider {
    display: block;
    width: 100%;
    line-height: 0;
}

    .wave-divider img {
        width: 100%;
        display: block;
    }

.wave-divider-bottom {
    line-height: 0;
    z-index: 10;
    margin-bottom: -1px;
}

/* White wave divider - responsive */
.white-wave-divider {
    background-image: url('/images/White-Waves-2.png');
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: cover;
    height: 35px;
}

@media (min-width: 568px) {
    .white-wave-divider {
        height: 45px;
    }
}

@media (min-width: 650px) {
    .white-wave-divider {
        height: 50px;
    }
}

@media (min-width: 768px) {
    .white-wave-divider {
        height: 60px;
    }
}

@media (min-width: 850px) {
    .white-wave-divider {
        height: 64px;
    }
}

@media (min-width: 991px) {
    .white-wave-divider {
        height: 67px;
    }
}

@media (min-width: 1024px) {
    .white-wave-divider {
        height: 80px;
    }
}

@media (min-width: 1200px) {
    .white-wave-divider {
        height: 89px;
    }
}

@media (min-width: 1400px) {
    .white-wave-divider {
        height: 104px;
    }
}

@media (min-width: 1600px) {
   .white-wave-divider {
        height: 116px;
    }
}

@media (min-width: 1800px) {
    .white-wave-divider {
        height: 140px;
    }
}

@media (min-width: 2000px) {
    .white-wave-divider {
        height: 168px;
    }
}

@media (min-width: 2400px) {
    .white-wave-divider {
        height: 175px;
    }
}

@media (min-width: 2600px) {
    .white-wave-divider {
        height: 195px;
    }
}

    /* Green wave divider - responsive */
    .green-wave-divider {
        background-image: url('/images/Green-Waves-2.png');
        background-repeat: no-repeat;
        background-position: bottom center;
        background-size: cover;
        height: 35px;
        position: relative;
        bottom: -4px;
    }

    @media (min-width: 568px) {
        .green-wave-divider {
            height: 45px;
        }
    }

    @media (min-width: 650px) {
        .green-wave-divider {
            height: 50px;
        }
    }

    @media (min-width: 768px) {
        .green-wave-divider {
            height: 60px;
        }
    }

    @media (min-width: 850px) {
        .green-wave-divider {
            height: 64px;
        }
    }

    @media (min-width: 991px) {
        .green-wave-divider {
            height: 67px;
        }
    }

    @media (max-width: 1024px) {
        .green-wave-divider {
            margin-top: 30px;
        }
    }

    @media (max-width: 950px) {
        .green-wave-divider {
            margin-top: 0;
        }
    }

    @media (max-width: 449px) {
        .green-wave-divider {
            margin-top: 0;
        }
    }

    @media (min-width: 1024px) {
        .green-wave-divider {
            height: 80px;
        }
    }

    @media (min-width: 1200px) {
        .green-wave-divider {
            height: 93px;
        }
    }

    @media (min-width: 1400px) {
        .green-wave-divider {
            height: 104px;
        }
    }

    @media (min-width: 1600px) {
        .green-wave-divider {
            height: 116px;
        }
    }

    @media (min-width: 1800px) {
        .green-wave-divider {
            height: 140px;
        }
    }

    @media (min-width: 2000px) {
        .green-wave-divider {
            height: 168px;
        }
    }

    @media (min-width: 2400px) {
        .green-wave-divider {
            height: 175px;
        }
    }

@media (min-width: 2600px) {
    .green-wave-divider {
        height: 195px;
    }
}

    /* ── Hero Sections ──────────────────────────────────────────── */
    .hero-home {
        height: 300px; /* Mobile: max-width 767px */
    }

    @media (min-width: 768px) and (max-width: 1099px) {
        .hero-home {
            height: 400px; /* Small tablet */
        }
    }

    @media (min-width: 991px) and (max-width: 1099px) {
        .hero-home {
            height: 500px; /* Small tablet */
        }
    }

    @media (min-width: 1100px) and (max-width: 1399px) {
        .hero-home {
            height: 550px; /* Large tablet */
        }
    }

    @media (min-width: 1400px) and (max-width: 1599px) {
        .hero-home {
            height: 650px; /* Between tablet and desktop */
        }
    }

    @media (min-width: 1600px) {
        .hero-home {
            height: 800px; /* Desktop: matches 2560x800 image */
        }
    }

    .hero-subpage {
        height: 200px; /* Mobile: matches 768x250 image */
    }

    @media (min-width: 567px) {
        .hero-subpage {
            height: 250px; /* Tablet: matches 1400x500 image */
        }
    }

    @media (min-width: 767px) {
        .hero-subpage {
            height: 275px; /* Tablet: matches 1400x500 image */
        }
    }

    @media (min-width: 991px) {
        .hero-subpage {
            height: 325px; /* Tablet: matches 1400x500 image */
        }
    }

    @media (min-width: 1023px) {
        .hero-subpage {
            height: 350px; /* Tablet: matches 1400x500 image */
        }
    }

    @media (min-width: 1400px) {
        .hero-subpage {
            height: 425px;
        }
    }

    @media (min-width: 1600px) {
        .hero-subpage {
            height: 500px;
        }
    }

    @media (min-width: 1800px) {
        .hero-subpage {
            height: 600px;
        }
    }

      @media (min-width: 2400px) {
        .hero-home {
            height: 900px;
        }
    }


    /* ── Left Sidebar Navigation (Subpages) ─────────────────────── */
    .sidebar-nav {
        background-color: var(--color-white);
        border-right: 1px solid #d1ddd8;
        padding: var(--spacing-md) var(--spacing-sm);
        min-width: 220px;
    }

    /* Hide sidebar navigation at 1100px and below */
    @media (max-width: 1100px) {
        .sidebar-nav {
            display: none;
        }
    }

    .sidebar-nav .sidebar-section-title {
        font-family: 'Montserrat', sans-serif;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--color-teal);
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #d1ddd8;
    }

    .sidebar-nav a {
        display: block;
        font-family: 'Montserrat', sans-serif;
        font-size: 0.875rem;
        color: var(--color-dark);
        padding: 0.3rem 0;
        text-decoration: none;
        transition: color 0.15s ease;
    }

        .sidebar-nav a:hover,
        .sidebar-nav a.active {
            color: var(--color-teal);
        }

    .sidebar-nav ul.sub-links {
        margin-left: 0.85rem;
        margin-top: 0.25rem;
        list-style: none;
        padding: 0;
    }

        .sidebar-nav ul.sub-links li a {
            font-size: 0.8125rem;
            color: #555;
        }

            .sidebar-nav ul.sub-links li a:hover {
                color: var(--color-teal);
            }

    .sidebar-group + .sidebar-group {
        margin-top: 1.5rem;
    }

    /* ── Contact / Info Box (Subpages) ──────────────────────────── */

    /* Contact page sidebar � same visual style as .info-box */
    .contact-info-card {
        background-color: var(--color-mint);
        border-radius: 15px;
    }

    .contact-info-heading {
        font-family: 'Montserrat', sans-serif;
        font-size: 26px;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--color-dark);
    }

    @media (max-width: 1400px) {
        .contact-info-heading {
            font-size: 22px;
            text-align: center;
        }
    }

    .info-box {
        background-color: var(--color-mint);
        border-radius: 15px;
        padding: var(--spacing-md);
    }

    /* At 1600px and below: reduce padding on info-box */
    @media (max-width: 1600px) {
        .info-box {
            padding: 1.5rem;
        }
    }

    @media (max-width: 1200px) {
        .info-box {
            width: 50%;
            margin-top: 2rem;
        }
    }

    @media (max-width: 667px) {
        .info-box {
            width: 100%;
        }
    }

    /* At 1600px and below: reduce gap between content and info-box */
    @media (max-width: 1600px) {
        .grid.lg\:grid-cols-3 {
            gap: 2rem !important;
        }
    }

    /* At 1200px and below: move info-box below content (full-width) */
    @media (max-width: 1200px) {
        .grid.lg\:grid-cols-3 {
            grid-template-columns: 1fr !important;
        }

        .lg\:col-span-2,
        .lg\:col-span-1 {
            grid-column: span 1 !important;
        }
    }

    .info-box-title {
        font-family: 'Montserrat', sans-serif;
        font-size: 26px;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--color-dark);
        margin-bottom: 1rem;
    }

    @media (max-width: 1400px) {
        .info-box-title {
            font-size: 22px;
            text-align: center;
        }

        .info-box .mb-6 {
            margin-bottom: 20px;
        }
        /*
    .info-box a {
        padding: .50rem 1.15rem .45rem 1.15rem;
    }*/
    }

    @media (max-width: 1199px) {
        .info-box-title {
            font-size: 22px;
            text-align: center;
        }

        .info-box .mb-6 {
            margin-bottom: 10px;
        }
    }


    .info-box-content {
        font-size: 14px;
        color: #64748b; /* text-slate-700 */
    }

    .info-box-section-heading {
        color: var(--color-purple) !important;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .info-box-contact-label {
        color: var(--color-purple) !important;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-size: 0.9rem;
    }

    .info-box-link {
        color: var(--color-purple);
        font-size: 0.9rem;
    }

        .info-box-link:hover {
            color: var(--color-teal);
        }

    .info-box-button {
        background-color: var(--color-teal);
        color: var(--color-white);
        font-size: 1rem;
        padding: .75rem 1.25rem .65rem 1.25rem;
    }

        .info-box-button:hover {
            background-color: #085c5c;
            color: var(--color-white) !important;
        }

    .project-contact-btn {
        background-color: transparent;
        border: 1px solid var(--color-teal);
        color: var(--color-teal);
        font-size: 0.8rem;
        font-weight: 500;
        letter-spacing: 0.03em;
        padding: .35rem .85rem .3rem .85rem;
    }

        .project-contact-btn:hover {
            background-color: var(--color-teal);
            color: var(--color-white) !important;
        }

    .project-doc-item {
        padding-top: 1.2rem;
        padding-bottom: 1.1rem;
    }

        .project-doc-item + .project-doc-item {
            border-top: 1px solid #cbd5e1; /* slate-300 */
        }

    .project-doc-item--dark + .project-doc-item--dark {
        border-top-color: #334155; /* slate-700 */
    }

    /* Hours block inside contact card */
    .info-box-contact-hours p {
        color: #374151;
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 0.5rem;
    }

    .info-box-contact-card-heading {
        color: var(--color-purple) !important;
        font-weight: 700;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 0.35rem;
    }

    .info-box-contact-card-button {
        display: inline-block;
        margin-top: 0.4rem;
        padding: 0.2rem 0.75rem;
        background-color: var(--color-purple);
        color: #fff !important;
        border-radius: 20px;
        font-size: 11px;
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        text-decoration: none;
        transition: background-color 0.2s, color 0.2s;
    }

        .info-box-contact-card-button:hover {
            background-color: #5c2b56;
            color: #fff !important;
        }

    .info-box-contact-card-text {
        color: #374151;
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .info-box-contact-person-name {
        color: var(--color-purple) !important;
        font-weight: 700;
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 0.1rem;
        text-transform: uppercase;
    }

    .info-box-contact-job-title {
        color: #374151;
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Hours block inside contact card — supports raw HTML with <p> and <br /> */
    .info-box-contact-hours p {
        color: #374151;
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 0.5rem;
    }

    .info-box-contact-card-button {
        display: inline-block;
        margin-top: 0.4rem;
        padding: 0.2rem 0.75rem;
        background-color: var(--color-purple);
        color: #fff !important;
        border-radius: 20px;
        font-size: 11px;
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        text-decoration: none;
        transition: background-color 0.2s, color 0.2s;
    }

        .info-box-contact-card-button:hover {
            background-color: #5c2b56;
            color: #fff !important;
        }

    /* TabsWithSidebar - Quick Links sidebar box */
    .tabs-sidebar-box {
        background-color: var(--color-mint);
        border-radius: 20px;
        padding: 1.5rem;
    }

    @media (min-width: 1600px) {
        .tabs-sidebar-box {
            padding: 2rem;
        }
    }

    .tabs-sidebar-heading {
        font-size: 20px;
        color: var(--color-purple);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .tabs-sidebar-contact-heading {
        font-size: 26px;
        color: var(--color-dark);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 1rem;
    }

    .tabs-sidebar-contact-label {
        color: var(--color-purple);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-size: 14px;
    }

    .tabs-sidebar-contact-text {
        font-size: 14px;
    }

    .tabs-sidebar-button {
        background-color: var(--color-teal);
        color: var(--color-white);
        padding: 0.75rem 1.5rem;
        text-align: center;
        font-weight: 500;
    }

    a.tabs-sidebar-button {
        font-size: .95rem;
    }

    .tabs-sidebar-button:hover {
        opacity: 0.9;
    }

    .tabs-sidebar-divider {
        border-color: #C4D9D3;
    }

    /* Legacy support - keeping old selectors for backward compatibility */
    .info-box h3 {
        font-family: 'Montserrat', sans-serif;
        font-size: 1rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--color-dark);
        margin-bottom: var(--spacing-sm);
    }

    .info-box .info-label {
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--color-teal);
        margin-bottom: 0.25rem;
    }

    .info-box p {
        font-size: 0.9rem;
        color: var(--color-dark);
    }

    /* Legacy links - default to purple (removed color: var(--color-dark)) */
    .info-box a {
        /*      font-size: 0.85rem;*/
        text-decoration: none;
    }

    .info-box-link a {
        font-size: 0.9rem;
        text-decoration: none;
    }

    .info-box a.info-box-button {
        font-size: 1rem;
        text-decoration: none;
    }

    @media (max-width: 991px) {
        .info-box a.info-box-button {
            font-size: .9rem;
            text-decoration: none;
        }
    }

    .info-box a:hover {
        color: var(--color-teal);
    }

    /* ── Hero section overlay ───────────────────────────────────── */
    .hero-overlay {
        background-color: rgba(0, 0, 0, 0.5);
    }

    /* ── Quick Link Cards ───────────────────────────────────────── */
    .quick-link-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
        background: transparent;
        border: none;
        text-decoration: none;
        text-align: center;
        transition: transform 0.15s ease;
    }

    @media (min-width: 1100px) {
        .quick-link-card {
            padding: 2rem 1.5rem;
        }
    }

    .quick-link-card:hover {
        transform: translateY(-2px);
    }

    .quick-link-card .icon-wrap {
        width: 4rem;
        height: 4rem;
        border-radius: 50%;
        background-color: var(--color-mint);
        border: none;
        outline: none;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: none;
    }

        .quick-link-card .icon-wrap img,
        .quick-link-card .icon-wrap svg {
            width: 4.5rem;
            height: 4.5rem;
            border: none;
            outline: none;
        }

    @media (min-width: 767px) {
        .quick-link-card .icon-wrap {
            width: 6rem;
            height: 6rem;
        }

            .quick-link-card .icon-wrap img,
            .quick-link-card .icon-wrap svg {
                width: 6.5rem;
                height: 6.5rem;
            }
    }

    @media (min-width: 991px) {
        .quick-link-card .icon-wrap {
            width: 5rem;
            height: 5rem;
        }

            .quick-link-card .icon-wrap img,
            .quick-link-card .icon-wrap svg {
                width: 5.5rem;
                height: 5.5rem;
            }
    }

    @media (min-width: 1100px) {
        .quick-link-card .icon-wrap {
            width: 6rem;
            height: 6rem;
        }

            .quick-link-card .icon-wrap img,
            .quick-link-card .icon-wrap svg {
                width: 6.5rem;
                height: 6.5rem;
            }
    }

    /* Hide the embedded circle in SVG */
    .quick-link-card .icon-wrap svg circle {
        display: none;
    }

    .quick-link-card .icon-wrap svg path {
        fill: var(--color-teal);
    }

    .quick-link-card h3 {
        font-family: 'Montserrat', sans-serif;
        font-size: 12px;
        font-weight: 700;
        color: var(--color-purple);
        text-align: center;
        line-height: 1.4;
        text-transform: uppercase;
    }

    @media (min-width: 1100px) {
        .quick-link-card h3 {
            font-size: 14px;
        }
    }

    /* Tablet: 577px to 991px */
    @media (min-width: 577px) and (max-width: 991px) {
        .quick-link-card {
            padding: .5rem 1rem;
        }

            .quick-link-card h3 {
                font-size: 12px;
            }
    }

    /* Mobile: 576px and below */
    @media (max-width: 576px) {
        .home-content-container {
            padding: 1rem;
        }

        .quick-link-card {
            padding: 0;
        }

            .quick-link-card h3 {
                font-size: 11px;
            }
    }

    .quick-link-card p {
        display: none;
    }

    /* ── Subpage breadcrumb ─────────────────────────────────────── */
    .breadcrumb {
        font-family: 'Montserrat', sans-serif;
        color: #555;
    }

    .breadcrumb-list {
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        text-transform: uppercase;
    }

    .breadcrumb-link {
        color: var(--color-purple);
    }

    .breadcrumb-current {
        color: var(--color-dark);
    }

    .breadcrumb-stacked-title {
        color: var(--color-dark);
        font-weight: 700;
        margin-top: 0.2rem;
        padding-left: 1.25rem;
        line-height: 1.35;
    }

    .breadcrumb-chevron {
        color: var(--color-purple);
    }

    .breadcrumb a {
        color: var(--color-teal);
        text-decoration: none;
    }

        .breadcrumb a:hover {
            text-decoration: underline;
        }

    .breadcrumb span {
        margin: 0 0.4rem;
        color: #aaa;
    }

    @media (max-width: 991px) {
        .breadcrumb-content nav ol {
            font-size: 0.75rem !important;
        }

        .subpage-main {
            padding-top: 20px;
        }
    }

    @media (max-width: 767px) {
        .breadcrumb-area.mb-8 {
            height: 45px;
            margin-bottom: 3rem !important;
        }

        .breadcrumb-content {
            height: 45px;
            padding-left: 20px;
        }
    }

    @media (max-width: 991px) {
        main .subpage-main.py-12 {
            padding-top: 40px;
        }
    }


    /* Mobile: 767px and below */
    @media (max-width: 767px) {
        main .subpage-main.py-12 {
            padding-top: 40px;
        }
    }

    /* Mobile: 767px and below */
    @media (max-width: 600px) {
        .breadcrumb-content.items-center {
            height: 45px !important;
            padding-left: 20px !important;
        }

        .content-feather-bg {
            height: 40px !important;
        }

        .breadcrumb-content nav ol li {
            margin-right: 0 !important;
            font-size: .75rem;
        }

            .breadcrumb-content nav ol li svg.mx-2 {
                margin-right: .3rem !important;
                margin-left: .3rem !important;
            }

        .breadcrumb-area.mb-8 {
            height: 35px;
        }
    }

    /* ── Subpage placeholder image ──────────────────────────────── */
    .subpage-dept-image {
        width: 100%;
        border-radius: 0.5rem;
        margin-bottom: var(--spacing-md);
        object-fit: cover;
        aspect-ratio: 16/9;
    }

    /* ── Tabs Component ─────────────────────────────────────────── */
    .tab-active {
        border-color: var(--color-purple);
        color: var(--color-purple);
    }

    .btn-teal {
        background-color: var(--color-teal);
    }

        .btn-teal:hover {
            background-color: #085c5c;
        }

    /* ── Footer ─────────────────────────────────────────────────── */
    .footer-wave {
        width: 100%;
        display: block;
        line-height: 0;
    }

    .footer-inner {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .qcvlogo-footer {
        width: 120px;
        margin-top: -25px;
    }

    @media (min-width: 1400px) {
        .qcvlogo-footer {
            width: 165px;
            margin-top: -35px;
        }
    }

    @media (min-width: 768px) {
        .qcvlogo-footer {
            width: 150px;
        }
    }

    @media (min-width: 1024px) {
        .footer-inner {
            max-width: 980px;
        }
    }

    @media (min-width: 1200px) {
        .footer-inner {
            max-width: 1150px;
        }
    }

    @media (min-width: 1300px) {
        .footer-inner {
            max-width: 1200px;
        }
    }

    @media (min-width: 1400px) {
        .footer-inner {
            max-width: 1300px;
        }
    }

    @media (min-width: 1600px) {
        .footer-inner {
            max-width: 1500px;
        }
    }

    @media (min-width: 1800px) {
        .footer-inner {
            max-width: 1600px;
        }
    }

    @media (min-width: 2000px) {
        .footer-inner {
            max-width: 1800px;
        }
    }

    .footer-heading {
        font-family: 'Montserrat', sans-serif;
        font-size: 0.8rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--color-purple);
        margin-bottom: 0.75rem;
    }

    .footer-link {
        font-size: 0.875rem;
        color: var(--color-dark);
        text-decoration: none;
        display: block;
        padding: 0.2rem 0;
        transition: color 0.15s ease;
    }

        .footer-link:hover {
            color: var(--color-teal);
        }

    /* Footer element background */
    .footer-bg {
        background-color: var(--color-mint);
    }

    /* Footer unordered list reset */
    .footer-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
    }

    /* Column 4: logo/social brand column */
    .footer-col-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-width: 180px;
    }

    /* Copyright line */
    .footer-copyright {
        font-family: 'Montserrat', sans-serif;
        font-size: 0.75rem;
        color: #555;
        margin-bottom: 1rem;
    }

    /* Spacer heading in column 3 (desktop only — keeps columns aligned) */
    .footer-heading-spacer {
        visibility: hidden;
    }

    /* Sub-footer border and background wrapper */
    .subfooter-wrapper {
        border-top: 1px solid rgba(33, 32, 36, 0.15);
        background-color: var(--color-mint);
    }

    /* Subfooter nav links */
    .subfooter-nav a {
        color: #555;
        text-decoration: none;
        transition: color 0.2s;
    }

        .subfooter-nav a:hover {
            color: var(--color-teal);
        }

    /* Subfooter separator */
    .subfooter-sep {
        margin: 0 0.75rem;
        color: #aaa;
    }

    /* Environment indicator */
    .subfooter-env {
        text-align: center;
        font-family: 'Montserrat', sans-serif;
        font-size: 0.75rem;
        color: #999;
        opacity: 0.7;
        margin-top: 0.5rem;
    }

    @media (max-width: 1024px) {
        .second-column-partners {
            margin-top: -34px !important;
            margin-bottom: 20px !important;
        }
    }


    /* Sub-footer container */
    .subfooter-container {
        max-width: 1600px;
        margin: 0 auto;
        padding: 1rem 1.5rem;
    }

    /* Sub-footer navigation */
    .subfooter-nav {
        font-family: 'Montserrat', sans-serif;
        font-size: 0.75rem;
        color: #555;
        text-align: center;
        padding: 0;
    }

    @media (max-width: 567px) {
        .subfooter-nav {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
        }

        .subfooter-sep {
            display: none;
        }
    }

    /* Mobile footer - centered, stacked, with touch spacing */
    @media (max-width: 1023px) {
        .footer-inner {
            text-align: center;
            padding: 3.5rem 1.5rem;
        }

            /* Override Tailwind md:flex-row, md:items-start, md:justify-between — keep columns stacked and centered until 1024px */
            .footer-inner > div {
                flex-direction: column !important;
                align-items: stretch !important;
                justify-content: normal !important;
            }

                /* Center each column's direct children */
                .footer-inner > div > div {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                }

        .footer-heading {
            margin-top: 2rem;
            margin-bottom: .5rem;
            font-size: .95rem;
            text-align: center;
        }

            .footer-heading:first-child {
                margin-top: 0;
            }

        .mobile-display-none {
            display: none;
        }

        .footer-link {
            padding: 0.5rem 1rem;
            font-size: .95rem;
            min-height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Keep social media icons in 3 columns on mobile */
        .footer-inner .grid {
            display: grid !important;
            grid-template-columns: repeat(3, 1fr) !important;
            gap: 1rem !important;
            justify-items: center;
        }

            .footer-inner .grid a {
                padding: 0.5rem;
                min-height: auto;
            }
    }

    /* ── Ordinance link list ────────────────────────────────────── */
    .ordinance-link {
        color: var(--color-purple);
        text-decoration: none;
        font-size: 0.95rem;
    }

        .ordinance-link:hover {
            text-decoration: underline;
        }

    /* ── Weather Widget ─────────────────────────────────────────── */

    /* Weather Section */
    .weather-section {
        padding: 1rem 3rem 1rem 3rem;
        background-color: var(--color-white);
    }

    @media (min-width: 767px) {
        .weather-section {
            padding: 0 2rem 1rem 2rem;
        }
    }

    @media (min-width: 991px) {
        .weather-section {
            padding: 0 3rem 2rem 3rem;
        }
    }

    .weather-container {
        max-width: 100%;
        margin: 0 auto;
        background-color: var(--color-mint);
        padding: 1.5rem 2rem;
        border-radius: 15px;
    }

    @media (min-width: 767px) {
        .weather-container {
            max-width: 75%;
            padding: 1.5rem 1.5rem 1.5rem 2.5rem;
        }
    }

    @media (min-width: 991px) {
        .weather-container {
            max-width: 65%;
        }
    }

    @media (min-width: 1024px) {
        .weather-container {
            max-width: 60%;
        }
    }

    @media (min-width: 1100px) {
        .weather-container {
            max-width: 70%;
        }
    }

    @media (min-width: 1200px) {
        .weather-container {
            max-width: 50%;
        }
    }

    .weather-icon-today img {
        width: 4.5rem;
        height: 4.5rem;
        margin-left: 0px;
    }

    .weather-icon-today.text-6xl {
        font-size: 95px;
        position: relative;
        margin-left: -1rem;
        margin-top: -1rem;
    }

    .weather-icon-future.text-3xl {
        font-size: 45px;
    }

    /* ── Weather Widget ─────────────────────────────────────────── */

    /* Desktop/Tablet: 577px and up - side by side layout */
    @media (min-width: 577px) {
        .weather-widget {
            display: flex;
            align-items: center;
            gap: 1.5rem;
        }

        .weather-today {
            flex-shrink: 0;
            padding-right: 1.5rem;
            border-right: 2px solid #0A7070;
            width: 35%;
        }

        .weather-forecast {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
            flex: 1;
            padding-top: 0; /* remove any top padding from before */
            border-top: none; /* remove old horizontal border */
        }

        .weather-day-name {
            margin-top: 10px;
        }

        .weather-icon-today img {
            margin-left: -5px;
        }
    }

    /* Mobile: 576px and below - stacked layout (keep as is) */
    @media (max-width: 576px) {
        .weather-widget {
            display: block;
        }

        .weather-today {
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding-bottom: 1rem;
            border-right: none;
            border-bottom: 1px solid #0A7070;
        }

        .weather-icon-today img {
            width: 4.5rem;
            height: 4.5rem;
            margin-left: 0px;
        }

        .weather-today > div:first-child {
            font-size: 6.5rem;
            float: left;
        }

        .weather-today .weather-day-name {
            margin-bottom: .3rem;
        }

        .weather-today .weather-temp-today {
            font-size: 38px;
        }

        .weather-today > div:last-child {
            text-align: center;
        }

        .weather-today .text-base {
            font-size: 1.25rem !important;
            margin-top: 0 !important;
        }

        .weather-today .text-sm {
            font-size: 1rem !important;
        }

        .weather-heading {
            text-align: center;
        }

        .weather-forecast {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0.5rem;
            padding-top: 1.5rem;
            border-top: none;
        }

            .weather-forecast .font-semibold {
                font-size: 1.125rem !important;
            }

            .weather-forecast .text-3xl {
                font-size: 2.5rem !important;
            }

            .weather-forecast .text-sm {
                font-size: 1rem !important;
            }
    }

    /* ── Home Page Sections ─────────────────────────────────────── */
    .home-section {
        position: relative;
        overflow: hidden;
        background-color: var(--color-white);
        padding: 1rem 3rem;
    }

    @media (min-width: 767px) {
        .home-section {
            max-width: 100%;
            width: 100%;
            padding: 2rem 4rem .5rem 4rem;
        }
    }

    @media (min-width: 1024px) {
        .home-section {
            max-width: 100%;
            width: 100%;
            padding: 2rem 6rem 1rem 6rem;
        }
    }

    @media (min-width: 1400px) {
        .home-section {
            max-width: 100%;
            width: 100%;
            padding: 2rem 1.5rem 1rem 1.5rem;
        }
    }

    .home-who-we-are {
        padding-top: 1rem;
        margin-top: 0;
    }

    @media (min-width: 767px) {
        .home-who-we-are {
            padding-top: 3rem;
            margin-top: 0;
        }
    }

    .feather-container {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 1rem;
    }

    @media (min-width: 767px) {
        .feather-container {
            margin-bottom: 2rem;
        }
    }

    .feather-image {
        width: 100%;
        max-width: 400px;
        height: auto;
        display: block;
    }

    @media (min-width: 767px) {
        .feather-image {
            max-width: 600px;
        }
    }

    @media (min-width: 1100px) {
        .feather-image {
            max-width: 650px;
        }
    }

    @media (min-width: 1300px) {
        d
        .feather-image {
            max-width: 750px;
        }
    }

    @media (min-width: 1400px) {
        .feather-image {
            max-width: 850px;
        }
    }


    /* Quick Links feather background should be full width - no max-width, no padding */
    .quick-links-section .feather-container {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
    }

    .quick-links-section .feather-image {
        max-width: none;
    }

    .feather-image-quicklinks {
        width: unset;
    }

    .feather-heading {
        position: absolute;
        font-family: 'Roboto Slab', Georgia, serif;
        font-size: 1.75rem;
        font-weight: 700;
        color: var(--color-dark);
        text-transform: uppercase;
        letter-spacing: 1.5px;
        white-space: nowrap;
        text-align: center;
    }

    @media (min-width: 567px) {
        .feather-heading {
            font-size: 2rem;
        }
    }

    @media (min-width: 650px) {
        .feather-heading {
            font-size: 2.3rem;
        }
    }

    @media (min-width: 1023px) {
        .feather-heading {
            font-size: 2.75rem;
        }
    }

    @media (min-width: 1100px) {
        .feather-heading {
            font-size: 3rem;
        }
    }

    @media (min-width: 1300px) {
        .feather-heading {
            font-size: 3.438rem;
        }
    }

    .home-content-container {
        max-width: 100%;
        margin: 0 auto;
        position: relative;
        padding: 0;
        z-index: 1;
    }

    @media (min-width: 576px) {
        .home-content-container {
            padding: 1rem 0;
        }
    }

    @media (min-width: 767px) {
        .home-content-container {
            max-width: 100%;
            padding: 0;
            margin-bottom: .5rem;
        }
    }

    @media (min-width: 1024px) {
        .home-content-container {
            margin-bottom: 1rem;
        }
    }

    @media (min-width: 1400px) {
        .home-content-container {
            max-width: 1300px;
            margin-bottom: 3rem;
        }
    }

    @media (min-width: 1650px) {
        .home-content-container {
            max-width: 1500px;
        }
    }

    @media (min-width: 1800px) {
        .home-content-container {
            max-width: 1600px;
        }
    }

    .quicklinks-width {
        width: 100%;
        padding: 0 5rem;
    }

    @media (min-width: 1024px) {
        .quicklinks-width {
            max-width: 950px;
        }
    }

    @media (min-width: 1100px) {
        .quicklinks-width {
            max-width: 1150px;
        }
    }

    @media (min-width: 1400px) {
        .quicklinks-width {
            max-width: 1300px;
        }
    }

    @media (min-width: 1600px) {
        .quicklinks-width {
            max-width: 1600px;
        }
    }

    @media (min-width: 1800px) {
        .quicklinks-width {
            max-width: 1800px;
            margin-bottom: 2rem;
        }
    }

    .home-image-container {
        display: flex;
        justify-content: center;
        margin-bottom: 3rem;
        padding: 0;
    }

    @media (min-width: 1400px) {
        .home-image-container {
            margin-bottom: 4rem;
            padding: 0;
        }
    }

    .home-main-image {
        max-width: 100%;
        height: auto;
        border-radius: 15px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    }

    @media (min-width: 767px) {
        .home-main-image {
            max-width: 100%;
        }
    }

    @media (min-width: 1400px) {
        .home-main-image {
            max-width: 1300px;
        }
    }

    @media (min-width: 1650px) {
        .home-main-image {
            max-width: 1500px;
        }
    }

    @media (min-width: 1800px) {
        .home-main-image {
            max-width: 1600px;
        }
    }

    .home-text-container {
        max-width: 100%;
        margin: 0 auto;
    }

    @media (min-width: 767px) {
        .home-text-container {
            max-width: 85%;
        }
    }

    @media (min-width: 991px) {
        .home-text-container {
            max-width: 70%;
        }
    }

    @media (min-width: 1400px) {
        .home-text-container {
            max-width: 50%;
        }
    }

    .home-text-content {
        font-family: 'Montserrat', sans-serif;
        font-size: 1rem;
        color: var(--color-dark);
        line-height: 1.7;
        text-align: left;
        margin-bottom: 2rem;
    }

        .home-text-content p {
            margin-bottom: 1rem;
        }

            .home-text-content p:last-child {
                margin-bottom: 2rem;
            }

    .section-heading-purple {
        font-family: 'Montserrat', sans-serif;
        font-size: 1.125rem;
        font-weight: 700;
        color: var(--color-purple);
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 1.5rem;
    }

    /* Quick Links Section */
    .quick-links-section {
        position: relative;
        overflow: hidden;
        padding: 2rem 1.5rem;
        background-color: var(--color-white);
    }

    .feather-watermark {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: none;
        opacity: 0.08;
    }

        .feather-watermark img {
            height: 100%;
            width: auto;
            object-fit: contain;
        }

    .quick-links-heading {
        font-family: 'Roboto Slab', Georgia, serif;
        font-size: 28px;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--color-dark);
        text-align: center;
        margin-bottom: 3rem;
    }

    /* News Section */
    .news-section {
        background-color: var(--color-white);
        padding: 2rem 2rem .5rem 2rem;
        padding-bottom: 4rem;
    }

    @media (min-width: 450px) {
        .news-section {
            padding: 2rem 3rem .5rem 3rem;
        }
    }

    @media (min-width: 767px) {
        .news-section {
            max-width: 100%;
            width: 100%;
            padding: 2rem 4rem .5rem 4rem;
        }
    }

    @media (min-width: 1024px) {
        .news-section {
            max-width: 100%;
            width: 100%;
            padding: 2rem 6rem 1rem 6rem;
            margin-bottom: 5rem;
        }
    }

    @media (min-width: 1400px) {
        .news-section {
            max-width: 100%;
            width: 100%;
            padding: 2rem 1.5rem 1rem 1.5rem;
        }
    }

    .news-heading {
        font-family: 'Roboto Slab', Georgia, serif;
        font-size: 1.5rem;
        font-weight: 700;
        letter-spacing: 1.5px;
        color: var(--color-dark);
        margin-bottom: 1.5rem;
        text-transform: uppercase;
    }

    @media (min-width: 450px) {
        .news-heading {
            font-size: 1.875rem;
        }
    }

    @media (min-width: 991px) {
        .news-heading {
            font-size: 2.188rem;
        }
    }

    .news-heading-center {
        text-align: center;
    }

    /* Add spacing between Tulalip News and Department Announcements */
    #department-announcements {
        margin-top: 4rem;
    }

    .news-card {
        background-color: var(--color-mint);
        padding: 1.5rem;
        border-radius: 15px;
        display: flex;
        flex-direction: column;
    }

        .news-card img {
            margin-bottom: 1rem;
            width: 100%;
            border-radius: 0.5rem;
            height: 320px;
            object-fit: cover;
        }

        .news-card .news-date {
            color: var(--color-purple);
            margin-bottom: 0.75rem;
            font-family: 'Montserrat', sans-serif;
            font-size: 0.875rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .news-card .news-title {
            color: var(--color-dark);
            margin-bottom: 1rem;
            font-family: 'Roboto Slab', Georgia, serif;
            font-size: 1.1rem;
            font-weight: 700;
        }

    @media (min-width: 991px) {
        .news-card .news-title {
            font-size: 1.5rem;
        }
    }


    .news-learn-more {
        display: inline-block;
        background-color: #0A7070 !important;
        color: #FFFFFF !important;
        padding: 0.75rem 2rem;
        border-radius: 9999px;
        font-family: 'Montserrat', sans-serif;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        text-decoration: none;
        text-align: center;
        transition: background-color 0.2s ease;
        margin-top: auto;
        align-self: flex-start;
    }

        .news-learn-more:hover {
            background-color: #085c5c !important;
            color: #FFFFFF !important;
        }

    /* Subpage Layout */
    .subpage-main {
        max-width: 1650px;
        padding-left: 1rem;
        padding-right: 1rem;
        margin-top: -4px;
    }

    @media (max-width: 1800px) {
        .subpage-main {
            max-width: 1500px;
            padding-left: 3rem;
            padding-right: 3rem;
        }
    }

    @media (max-width: 676px) {
        .subpage-main {
            max-width: 767px;
            padding-left: 2rem;
            padding-right: 2rem;
        }
    }

    /* Custom Weather Icon Sizes */
    .weather-day-name {
        font-weight: 700;
        color: var(--color-purple);
        margin-bottom: 0.5rem;
        text-transform: uppercase;
    }

    .weather-temp-today {
        font-size: 42px;
    }

    .weather-icon-future img {
        width: 3.5rem; /* 56px */
        height: 3.5rem; /* 56px */
        margin: 0 auto; /* Center the smaller icons */
    }

    .weather-credit {
        text-align: center;
        color: #475569; /* slate-600 */
    }

        .weather-credit a {
            color: #475569; /* slate-600 */
            text-decoration: none;
        }

            .weather-credit a:hover {
                text-decoration: underline;
            }

    .subpage-sidebar {
        width: 260px;
    }

    @media (min-width: 1250px) {
        .subpage-sidebar {
            width: 300px;
        }
    }

    .subpage-sidebar-inner {
        background-color: var(--color-mint);
        border-radius: 15px;
    }

    .breadcrumb-area {
        height: 130px;
    }

    /* Mobile: 768px and below */
    @media (max-width: 768px) {
        .breadcrumb-area {
            height: 45px;
        }
    }

    .content-feather-bg {
        opacity: 0.5;
        height: 130px;
    }

        .content-feather-bg img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    /* Tablet: 769-1023px */
    @media (min-width: 769px) and (max-width: 1023px) {
        .content-feather-bg {
            height: 65px;
        }
    }

    /* Mobile: 768px and below */
    @media (max-width: 768px) {
        .content-feather-bg {
            height: 45px;
        }
    }

    .breadcrumb-content {
        height: 139px;
        padding-left: 50px;
        display: flex;
        align-items: center;
    }

    @media (min-width: 1400px) and (max-width: 1599px) {
        .breadcrumb-area {
            height: 115px;
        }

        .breadcrumb-content {
            height: 118px;
            padding-left: 30px;
        }

            .breadcrumb-content nav ol {
                font-size: 0.90rem !important;
            }

        .content-feather-bg {
            height: 110px;
        }
    }


    /* Tablet/smaller desktop: 1099-1400px */
    @media (min-width: 1099px) and (max-width: 1399px) {
        .breadcrumb-area {
            height: 95px;
        }

        .breadcrumb-content {
            height: 90px;
            padding-left: 25px;
        }

            .breadcrumb-content nav ol {
                font-size: 0.90rem !important;
            }

        .content-feather-bg {
            height: 85px;
        }
    }

    @media (min-width: 1024px) and (max-width: 1098px) {
        .breadcrumb-area {
            height: 80px;
        }

        .breadcrumb-content {
            height: 75px;
            padding-left: 25px;
        }

            .breadcrumb-content nav ol {
                font-size: 0.80rem !important;
            }

        .content-feather-bg {
            height: 70px;
        }
    }

    @media (max-width: 1023px) {
        .breadcrumb-area {
            height: 70px;
        }

        .breadcrumb-content nav ol {
            font-size: 0.78rem !important;
        }

        .breadcrumb-content {
            height: 68px;
            padding-left: 20px;
        }
    }

    /* Mobile: 768px and below */
    @media (max-width: 768px) {
        .breadcrumb-content {
            height: 47px;
            padding-left: 25px;
        }
    }

    /* --- Alert Toast Animations and Responsive --- */
    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(100%);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes slideOutRight {
        from {
            opacity: 1;
            transform: translateX(0);
        }

        to {
            opacity: 0;
            transform: translateX(120%);
        }
    }

    @media (max-width: 1299px) {
        #alertBadgeGroup {
            top: 8.5rem !important;
            right: 2.5rem !important;
        }
    }

    @media (max-width: 640px) {
        .alert-toast-container {
            top: 110px;
            right: 1rem;
            width: calc(100vw - 2rem);
            max-width: none;
        }

        .alert-badge {
            top: 1rem;
            right: 1rem;
        }

        .alert-toast {
            padding: 1rem;
        }

        .alert-toast-title {
            font-size: 1rem;
        }

        .alert-toast-message {
            font-size: 0.8125rem;
        }
    }

    /* --- Alert Toast Type Colors and Borders --- */
    .alert-toast-urgent {
        background-color: #b71c1c !important;
        color: #fff !important;
    }

    .alert-toast-temporary {
        background-color: #d06000 !important;
        color: #fff !important;
    }

    .alert-toast-operation {
        background-color: #ffc107 !important;
        color: #000000 !important;
    }

    .alert-toast-normal {
        background-color: #388e3c !important;
        color: #fff !important;
    }

    .alert-toast-notice {
        background-color: #1976d2 !important;
        color: #fff !important;
    }

    /* --- Minimized Badge Colors --- */
    .alert-badge {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        border-radius: 0.375rem;
        padding: 0.35rem 0.65rem;
        font-weight: 700;
        font-size: 0.75rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        margin-bottom: 0.35rem;
        cursor: pointer;
        transition: transform 0.2s;
        z-index: 10000;
        position: relative;
    }

        .alert-badge:hover {
            transform: scale(1.05);
        }

    .alert-badge-urgent {
        background: #b71c1c;
        color: #fff;
    }

    .alert-badge-temporary {
        background: #f57c00;
        color: #fff;
    }

    .alert-badge-operation {
        background: #ffc107;
        color: #000000;
    }

    .alert-badge-normal {
        background: #388e3c;
        color: #fff;
    }

    .alert-badge-notice {
        background: #1976d2;
        color: #fff;
    }

    .alert-badge-emoji {
        font-size: 1.35rem;
        margin-right: 0.25rem;
        vertical-align: middle;
        display: inline-block;
    }

    .alert-badge-count {
        background: rgba(255,255,255,0.85);
        color: #222;
        border-radius: 9999px;
        padding: 0.1rem 0.45rem;
        min-width: 1.25rem;
        text-align: center;
        font-size: 0.75rem;
        font-weight: 700;
        margin-left: 0.15rem;
        display: inline-block;
    }

    /* ── Google reCAPTCHA challenge overlay fix ─────────────────── */
    /* The sticky sidebar creates a stacking context that traps the  */
    /* reCAPTCHA challenge iframe behind it. Force it above all page */
    /* stacking contexts so the image-picker renders centered on top. */
    .grecaptcha-badge {
        z-index: 9999 !important;
    }

    iframe[src*="recaptcha"],
    iframe[src*="google.com/recaptcha"] {
        z-index: 9999 !important;
    }

    /* Prevent the sticky contact info sidebar from forming a        */
    /* stacking context that traps the reCAPTCHA challenge overlay.  */
    .contact-info-sidebar.sticky {
        isolation: auto !important;
        z-index: auto !important;
    }



    /* ── Google Custom Search Overrides ─────────────────────────── */
    /* Override Google's default 700px max-width to use full container width */
    .gsc-control-cse,
    .gsc-control-wrapper-cse {
        max-width: 100% !important;
        width: 100% !important;
    }

    .gsc-results-wrapper-overlay,
    .gsc-results-wrapper-visible {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* ── Calendar Styles ────────────────────────────────────────── */
    /* Calendar holiday cell background */
    .calendar-holiday-cell {
        background: linear-gradient(135deg, #E0F2F1 0%, #B2DFDB 100%) !important;
        border: 2px solid var(--color-teal) !important;
    }

    /* Calendar office closed cell background */
    .calendar-office-closed-cell {
        background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%) !important;
        border: 2px solid #F59E0B !important;
    }

    /* Calendar holiday icon (diamond symbol in calendar grid) */
    .calendar-holiday-icon {
        color: var(--color-teal);
        font-size: 0.875rem;
        font-weight: bold;
    }

    /* Calendar event holiday icon (diamond symbol in event details) */
    .calendar-event-holiday-icon {
        color: var(--color-teal);
        font-size: 1.25rem;
        margin-right: 0.5rem;
    }

    /* Calendar legend container */
    .calendar-legend-container {
        background-color: #F0F9FF;
        border-color: #BAE6FD !important;
    }

    /* Calendar legend sample box (shows the holiday cell color) */
    .calendar-legend-sample {
        background: linear-gradient(135deg, #E0F2F1 0%, #B2DFDB 100%);
        border: 2px solid var(--color-teal);
    }

    /* Calendar legend teal text */
    .calendar-legend-text-teal {
        color: var(--color-teal);
    }

    /* Calendar day cells: slightly shorter on narrow screens */
    @media (max-width: 675px) {
        #calendarGrid > [data-date] {
            min-height: 5.25rem;
        }
    }

    /* ── Sub-navigation tabs (Project Management group) ────────── */
    /* Hide the "Project Management" parent tab on narrow mobile —   */
    /* it's still reachable via the breadcrumb.                      */
    @media (max-width: 559px) {
        .subnav-hide-mobile {
            display: none;
        }
    }

    /* ── Meeting Minutes ────────────────────────────────────────── */
    .meeting-minutes-year-select {
        margin-top: 4rem;
    }

    /* Tighten year spacing and add info box top padding at ≤767px */
    @media (max-width: 767px) {
        #meetingMinutesContainer {
            row-gap: 1.25rem !important;
        }

        .meeting-minutes-infobox {
            padding-top: 1.5rem;
        }
    }

    /* Hide accordion arrow on desktop — only used at ≤567px */
    .meeting-year-arrow {
        display: none;
    }

    @media (max-width: 567px) {
        /* Hide pagination and year-select controls on mobile */
        .meeting-minutes-year-select,
        #meetingMinutesPagination {
            display: none !important;
        }

        /* Single-column links inside each year */
        .meeting-minutes-grid {
            grid-template-columns: 1fr !important;
        }

        /* Year heading becomes an accordion toggle */
        .meeting-year-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            padding: 0.75rem 0;
            border-bottom: 2px solid var(--color-teal);
            user-select: none;
        }

            .meeting-year-header h2 {
                margin-bottom: 0;
            }

        .meeting-year-arrow {
            display: inline-block;
            flex-shrink: 0;
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--color-teal);
            transition: transform 0.25s ease;
            line-height: 1;
        }

        .meeting-year-header.mm-open .meeting-year-arrow {
            transform: rotate(90deg);
        }

        /* Collapsible content */
        .meeting-year-body {
            overflow: hidden;
            max-height: 0;
            transition: max-height 0.35s ease;
        }

            .meeting-year-body.mm-open {
                max-height: 2000px;
            }

            .meeting-year-body .meeting-minutes-grid {
                padding: 0.75rem 0 1rem 0;
            }
    }

    /* ── External Link Warning Modal ───────────────────────────────────────── */
    .ext-modal-backdrop {
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 40;
    }

    .ext-modal-panel {
        top: 50%;
        transform: translateY(-50%);
        z-index: 50;
    }

    .ext-modal-content {
        background-color: #ffffff;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        border: 1px solid #e2e8f0;
    }

    .ext-modal-close-btn {
        font-size: 1.25rem;
        line-height: 1;
        color: #64748b;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0 0.25rem;
    }

        .ext-modal-close-btn:hover {
            color: #1e293b;
        }

    .ext-modal-cancel-btn {
        border-color: #cbd5e1;
        color: #475569;
        background-color: #f8fafc;
    }

        .ext-modal-cancel-btn:hover {
            background-color: #f1f5f9;
        }

    .ext-modal-continue-btn {
        background-color: #7e3f8f;
        color: #ffffff;
    }

        .ext-modal-continue-btn:hover {
            background-color: #6b3479;
        }

    @media (max-width: 500px) {
        .ext-modal-panel {
            top: 0.75rem;
            bottom: 0.75rem;
            transform: none;
            align-items: flex-start;
            overflow-y: auto;
        }

        .ext-modal-content {
            max-width: 100%;
            padding: 1rem;
        }

        .ext-modal-domain {
            white-space: normal;
            overflow: visible;
            text-overflow: clip;
            word-break: break-word;
        }

        .ext-modal-actions {
            flex-direction: column-reverse;
            align-items: stretch;
            gap: 0.5rem;
        }

            .ext-modal-actions button {
                width: 100%;
            }
    }

    /* ── Village Council bio ───────────────────────────── */
    .bio-content {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        -webkit-line-clamp: 15;
        line-clamp: 15;
    }

        .bio-content.expanded {
            -webkit-line-clamp: unset;
            line-clamp: unset;
            display: block;
        }

    /* 767px and below: show more visible bio lines before "Read more" */
    @media (max-width: 767px) {
        .bio-content {
            -webkit-line-clamp: 10;
            line-clamp: 10;
        }
    }

    .breadcrumb-mobile-stacked-layout {
        display: none;
    }

    /* ── Stacked breadcrumb (two-line title on selected pages) ── */
    /* Active at 1023px and below */
    @media (max-width: 1023px) {
        .breadcrumb-default-layout {
            display: none;
        }

        .breadcrumb-mobile-stacked-layout {
            display: block;
        }

        .breadcrumb-area--stacked {
            height: 90px;
        }

        .breadcrumb-area.relative.mb-8.breadcrumb-area--stacked {
            height: 70px;
        }

        .breadcrumb-area--stacked .breadcrumb-content {
            height: 88px;
            align-items: flex-start;
            padding-top: 1rem;
        }

        .breadcrumb-stacked-title {
            font-size: .85rem !important;
        }

        /* Feather image: grow to cover the taller stacked breadcrumb area */
        .content-area--stacked-crumb .content-feather-bg {
            height: 72px !important;
        }
    }

    /* ── Council member grid ── */
    /* 568px and above: side-by-side columns (image col ~25%, text col ~75%) */
    .council-member-grid {
        display: grid;
        grid-template-columns: 1fr 3fr;
        gap: 1.5rem;
    }

    /* 767px and below: keep image left and allow text wrap */
    @media (max-width: 767px) {
        .council-member-grid {
            display: block;
        }

            .council-member-grid::after {
                content: "";
                display: table;
                clear: both;
            }

        .council-member-img-col {
            float: left;
            margin: 0 0.75rem 0.75rem 0;
        }
    }

    /* ── Bio images (council members, village manager, etc.) ── */
    .bio-image-mobile {
        display: none;
    }

    /* 1024px and above */
    @media (min-width: 1024px) {
        .bio-image {
            width: 230px;
            height: auto;
        }
    }

    /* 568px – 1023px: inside the grid column, natural width */
    @media (min-width: 568px) and (max-width: 1023px) {
        .bio-image {
            width: 100%;
            height: auto;
        }
    }

    /* 767px and below: use in-flow image so text wraps right and below */
    @media (max-width: 767px) {
        .council-member-img-col {
            display: none;
        }

        .bio-image-mobile {
            display: block;
        }

        .bio-image {
            width: 120px;
            height: auto;
            float: left;
            margin: .3rem 0.75rem 0.75rem 0;
        }
    }

    /* Village Manager bio content defaults (no clamp on larger screens) */
    .village-manager-bio-content {
        display: block;
    }

        .village-manager-bio-content.expanded {
            display: block;
        }

    /* Keep Village Manager image from expanding to 100% on tablet/small desktop widths */
    @media (min-width: 601px) and (max-width: 1023px) {
        .village-manager-bio-image {
            width: 175px;
            height: auto;
            float: none;
            margin: 0.5rem 0 0 0;
        }
    }

    /* Village Manager mobile behavior: wrap text and enable clamp at 600px and below */
    @media (max-width: 600px) {
        .village-manager-bio-content {
            display: -webkit-box;
            -webkit-box-orient: vertical;
            overflow: hidden;
            -webkit-line-clamp: 10;
            line-clamp: 10;
        }

            .village-manager-bio-content.expanded {
                -webkit-line-clamp: unset;
                line-clamp: unset;
                display: block;
                overflow: visible;
            }
    }

    /* Village Manager wrap behavior at phone sizes */
    @media (max-width: 567px) {
        .village-manager-bio-wrap {
            display: block !important;
        }

            .village-manager-bio-wrap::after {
                content: "";
                display: table;
                clear: both;
            }

        .village-manager-bio-image {
            width: 130px;
            height: auto;
            float: left;
            margin: .3rem 0.75rem 0.75rem 0;
        }
    }

    /* Keep council bio-image size at 130px for 567px and below */
    @media (max-width: 567px) {
        .bio-image {
            width: 130px;
        }
    }

    /* ── Google Custom Search Engine (CSE) ───────────────────────────────────── */

    /* Wrapper – constrain to content column width */
    .qcv-cse-wrapper {
        width: 100%;
    }

    /* Restore native input appearance inside the CSE widget only */
    .qcv-cse-wrapper input,
    .qcv-cse-wrapper input[type="text"] {
        box-sizing: content-box;
    }

    /* Restore native button sizing/cursor inside the CSE widget only */
    .qcv-cse-wrapper button,
    .qcv-cse-wrapper input[type="submit"] {
        width: auto;
        display: inline-block;
        cursor: pointer;
    }

    /* Restore table layout Google CSE relies on for result rows */
    .qcv-cse-wrapper table {
        width: auto;
    }

    /* Full-width control wrappers */
    .qcv-cse-wrapper .gsc-control-cse,
    .qcv-cse-wrapper .gsc-control-wrapper-cse {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
    }

    .qcv-cse-wrapper .gsc-results-wrapper-overlay,
    .qcv-cse-wrapper .gsc-results-wrapper-visible {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Result title links – site teal colour */
    .qcv-cse-wrapper .gs-title,
    .qcv-cse-wrapper .gs-title b {
        color: var(--color-teal) !important;
        text-decoration: none !important;
        font-size: 1rem !important;
    }

    .qcv-cse-wrapper .gs-title:hover {
        text-decoration: underline !important;
    }

    /* Snippet */
    .qcv-cse-wrapper .gs-snippet {
        font-size: 0.875rem !important;
        color: #374151 !important;
        line-height: 1.5 !important;
    }

    /* Visible URL */
    .qcv-cse-wrapper .gs-visibleUrl,
    .qcv-cse-wrapper .gs-visibleUrl-short {
        color: #6b7280 !important;
        font-size: 0.8rem !important;
    }

    /* Result row separator */
    .qcv-cse-wrapper .gsc-result {
        border-bottom: 1px solid #e5e7eb !important;
        padding: 12px 0 !important;
    }

    /* Result count */
    .qcv-cse-wrapper .gsc-result-info {
        color: #6b7280 !important;
        font-size: 0.8rem !important;
        padding: 8px 0 !important;
    }

    /* Pagination */
    .qcv-cse-wrapper .gsc-cursor-box {
        display: flex !important;
        gap: 0.25rem !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        padding: 1rem 0 !important;
    }

    .qcv-cse-wrapper .gsc-cursor-page {
        cursor: pointer !important;
        padding: 4px 10px !important;
        border-radius: 4px !important;
    }

    /* ── End Google CSE overrides ────────────────────────────────────────────── */
