/* =========================================================================
   V2 CORE  -  built to the Canva set of 2026-09-29, which supersedes the
   original concept PDFs.

   Differences from those PDFs, all taken from her slides:
     - eight new district nav items, and a different set per school
     - the hero is a 50/50 split: text left, photograph or illustration right
     - the district hero carries vision and mission; a school hero carries a
       welcome line, bell times and the school motto
     - STAFF added to the utility bar
     - news cards have rounded corners
     - a full-screen mega menu behind MENU

   As always: no colour values in this file. Every one comes from
   brand.css, so the same pages serve all fourteen buildings.
   ========================================================================= */

:root {
    --s1: 8px;  --s2: 14px; --s3: 22px; --s4: 34px;
    --s5: 52px; --s6: 78px; --s7: 110px;

    --t-h1:    clamp(2rem, 4.4vw, 3.4rem);
    --t-h2:    clamp(1.7rem, 3vw, 2.5rem);
    --t-body:  clamp(1rem, .96rem + .18vw, 1.06rem);
    --t-small: .875rem;
    --t-micro: .78rem;

    --rail: clamp(16px, 3.4vw, 40px);
    --maxw: 1320px;
    --r:    10px;

    --lift: 0 1px 2px rgba(17,17,19,.06), 0 12px 30px -14px rgba(17,17,19,.3);
    --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; font-family: var(--font-body); font-size: var(--t-body);
    line-height: 1.6; color: var(--ink); background: var(--surface);
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; } p:last-child { margin-bottom: 0; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.04; letter-spacing: -.015em; margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.u-wrap { width: min(var(--maxw), 100% - (var(--rail) * 2)); margin-inline: auto; }
.u-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
    position: absolute; left: var(--rail); top: -60px; z-index: 400;
    background: var(--brand); color: var(--on-brand); padding: 12px 20px;
    font-weight: 600; text-decoration: none; transition: top .18s var(--ease);
}
.skip:focus { top: 10px; }

/* --------------------------------------------------------------- header */
.util {
    display: flex; justify-content: flex-end; align-items: center; gap: 2px;
    font-family: var(--font-head); font-size: var(--t-small);
    text-transform: uppercase; letter-spacing: .03em;
}
/* These five controls used to sit as loose dark text in the top-right corner
   of the white page, touching nothing and aligned to nothing. A full-bleed
   band gives them an edge to sit on and reads as a real site's utility bar. */
.utilbar { background: var(--topbar-bg); color: var(--topbar-ink); }
.util button, .util a {
    display: inline-flex; align-items: center; gap: 8px;
    background: none; border: 0; cursor: pointer; padding: 11px 13px;
    font: inherit; letter-spacing: inherit; text-transform: inherit;
    color: var(--topbar-ink); text-decoration: none;
    transition: background .16s, color .16s;
}
.util button:hover, .util a:hover, .util button:focus-visible, .util a:focus-visible {
    background: rgba(255,255,255,.14); color: #ffffff;
}
.util i { font-size: 16px; }

.mast {
    display: grid; grid-template-columns: auto 1fr auto;
    align-items: center; gap: var(--s4);
    padding: var(--s4) 0;
}
.mast-logo img { height: clamp(56px, 7vw, 92px); width: auto; }
/* There was a 2px black rule across the top of this column. It began at the
   logo's right edge and stopped at the contact block, so it lined up with
   nothing on the page and read as a stray line above the school name. Gone.
   The name now carries a short rule in the school's own colour underneath it, which ties the masthead to the brand instead of cutting it in half. */
.mast-mid { min-width: 0; }
.mast-slogan::after, .mast-name::after {
    content: ''; display: block; width: 62px; height: 4px;
    background: var(--brand); margin-top: 15px;
}
.mast-slogan, .mast-name {
    font-family: var(--font-head); font-weight: 600;
    font-size: clamp(1.4rem, 2.8vw, 2.5rem); line-height: 1; letter-spacing: -.02em;
    margin: 0;
}
.mast-slogan { color: var(--brand-ink); text-transform: uppercase; }
.mast-name { color: var(--mast-name-ink); text-transform: uppercase; }
.mast-contact {
    font-size: var(--t-micro); line-height: 1.7; text-align: right;
    white-space: nowrap; margin: 0; color: var(--muted);
}
@media (max-width: 1000px) {
    .mast { grid-template-columns: auto 1fr; gap: var(--s3); }
    .mast-contact { display: none; }
}
@media (max-width: 560px) {
    .util { justify-content: center; flex-wrap: wrap; }
    .util button, .util a { padding: 8px 7px; }
    .mast { grid-template-columns: 1fr; gap: var(--s2); }
    .mast-slogan::after, .mast-name::after { margin-top: 11px; }
}

/* ------------------------------------------------------------- icon nav
   Her boxed tiles, kept: solid strip, hairline dividers, icon over label.

   This band is the largest block of colour on the page, so it carries the
   school's PRIMARY colour - painting it with the accent meant every Prattville
   school led with its second colour and Prattville Junior High got a grey
   nav bar under a maroon logo, which is what made the header look mismatched.
   The accent now runs as a keyline along the top: still a per-school
   signature, no longer the thing you see first. */
.iconnav { background: var(--strip-bg); border-top: 6px solid var(--strip-keyline); }
/* Not every school has eight nav items - the Tech Center has six - and a
   hardcoded repeat(8, 1fr) left it with two empty cells on the end. Auto-flow
   columns divide the row by however many items the school actually has. */
.iconnav ul {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
}
.iconnav li + li { border-left: 1px solid var(--strip-rule); }
.iconnav a {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; padding: var(--s3) 8px; min-height: 118px;
    color: var(--strip-ink); text-decoration: none; text-align: center;
    transition: background .16s;
}
.iconnav a:hover, .iconnav a:focus-visible { background: var(--strip-hover); }
.iconnav i { font-size: 27px; }
.iconnav .lbl { font-family: var(--font-head); font-size: var(--t-small); text-transform: uppercase; line-height: 1.15; }
@media (max-width: 1100px) {
    /* Her mobile slides show a 2-column grid with the icon beside the label, not a scroll rail - matched here. */
    .iconnav ul { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); }
    .iconnav li { border-left: 1px solid var(--strip-rule); border-top: 1px solid var(--strip-rule); }
    .iconnav a { flex-direction: row; justify-content: flex-start; text-align: left; min-height: 64px; gap: var(--s2); padding: var(--s2) var(--s3); }
    .iconnav i { font-size: 22px; width: 30px; flex: 0 0 auto; }
}
/* Stay at two columns on a phone. Her mobile slides show two, and one column
   turned eight items into a full screen of navigation before any content. */
@media (max-width: 460px) {
    .iconnav a { padding: var(--s2) 12px; gap: 10px; }
    .iconnav i { font-size: 19px; width: 24px; }
    .iconnav .lbl { font-size: .8rem; }   /* 12.8px - .74rem fell under the 12px floor */
}

/* ----------------------------------------------------------- split hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.hero-txt { padding: var(--s6) var(--s5) var(--s6) 0; }
.hero-eyebrow { font-family: var(--font-head); font-size: var(--t-body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: var(--s1); }
.hero h1 { font-size: var(--t-h1); color: var(--brand-ink); text-transform: uppercase; }
.hero-name { color: var(--mast-name-ink) !important; }
.hero-lede { margin-top: var(--s3); max-width: 54ch; }
.hero-img { position: relative; }
.hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1000px) {
    .hero { grid-template-columns: 1fr; }
    .hero-txt { padding: var(--s5) 0; }
    .hero-img { min-height: 300px; }
}

/* vision / mission, district only */
.vm { margin-top: var(--s4); }
.vm h2 {
    display: flex; align-items: center; gap: var(--s3);
    font-family: var(--font-script); font-weight: 400; text-transform: none;
    font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: 0; color: var(--ink);
    margin-bottom: var(--s2);
}
.vm h2::before, .vm h2::after { content: ""; flex: 1 1 auto; height: 2px; background: var(--brand); }
.vm p { font-size: var(--t-small); line-height: 1.7; text-align: center; }

/* bell times, schools only */
.bells { display: flex; flex-wrap: wrap; gap: var(--s4); margin-top: var(--s4); }
.bell { display: flex; align-items: baseline; gap: 8px; }
.bell .t { font-family: var(--font-head); font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 600; color: var(--brand-ink); }
.bell .l { font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .04em; line-height: 1.1; max-width: 7ch; color: var(--muted); }
.motto-script {
    font-family: var(--font-script); font-size: clamp(1.6rem, 3vw, 2.6rem);
    color: var(--brand-ink); margin-top: var(--s4); padding-top: var(--s3);
    border-top: 1px solid var(--line);
}

/* --------------------------------------------------------- section head */
.sec-head { display: flex; align-items: baseline; gap: var(--s2); margin-bottom: var(--s4); flex-wrap: wrap; }
.sec-head h2 { font-size: var(--t-h2); color: var(--brand-ink); text-transform: uppercase; }
.sec-head .bar { align-self: stretch; width: 3px; background: var(--brand); }
.sec-head a { font-family: var(--font-head); font-size: clamp(1rem, 1.5vw, 1.25rem); text-transform: uppercase; text-decoration: none; color: var(--muted); }
.sec-head a:hover, .sec-head a:focus-visible { color: var(--brand-ink); text-decoration: underline; }

/* ------------------------------------------------------------ live feed */
.feed { padding: var(--s6) 0 var(--s5); }
.feed-rail { position: relative; }
.feed-track {
    display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--s3) * 2)) / 3);
    gap: var(--s3); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px;
}
.feed-track::-webkit-scrollbar { display: none; }
.card {
    position: relative; scroll-snap-align: start; overflow: hidden;
    border-radius: var(--r); background: var(--surface-2);
    display: flex; flex-direction: column;
    transition: transform .26s var(--ease), box-shadow .26s var(--ease);
}
.card:hover, .card:focus-within { transform: translateY(-4px); box-shadow: var(--lift); }
.card-img { position: relative; }
.card-img > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-ov {
    position: absolute; inset: 0; background: var(--brand-ov); color: var(--on-brand);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: var(--s2); padding: var(--s3); text-align: center;
    opacity: 0; transition: opacity .22s var(--ease);
}
.card:hover .card-ov, .card:focus-within .card-ov { opacity: 1; }
.card-ov p { font-family: var(--font-head); font-size: 1.02rem; line-height: 1.3; }
.card-ov a { color: inherit; font-weight: 700; text-underline-offset: 4px; }
.card-foot { display: flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--s3); background: var(--brand); color: var(--on-brand); margin-top: auto; }
/* This avatar was a hard 36x36 with no object-fit, so every school's mark was
   squashed to a square - the Tech Center's logotype is 4.3:1 and was being
   crushed to 1:1. Contain keeps the aspect ratio; the padding stops a wide
   wordmark touching the edge of the circle. */
.card-foot img {
    width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto;
    background: var(--on-brand); object-fit: contain; padding: 3px;
    box-sizing: border-box;
}
.card-foot .who { font-family: var(--font-head); font-size: var(--t-small); line-height: 1.2; }
.card-foot .when { font-size: var(--t-micro); opacity: .85; }
.rail-btn {
    position: absolute; top: calc(50% - 40px); z-index: 3; width: 44px; height: 44px;
    border: 0; border-radius: 50%; cursor: pointer; background: var(--brand); color: var(--on-brand);
    display: grid; place-items: center; box-shadow: var(--lift);
}
.rail-btn[disabled] { opacity: .25; cursor: default; }
.rail-prev { left: -14px; } .rail-next { right: -14px; }
@media (max-width: 1000px) {
    .feed-track { grid-auto-columns: min(82%, 340px); }
    .rail-btn { display: none; }
    /* no hover on touch - her own mobile slide shows the text by default */
    .card-ov { position: static; opacity: 1; text-align: left; align-items: flex-start; }
}

/* -------------------------------------------------------------- CTA band */
.cta { position: relative; display: grid; place-items: center; min-height: clamp(240px, 26vw, 330px); text-align: center; overflow: hidden; }
.cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85); }
.cta::after { content: ""; position: absolute; inset: 0; background: var(--cta-ov); }
.cta-in { position: relative; z-index: 2; padding: var(--s5) var(--rail); }
.cta h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); color: var(--on-cta); text-transform: uppercase; }
.cta .rule { width: 170px; height: 3px; background: var(--on-cta); margin: var(--s3) auto; }
.cta .btn { display: inline-block; background: var(--btn-bg); color: var(--btn-ink); padding: 13px 38px; font-size: 1.1rem; text-decoration: none; transition: transform .2s var(--ease); }
.cta .btn:hover { transform: translateY(-3px); }

/* ---------------------------------------------------------- departments */
.depts { padding: var(--s6) 0; }
.depts .lede { max-width: 72ch; margin: calc(var(--s4) * -1 + var(--s2)) 0 var(--s4); color: var(--muted); }
.dept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.dept { position: relative; display: block; text-decoration: none; overflow: hidden; border-radius: var(--r); background: var(--surface-2); }
.dept img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .4s var(--ease); }
.dept:hover img, .dept:focus-visible img { transform: scale(1.05); }
.dept-lbl { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: 11px var(--s3); background: var(--brand); color: var(--on-brand); font-family: var(--font-head); font-size: 1.1rem; }
.dept-lbl i { transition: transform .2s var(--ease); }
.dept:hover .dept-lbl i { transform: translateX(4px); }
@media (max-width: 920px) { .dept-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .dept-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- numbers */
.nums { position: relative; overflow: hidden; padding: var(--s6) 0; }
.nums img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.nums::after { content: ""; position: absolute; inset: 0; background: var(--nums-ov); }
.nums-in { position: relative; z-index: 2; color: var(--on-nums); text-align: center; }
.nums h2 { font-size: var(--t-h2); text-transform: uppercase; margin-bottom: var(--s5); }
.nums-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4) var(--s3); }
.num i { font-size: 34px; display: block; margin-bottom: var(--s2); opacity: .9; }
.num .v { font-family: var(--font-head); font-weight: 600; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; font-variant-numeric: tabular-nums; }
.num .k { font-size: var(--t-small); opacity: .92; margin-top: 6px; max-width: 20ch; margin-inline: auto; }
@media (max-width: 780px) { .nums-grid { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------------------------- events */
.events { padding: var(--s6) 0 var(--s7); }
.events-body { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: var(--s5); align-items: start; }
.motto { font-family: var(--font-head); font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: .96; letter-spacing: -.03em; color: var(--motto); text-transform: uppercase; margin: -.1em 0 0; }
.ev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.ev { display: block; text-decoration: none; color: inherit; background: var(--ev-bg); border-radius: var(--r); padding: var(--s3) var(--s3) var(--s4); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.ev:hover, .ev:focus-visible { transform: translateY(-3px); box-shadow: var(--lift); }
.ev .d { font-family: var(--font-head); font-size: 1.5rem; color: var(--brand-ink); }
.ev .t { font-weight: 600; margin: var(--s1) 0 var(--s2); line-height: 1.35; }
.ev .w { font-size: var(--t-micro); color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
@media (max-width: 1000px) { .events-body { grid-template-columns: 1fr; gap: var(--s4); } .ev-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ev-grid { grid-template-columns: 1fr; } }

/* ==================================================== INTERIOR PAGE SHELL */
.pagehead { background: var(--page-band); padding: var(--s5) 0; }
.pagehead h1 { font-size: var(--t-h2); color: var(--mast-name-ink); text-transform: uppercase; }
.pagehead .crumbs { font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: var(--s2); }
.pagehead .crumbs a { text-decoration: none; }
.pagehead .crumbs a:hover { color: var(--brand-ink); }
.pagehead .rule { width: 90px; height: 4px; background: var(--brand); margin-top: var(--s2); }

.page-body { padding: var(--s6) 0 var(--s7); }
/* Interior pages are single-column now. Their live site has no side nav and
   neither does her design - the mega menu IS the navigation, and a side rail
   repeating one of its eight groups was ours, not theirs. */
/* Interior pages: the section rail beside the content. The rail is the branch
   of the page tree you are standing in; the overlay menu is the whole tree.
   Both read from one source, so a page created in the CMS appears in both
   without anyone entering a link - which is the reason the rail exists at all
   rather than making people open the overlay to move one page sideways. */
.page-cols {
    display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
    gap: var(--s5); align-items: start;
}
.page-one { max-width: 78ch; }
.sidenav { position: sticky; top: var(--s3); }
.sidenav-h {
    font-family: var(--font-head); font-size: 1.05rem; text-transform: uppercase;
    letter-spacing: .02em; color: var(--brand-ink); margin: 0 0 var(--s2);
    padding-bottom: var(--s2); border-bottom: 2px solid var(--brand);
}
.sidenav ul { list-style: none; margin: 0; padding: 0; }
.sidenav a {
    display: flex; align-items: center; min-height: 44px;
    padding: 9px var(--s2); text-decoration: none; color: var(--ink);
    font-size: var(--t-small); line-height: 1.3;
    border-left: 3px solid var(--line);
    transition: border-color .16s, background .16s, color .16s;
}
.sidenav a:hover, .sidenav a:focus-visible {
    border-left-color: var(--brand); background: var(--ev-bg);
}
.sidenav a[aria-current="page"] {
    border-left-color: var(--brand); background: var(--ev-bg);
    color: var(--brand-ink); font-weight: 600;
}
.sidenav-all {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: var(--s3); padding: 10px 0;
    background: none; border: 0; cursor: pointer;
    font-family: var(--font-head); font-size: var(--t-small);
    text-transform: uppercase; letter-spacing: .02em; color: var(--brand-ink);
}
.sidenav-all:hover, .sidenav-all:focus-visible { text-decoration: underline; }
@media (max-width: 900px) {
    .page-cols { grid-template-columns: 1fr; gap: var(--s4); }
    .sidenav { position: static; }
}
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.5rem; margin: var(--s4) 0 var(--s2); color: var(--mast-name-ink); }
.prose h3 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 700; margin: var(--s3) 0 var(--s1); letter-spacing: 0; }
.prose ul { padding-left: var(--s3); }
.prose li { margin-bottom: 6px; }
.prose img { border-radius: var(--r); margin: var(--s3) 0; }
/* ------------------------------------------------------------- calendar */
/* The grid sat 78px below the page band with nothing in between - the
   default interior gap is sized for prose, not for a tool. */
.cal-page { padding-top: var(--s4); }

.cal-bar {
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s2) var(--s3);
    background: var(--ev-bg); border-radius: var(--r);
    padding: var(--s2) var(--s3) var(--s3); margin-bottom: var(--s4);
}
.cal-field { display: flex; flex-direction: column; gap: 6px; }
.cal-field label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
/* Every control in the bar is 40px tall so the select, the view toggle and
   the tools on the right share one bottom edge instead of three. */
.cal-field select {
    font: inherit; font-size: var(--t-small); height: 40px; padding: 0 12px;
    border: 1px solid var(--line); border-radius: 6px; background: var(--surface);
    color: var(--ink); min-width: 220px;
}
.cal-views { display: flex; gap: 0; }
.cal-views button {
    font: inherit; font-size: var(--t-small); display: inline-flex; align-items: center; gap: 7px;
    height: 40px; padding: 0 16px; border: 1px solid var(--line); background: var(--surface);
    color: var(--ink); cursor: pointer; border-radius: 0;
}
.cal-views button:first-child { border-radius: 6px 0 0 6px; }
.cal-views button:last-child  { border-radius: 0 6px 6px 0; margin-left: -1px; }
.cal-views button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); position: relative; }
/* Adding the Filters button pushed this row 65px past the viewport on a
   phone - the row had never been allowed to wrap. */
.cal-tools {
    margin-left: auto; display: flex; align-items: center; flex-wrap: wrap;
    gap: var(--s1) var(--s2); font-size: var(--t-small);
}
.cal-tools a { text-decoration: none; color: var(--brand-ink); font-weight: 600; }
/* "Board calendar:" and its two years used to wrap apart on a phone, leaving
   2026-2027 orphaned on the line below its label. */
.cal-board { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px var(--s2); margin-right: var(--s1); }
.cal-board span { color: var(--muted); }
.cal-icon {
    display: inline-grid; place-items: center; width: 40px; height: 40px;
    border: 1px solid var(--line); border-radius: 6px; background: var(--surface);
}
.cal-icon:hover, .cal-icon:focus-visible { border-color: var(--brand); }

.cal-nav { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s3); }
.cal-nav h2 { font-size: clamp(1.35rem, 2vw, 1.7rem); text-transform: uppercase; letter-spacing: 0; min-width: 0; }
.cal-nav button {
    width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; cursor: pointer;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink);
    transition: background .16s, border-color .16s, color .16s;
}
.cal-nav button:hover, .cal-nav button:focus-visible { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

/* repeat(7, 1fr) let a long event title widen its own column - Thursday was
   twice the width of Sunday. minmax(0, 1fr) holds all seven equal, and 1fr
   rows make every week the height of the busiest one. */
.cal-grid {
    display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-template-rows: auto; grid-auto-rows: minmax(112px, 1fr);
    gap: 1px; background: var(--line); border: 1px solid var(--line);
    border-radius: var(--r); overflow: hidden;
    box-shadow: 0 1px 2px rgba(17,17,19,.05);
}
.cal-grid .dow {
    background: var(--topbar-bg); color: var(--topbar-ink); padding: 10px 8px; text-align: center;
    font-family: var(--font-head); font-size: var(--t-micro); font-weight: 500;
    text-transform: uppercase; letter-spacing: .12em;
}
.cal-cell { background: var(--surface); min-width: 0; padding: 6px 8px 8px; display: flex; flex-direction: column; gap: 4px; }
/* Children 1-7 are the weekday headings, so Sunday is 8, 15, 22... and
   Saturday 14, 21, 28... A faint tint makes the school week read at a glance. */
.cal-cell:nth-child(7n+8), .cal-cell:nth-child(7n+14) { background: var(--page-bg); }
.cal-cell .n {
    align-self: flex-end; display: grid; place-items: center;
    width: 26px; height: 26px; border-radius: 50%;
    font-size: var(--t-micro); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums;
}
.cal-cell.out { background: var(--surface-2); }
.cal-cell.out .n { color: var(--muted); font-weight: 400; }
.cal-cell.today { box-shadow: inset 0 3px 0 var(--brand); }
.cal-cell.today .n { background: var(--brand); color: var(--on-brand); }
/* The chips are buttons, so the browser's own button font and border have
   to be reset here - an earlier "font: inherit" further down set them in
   17px body type and its "border: 0" removed the brand keyline. Two lines,
   then an ellipsis: the dialog carries the full title. */
.cal-ev {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    width: 100%; margin: 0; padding: 4px 7px; overflow: hidden;
    font: inherit; font-size: 12.5px; font-weight: 500; line-height: 1.3; text-align: left;
    color: var(--ink); background: var(--brand-soft);
    /* --g is the event's own group colour, set per chip by _build.py. With
       several schools' calendars shown at once they have to be tellable
       apart, so the keyline is the group's, not the page's. */
    border: 0; border-left: 3px solid var(--g, var(--brand)); border-radius: 4px;
    cursor: pointer; text-decoration: none; overflow-wrap: anywhere;
    transition: background .14s, color .14s;
}
.cal-ev:hover, .cal-ev:focus-visible { background: var(--brand); color: var(--on-brand); }
/* Below 860px the month becomes a list: date on the left, that day's
   events stacked to its right rather than squeezed side by side. */
@media (max-width: 860px) {
    .cal-grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
    .cal-grid .dow { display: none; }
    .cal-cell {
        display: grid; grid-template-columns: 34px minmax(0, 1fr);
        align-items: start; gap: 6px var(--s2); padding: 8px var(--s2);
    }
    .cal-cell.out { display: none; }
    .cal-cell .n { grid-column: 1; grid-row: 1; align-self: start; }
    .cal-ev { grid-column: 2; -webkit-line-clamp: unset; display: block; font-size: 13.5px; }
    .cal-tools { margin-left: 0; }
}

.staff-body { padding: var(--s2) var(--s3) var(--s2) 0; min-width: 0; }
.staff .nm { font-family: var(--font-head); font-size: 1.1rem; line-height: 1.15; }
.staff .ti { font-size: var(--t-micro); color: var(--muted); margin: 3px 0 var(--s2); }
.staff .lk { display: flex; gap: var(--s1); }
.staff .lk a { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-size: 13px; text-decoration: none; }
.staff .lk a:hover { background: var(--brand-dk); color: var(--on-brand); }

.bldg-body { padding: var(--s3); }
.bldg .nm { font-family: var(--font-head); font-size: 1.05rem; }
.bldg .ad { font-size: var(--t-micro); color: var(--muted); margin-top: 5px; line-height: 1.5; }

/* ====================================================== MEGA MENU OVERLAY */
.mega {
    position: fixed; inset: 0; z-index: 300; background: var(--brand);
    color: var(--on-brand); overflow-y: auto; padding: var(--s6) 0 var(--s7);
    opacity: 0; visibility: hidden;
    /* See the note on .switch - visibility is delayed, never faded, or it
       is still "hidden" at t=0 and the dialog cannot take focus. */
    transition: opacity .22s var(--ease), visibility 0s linear .22s;
}
.mega[data-open="true"] { opacity: 1; visibility: visible; transition: opacity .22s var(--ease), visibility 0s; }
.mega-close {
    position: absolute; top: var(--s3); right: var(--rail);
    width: 52px; height: 52px; border: 0; border-radius: 50%; cursor: pointer;
    background: rgba(255,255,255,.14); color: var(--on-brand); font-size: 22px;
}
.mega-close:hover { background: rgba(255,255,255,.26); }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5) var(--s4); }
.mega-col h2 {
    font-family: var(--font-head); font-size: 1.15rem; text-transform: uppercase;
    padding-bottom: var(--s1); margin-bottom: var(--s2);
    border-bottom: 2px solid rgba(255,255,255,.5);
}
.mega-col ul { list-style: none; margin: 0 0 var(--s5); padding: 0; }
.mega-col li { margin-bottom: 2px; }
/* These are the most-tapped links on the site - roughly 36 per school - and at
   the concept's text size they are 17px tall. Padded to a 44px target. */
.mega-col a {
    display: block; padding: 11px 10px 11px 0; min-height: 44px;
    font-size: var(--t-small); text-decoration: none; opacity: .92;
}
.mega-col a:hover, .mega-col a:focus-visible { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1000px) { .mega-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mega-grid { grid-template-columns: 1fr; } .mega { padding-top: var(--s7); } }

/* --------------------------------------------------------------- footer */
.foot { background: var(--foot-bg); color: var(--foot-ink); padding: var(--s6) 0 var(--s4); }
.foot-grid { display: grid; grid-template-columns: minmax(0,1.4fr) repeat(3, minmax(0,1fr)); gap: var(--s5) var(--s4); }
/* The footer carries the building's OWN mark, so this is a white plate rather
   than a bare image: the ground is #3b393c and these marks are dark artwork.
   The Tech Center logotype is 100% black pixels and disappeared completely;
   six of the seven Prattville marks are more than half black. One plate makes
   all fourteen legible without reverse versions of every logo. */
.foot-logo {
    display: inline-block; margin-bottom: var(--s3);
    padding: 14px 18px; background: #ffffff; border-radius: var(--r);
}
.foot-logo img {
    display: block; height: 62px; width: auto;
    max-width: 230px; object-fit: contain;
}
.foot address { font-style: normal; font-size: var(--t-small); line-height: 1.75; opacity: .88; }
.foot h3 { font-family: var(--font-body); font-size: var(--t-micro); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; opacity: .62; margin-bottom: var(--s3); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 10px; }
.foot li a { font-size: var(--t-small); text-decoration: none; }
.foot li a:hover { text-decoration: underline; text-underline-offset: 3px; }
.social { display: flex; gap: 10px; margin-top: var(--s3); }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); text-decoration: none; transition: background .16s; }
.social a:hover { background: var(--brand-dk); border-color: var(--brand-dk); }
.legal { background: var(--brand); color: var(--on-brand); font-size: var(--t-micro); padding: var(--s2) 0; }
.legal .u-wrap { display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.legal a { display: inline-flex; align-items: center; min-height: 40px; }
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .foot-grid { grid-template-columns: 1fr; gap: var(--s4); } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}

/* =========================================================================
   ADDED FOR THE FULL-SITE BUILD
   Everything below arrived with the thirteen school sites: the switcher that
   moves between them, the cover page that lists them, and the fixes the real
   logos forced once placeholder rectangles were replaced by artwork of
   eleven different shapes.
   ========================================================================= */

/* --- logos -------------------------------------------------------------
   The district nameplate is wide and short; Pine Level's circle mark is
   square; the Tech Center logotype is nearly 4:1. Constraining height alone
   let the widest of them push the school name out of the masthead, so both
   axes are bounded and object-fit does the rest. */
.mast-logo img {
    height: clamp(56px, 7vw, 92px);
    width: auto;
    max-width: clamp(150px, 22vw, 260px);
    object-fit: contain;
}

/* --- school switcher ---------------------------------------------------
   Reachable from the utility bar on all 33 pages. This is the control people
   actually try first in a district mockup, so it works everywhere. */
.switch {
    position: fixed; inset: 0; z-index: 90;
    background: rgba(18,18,20,.55);
    display: grid; place-items: start center;
    padding: var(--s4) var(--s3);
    opacity: 0; visibility: hidden;
    /* visibility must NOT be part of the fade. Transitioning it means the
       computed value is still "hidden" at t=0, and an element that is
       hidden cannot take focus - so opening the dialog left the keyboard
       on the page behind it, which also made aria-modal a lie. Delaying
       visibility instead flips it instantly on open and waits for the
       fade on close. */
    transition: opacity .18s ease, visibility 0s linear .18s;
    overflow-y: auto;
}
.switch[data-open="true"] { opacity: 1; visibility: visible; transition: opacity .18s ease, visibility 0s; }
.sw-panel {
    width: min(980px, 100%);
    background: var(--surface);
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.sw-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--s3); padding: var(--s3) var(--s4);
    background: var(--topbar-bg); color: var(--topbar-ink);
}
.sw-head h2 { font-family: var(--font-head); font-size: 1.35rem; text-transform: uppercase; margin: 0; }
.sw-head button {
    width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
    background: rgba(255,255,255,.14); color: #fff; font-size: 17px;
}
.sw-head button:hover { background: rgba(255,255,255,.26); }
/* ALPHABETICAL DOWN THE COLUMNS, not across the rows. The district, 14 Oct
   2026: "can the schools be listed alphabetically by column instead of row.
   I read down the list more naturally than across the list."

   Done with grid-auto-flow rather than by reordering the markup, and that is
   the point: the markup stays in alphabetical order, so the tab order and a
   screen reader run A, B, C... down column one and then down column two -
   the same order the eye takes. Reordering the HTML to fill a row-flow grid
   would have put the DOM in the sequence A, F, K, B, G, L..., which is what
   anyone not using a mouse would then hear.

   The row counts are ceil(14 / columns) for the fourteen sites in
   ALL_SITES; _build.py asserts that count so this cannot drift silently. */
.sw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(5, auto);
    grid-auto-flow: column;
    background: var(--surface);
}
@media (max-width: 900px) {
    .sw-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(7, auto); }
}
@media (max-width: 600px) {
    .sw-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
}
.sw-item {
    display: flex; align-items: center; gap: var(--s3);
    padding: var(--s3); background: var(--surface);
    border-top: 1px solid var(--line); border-right: 1px solid var(--line);
    text-decoration: none; color: var(--ink); min-height: 64px;
}
.sw-item:hover, .sw-item:focus-visible { background: var(--chip-bg); }
.sw-item[aria-current="page"] { background: var(--chip-bg); }
.sw-dot { width: 10px; height: 34px; border-radius: 5px; background: var(--brand); flex: 0 0 auto; }
.sw-txt { min-width: 0; }
.sw-nm { display: block; font-family: var(--font-head); font-size: 1.05rem; line-height: 1.2; }
.sw-gr { display: block; font-size: var(--t-micro); color: var(--muted); margin-top: 3px; }

/* --- building cards ----------------------------------------------------
   These carried a photo placeholder while there were no logos. Now that
   eleven real marks exist, the card shows the mark on a tint of the
   school's own colour { display: block; }

.post-body .when { font-size: var(--t-micro); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 0; }

.post-body .more { margin-top: auto; font-family: var(--font-head); text-transform: uppercase; text-decoration: none; color: var(--brand-ink); display: inline-flex; align-items: center; gap: 8px; padding: 10px 0; }
.post-body .more:hover { text-decoration: underline; }

/* --- cover page --------------------------------------------------------
   Not part of the district's site. It is the way in for whoever opens the
   folder, and it is where the real/filler/missing split is stated plainly
   so nobody has to guess which is which. */
.cover-head { background: var(--panel-bg); color: var(--panel-ink); padding: var(--s6) 0 var(--s5); }
/* The ESV wordmark, not the district's - this page is ours presenting to
   them, so it carries our mark and the district name is the headline. */
.cover-logo { height: 40px; width: auto; margin-bottom: var(--s4); }
.cover-eyebrow {
    font-family: var(--font-head); text-transform: uppercase;
    letter-spacing: .16em; font-size: var(--t-small);
    color: rgba(255,255,255,.62); margin: 0 0 var(--s1);
}
.cover-head h1 { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3.4rem); text-transform: uppercase; line-height: 1.02; margin: 0 0 var(--s3); }
.cover-intro { max-width: 68ch; font-size: clamp(1.02rem, 1.3vw, 1.18rem); color: rgba(255,255,255,.82); margin: 0; }
.cover-sec { padding: var(--s5) 0 0; }
.cover-sec:last-of-type { padding-bottom: var(--s6); }
.cover .lede { max-width: 72ch; margin: calc(var(--s4) * -1 + 4px) 0 var(--s4); color: var(--muted); }

.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: var(--s3); }
.tile {
    position: relative; display: flex; flex-direction: column; gap: var(--s2);
    padding: var(--s3); text-decoration: none; color: var(--ink);
    background: var(--surface); border: 1px solid var(--line);
    border-top: 5px solid var(--brand); border-radius: var(--r);
    transition: transform .14s ease, box-shadow .14s ease;
}
.tile:hover, .tile:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,.14); }
.tile-mark { display: grid; place-items: center; height: 96px; background: var(--chip-bg); border-radius: 6px; padding: var(--s2); }
.tile-mark img { max-width: 78%; max-height: 74px; width: auto; height: auto; object-fit: contain; }
.tile-nm { font-family: var(--font-head); font-size: 1.1rem; line-height: 1.15; text-transform: uppercase; }
.tile-gr { font-size: var(--t-micro); color: var(--muted); }
.tile-flag { position: absolute; top: 10px; right: 10px; background: #8a6d00; color: #fff; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; padding: 3px 7px; border-radius: 3px; }

.cover-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cover-list-2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.cover-list li { background: var(--surface); padding: var(--s3); display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s3); }
.cover-list a { font-family: var(--font-head); font-size: 1.05rem; text-transform: uppercase; color: var(--brand-ink); text-decoration: none; }
.cover-list a:hover { text-decoration: underline; }
.cover-list span { font-size: var(--t-micro); color: var(--muted); }

.note-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s3); }
.note { border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--r); padding: var(--s3); background: var(--surface); }
.note h3 { font-family: var(--font-head); font-size: 1.15rem; text-transform: uppercase; color: var(--brand-ink); margin: 0 0 var(--s2); }
.note p { margin: 0; font-size: var(--t-small); }

@media (max-width: 720px) {
    .cover-head { padding: var(--s5) 0 var(--s4); }
    .cover-logo { height: 32px; }
    .sw-item { min-height: 56px; }
}

/* --- tap targets -------------------------------------------------------
   Audited at 375px: the section "See all ..." links, the card CTAs and the
   legal-bar links were all landing between 22px and 29px tall. They are the
   links a parent taps on a phone, so on small screens they get enough
   padding to clear 44px. Inline links inside running prose are left alone -
   padding them out would wreck the line rhythm, and WCAG exempts them. */
@media (max-width: 720px) {
    .sec-head a, .card-ov a, .post-body .more, .legal a, .cal-tools a, .foot-grid ul a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
    .util button, .util a { min-height: 44px; padding-inline: 4px; }
    .cover-list a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Calendar chips: 44px each would make October three screens tall on a
   phone. They get 32px - above the 24px AA minimum - and the print and
   subscribe icons get the full 44px square the other toolbar links get. */
@media (max-width: 720px) {
    .cal-ev { min-height: 32px; display: flex; align-items: center; }
    .cal-tools .cal-icon { width: 44px; height: 44px; justify-content: center; }
    .cal-nav button, .cal-field select, .cal-views button, .cal-tools .cal-filters { height: 44px; }
    .cal-nav button { width: 44px; }
}

/* --brand-dk is the darker step every per-school block declares. It was
   documented as "used for hovers" and read by nothing, so a school could set
   it wrong and never find out. These are the hovers. */
.cal-tools a:hover, .cover-list a:hover, .post-body .more:hover { color: var(--brand-dk); }
.cta .btn:hover { background: var(--brand-dk); color: #ffffff; }

/* =========================================================================
   SPLASH / FRONT DOOR  -  her slide 6
   The county silhouette on the left, a card on the right with the nameplate
   and four ways in. No site chrome: this page exists to be left.
   ========================================================================= */
.splash { background: var(--page-bg); min-height: 100vh; display: flex; flex-direction: column; }
.splash-rule { height: 22px; background: var(--topbar-bg); }
.splash-in {
    flex: 1; display: grid; grid-template-columns: 1fr 1fr;
    align-items: center; gap: var(--s5);
    max-width: var(--maxw); width: 100%; margin: 0 auto;
    padding: var(--s5) var(--rail);
}
.splash-art { display: grid; place-items: center; }
.splash-art img { width: min(100%, 520px); height: auto; }

.splash-card { background: var(--surface); box-shadow: 0 18px 50px rgba(0,0,0,.12); }
.splash-card-rule { height: 10px; background: var(--topbar-bg); }
.splash-card-in { padding: var(--s5) var(--s4) var(--s4); }
.splash-plate { margin: 0 0 var(--s5); }
.splash-name {
    font-family: var(--font-head); font-weight: 700;
    font-size: clamp(2.3rem, 4.4vw, 3.6rem); line-height: .92;
    letter-spacing: -.01em; text-transform: uppercase; margin: 0; color: var(--ink);
}
.splash-tag {
    font-family: var(--font-head); font-weight: 500;
    font-size: clamp(1rem, 1.7vw, 1.4rem); letter-spacing: .01em;
    text-transform: uppercase; margin: var(--s2) 0 0; color: var(--ink);
}

.way-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
.way {
    display: flex; flex-direction: column; align-items: center; gap: var(--s2);
    padding: var(--s3) var(--s2); text-decoration: none; color: var(--ink);
    border: 1px solid var(--line); background: var(--surface);
    transition: border-color .16s, box-shadow .16s, transform .16s;
}
.way:hover, .way:focus-visible {
    border-color: var(--brand); box-shadow: 0 10px 22px rgba(0,0,0,.12);
    transform: translateY(-2px);
}
.way-mark { display: grid; place-items: center; height: 72px; }
.way-mark img { max-width: 100%; max-height: 68px; width: auto; height: auto; object-fit: contain; }
.way-nm {
    font-family: var(--font-head); font-size: var(--t-small); text-transform: uppercase;
    text-align: center; line-height: 1.2; letter-spacing: .02em;
}
.way-go { font-size: 20px; color: var(--ink); }
.way:hover .way-go, .way:focus-visible .way-go { color: var(--brand); }

.alerts {
    display: flex; align-items: center; gap: var(--s3);
    margin-top: var(--s3); padding: var(--s3) var(--s3);
    background: #cbcccc; color: var(--ink); text-decoration: none;
    font-family: var(--font-head); font-size: 1.1rem; text-transform: uppercase;
    transition: background .16s;
}
.alerts:hover, .alerts:focus-visible { background: #bcbdbd; }
.alerts span { flex: 1; }
.alerts .go { font-size: 19px; }

@media (max-width: 900px) {
    .splash-in { grid-template-columns: 1fr; gap: var(--s4); padding: var(--s4) var(--rail); }
    .splash-art img { width: min(70%, 320px); }
    .way-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .splash-card-in { padding: var(--s4) var(--s3) var(--s3); }
    .way-mark { height: 58px; }
    .way-mark img { max-height: 54px; }
}

/* --- mega menu header ---------------------------------------------------
   Opening the overlay used to drop you into eight columns of links with no
   indication of whose menu you were in. */
.mega-head { margin-bottom: var(--s5); }
.mega-eyebrow {
    font-family: var(--font-head); font-size: var(--t-micro);
    text-transform: uppercase; letter-spacing: .22em;
    color: rgba(255,255,255,.62); margin: 0 0 6px;
}
.mega-who {
    font-family: var(--font-head); font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1;
    text-transform: uppercase; color: var(--on-brand); margin: 0;
    padding-bottom: var(--s3); border-bottom: 2px solid rgba(255,255,255,.28);
}
[data-brand="district"] .mega-eyebrow { color: rgba(255,255,255,.66); }
@media (max-width: 720px) { .mega-head { margin-bottom: var(--s4); } }

/* Present to assistive tech, absent on screen. The departments page needs a
   heading between its <h1> and the footer's <h3>s, but one that repeated the
   page title would just be noise to look at. */
.vh {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* =========================================================================
   EVENT DIALOG  -  how the ESV calendar actually behaves
   Clicking a day's event opens this over the grid: title, date range, the
   groups it belongs to, where it is, and the two add-to-calendar actions.
   There is no separate events page; an earlier draft invented one.
   ========================================================================= */
.evdlg {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(18,18,20,.45);
    display: grid; place-items: center; padding: var(--s3);
    opacity: 0; visibility: hidden;
    transition: opacity .16s ease, visibility 0s linear .16s;
}
.evdlg[data-open="true"] {
    opacity: 1; visibility: visible;
    transition: opacity .16s ease, visibility 0s;
}
.evdlg-card {
    position: relative; width: min(620px, 100%);
    max-height: 86vh; overflow-y: auto;
    background: var(--surface); border-radius: var(--r);
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.evdlg-rule { height: 5px; background: var(--brand); border-radius: var(--r) var(--r) 0 0; }
.evdlg-x {
    position: absolute; top: var(--s2); right: var(--s2);
    width: 36px; height: 36px; border: 0; border-radius: 50%;
    background: none; color: var(--muted); font-size: 17px; cursor: pointer;
}
.evdlg-x:hover, .evdlg-x:focus-visible { background: var(--surface-2); color: var(--ink); }
.evdlg-in { padding: var(--s4); }
.evdlg-in h2 {
    font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.1; margin: 0 var(--s5) 0 0; color: var(--ink);
}
.evdlg-when { color: var(--muted); margin: var(--s2) 0 0; }
.evdlg-sec { border-top: 1px solid var(--line); margin-top: var(--s3); padding-top: var(--s3); }
.evdlg-lbl {
    font-size: var(--t-micro); font-weight: 700; text-transform: uppercase;
    letter-spacing: .1em; color: var(--muted); margin: 0 0 var(--s1);
}
.evdlg-groups { list-style: disc; margin: 0; padding-left: var(--s3); }
.evdlg-groups li { margin-bottom: 4px; }
.evdlg-loc { margin: 0; }
.evdlg-acts {
    display: flex; flex-wrap: wrap; gap: var(--s2);
    border-top: 1px solid var(--line); margin-top: var(--s3); padding-top: var(--s3);
}
.evdlg-acts button {
    display: inline-flex; align-items: center; gap: 9px;
    min-height: 44px; padding: 0 var(--s3); cursor: pointer;
    font: inherit; font-size: var(--t-small);
    background: var(--surface); color: var(--ink);
    border: 1px solid var(--line); border-radius: 6px;
    transition: border-color .16s, background .16s;
}
.evdlg-acts button:hover, .evdlg-acts button:focus-visible {
    border-color: var(--brand); background: var(--chip-bg);
}
.cal-filters {
    display: inline-flex; align-items: center; gap: 8px;
    height: 40px; padding: 0 var(--s2); cursor: pointer;
    font: inherit; font-size: var(--t-micro); text-transform: uppercase;
    letter-spacing: .04em; color: var(--ink);
    background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
}
.cal-filters:hover, .cal-filters:focus-visible { border-color: var(--brand); }
.cal-filters[aria-expanded="true"] { border-color: var(--brand); background: var(--chip-bg); }

/* --- event-group panel -------------------------------------------------
   Behind the Filters button, exactly as in the product: an "Include All"
   master checkbox over a flow list of "<Building> - <Group>" boxes, each
   carrying the group's own colour. This is how a family with children at
   three schools keeps three calendars and drops the other eleven, which is
   what the district asked for on 14 Oct 2026. */
.cal-filterpanel {
    margin-bottom: var(--s3); padding: var(--s3);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
}
.cal-filterhead {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px var(--s3);
    padding-bottom: var(--s2); margin-bottom: var(--s2);
    border-bottom: 1px solid var(--line);
}
.cal-filternote { margin: 0; font-size: var(--t-micro); color: var(--muted); }
.cal-grouplist {
    display: grid; gap: 2px var(--s3);
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.cal-group {
    display: flex; align-items: center; gap: 10px;
    min-height: 44px; padding: 2px 0;
    font-size: var(--t-small); line-height: 1.3; cursor: pointer;
}
.cal-group input { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--brand); }
.cal-group input:disabled { cursor: default; }
.cal-group input:disabled ~ .cal-group-t { opacity: .5; }
.cal-group input:disabled ~ .cal-swatch { opacity: .4; }
.cal-swatch { width: 12px; height: 20px; border-radius: 3px; flex: 0 0 auto; }
.cal-group-t { min-width: 0; }
.cal-group-t b { font-weight: 600; white-space: nowrap; }
.cal-empty {
    margin: var(--s3) 0 0; padding: var(--s4);
    background: var(--ev-bg); border-radius: var(--r);
    text-align: center; font-size: var(--t-small); color: var(--muted);
}

/* =========================================================================
   NEWS ARCHIVE  -  protected/ArticleArchive.aspx
   Filter rail on the left, paged article list on the right, month grouping
   underneath the filters. Class names are ESV's own so porting this onto the
   live page is styling, not a rebuild. An earlier draft of this folder showed
   a three-column photo grid, which is not what the component produces.
   ========================================================================= */
.archive-layout {
    display: grid; grid-template-columns: minmax(0, 270px) minmax(0, 1fr);
    gap: var(--s5); align-items: start;
}
.filterContainer {
    background: var(--ev-bg); border-radius: var(--r);
    padding: var(--s3); position: sticky; top: var(--s3);
}
.filter-heading {
    font-family: var(--font-head); font-size: 1.15rem; text-transform: uppercase;
    color: var(--brand-ink); margin: 0 0 var(--s3);
    padding-bottom: var(--s2); border-bottom: 2px solid var(--brand);
}
.filterTitle {
    font-size: var(--t-micro); font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: var(--muted); margin: var(--s3) 0 6px;
}
.filterTitle:first-of-type { margin-top: 0; }
.txtBox, .ddlSelect {
    font: inherit; font-size: var(--t-small); width: 100%;
    padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px;
    background: var(--surface); color: var(--ink);
}
.filter-dates { display: flex; align-items: center; gap: 8px; }
.filter-dates .txtBox { min-width: 0; }
.date-sep { color: var(--muted); }
.filter-radio {
    display: flex; align-items: center; gap: 8px;
    min-height: 32px; font-size: var(--t-small); cursor: pointer;
}
.ArticleArchive_searchButton {
    width: 100%; min-height: 44px; margin-top: var(--s3); cursor: pointer;
    font-family: var(--font-head); font-size: var(--t-small);
    text-transform: uppercase; letter-spacing: .04em;
    background: var(--brand); color: var(--on-brand);
    border: 0; border-radius: 6px;
}
.ArticleArchive_searchButton:hover { background: var(--brand-dk); }
.month-group-list { margin-top: var(--s4); border-top: 1px solid var(--line); padding-top: var(--s2); }
.month-accordion-header .monthTitle {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 40px; text-decoration: none; color: var(--ink); font-size: var(--t-small);
}
.month-accordion-header .monthTitle:hover { color: var(--brand-ink); }
.month-accordion-header span { color: var(--muted); }

.pagingMenu {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: var(--s2); padding-bottom: var(--s3); margin-bottom: var(--s3);
    border-bottom: 1px solid var(--line); font-size: var(--t-small); color: var(--muted);
}
.pagingMenu-foot { border-bottom: 0; border-top: 1px solid var(--line); padding: var(--s3) 0 0; margin: var(--s3) 0 0; justify-content: flex-end; }
.paging-nav { display: flex; align-items: center; gap: var(--s2); }
.paging-nav button {
    min-height: 40px; padding: 0 var(--s2); cursor: pointer;
    font: inherit; font-size: var(--t-small);
    background: var(--surface); color: var(--ink);
    border: 1px solid var(--line); border-radius: 6px;
}
.paging-nav button:hover { border-color: var(--brand); color: var(--brand-ink); }

.newscomponent_item {
    display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: var(--s3);
    padding-bottom: var(--s4); margin-bottom: var(--s4);
    border-bottom: 1px solid var(--line);
}
.newscomponent_item:last-of-type { border-bottom: 0; }
.archive-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.archive-card-date {
    font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .06em;
    color: var(--muted); margin: 0 0 6px;
}
.archive-card-title { font-size: 1.3rem; line-height: 1.25; margin: 0 0 var(--s2); }
.archive-card-title a { color: var(--brand-ink); text-decoration: none; }
.archive-card-title a:hover { text-decoration: underline; }
.archive-card-excerpt { color: var(--ink); margin-bottom: var(--s2); }
.archive-readmore {
    display: inline-flex; align-items: center; min-height: 40px;
    font-family: var(--font-head); font-size: var(--t-small);
    text-transform: uppercase; letter-spacing: .03em;
    color: var(--brand-ink); text-decoration: none;
}
.archive-readmore:hover { text-decoration: underline; }
@media (max-width: 900px) {
    .archive-layout { grid-template-columns: 1fr; gap: var(--s4); }
    .filterContainer { position: static; }
    .newscomponent_item { grid-template-columns: 1fr; }
    .archive-thumb img { aspect-ratio: 16 / 9; }
}

/* =========================================================================
   STAFF DIRECTORY  -  PageControls/Component/StaffComponent.ascx
   Search on first, last, email or title; narrow by building; results as a
   name/title + email grid. Not the photo cards this folder used to show.
   ========================================================================= */
.scSearch {
    display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: var(--s4); align-items: start;
    background: var(--ev-bg); border-radius: var(--r); padding: var(--s3);
}
.scFields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2) var(--s3); }
.scField { display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: center; gap: var(--s2); }
/* These four labels carry class="note", which is ALSO the cover page's callout
   box - a bordered white card with a red left bar and s3 padding. They were
   rendering as four little boxes shoved against the inputs, and the padding
   pushed "EMAIL" out of its 54px column and under the field's border. The
   class is shared, so the box has to be undone here rather than renamed. */
.scField .note {
    border: 0; padding: 0; border-radius: 0; background: none;
    font-size: var(--t-micro); font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: var(--muted);
}
.scSide { display: flex; flex-direction: column; gap: var(--s2); }
.scSearchBtn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    min-height: 44px; cursor: pointer;
    font-family: var(--font-head); font-size: var(--t-small);
    text-transform: uppercase; letter-spacing: .04em;
    background: var(--brand); color: var(--on-brand); border: 0; border-radius: 6px;
}
.scSearchBtn:hover { background: var(--brand-dk); }
.scCount { font-size: var(--t-small); color: var(--muted); margin: var(--s3) 0; }
.scGrid { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.scHead, .scRow {
    display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.1fr);
    gap: var(--s3); padding: var(--s2) var(--s3); align-items: center;
}
.scHead { background: var(--topbar-bg); color: var(--topbar-ink); }
.scLabel {
    font-family: var(--font-head); font-size: var(--t-micro);
    text-transform: uppercase; letter-spacing: .08em;
}
.scRow { border-top: 1px solid var(--line); min-height: 56px; }
.scRow:nth-child(odd) { background: var(--ev-bg); }
.scName a { display: block; font-weight: 600; color: var(--brand-ink); text-decoration: none; }
.scName a:hover { text-decoration: underline; }
.scTitleText { display: block; font-size: var(--t-micro); color: var(--muted); margin-top: 2px; }
.scEmail a { color: var(--ink); text-decoration: none; font-size: var(--t-small); word-break: break-word; }
.scEmail a:hover { color: var(--brand-ink); text-decoration: underline; }
.scDepts, .scBld { font-size: var(--t-micro); color: var(--muted); }
@media (max-width: 900px) {
    .scSearch { grid-template-columns: 1fr; }
    .scFields { grid-template-columns: 1fr; }
    .scHead { display: none; }
    .scRow { grid-template-columns: 1fr; gap: 4px; padding: var(--s3); }
    /* The name and the address are what people tap on a directory, and they
       were 26px and 17px tall. On a phone they get a real target. */
    .scName a, .scEmail a {
        display: flex; align-items: center; min-height: 44px;
    }
    .scName a { align-items: flex-end; }
    .scTitleText { margin-top: 0; margin-bottom: 6px; }
}

/* =========================================================================
   PRINT
   The calendar carries a Print control, and someone will reach for Ctrl+P
   during a demo. Without this the full-screen overlays - which are fixed and
   cover the viewport - print as blank sheets over the content, and the
   presenter's own Concept Home pill prints as if it were the district's.
   Minimal on purpose: hide what is not content, let the rest flow.
   ========================================================================= */
@media print {
    .utilbar, .fx-concept, .fx-concept-row, .mega, .switch, .evdlg,
    .skip, .rail-btn, .fx-railnav, .fx-foot-art, .fx-ghost, .fx-script,
    .hx-band, .hx-tag, .fx-wm, .motto, .cal-filterpanel { display: none !important; }
    body { background: #ffffff; }
    .iconnav { border-top-width: 2px; }
    .hero, .cta, .nums, .depts, .feed, .events { break-inside: avoid; }
    a[href]::after { content: ""; }          /* no URL spew after every link */
}
