/* =====================================================================
   ST. THOMAS ENGLISH SCHOOL — Public site stylesheet

   BRAND PALETTE — derived from the school logo (assets/img/logo.png,
   assets/img/stes.png) by sampling its dominant pixels:

     #32B9F8  sky blue wordmark   — 40.5% of logo pixels  (primary hue 199°)
     #ED1C24  crest red           — the circular emblem    (accent  hue 358°)
     #669999  slate subtitle text — affiliation lines      (secondary hue 180°)

   None of those three source colours is legible as text or as a button
   fill (2.23:1, 4.38:1 and 3.19:1 against white). The scales below keep
   the logo's exact hues but shift lightness until every pairing clears
   WCAG AA. The literal logo blue survives untouched as --brand-sky,
   used only on dark surfaces and for large display elements.

   1. Tokens          6. Sections & cards
   2. Reset & base    7. Content (prose, tables, forms)
   3. Utilities       8. Page-specific blocks
   4. Header & nav    9. Footer
   5. Hero & banner  10. Responsive
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Tokens
   --------------------------------------------------------------------- */
:root {
    /* ---- Brand scale: logo hue 199° ---------------------------------- */
    --primary-50:  #F0FAFF;
    --primary-100: #D8F2FE;
    --primary-200: #B1E4FB;
    --primary-300: #76D0F9;
    --primary-400: #32B9F8;   /* the logo blue, exactly */
    --primary-500: #0994D6;
    --primary-600: #0B6E9B;   /* 5.65:1 on white — interactive fill */
    --primary-700: #08587C;   /* 7.79:1 on white — hover / headings   */
    --primary-800: #073F59;
    --primary-900: #062A3D;   /* 14.93:1 — dark surfaces              */

    /* ---- Accent scale: crest red, hue 358° --------------------------- */
    --accent-50:  #FDEEEF;
    --accent-100: #FBD9DB;
    --accent-400: #ED1C24;    /* the crest red, exactly */
    --accent-500: #DE1219;
    --accent-600: #C70F15;    /* 5.99:1 on white — accent fill */
    --accent-700: #A50D12;

    /* ---- Secondary scale: slate subtitle, hue 180° ------------------- */
    --secondary-100: #E4EFEF;
    --secondary-400: #75A3A3;
    --secondary-500: #5E8D8D;
    --secondary-600: #487070;  /* 5.49:1 on white */
    --secondary-700: #365959;

    /* ---- Semantic aliases (the names used throughout the sheet) ------ */
    --primary-color:    var(--primary-600);
    --primary-hover:    var(--primary-700);
    --secondary-color:  var(--secondary-600);
    --accent-color:     var(--accent-600);
    --accent-hover:     var(--accent-700);
    --brand-sky:        var(--primary-400);
    --dark-color:       var(--primary-900);
    --light-color:      var(--primary-50);

    /* ---- Surfaces ---------------------------------------------------- */
    --background-color: #FFFFFF;
    --card-background:  #FFFFFF;
    --surface-tint:     #F4FAFD;   /* blue-tinted section band  */
    --surface-alt:      #F7FAFB;   /* slate-tinted section band */

    /* ---- Text -------------------------------------------------------- */
    --text-color:  #14232E;        /* 16.04:1 on white */
    --muted-color: #5A6B78;        /*  5.51:1 on white */
    --faint-color: #8794A0;        /* decorative only, never body text */

    /* ---- Lines ------------------------------------------------------- */
    --border-color: #DCE6EC;
    --border-soft:  #EBF1F5;

    /* ---- Status: kept semantic, never overridden by brand colours ---- */
    --success-color: #0F7A5F;
    --success-bg:    #E8F5F0;
    --warning-color: #8A5300;
    --warning-bg:    #FDF3E3;
    --danger-color:  #B3202B;
    --danger-bg:     #FDEEF0;
    --info-color:    var(--primary-600);
    --info-bg:       #E3F3FB;
    --star-color:    #9A6606;   /* amber, darkened to 4.91:1 for legibility */

    /* ---- Typography -------------------------------------------------- */
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* ---- Shape & depth ----------------------------------------------- */
    --radius:    10px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 2px rgba(6, 42, 61, .06), 0 2px 8px rgba(6, 42, 61, .05);
    --shadow-md: 0 4px 12px rgba(6, 42, 61, .08), 0 12px 32px rgba(6, 42, 61, .07);
    --shadow-lg: 0 12px 28px rgba(6, 42, 61, .12), 0 28px 64px rgba(6, 42, 61, .10);

    --container: 1220px;
    --gutter: 20px;
    --nav-h: 48px;
}

/* ---------------------------------------------------------------------
   2. Reset & base
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-color);
    background: var(--background-color);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;   /* nothing may scroll the page sideways */
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--primary-color); text-decoration-color: rgba(11, 110, 155, .35); text-underline-offset: 3px; }
a:hover { color: var(--accent-color); text-decoration-color: currentColor; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary-900);
    margin: 0 0 .5em;
    letter-spacing: -.01em;
}

h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); }
h4 { font-size: 1.1rem; }

p, ul, ol, table, blockquote, figure { margin: 0 0 1.1em; }

/* Focus ring: deep brand blue on light ground, logo sky blue on dark. */
:focus-visible {
    outline: 3px solid var(--primary-600);
    outline-offset: 2px;
    border-radius: 4px;
}
.topbar :focus-visible,
.mainnav :focus-visible,
.hero :focus-visible,
.banner :focus-visible,
.section--navy :focus-visible,
.sitefooter :focus-visible,
.lightbox :focus-visible { outline-color: var(--brand-sky); }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    background: var(--primary-900);
    color: #fff;
    padding: 12px 20px;
    border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------------------------------------------------------------------
   3. Utilities
   --------------------------------------------------------------------- */
.u-visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.u-center { text-align: center; }
.u-muted  { color: var(--muted-color); }

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    padding: .7em 1.35em;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    font-size: .93rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }

/* Primary — brand blue, white text (5.65:1) */
.btn--primary { background: var(--primary-color); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--primary-hover); color: #fff; }

/* Accent — crest red, reserved for the main calls to action (5.99:1) */
.btn--accent { background: var(--accent-color); color: #fff; box-shadow: var(--shadow-sm); }
.btn--accent:hover { background: var(--accent-hover); color: #fff; }

/* Secondary — slate from the logo's affiliation lines */
.btn--secondary { background: var(--secondary-color); color: #fff; box-shadow: var(--shadow-sm); }
.btn--secondary:hover { background: var(--secondary-700); color: #fff; }

/* Outline */
.btn--ghost { background: transparent; color: var(--primary-color); border-color: var(--border-color); }
.btn--ghost:hover { background: var(--primary-50); border-color: var(--primary-color); color: var(--primary-hover); }

/* On dark grounds */
.btn--light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--light:hover { background: #fff; color: var(--primary-900); border-color: #fff; }

.btn--sm { padding: .45em 1em; font-size: .84rem; }
.btn--block { display: flex; justify-content: center; width: 100%; }

.tag {
    display: inline-block;
    padding: .18em .7em;
    border-radius: 999px;
    background: var(--primary-100);
    color: var(--primary-700);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.tag--gold  { background: var(--accent-50); color: var(--accent-700); }
.tag--alert { background: var(--danger-bg); color: var(--danger-color); }

.notice {
    padding: 14px 18px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
    background: var(--surface-tint);
    margin: 18px 0;
}
.notice--success { border-color: var(--success-color); background: var(--success-bg); }
.notice--error   { border-color: var(--danger-color);  background: var(--danger-bg); }
.notice--warning { border-color: var(--warning-color); background: var(--warning-bg); }

.empty {
    padding: 48px 24px;
    text-align: center;
    color: var(--muted-color);
    background: var(--surface-tint);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
}
.empty i { font-size: 2rem; color: var(--primary-300); margin-bottom: 10px; }

/* ---------------------------------------------------------------------
   4. Header & navigation
   --------------------------------------------------------------------- */
.topbar {
    background: var(--primary-900);
    color: rgba(255, 255, 255, .86);
    font-size: .82rem;
}
.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 38px;
    flex-wrap: wrap;
}
.topbar__announce {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.topbar__announce i { color: var(--brand-sky); }
.topbar__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-left: auto; min-width: 0; }
.topbar__link { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar__link:hover { color: var(--brand-sky); }
.topbar__portal {
    background: var(--brand-sky);
    color: var(--primary-900);
    padding: 4px 14px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
}
.topbar__portal:hover { background: #fff; color: var(--primary-900); }

.masthead { background: var(--background-color); border-bottom: 1px solid var(--border-soft); }
.masthead__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-block: 14px;
}

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.brand__logo { width: 66px; height: 66px; object-fit: contain; flex: none; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1rem, .8rem + .8vw, 1.42rem);
    line-height: 1.15;
    color: var(--primary-900);
    letter-spacing: -.01em;
}
.brand__tag { font-size: .78rem; color: var(--accent-color); font-weight: 600; letter-spacing: .02em; }
.brand__meta { font-size: .72rem; color: var(--muted-color); }

.masthead__aside { display: flex; align-items: center; gap: 14px; margin-left: auto; }

.searchbox {
    display: flex; align-items: center;
    border: 1px solid var(--border-color); border-radius: 999px;
    overflow: hidden; background: var(--surface-tint);
}
.searchbox input {
    border: 0; background: transparent; padding: .55em .4em .55em 1em;
    font: inherit; font-size: .88rem; width: 170px; color: var(--text-color);
}
.searchbox input:focus { outline: none; }
.searchbox:focus-within { border-color: var(--primary-color); background: #fff; }
.searchbox button {
    border: 0; background: transparent; cursor: pointer;
    padding: .55em .9em; color: var(--primary-color); font-size: .9rem;
}
.searchbox button:hover { color: var(--accent-color); }

.navtoggle {
    display: none;
    width: 46px; height: 42px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--background-color);
    cursor: pointer;
    position: relative;
}
.navtoggle__bars, .navtoggle__bars::before, .navtoggle__bars::after {
    position: absolute;
    left: 50%; margin-left: -10px;
    width: 20px; height: 2px;
    background: var(--primary-800);
    transition: transform .2s ease, opacity .2s ease;
}
.navtoggle__bars { top: 50%; margin-top: -1px; }
.navtoggle__bars::before { content: ''; top: -6px; left: 0; margin: 0; }
.navtoggle__bars::after  { content: ''; top: 6px; left: 0; margin: 0; }
.navtoggle[aria-expanded="true"] .navtoggle__bars { background: transparent; }
.navtoggle[aria-expanded="true"] .navtoggle__bars::before { transform: translateY(6px) rotate(45deg); }
.navtoggle[aria-expanded="true"] .navtoggle__bars::after  { transform: translateY(-6px) rotate(-45deg); }

.mainnav { background: var(--primary-800); position: sticky; top: 0; z-index: 60; box-shadow: var(--shadow-sm); }
.mainnav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.mainnav__item { position: relative; }
.mainnav__link {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 15px;
    height: var(--nav-h);
    color: rgba(255, 255, 255, .93);
    font-size: .88rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: background-color .15s ease, border-color .15s ease;
}
.mainnav__link:hover, .mainnav__item:hover > .mainnav__link {
    background: var(--primary-700);
    color: #fff;
}
.mainnav__link.is-active {
    border-bottom-color: var(--brand-sky);
    color: #fff;
    background: var(--primary-700);
}
.mainnav__caret { font-size: .62rem; opacity: .7; transition: transform .2s ease; }
.mainnav__item:hover .mainnav__caret { transform: rotate(180deg); }
.mainnav__expand { display: none; }

.submenu {
    position: absolute;
    top: 100%; left: 0;
    min-width: 250px;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    background: #fff;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    border-top: 3px solid var(--brand-sky);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
    z-index: 70;
}
.mainnav__item:hover > .submenu,
.mainnav__item:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; }

.submenu--wide { column-count: 2; column-gap: 0; min-width: 500px; }

.submenu a {
    display: block;
    padding: 8px 20px;
    font-size: .87rem;
    color: var(--text-color);
    text-decoration: none;
    border-left: 3px solid transparent;
}
.submenu a:hover, .submenu a.is-active {
    background: var(--primary-50);
    border-left-color: var(--primary-color);
    color: var(--primary-700);
}

/* Right-align dropdowns that would overflow the viewport. */
.mainnav__item:nth-last-child(-n+3) .submenu { left: auto; right: 0; }

/* ---------------------------------------------------------------------
   5. Hero & page banner
   --------------------------------------------------------------------- */
.hero { position: relative; background: var(--primary-900); overflow: hidden; }
.hero__slides { position: relative; }
.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s ease;
    pointer-events: none;
}
.hero__slide.is-active { position: relative; opacity: 1; pointer-events: auto; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg,
        rgba(6, 42, 61, .94) 0%,
        rgba(6, 42, 61, .80) 45%,
        rgba(7, 63, 89, .38) 100%);
}
.hero__body {
    position: relative;
    z-index: 2;
    min-height: clamp(380px, 52vh, 560px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: 64px;
    max-width: 690px;
    color: #fff;
}
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    background: rgba(50, 185, 248, .16);
    border: 1px solid rgba(50, 185, 248, .5);
    color: var(--brand-sky);
    padding: .3em 1em;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.hero__title { color: #fff; font-size: clamp(1.9rem, 1.2rem + 2.9vw, 3.3rem); margin-bottom: .35em; }
.hero__text { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: rgba(255, 255, 255, .9); margin-bottom: 1.6em; max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__dots {
    position: absolute;
    bottom: 24px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 9px;
    z-index: 3;
}
.hero__dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
    padding: 0;
    transition: background-color .2s ease, width .2s ease;
}
.hero__dot.is-active { background: var(--brand-sky); width: 28px; border-radius: 999px; }

.hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .4);
    background: rgba(6, 42, 61, .45);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
}
.hero__arrow:hover { background: var(--brand-sky); color: var(--primary-900); border-color: transparent; }
.hero__arrow--prev { left: 16px; }
.hero__arrow--next { right: 16px; }

.banner { position: relative; background: var(--primary-800); color: #fff; }
.banner__media { position: absolute; inset: 0; }
.banner__media img { width: 100%; height: 100%; object-fit: cover; }
.banner__media::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(6, 42, 61, .95), rgba(7, 63, 89, .78));
}
.banner__body { position: relative; z-index: 2; padding-block: clamp(38px, 6vw, 68px); }
.banner__title { color: #fff; margin-bottom: .25em; }
.banner__subtitle { color: rgba(255, 255, 255, .85); max-width: 68ch; margin: 0; }

.breadcrumb { background: var(--surface-tint); border-bottom: 1px solid var(--border-soft); }
.breadcrumb__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 auto;
    padding: 12px var(--gutter);
    max-width: var(--container);
    font-size: .84rem;
    color: var(--muted-color);
}
.breadcrumb__item + .breadcrumb__item::before { content: '/'; margin-right: 8px; color: var(--faint-color); }
.breadcrumb__item a { color: var(--muted-color); text-decoration: none; }
.breadcrumb__item a:hover { color: var(--accent-color); }
.breadcrumb__item [aria-current] { color: var(--primary-800); font-weight: 600; }

/* ---------------------------------------------------------------------
   6. Sections & cards
   --------------------------------------------------------------------- */
.section { padding-block: clamp(44px, 6vw, 78px); }
.section--tight { padding-block: clamp(30px, 4vw, 48px); }
.section--warm { background: var(--surface-alt); }
.section--cool { background: var(--surface-tint); }
.section--navy { background: var(--primary-900); color: rgba(255, 255, 255, .9); }
.section--navy h2, .section--navy h3 { color: #fff; }

.section__head { max-width: 720px; margin-bottom: 38px; }
.section__head--center { margin-inline: auto; text-align: center; }

/* Small accent rule above every section title. */
.section__eyebrow {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 10px;
}
.section__eyebrow::after {
    content: '';
    display: block;
    width: 42px; height: 3px;
    margin-top: 8px;
    border-radius: 2px;
    background: var(--accent-color);
}
.section__head--center .section__eyebrow::after { margin-inline: auto; }
.section--navy .section__eyebrow { color: var(--brand-sky); }
.section--navy .section__eyebrow::after { background: var(--brand-sky); }

.section__title { margin-bottom: .35em; }
.section__lead { color: var(--muted-color); font-size: 1.03rem; margin: 0; }
.section--navy .section__lead { color: rgba(255, 255, 255, .8); }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.card {
    background: var(--card-background);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-200); }
.card__media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-tint); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.12rem; margin-bottom: .4em; }
.card__title a { text-decoration: none; color: inherit; }
.card__title a:hover { color: var(--accent-color); }
.card__text { color: var(--muted-color); font-size: .93rem; margin-bottom: 1em; }
.card__meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: .8rem; color: var(--muted-color); margin-bottom: .8em; }
.card__meta i { color: var(--primary-color); margin-right: 5px; }
.card__foot { margin-top: auto; padding-top: 6px; }

.icard {
    background: var(--card-background);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.icard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-200); color: inherit; }
.icard__icon {
    width: 54px; height: 54px;
    display: grid; place-items: center;
    border-radius: 14px;
    background: var(--primary-50);
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 16px;
    transition: background-color .18s ease, color .18s ease;
}
.icard:hover .icard__icon { background: var(--primary-color); color: #fff; }
.icard__title { font-size: 1.08rem; margin-bottom: .35em; }
.icard__text { color: var(--muted-color); font-size: .9rem; margin: 0; }

.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.stat { text-align: center; padding: 26px 16px; }
.stat__icon { font-size: 1.5rem; color: var(--brand-sky); margin-bottom: 10px; }
.stat__value {
    font-family: var(--font-display);
    font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem);
    font-weight: 700;
    line-height: 1;
    color: #fff;
}
.stat__label { font-size: .88rem; color: rgba(255, 255, 255, .8); margin-top: 8px; }

.section--warm .stat__value, .section--cool .stat__value { color: var(--primary-900); }
.section--warm .stat__label, .section--cool .stat__label { color: var(--muted-color); }
.section--warm .stat__icon, .section--cool .stat__icon { color: var(--primary-color); }

/* ---------------------------------------------------------------------
   7. Content: prose, tables, forms
   --------------------------------------------------------------------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }
.layout--full { grid-template-columns: minmax(0, 1fr); }

.prose { font-size: 1.02rem; color: var(--text-color); max-width: 76ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; font-size: 1.2rem; color: var(--primary-800); }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--primary-color); }
.prose a { font-weight: 500; }
.prose img { border-radius: var(--radius); margin-block: 1.4em; }
.prose blockquote {
    margin: 1.6em 0;
    padding: 20px 26px;
    border-left: 4px solid var(--brand-sky);
    background: var(--primary-50);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--primary-800);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--border-color); margin: 2.2em 0; }

.tablewrap {
    overflow-x: auto;
    margin-bottom: 1.4em;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--card-background);
}
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 0; min-width: 520px; }
table.data th, table.data td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
table.data thead th {
    background: var(--primary-800);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .82rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:nth-child(even) { background: var(--surface-tint); }
table.data tbody tr:hover { background: var(--primary-100); }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
table.data .rowhead { font-weight: 600; color: var(--primary-800); }
table.data .grouprow td {
    background: var(--accent-50);
    font-weight: 700;
    color: var(--accent-700);
    font-size: .8rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: calc(var(--nav-h) + 20px); }
.widget {
    background: var(--card-background);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.widget__head {
    padding: 14px 20px;
    background: var(--primary-800);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}
.widget__body { padding: 8px 0; }
.widget__list { list-style: none; margin: 0; padding: 0; }
.widget__list a {
    display: block;
    padding: 10px 20px;
    font-size: .9rem;
    color: var(--text-color);
    text-decoration: none;
    border-left: 3px solid transparent;
}
.widget__list a:hover, .widget__list a.is-active {
    background: var(--primary-50);
    border-left-color: var(--primary-color);
    color: var(--primary-700);
}
.widget__pad { padding: 18px 20px; }

.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: .87rem; font-weight: 600; color: var(--primary-800); }
.field__label .req { color: var(--danger-color); }
.field__hint { font-size: .8rem; color: var(--muted-color); }
.field input, .field select, .field textarea {
    font: inherit;
    font-size: .95rem;
    padding: .68em .9em;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text-color);
    width: 100%;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(11, 110, 155, .14);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"],
.field select[aria-invalid="true"] { border-color: var(--danger-color); }
.field input[aria-invalid="true"]:focus, .field textarea[aria-invalid="true"]:focus {
    box-shadow: 0 0 0 3px rgba(179, 32, 43, .14);
}
.field__error { font-size: .82rem; color: var(--danger-color); }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 34px; }
.pagination__item {
    min-width: 40px;
    padding: .5em .85em;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    text-decoration: none;
    font-size: .88rem;
    color: var(--text-color);
    background: #fff;
}
.pagination__item:hover { border-color: var(--primary-color); color: var(--primary-700); background: var(--primary-50); }
.pagination__item.is-active { background: var(--primary-color); border-color: var(--primary-color); color: #fff; font-weight: 600; }
.pagination__item.is-disabled { color: var(--faint-color); background: var(--surface-tint); }

/* ---------------------------------------------------------------------
   8. Page-specific blocks
   --------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(28px, 4vw, 56px); align-items: center; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; }

.noticelist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.noticelist__item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 16px 18px;
    background: var(--card-background);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.noticelist__item:hover { border-color: var(--primary-300); box-shadow: var(--shadow-sm); }
.noticelist__date {
    flex: none;
    width: 62px;
    text-align: center;
    background: var(--primary-50);
    border-radius: var(--radius);
    padding: 8px 4px;
    line-height: 1.1;
}
.noticelist__day { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--primary-800); }
.noticelist__mon { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-color); }
.noticelist__title { font-size: 1rem; margin-bottom: .25em; font-family: var(--font-body); font-weight: 600; }
.noticelist__title a { text-decoration: none; color: var(--primary-800); }
.noticelist__title a:hover { color: var(--accent-color); }
.noticelist__text { font-size: .88rem; color: var(--muted-color); margin: 0; }

.gallerygrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallerygrid__item {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface-tint);
}
.gallerygrid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallerygrid__item:hover img { transform: scale(1.06); }
.gallerygrid__cap {
    position: absolute;
    inset: auto 0 0 0;
    padding: 26px 14px 12px;
    background: linear-gradient(transparent, rgba(6, 42, 61, .88));
    color: #fff;
    font-size: .84rem;
    opacity: 0;
    transition: opacity .25s ease;
}
.gallerygrid__item:hover .gallerygrid__cap { opacity: 1; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(6, 42, 61, .95);
    display: none;
    place-items: center;
    padding: 40px 20px;
}
.lightbox.is-open { display: grid; }
.lightbox__img { max-width: min(1100px, 94vw); max-height: 84vh; object-fit: contain; border-radius: var(--radius); }
.lightbox__cap { color: rgba(255, 255, 255, .88); text-align: center; margin-top: 14px; font-size: .9rem; }
.lightbox__btn {
    position: absolute;
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
    display: grid; place-items: center;
    font-size: 1.05rem;
}
.lightbox__btn:hover { background: var(--brand-sky); color: var(--primary-900); border-color: transparent; }
.lightbox__close { top: 22px; right: 22px; }
.lightbox__prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 22px; top: 50%; transform: translateY(-50%); }

.profile { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 36px; align-items: start; }
.profile__photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--surface-tint); }
.profile__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.profile__name { margin-bottom: .1em; }
.profile__role { color: var(--secondary-color); font-weight: 600; font-size: .95rem; margin-bottom: 1.2em; }
.profile__quote {
    font-family: var(--font-display);
    font-size: 1.12rem;
    color: var(--primary-800);
    border-left: 3px solid var(--brand-sky);
    padding-left: 18px;
    margin-bottom: 1.4em;
}

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.person {
    background: var(--card-background);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 24px 18px;
    text-align: center;
}
.person__avatar {
    width: 78px; height: 78px;
    margin: 0 auto 14px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary-50);
    display: grid; place-items: center;
    color: var(--primary-color);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}
.person__avatar img { width: 100%; height: 100%; object-fit: cover; }
.person__name { font-size: 1rem; margin-bottom: .2em; }
.person__role { font-size: .85rem; color: var(--muted-color); margin: 0; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 2px solid var(--border-color); }
.timeline__item { position: relative; padding: 0 0 26px 22px; }
.timeline__item::before {
    content: '';
    position: absolute;
    left: -33px; top: 6px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 0 4px #fff;
}
.timeline__date { font-size: .8rem; font-weight: 600; color: var(--accent-color); text-transform: uppercase; letter-spacing: .05em; }
.timeline__title { font-size: 1.02rem; margin: .2em 0 .3em; }
.timeline__text { font-size: .9rem; color: var(--muted-color); margin: 0; }

/* Measured values (pass rates, capacity). Brand blue only — a progress
   bar is data, not a status, so it never uses the red accent. */
.progressbar {
    height: 12px;
    background: var(--border-soft);
    border-radius: 999px;
    overflow: hidden;
}
.progressbar__fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-700), var(--primary-400));
}

.filterbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filterbar a {
    padding: .45em 1.1em;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: #fff;
    font-size: .86rem;
    text-decoration: none;
    color: var(--muted-color);
}
.filterbar a:hover { border-color: var(--primary-color); color: var(--primary-700); background: var(--primary-50); }
.filterbar a.is-active { background: var(--primary-color); border-color: var(--primary-color); color: #fff; font-weight: 600; }

.filelist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fileitem {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: var(--card-background);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
}
.fileitem:hover { border-color: var(--primary-300); box-shadow: var(--shadow-sm); }
.fileitem__icon {
    flex: none;
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: var(--primary-50);
    color: var(--primary-color);
    font-size: 1.05rem;
}
.fileitem__body { flex: 1; min-width: 0; }
.fileitem__title { font-size: .98rem; font-weight: 600; margin: 0 0 .15em; color: var(--primary-800); }
.fileitem__meta { font-size: .8rem; color: var(--muted-color); margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }

.testimonial {
    background: var(--card-background);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.testimonial__stars { color: var(--star-color); margin-bottom: 12px; font-size: .9rem; }
.testimonial__text { font-family: var(--font-display); font-size: 1.02rem; color: var(--primary-800); flex: 1; }
.testimonial__who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testimonial__avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--primary-50); color: var(--primary-color);
    display: grid; place-items: center; font-weight: 700; overflow: hidden;
}
.testimonial__avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial__name { font-weight: 600; font-size: .93rem; }
.testimonial__role { font-size: .82rem; color: var(--muted-color); }

.videocard__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--primary-900); }
.videocard__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.videocard__play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(6, 42, 61, .38);
    border: 0;
    cursor: pointer;
    color: #fff;
    font-size: 2.4rem;
    transition: background-color .18s ease;
}
.videocard__play:hover { background: rgba(6, 42, 61, .58); color: var(--brand-sky); }

.mapframe { border: 0; width: 100%; height: 380px; border-radius: var(--radius-lg); }

.cta {
    background: linear-gradient(120deg, var(--primary-900), var(--primary-700));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: clamp(30px, 4vw, 52px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { color: rgba(255, 255, 255, .85); margin: 0; max-width: 56ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.marquee { background: var(--primary-50); border-block: 1px solid var(--primary-200); overflow: hidden; }
.marquee__inner { display: flex; align-items: center; gap: 18px; padding: 10px var(--gutter); max-width: var(--container); margin-inline: auto; }
.marquee__label {
    flex: none;
    background: var(--accent-color);
    color: #fff;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .3em .9em;
    border-radius: 999px;
}
.marquee__track { flex: 1; overflow: hidden; }
.marquee__list {
    display: flex;
    gap: 44px;
    list-style: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    animation: marquee 34s linear infinite;
}
.marquee:hover .marquee__list { animation-play-state: paused; }
.marquee__list a { font-size: .88rem; color: var(--primary-800); text-decoration: none; }
.marquee__list a:hover { color: var(--accent-color); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------------
   9. Footer
   --------------------------------------------------------------------- */
.sitefooter { background: var(--primary-900); color: rgba(255, 255, 255, .78); margin-top: 0; }
.sitefooter__grid {
    display: grid;
    /* Tracks outside an auto-fit repeat() must be a <fixed-size>, so the wide
       first column is minmax(<length>, <flex>) rather than a bare fr — a plain
       "1.6fr" makes the whole declaration invalid and collapses the footer into
       a single stacked column. The repeat then fits as many link columns as the
       width allows, so adding a footer column in the admin degrades gracefully. */
    grid-template-columns:
        minmax(220px, 1.5fr)                      /* about + logo   */
        repeat(auto-fit, minmax(140px, 1fr))      /* link columns   */
        minmax(200px, 1.2fr);                     /* Reach Us block */
    column-gap: 22px;
    row-gap: 36px;
    padding-block: clamp(38px, 5vw, 60px);
}
/* Every footer column is a grid item: allow each to shrink past its content. */
.sitefooter__about, .sitefooter__col { min-width: 0; }

.sitefooter__logo { width: 62px; height: 62px; object-fit: contain; margin-bottom: 14px; }
.sitefooter__name { font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; color: #fff; margin: 0 0 .2em; }
.sitefooter__motto { color: var(--brand-sky); font-size: .85rem; margin: 0 0 1em; letter-spacing: .02em; }
.sitefooter__text { font-size: .88rem; line-height: 1.7; margin-bottom: 1.2em; }
.sitefooter__heading {
    font-family: var(--font-body);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--brand-sky);
    margin-bottom: 16px;
}
.sitefooter__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.sitefooter__links a { color: rgba(255, 255, 255, .78); text-decoration: none; font-size: .88rem; overflow-wrap: anywhere; }
.sitefooter__links a:hover { color: var(--brand-sky); }

.contactlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: .88rem; }
/* min-width:0 defeats the flex item's default min-width:auto, which otherwise
   refuses to shrink below the content width; overflow-wrap then lets a long
   address like a 35-character email break instead of spilling out of the box. */
.contactlist li { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.contactlist li > span { min-width: 0; overflow-wrap: anywhere; }
.contactlist i { color: var(--brand-sky); margin-top: 4px; flex: none; }
.contactlist a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.contactlist a:hover { color: var(--brand-sky); }

.social { list-style: none; display: flex; gap: 10px; margin: 0; padding: 0; }
.social a {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}
.social a:hover { background: var(--brand-sky); color: var(--primary-900); }

.sitefooter__bar { border-top: 1px solid rgba(255, 255, 255, .14); font-size: .82rem; }
.sitefooter__barinner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    padding-block: 16px;
}
.sitefooter__barinner p { margin: 0; }
.sitefooter__meta a { color: var(--brand-sky); text-decoration: none; }

.backtotop {
    position: fixed;
    right: 22px; bottom: 22px;
    z-index: 90;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: grid;
    place-items: center;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s, background-color .2s ease;
}
.backtotop.is-visible { opacity: 1; visibility: visible; transform: none; }
.backtotop:hover { background: var(--accent-color); color: #fff; }

/* ---------------------------------------------------------------------
   10. Responsive
   --------------------------------------------------------------------- */
@media (max-width: 1080px) {
    .layout { grid-template-columns: minmax(0, 1fr); }
    .sidebar { position: static; }
    .searchbox input { width: 130px; }
}

@media (max-width: 980px) {
    .navtoggle { display: block; }
    .masthead__aside { display: none; }

    .mainnav { position: static; max-height: 0; overflow: hidden; transition: max-height .28s ease; }
    .mainnav.is-open { max-height: 85vh; overflow-y: auto; }
    .mainnav__list { flex-direction: column; padding-block: 8px; }
    .mainnav__item { border-bottom: 1px solid rgba(255, 255, 255, .1); }
    .mainnav__item--has-children { display: grid; grid-template-columns: 1fr auto; }
    .mainnav__link { height: auto; padding: 13px 4px; border-bottom: 0; }
    .mainnav__link:hover, .mainnav__item:hover > .mainnav__link { background: transparent; }
    .mainnav__link.is-active { background: transparent; color: var(--brand-sky); }
    .mainnav__caret { display: none; }

    .mainnav__expand {
        display: grid;
        place-items: center;
        width: 46px;
        border: 0;
        background: transparent;
        color: rgba(255, 255, 255, .82);
        cursor: pointer;
    }
    .mainnav__expand[aria-expanded="true"] i { transform: rotate(180deg); }
    .mainnav__expand i { transition: transform .2s ease; }

    .submenu {
        position: static;
        grid-column: 1 / -1;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        border-top: 0;
        background: rgba(6, 42, 61, .5);
        column-count: 1;
        min-width: 0;
        padding: 4px 0 10px;
    }
    .submenu.is-open { display: block; }
    .mainnav__item:hover > .submenu { display: none; }
    .mainnav__item > .submenu.is-open { display: block; }
    .submenu a { color: rgba(255, 255, 255, .85); padding-left: 16px; border-left-color: transparent; }
    .submenu a:hover, .submenu a.is-active {
        background: rgba(255, 255, 255, .08);
        color: #fff;
        border-left-color: var(--brand-sky);
    }

    .profile { grid-template-columns: minmax(0, 1fr); }
    .profile__photo { max-width: 260px; }
}

@media (max-width: 720px) {
    :root { --gutter: 16px; }
    .topbar__announce { display: none; }
    .topbar__actions { margin-inline: auto; gap: 12px; }
    .u-hide-sm { display: none !important; }
    .brand__meta { display: none; }
    .brand__logo { width: 52px; height: 52px; }
    .hero__body { min-height: 340px; padding-block: 44px; }
    .hero__arrow { display: none; }
    .cta { flex-direction: column; align-items: flex-start; }
    .sitefooter__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
    .sitefooter__grid { grid-template-columns: 1fr; }
    .gallerygrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .noticelist__item { flex-direction: column; gap: 10px; }
    .noticelist__date { width: auto; display: inline-flex; gap: 6px; align-items: baseline; padding: 4px 12px; }
    .noticelist__day, .noticelist__mon { display: inline; }
    .btn { width: 100%; justify-content: center; }
    .hero__actions .btn, .cta__actions .btn { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    .topbar, .mainnav, .navtoggle, .masthead__aside, .sitefooter, .backtotop, .breadcrumb { display: none !important; }
    body { font-size: 12pt; color: #000; }
    .card, .fileitem, .noticelist__item { break-inside: avoid; }
    table.data thead th { background: #eee !important; color: #000 !important; }
}
