/* =========================================================================
   ENHANCE  -  the visual layer over core.css.

   Loaded AFTER core.css on every page (_build.py writes the link into
   the shared head). Nothing in here changes content; it adds depth,
   photography treatment, motion and the decorative type from the reference
   board (angled hero, script accents, ghost lettering, textured grounds).

   Same rule as the core: no colour values. Everything reads the brand
   tokens, so all fourteen sites re-theme for free. The new neutrals
   (--deep, --tex-line, --ghost) and the few per-school switches (--fx-*,
   which only Billingsley's pale gold needs) live in brand.css.

   Prefixes: .fx-* is a generic piece any page can use; .hx-* belongs to the
   split hero only.
   ========================================================================= */

:root {
    --fx-r:       12px;
    --fx-shadow:  0 1px 2px rgba(17,17,19,.06), 0 10px 26px -14px rgba(17,17,19,.28);
    --fx-shadow-up: 0 2px 4px rgba(17,17,19,.06), 0 24px 44px -18px rgba(17,17,19,.42);
}

/* ----------------------------------------------------------- textures
   Faint hairline grounds behind whole sections, faded out with a mask so
   they sit in one corner rather than tiling the page. They live on a
   pseudo-element because a mask on the section would fade its content too. */
.fx-tex { position: relative; isolation: isolate; background: var(--page-bg); }
.fx-tex::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: repeating-linear-gradient(-58deg, transparent 0 30px, var(--tex-line) 30px 31px);
}
.fx-tex-tr::before {
    -webkit-mask-image: radial-gradient(ellipse 60% 85% at 100% 0%, #000 0%, transparent 70%);
            mask-image: radial-gradient(ellipse 60% 85% at 100% 0%, #000 0%, transparent 70%);
}
.fx-tex-bl::before {
    -webkit-mask-image: radial-gradient(ellipse 55% 90% at 0% 100%, #000 0%, transparent 70%);
            mask-image: radial-gradient(ellipse 55% 90% at 0% 100%, #000 0%, transparent 70%);
}
/* departments sit between two grey bands; white keeps the rhythm */
.fx-depts { background: var(--surface); }

/* ------------------------------------------------------------ buttons */
.fx-btn {
    display: inline-flex; align-items: center; gap: 12px;
    min-height: 48px; padding: 0 26px;
    background: var(--brand); color: var(--on-brand);
    font-family: var(--font-head); font-size: 1rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: .07em; text-decoration: none;
    border-radius: 4px;
    box-shadow: 0 12px 24px -12px rgba(var(--brand-rgb), .75);
    transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.fx-btn i { transition: transform .2s var(--ease); }
.fx-btn:hover, .fx-btn:focus-visible {
    background: var(--brand-dk); transform: translateY(-2px);
    box-shadow: 0 16px 28px -12px rgba(var(--brand-rgb), .85);
}
.fx-btn:hover i, .fx-btn:focus-visible i { transform: translateX(4px); }

/* ------------------------------------------------------------- header
   The strip gets a shadow so the hero reads as sitting under it, and each
   tile a marker that draws in on hover.

   NO SHEEN. This carried linear-gradient(180deg, rgba(255,255,255,.22),
   rgba(0,0,0,.05)) over --strip-bg, which lifted the top of the strip to
   #316eae on Marbury's #004c9c while the hero button stayed flat brand.
   The district asked for "the blue in the quick links buttons to be the
   same blue as the Learn More button" - they were already the same token,
   the wash was the whole difference. Keep the strip flat.

   The hover marker uses --strip-marker, not --strip-keyline: the keyline
   sits ABOVE the strip against the white masthead and may be dark, while
   this sits ON the strip and must stay light. See css/brand.css. */
.iconnav {
    position: relative; z-index: 3;
    box-shadow: 0 10px 22px -14px rgba(17,17,19,.5);
}
.iconnav a { position: relative; }
.iconnav a::after {
    content: ""; position: absolute; left: 22%; right: 22%; bottom: 0; height: 3px;
    background: var(--strip-marker); border-radius: 3px 3px 0 0;
    transform: scaleX(0); transition: transform .26s var(--ease);
}
.iconnav a:hover::after, .iconnav a:focus-visible::after { transform: scaleX(1); }
.iconnav i { transition: transform .26s var(--ease); }
.iconnav a:hover i, .iconnav a:focus-visible i { transform: translateY(-3px); }

/* ==================================================== HERO - angled split
   The text column lines up with .u-wrap; the photo runs past it to the
   right edge of the window. Four columns do that without measuring the
   scrollbar: two gutters that never shrink below the page rail, and two
   halves of the max width between them. */
.hx {
    position: relative; isolation: isolate; overflow: hidden;
    display: grid;
    grid-template-columns:
        minmax(var(--rail), 1fr)
        minmax(0, calc(var(--maxw) / 2))
        minmax(0, calc(var(--maxw) / 2))
        minmax(var(--rail), 1fr);
    background: var(--surface);
}
/* contour rings behind the text, from her board - two centres so they
   cross rather than read as a target */
.hx::before {
    content: ""; position: absolute; inset: 0 50% 0 0; z-index: -1; pointer-events: none;
    background:
        repeating-radial-gradient(circle at 8% 112%, transparent 0 34px, var(--tex-line) 34px 35px),
        repeating-radial-gradient(circle at 62% -20%, transparent 0 46px, var(--tex-line) 46px 47px);
    -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent 100%);
            mask-image: linear-gradient(90deg, #000 30%, transparent 100%);
}
.hx .hero-txt { grid-column: 2; padding: var(--s6) var(--s5) var(--s6) 0; }
.hx .hero-eyebrow { display: flex; align-items: center; gap: 12px; }
.hx .hero-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--brand); }
.hx h1 { letter-spacing: -.01em; }
.hx-act { margin-top: var(--s4); }
.hx-act-c { text-align: center; }

.hx-media { grid-column: 3 / 5; position: relative; min-height: 100%; isolation: isolate; }
/* red slash along the cut edge: the same slant as the photo, 1% further
   left, showing only in the sliver between the two */
.hx-media::before {
    content: ""; position: absolute; inset: 0; z-index: 1; background: var(--brand);
    -webkit-clip-path: polygon(14.6% 0, 100% 0, 100% 100%, -1.6% 100%);
            clip-path: polygon(14.6% 0, 100% 0, 100% 100%, -1.6% 100%);
}
.hx-photo {
    position: absolute; inset: 0; z-index: 2; overflow: hidden;
    -webkit-clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
            clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
}
.hx-photo img { object-position: 38% 50%; animation: hxDrift 16s var(--ease) both; }
@keyframes hxDrift { from { transform: scale(1.09); } to { transform: scale(1); } }

/* two translucent red bands on the right, multiplied into the photo so the
   sky goes brand-red and the brick goes deeper rather than pink */
.hx-band { position: absolute; top: 0; bottom: 0; right: 0; z-index: 3; mix-blend-mode: multiply; pointer-events: none; }
.hx-band-a {
    width: 46%; background: rgba(var(--brand-rgb), .5);
    -webkit-clip-path: polygon(52% 0, 100% 0, 100% 100%, 0 100%);
            clip-path: polygon(52% 0, 100% 0, 100% 100%, 0 100%);
}
.hx-band-b {
    width: 30%; background: rgba(var(--fx-band-b-rgb), .8);
    -webkit-clip-path: polygon(62% 0, 100% 0, 100% 100%, 8% 100%);
            clip-path: polygon(62% 0, 100% 0, 100% 100%, 8% 100%);
}
.hx-tag {
    position: absolute; z-index: 4; right: max(var(--rail), 4%); bottom: 11%;
    margin: 0; text-align: right; max-width: 66%;
    font-family: var(--font-script); font-size: clamp(1.7rem, 2.7vw, 2.7rem); line-height: 1.12;
    color: #ffffff; transform: rotate(-9deg); transform-origin: 100% 100%;
    text-shadow: 0 2px 14px rgba(0,0,0,.35);
}

/* school hero: the three bell times become small cards, each with an icon,
   so the one piece of hard information on the page reads at a glance */
.hx .bells { gap: 12px; margin-top: var(--s4); }
.hx .bell {
    flex: 1 1 140px; flex-direction: column; align-items: flex-start; gap: 2px;
    padding: 12px 16px 13px 14px; background: var(--surface);
    border-left: 4px solid var(--brand); border-radius: 8px; box-shadow: var(--fx-shadow);
}
.hx .bell i { color: var(--brand-ink); font-size: 15px; margin-bottom: 5px; }
.hx .bell .l { max-width: none; }

@media (max-width: 1000px) {
    .hx { grid-template-columns: var(--rail) minmax(0, 1fr) var(--rail); }
    .hx::before { inset: 0; }
    .hx .hero-txt { grid-column: 2; padding: var(--s5) 0; }
    .hx-media { grid-column: 1 / -1; min-height: clamp(280px, 58vw, 440px); }
    /* stacked, the cut runs along the top edge instead of the left */
    .hx-media::before {
        -webkit-clip-path: polygon(0 9%, 100% 0, 100% 100%, 0 100%);
                clip-path: polygon(0 9%, 100% 0, 100% 100%, 0 100%);
    }
    .hx-photo {
        -webkit-clip-path: polygon(0 12%, 100% 3%, 100% 100%, 0 100%);
                clip-path: polygon(0 12%, 100% 3%, 100% 100%, 0 100%);
    }
}

/* ============================================================ LIVE FEED */
.feed-rail .sec-head { align-items: center; }
.fx-railnav { margin-left: auto; display: flex; gap: 10px; }
.fx-railnav .rail-btn {
    position: static; width: 42px; height: 42px;
    background: var(--surface); color: var(--brand-ink);
    border: 2px solid var(--brand); box-shadow: none;
    transition: background .18s, color .18s, opacity .18s;
}
.fx-railnav .rail-btn:hover:not([disabled]), .fx-railnav .rail-btn:focus-visible {
    background: var(--brand); color: var(--on-brand);
}
.fx-railnav .rail-btn[disabled] { opacity: .3; }
.feed-track { padding: 6px 4px 22px; margin: -6px -4px -22px; scroll-padding-left: 4px; }

.fx-card {
    background: var(--surface); border-radius: var(--fx-r);
    box-shadow: var(--fx-shadow);
}
.fx-card:hover, .fx-card:focus-within { transform: translateY(-6px); box-shadow: var(--fx-shadow-up); }
.fx-card .card-img { overflow: hidden; }
.fx-card .card-img > img { aspect-ratio: 16 / 10; transition: transform .6s var(--ease); }
.fx-card:hover .card-img > img { transform: scale(1.06); }
.fx-pos-merit { object-position: 50% 62%; }
.fx-badge {
    position: absolute; top: 14px; left: 14px; z-index: 1;
    padding: 5px 10px; border-radius: 3px;
    background: var(--brand); color: var(--on-brand);
    font-family: var(--font-head); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
    box-shadow: 0 6px 14px -6px rgba(0,0,0,.45);
}
.fx-body { padding: var(--s3) var(--s3) var(--s3); flex: 1 1 auto; }
.fx-title {
    font-size: clamp(1.2rem, 1.5vw, 1.4rem); line-height: 1.15; color: var(--ink);
    margin: 0 0 10px; letter-spacing: -.005em;
}
/* The headline is the card's one link; this stretches its hit area over
   the whole card, so there is a single tab stop per post rather than three. */
.fx-title a { color: inherit; text-decoration: none; }
.fx-title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.fx-card:has(.fx-title a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.fx-title a:focus-visible { outline: none; }
/* The stretched hit area is the whole card, but on a phone the headline box
   itself is also padded to 44px; the negative margin keeps the layout put. */
@media (max-width: 720px) { .fx-title a { display: block; padding: 8px 0; margin: -8px 0; } }
.fx-body p {
    font-size: var(--t-small); line-height: 1.6; color: var(--muted); margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.fx-card .card-foot { padding: 12px var(--s3); }
.fx-go {
    margin-left: auto; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center; font-size: 14px;
    border: 2px solid currentColor;
    transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.fx-card:hover .fx-go { background: var(--on-brand); color: var(--brand); transform: translateX(3px); }

/* ------------------------------------------- live feed: follow along
   A building with no posts of its own shows where it does post: one white
   card with its social pages (ucHomepage FollowBand). */
.fx-follow {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: var(--s3) var(--s5); padding: var(--s4) var(--s5);
    background: var(--surface); border-radius: var(--fx-r); box-shadow: var(--fx-shadow);
}
.fx-follow-txt { flex: 1 1 360px; }
.fx-follow-txt h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.1; margin: 0 0 var(--s1); color: var(--ink); }
.fx-follow-txt p { color: var(--muted); margin: 0; max-width: 52ch; }
.fx-follow-links { display: flex; flex-wrap: wrap; gap: var(--s2); }
.fx-follow-btn {
    display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
    border-radius: 999px; background: var(--brand); color: var(--on-brand);
    font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; text-decoration: none;
    transition: background .2s var(--ease), transform .2s var(--ease);
}
.fx-follow-btn i { font-size: 1.15rem; }
.fx-follow-btn:hover, .fx-follow-btn:focus-visible { background: var(--brand-dk); transform: translateY(-2px); }
@media (max-width: 720px) { .fx-follow { padding: var(--s3); } }

/* ======================================================= CTA - Why Not Us
   The photo fills the left and fades into near-black on the right, where
   the motto sits as ghost type. Core greys the photo out; here it keeps
   its colour, because the dark ground already carries the contrast. */
.fx-cta { min-height: clamp(300px, 28vw, 400px); background: var(--deep); isolation: isolate; }
.fx-cta > img {
    width: 66%; filter: saturate(.9) contrast(1.05);
    object-position: 50% 30%;
    -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent 100%);
            mask-image: linear-gradient(90deg, #000 30%, transparent 100%);
}
.fx-cta::after {
    background: linear-gradient(90deg,
        rgba(var(--deep-rgb), .25) 0%,
        rgba(var(--deep-rgb), .62) 34%,
        rgba(var(--deep-rgb), .9) 58%,
        var(--deep) 75%);
}
.fx-ghost {
    position: absolute; z-index: 1; right: var(--rail); top: 50%; transform: translateY(-50%);
    margin: 0; text-align: left; pointer-events: none;
    font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
    font-size: clamp(3rem, 6.4vw, 6rem); line-height: .9; letter-spacing: -.02em;
    color: rgba(255,255,255,.06);
}
.fx-cta .cta-in { padding: var(--s5) var(--rail); }
.fx-cta h2 { letter-spacing: .01em; text-shadow: 0 4px 24px rgba(0,0,0,.4); }
.fx-cta .rule { width: 64px; height: 4px; background: var(--brand); border-radius: 2px; margin: var(--s2) auto; }
.fx-cta .btn {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 13px 30px; border-radius: 4px; font-weight: 600;
    font-size: 1rem; box-shadow: 0 14px 30px -14px rgba(0,0,0,.7);
}
.fx-cta .btn i { transition: transform .2s var(--ease); }
.fx-cta .btn:hover i { transform: translateX(4px); }
@media (max-width: 900px) {
    .fx-ghost { display: none; }
    .fx-cta > img { width: 100%; -webkit-mask-image: none; mask-image: none; }
    .fx-cta::after { background: linear-gradient(180deg, rgba(var(--deep-rgb), .55), rgba(var(--deep-rgb), .88)); }
}

/* =========================================================== DEPARTMENTS */
.fx-depts .u-wrap { position: relative; }
.fx-script {
    font-family: var(--font-script); color: var(--ghost); margin: 0;
    line-height: 1.02; pointer-events: none;
}
.fx-script::after {
    content: ""; display: block; width: 92px; height: 3px; margin: 10px 0 0 auto;
    background: var(--brand); border-radius: 3px;
}
.fx-script-depts {
    position: absolute; right: 0; top: -14px; text-align: right;
    font-size: clamp(2rem, 3.2vw, 3rem); transform: rotate(-7deg);
}
@media (max-width: 1150px) { .fx-script-depts { display: none; } }

.dept-grid { gap: var(--s3); }
.dept {
    border-radius: var(--fx-r); box-shadow: var(--fx-shadow);
    transition: transform .26s var(--ease), box-shadow .26s var(--ease);
}
.dept::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.28) 100%);
}
.dept:hover, .dept:focus-visible { transform: translateY(-5px); box-shadow: var(--fx-shadow-up); }
.dept img { aspect-ratio: 16 / 9.5; transition: transform .6s var(--ease); }
.dept:hover img, .dept:focus-visible img { transform: scale(1.07); }
.dept-lbl {
    z-index: 1; padding: 13px var(--s3); font-size: 1.12rem; letter-spacing: .01em;
    transition: background .2s var(--ease);
}
.dept-lbl i { font-size: 1.25rem; }
.dept:hover .dept-lbl, .dept:focus-visible .dept-lbl { background: var(--brand-dk); }

/* ========================================================== BY THE NUMBERS
   The photo is multiplied with the brand colour, then washed with it again
   from the left. Multiply can only darken, so wherever the photo is light
   the band is exactly --brand and wherever it is dark the band is deeper:
   white type never sits on anything lighter than the plain brand colour,
   which is the pairing already checked in brand.css. */
.fx-nums { isolation: isolate; padding: var(--s6) 0 calc(var(--s6) + 6px); }
.fx-nums img.bg { filter: grayscale(1) contrast(1.15) brightness(1.08); }
.fx-nums::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: var(--brand); mix-blend-mode: var(--fx-nums-blend); opacity: var(--fx-nums-veil);
}
.fx-nums::after {
    z-index: 1;
    background: linear-gradient(90deg,
        rgba(var(--brand-rgb), .38) 0%,
        rgba(var(--brand-rgb), .74) 42%,
        rgba(var(--brand-rgb), .9) 100%);
}
.fx-wm {
    position: absolute; z-index: 2; right: 0; top: 50%; transform: translateY(-50%);
    font-family: var(--font-head); font-weight: 700; line-height: .78; letter-spacing: -.03em;
    font-size: clamp(9rem, 20vw, 19rem); color: var(--fx-wm-ink);
    pointer-events: none; user-select: none;
}
.fx-nums .nums-in { z-index: 3; }
.fx-nums h2 { margin-bottom: var(--s5); }
.fx-nums h2::after {
    content: ""; display: block; width: 56px; height: 3px; margin: 14px auto 0;
    background: var(--on-nums); border-radius: 3px; opacity: .85;
}
.fx-nums .num i {
    font-size: 30px; width: 68px; height: 68px; margin: 0 auto var(--s2);
    display: grid; place-items: center; border-radius: 50%;
    background: var(--fx-on-nums-soft); box-shadow: inset 0 0 0 1px var(--fx-on-nums-line);
    opacity: 1;
}
.fx-nums .num .v { font-size: clamp(2.2rem, 4vw, 3.4rem); text-shadow: 0 3px 18px rgba(0,0,0,.18); }
.fx-nums .num .k { text-transform: uppercase; letter-spacing: .12em; font-size: var(--t-micro); font-weight: 600; }
@media (min-width: 781px) {
    .fx-nums .num + .num { border-left: 1px solid var(--fx-on-nums-line); }
}

/* ================================================================ EVENTS */
.fx-events .motto { color: var(--ghost); }
.ev {
    position: relative; overflow: hidden;
    background: var(--surface); border-radius: var(--fx-r);
    box-shadow: var(--fx-shadow);
    padding: var(--s3) var(--s3) var(--s3);
}
.ev::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
    background: var(--brand); transform: scaleX(0); transform-origin: 0 50%;
    transition: transform .3s var(--ease);
}
.ev:hover, .ev:focus-visible { transform: translateY(-4px); box-shadow: var(--fx-shadow-up); }
.ev:hover::before, .ev:focus-visible::before { transform: scaleX(1); }
.ev .d { display: flex; align-items: center; gap: 9px; font-size: 1.25rem; line-height: 1.1; }
.ev .d i { font-size: .9rem; }
.ev .t { font-size: .98rem; }

/* ================================================================ FOOTER */
.fx-foot { position: relative; overflow: hidden; }
.fx-foot .foot-grid { grid-template-columns: minmax(0,1.3fr) repeat(3, minmax(0,1fr)) minmax(0,1.15fr); }
.fx-foot-art { position: relative; display: grid; place-items: center; min-height: 190px; }
.fx-foot-art img {
    position: absolute; width: 190px; height: auto; top: 50%; left: 50%;
    transform: translate(-50%, -54%);
    filter: brightness(0) invert(1); opacity: .05;
}
.fx-foot-art p {
    position: relative; margin: 0; text-align: right;
    font-family: var(--font-script); font-size: clamp(1.6rem, 2.1vw, 2.2rem); line-height: 1.08;
    color: rgba(255,255,255,.62); transform: rotate(-8deg);
}
.fx-foot-art p::after {
    content: ""; display: block; width: 80px; height: 3px; margin: 10px 0 0 auto;
    background: var(--brand); border-radius: 3px;
}
.social a { transition: background .16s, border-color .16s, transform .16s; }
.social a:hover { transform: translateY(-2px); }
@media (max-width: 1100px) {
    .fx-foot .foot-grid { grid-template-columns: minmax(0,1.4fr) repeat(3, minmax(0,1fr)); }
    .fx-foot-art { display: none; }
}
@media (max-width: 880px) { .fx-foot .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .fx-foot .foot-grid { grid-template-columns: 1fr; } }

.fx-legal-links { display: inline-flex; flex-wrap: wrap; align-items: center; }
.fx-legal-links a { text-decoration: none; }
/* a short tick, not a border: the links are 40px tall for touch, and a
   full-height rule between them read as a table. Kept in flow (not
   absolutely placed) so it is part of the link, not a layer under its text. */
.fx-legal-links a + a::before {
    content: ""; flex: 0 0 auto; width: 1px; height: 14px; margin: 0 12px;
    background: currentColor; opacity: .45;
}
.fx-legal-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ======================================================= INTERIOR BANNER
   The page-title band on every interior page. The site's own hero photo
   runs down the right behind the same angled cut and brand bands as the
   homepage, so moving from a homepage to a content page feels continuous. */
.fx-ph {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; align-items: center; min-height: 236px;
    background: var(--surface); padding: var(--s5) 0;
    border-bottom: 1px solid var(--line);
}
.fx-ph::before {
    content: ""; position: absolute; inset: 0 40% 0 0; z-index: -1; pointer-events: none;
    background:
        repeating-radial-gradient(circle at 4% 130%, transparent 0 34px, var(--tex-line) 34px 35px),
        repeating-radial-gradient(circle at 70% -60%, transparent 0 46px, var(--tex-line) 46px 47px);
    -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 100%);
            mask-image: linear-gradient(90deg, #000 40%, transparent 100%);
}
.fx-ph-in { position: relative; z-index: 5; }
.fx-ph-in h1 { font-size: clamp(2rem, 3.8vw, 3.1rem); max-width: 52%; }
.fx-ph-in .crumbs { max-width: 52%; }
.fx-ph-media { position: absolute; top: 0; bottom: 0; right: 0; width: 46%; z-index: 1; isolation: isolate; }
.fx-ph-media::before {
    content: ""; position: absolute; inset: 0; z-index: 1; background: var(--brand);
    -webkit-clip-path: polygon(14.6% 0, 100% 0, 100% 100%, -1.6% 100%);
            clip-path: polygon(14.6% 0, 100% 0, 100% 100%, -1.6% 100%);
}
.fx-ph-media .hx-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
    /* stacked: the photo becomes a strip above the title, cut along its foot */
    .fx-ph { flex-direction: column; align-items: stretch; padding-top: 0; min-height: 0; }
    .fx-ph-media { position: relative; width: 100%; height: 150px; margin-bottom: var(--s4); }
    .fx-ph-media::before {
        -webkit-clip-path: polygon(0 0, 100% 0, 100% 88%, 0 104%);
                clip-path: polygon(0 0, 100% 0, 100% 88%, 0 104%);
    }
    .fx-ph-media .hx-photo {
        -webkit-clip-path: polygon(0 0, 100% 0, 100% 82%, 0 98%);
                clip-path: polygon(0 0, 100% 0, 100% 82%, 0 98%);
    }
    .fx-ph-in h1, .fx-ph-in .crumbs { max-width: none; }
    .fx-ph::before { inset: 0; }
}

/* section menu beside interior content: a card with a brand header */
.sidenav {
    background: var(--surface); border-radius: var(--fx-r); box-shadow: var(--fx-shadow);
    overflow: hidden; padding-bottom: var(--s2);
}
.sidenav-h {
    margin: 0 0 var(--s1); padding: var(--s2) var(--s3);
    background: var(--brand); color: var(--on-brand); border-bottom: 0;
}
.sidenav a { border-left-color: transparent; padding-left: var(--s3); }

/* Full menu. This was a quiet text link under the section list and the
   district raised it twice in one review - "we want the Full Menu link to be
   like the Contact button so it is more obvious, currently we feel like it
   could get easily overlooked", and again beside the section rail: "just
   making that Full Menu option more visible would make this perfect".
   So it is a filled button, the same object as .fx-btn, running the width of
   the rail. The core rule it overrides is in css/core.css. */
.sidenav-all {
    display: flex; justify-content: center; width: auto;
    margin: var(--s3) var(--s3) var(--s2);
    min-height: 48px; padding: 0 var(--s3);
    background: var(--brand); color: var(--on-brand);
    border-radius: 4px; letter-spacing: .07em;
    box-shadow: 0 12px 24px -14px rgba(var(--brand-rgb), .75);
    transition: background .2s var(--ease), transform .2s var(--ease);
}
.sidenav-all:hover, .sidenav-all:focus-visible {
    background: var(--brand-dk); transform: translateY(-2px);
    text-decoration: none;
}

/* content pages: the text sits on a white sheet over the paper ground */
.prose {
    background: var(--surface); border-radius: var(--fx-r); box-shadow: var(--fx-shadow);
    padding: var(--s4) var(--s5) var(--s5);
}
.prose > p:first-child { font-size: 1.08em; }
/* The heading bar is drawn in the flow, not absolutely placed: a positioned
   pseudo-element reads as the text's background to the contrast audit, and as
   a red ground under dark type that would be wrong. */
.prose h2::before {
    content: ""; display: inline-block; width: 4px; height: .82em; margin-right: 12px;
    vertical-align: -.04em; background: var(--brand); border-radius: 2px;
}
/* Bullets are the list's own marker in the brand colour. A dot drawn ahead of
   the text sat on top of every number of an <ol>, and pushed the text of any
   item whose words sit in their own block (<li><div>..</div></li>, as most
   imported pages have it) down onto a line of its own. */
.prose ul { padding-left: 22px; }
.prose ul > li::marker { color: var(--brand); }
/* Pictures in the page's text keep their own shape: a flyer, a banner, a logo
   or a staff photo cropped to 16:9 loses what it says. */
.prose img { max-width: 100%; height: auto; }
/* Old-site content brings fixed widths (a 536pt table, a 960px slide embed, a
   row of photos): nothing in a page's text may be wider than its column, or a
   phone gets the whole page in sideways scrolling. */
.prose table, .prose iframe, .prose video, .prose embed, .prose object,
.dualwindow_right img, .dualwindow_right table, .dualwindow_right iframe, .dualwindow_right video { max-width: 100%; }
.dualwindow_right img { height: auto; }
/* ...and a long unbroken run (a URL typed out, a "____" divider) wraps instead
   of stretching the column. */
.prose, .dualwindow_right { overflow-wrap: anywhere; }

/* Quick Links on a tablet or phone are two to a row: an odd last tile spans the
   row instead of sitting beside an empty half (a building with 5 or 7 links). */
@media (max-width: 1100px) {
    .iconnav li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.prose a { color: var(--brand-ink); text-underline-offset: 3px; }
@media (max-width: 720px) { .prose { padding: var(--s3) var(--s3) var(--s4); } }

/* ---------------------------------------------------- three columns
   Section rail | article | "At a glance". The article keeps its reading
   width; the third column uses the space that used to sit empty to its
   right on a wide screen. */
.page-cols.fx-3col {
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr) minmax(0, 300px);
    gap: var(--s4);
}
.fx-3col .prose { max-width: none; }
.fx-aside { display: grid; gap: var(--s3); align-content: start; position: sticky; top: var(--s3); }
.fx-aside-card {
    background: var(--surface); border-radius: var(--fx-r); box-shadow: var(--fx-shadow);
    border-top: 4px solid var(--brand); padding: var(--s3);
}
.fx-aside-h {
    font-size: 1.12rem; text-transform: uppercase; letter-spacing: .02em;
    color: var(--brand-ink); margin: 0 0 var(--s2);
}
.fx-facts { list-style: none; margin: 0 0 var(--s2); padding: 0; display: grid; gap: 10px; font-size: var(--t-small); line-height: 1.5; }
.fx-facts li { display: flex; gap: 12px; align-items: flex-start; }
.fx-facts i { color: var(--brand-ink); width: 16px; flex: 0 0 16px; margin-top: 4px; text-align: center; }
.fx-bells-mini {
    list-style: none; margin: 0 0 var(--s3); padding: 12px 14px; display: grid; gap: 6px;
    background: var(--chip-bg); border-radius: 8px; font-size: var(--t-small);
}
.fx-bells-mini li { display: flex; justify-content: space-between; gap: var(--s2); }
.fx-bells-mini b { font-family: var(--font-head); font-weight: 600; color: var(--brand-ink); white-space: nowrap; }
.fx-btn-sm { width: 100%; justify-content: center; min-height: 44px; padding: 0 18px; font-size: .9rem; }
.fx-upcoming { list-style: none; margin: 0 0 var(--s2); padding: 0; display: grid; gap: 12px; }
.fx-upcoming li { display: flex; gap: 12px; align-items: center; }
.fx-chip {
    flex: 0 0 48px; height: 52px; border-radius: 8px;
    background: var(--brand); color: var(--on-brand);
    display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
}
.fx-chip span { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.fx-chip b { font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; margin-top: 3px; }
.fx-up-t { font-size: var(--t-small); font-weight: 600; line-height: 1.3; }
.fx-up-t small {
    display: block; margin-top: 3px; font-size: var(--t-micro); font-weight: 400;
    color: var(--muted); text-transform: uppercase; letter-spacing: .03em;
}
.fx-aside-more {
    display: inline-flex; align-items: center; gap: 8px; 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;
}
.fx-aside-more i { transition: transform .2s var(--ease); }
.fx-aside-more:hover i, .fx-aside-more:focus-visible i { transform: translateX(4px); }
.fx-aside-more:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1150px) {
    /* the panel moves under the article, its two cards side by side */
    .page-cols.fx-3col { grid-template-columns: minmax(0, 230px) minmax(0, 1fr); }
    .fx-3col .fx-aside {
        grid-column: 2; position: static;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}
@media (max-width: 900px) {
    .page-cols.fx-3col { grid-template-columns: minmax(0, 1fr); }
    .fx-3col .fx-aside { grid-column: auto; }
}

/* News archive thumbnails pick up the card treatment.

   align-self matters: the thumb is a grid item beside the headline and
   excerpt, so by default it STRETCHED to the height of that text column while
   its 4:3 image stayed 135px. Every card carried a 39px band of empty white
   under its photograph, which reads as a half-loaded page. */
.archive-thumb {
    align-self: start;
    overflow: hidden; border-radius: 8px; box-shadow: var(--fx-shadow);
}
.archive-thumb img { border-radius: 0; transition: transform .6s var(--ease); }
.newscomponent_item:hover .archive-thumb img { transform: scale(1.05); }

/* ====================================================== CONCEPT HOME
   Presenter's link back to the cover page (index.html), top left of every
   page. Not part of the district's design - delete it with the cover. */
.utilbar .u-wrap { display: flex; align-items: center; gap: var(--s2); }
.util { margin-left: auto; }
.fx-concept {
    display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
    padding: 5px 13px 5px 11px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.26); background: rgba(255,255,255,.08);
    color: var(--topbar-ink); text-decoration: none;
    font-family: var(--font-head); font-size: .78rem; line-height: 1.4;
    letter-spacing: .08em; text-transform: uppercase;
    transition: background .16s, border-color .16s;
}
.fx-concept i { font-size: 12px; transition: transform .18s var(--ease); }
.fx-concept:hover, .fx-concept:focus-visible { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.5); }
.fx-concept:hover i, .fx-concept:focus-visible i { transform: translateX(-3px); }
/* the splash page has no utility bar, so the pill sits on the page ground.
   There it is the only control on the screen, so on a phone it needs to clear
   44px like anything else you tap - inside the utility bar it already does,
   because the bar gives it height. */
.fx-concept-row { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 14px var(--rail) 0; }
@media (max-width: 480px) {
    .fx-concept-row .fx-concept { min-height: 44px; padding-left: 15px; padding-right: 17px; }
}
.fx-concept-row .fx-concept {
    color: var(--ink); background: var(--surface); border-color: var(--line);
    box-shadow: 0 4px 12px -6px rgba(17,17,19,.3);
}
.fx-concept-row .fx-concept:hover, .fx-concept-row .fx-concept:focus-visible { border-color: var(--brand); background: var(--surface); }
@media (max-width: 560px) {
    /* Her five controls already fill a phone's width, so the link cannot
       share their row without wrapping them. It becomes a slim strip of its
       own above the bar instead, darker, so it reads as the presenter's and
       not the district's. */
    .utilbar .u-wrap { flex-wrap: wrap; gap: 0; }
    .utilbar .fx-concept {
        flex: 0 0 calc(100% + var(--rail) * 2); margin: 0 calc(var(--rail) * -1);
        min-height: 34px; padding: 0 var(--rail); border: 0; border-radius: 0;
        background: var(--deep); font-size: .72rem;
    }
    .utilbar .fx-concept:hover, .utilbar .fx-concept:focus-visible { background: var(--deep); text-decoration: underline; }
    .util { flex: 1 1 100%; }
}
/* Below 400px her five controls wrapped to a second row (they did before
   this layer too). Tighter spacing keeps them on one row down to 360px;
   the tap targets keep their 44px height. */
@media (max-width: 400px) {
    .util { gap: 0; }
    .util button, .util a { gap: 5px; padding-inline: 3px; }
    .util i { font-size: 14px; }
}
@media (max-width: 370px) { .util { font-size: .8rem; } }

/* ============================================================ MENUS
   The overlay's eight groups and the interior section rail are <details>
   (see js/enhance.js). Above the phone breakpoint they are always open
   and the summary is just a heading; below it they become an accordion. */
.mega-col > summary, .sidenav-d > summary { list-style: none; }
.mega-col > summary::-webkit-details-marker,
.sidenav-d > summary::-webkit-details-marker { display: none; }
.mega-col > summary i, .sidenav-d > summary i { display: none; }
.mega-col > summary { cursor: default; }
.mega-col > summary:focus-visible { outline-offset: 4px; }
/* The overlay is painted --brand, so its label and rules follow --on-brand
   rather than assuming white: on Billingsley's gold the white versions all
   but disappeared. */
.mega-eyebrow { color: inherit; opacity: .74; }
[data-brand="district"] .mega-eyebrow { color: inherit; }
.mega-who { border-bottom-color: var(--fx-on-brand-line); }
.mega-col h2 { border-bottom-color: var(--fx-on-brand-line); }

@media (max-width: 560px) {
    .mega { padding: var(--s5) 0 var(--s6); }
    .mega-close { top: 14px; width: 48px; height: 48px; font-size: 20px; }
    .mega-head { margin-bottom: var(--s3); padding-right: 60px; }
    .mega-who { font-size: 1.55rem; padding-bottom: var(--s2); }
    .mega-grid { gap: 0; }
    .mega-col { border-bottom: 1px solid var(--fx-on-brand-line); }
    .mega-col > summary {
        display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
        min-height: 56px; cursor: pointer;
    }
    .mega-col > summary i { display: block; font-size: 14px; transition: transform .22s var(--ease); }
    .mega-col[open] > summary i { transform: rotate(180deg); }
    .mega-col h2 { border-bottom: 0; padding: 0; margin: 0; font-size: 1.08rem; letter-spacing: .02em; }
    .mega-col ul { margin: 0 0 var(--s2); }
    .mega-col li { margin: 0; }
    .mega-col a {
        display: flex; align-items: center; min-height: 44px;
        padding: 8px 0 8px 14px; font-size: 1rem; opacity: 1;
        border-left: 2px solid var(--fx-on-brand-line);
    }
}

.sidenav-d > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
@media (max-width: 900px) {
    .sidenav { padding-bottom: 0; }
    .sidenav-d > summary { cursor: pointer; min-height: 52px; margin: 0; }
    .sidenav-d > summary i { display: block; font-size: 13px; transition: transform .22s var(--ease); }
    .sidenav-d[open] { padding-bottom: var(--s2); }
    .sidenav-d[open] > summary { margin-bottom: var(--s1); }
    .sidenav-d[open] > summary i { transform: rotate(180deg); }
}

/* ================================================================ MOTION
   Sections rise in as they arrive. js/enhance.js adds .fx-rv to <html>
   only when IntersectionObserver exists and motion is allowed, so without
   it - or with reduced motion - everything is simply there. --i staggers
   siblings in a row. */
.fx-rv [data-reveal] {
    opacity: 0; transform: translateY(22px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms);
}
.fx-rv [data-reveal].is-in { opacity: 1; transform: none; }
/* cards also lift on hover; once revealed, hand transform timing back */
.fx-rv .fx-card.is-in, .fx-rv .dept.is-in, .fx-rv .ev.is-in {
    transition: opacity .7s var(--ease), transform .26s var(--ease), box-shadow .26s var(--ease);
    transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
    .hx-photo img { animation: none; }
    .fx-card:hover .card-img > img, .dept:hover img { transform: none; }
}

/* ===================================================== STAFF INTRANET LOGIN
   intranet.html. The district asked for the top-bar Staff link to lead to a
   password-protected page; this is ESV's protected/IntranetLogin.aspx wearing
   the district's chrome. The card is narrow on purpose - it is a sign-in, not
   a page - and the aside beside it says what is behind the login so a parent
   who lands here knows immediately that it is not for them. */
.intranet-wrap {
    display: grid; gap: var(--s4);
    grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
    align-items: start;
}
.intranet-card {
    background: var(--surface); border-radius: var(--fx-r); box-shadow: var(--fx-shadow);
    border-top: 4px solid var(--brand);
    padding: var(--s5); max-width: 520px;
}
.intranet-h {
    display: flex; align-items: center; gap: 12px;
    font-size: 1.3rem; text-transform: uppercase; letter-spacing: .02em;
    color: var(--brand-ink); margin: 0 0 var(--s2);
}
.intranet-h i { font-size: 1rem; }
.intranet-note { font-size: var(--t-small); color: var(--muted); margin: 0 0 var(--s4); }
.intranet-form { display: grid; gap: var(--s3); }
.intranet-field { display: grid; gap: 6px; }
.intranet-field > span {
    font-family: var(--font-head); font-size: var(--t-small);
    text-transform: uppercase; letter-spacing: .04em; color: var(--ink);
}
.intranet-field .txtBox { min-height: 44px; font-size: 1rem; }
.intranet-form .fx-btn { justify-content: center; margin-top: var(--s1); }
.intranet-help {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    margin: 0; font-size: var(--t-small);
}
.intranet-help a { display: inline-flex; align-items: center; min-height: 44px; }
.intranet-help span { color: var(--muted); }
.intranet-aside { position: sticky; top: var(--s3); }

@media (max-width: 900px) {
    .intranet-wrap { grid-template-columns: minmax(0, 1fr); }
    .intranet-card { max-width: none; padding: var(--s4); }
    .intranet-aside { position: static; }
}

/* ================================================= LONG MOTTOS
   Billingsley's motto arrived on 15 October 2026 at 74 characters - "We are
   BEARS - We Believe, We Engage, We Achieve, We Rise, and We Succeed!" - where
   the next longest in the set is 39. The three places that set a motto in
   display or script type are sized for the short ones, so this one wrapped off
   the bottom of the hero photograph and ran out of the events band entirely.

   _build.py adds .is-long wherever the motto passes 44 characters, so the
   treatment follows the copy instead of being guessed per school. Nothing is
   truncated: the whole motto is set, smaller and tighter. */
.hx-tag.is-long {
    font-size: clamp(1.1rem, 1.7vw, 1.7rem);
    line-height: 1.2; max-width: 78%; bottom: 8%;
}
.motto.is-long {
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
    line-height: 1.06; letter-spacing: -.01em;
}
.fx-foot-art.is-long p { font-size: clamp(1.05rem, 1.35vw, 1.35rem); line-height: 1.14; }

@media (max-width: 760px) {
    /* The hero script is decorative and the photo is short here; a 74-character
       motto at this width covers the picture rather than signing it. */
    .hx-tag.is-long { display: none; }
}
