@charset "UTF-8";
/* ==========================================================================
   St. Joseph College — stylesheet
   Tilottama, Rupandehi, Lumbini Province, Nepal

   Every colour, radius and space step is a custom property in :root, so the
   whole site can be re-skinned from the block below without touching a rule.

   Contents
     01  Tokens
     02  Dark mode
     03  Reset & base
     04  Typography
     05  Layout
     06  Buttons
     07  Utility bar & header
     08  Mobile drawer
     09  Hero (home + inner)
     10  Breadcrumb
     11  Cards & grids
     12  Stats strip
     13  Sections: principal, mosaic, CTA band
     14  Notices & filters
     15  Tables
     16  Forms
     17  Gallery & lightbox
     18  Footer
     19  Motion
     20  Print
   ========================================================================== */

/* 01 ── Tokens ───────────────────────────────────────────────────────────── */
:root {
  /* Brand. Deep indigo carries the academic weight; gold is the single accent. */
  --navy-900: #0d1b3e;
  --navy-800: #142450;
  --navy-700: #1b2f63;
  --navy-600: #26407f;
  --navy-500: #35539b;
  --navy-300: #8fa2cc;
  --navy-100: #dde4f2;
  --navy-50:  #eef2f9;

  --gold-600: #a9761a;
  --gold-500: #c8901f;
  --gold-400: #dfa62c;
  --gold-300: #eec25f;
  --gold-100: #f8e9c4;

  --slate-900: #16202e;
  --slate-700: #33445c;
  --slate-500: #5b6b83;
  --slate-300: #a8b4c6;
  --slate-200: #cfd7e3;
  --slate-100: #e6ebf2;
  --paper:     #f7f8fb;
  --white:     #ffffff;

  --ok:   #1c7a4d;
  --warn: #9a6212;
  --err:  #b3261e;

  /* Semantic — components reference these, never the ramps above. */
  --bg:            var(--paper);
  --bg-raised:     var(--white);
  --bg-sunken:     var(--navy-50);
  --bg-inverse:    var(--navy-900);
  --text:          var(--slate-900);
  --text-muted:    var(--slate-500);
  --text-inverse:  #f2f5fa;
  --brand:         var(--navy-700);
  --brand-strong:  var(--navy-900);
  --accent:        var(--gold-500);
  --accent-strong: var(--gold-600);
  --accent-soft:   var(--gold-100);
  --line:          var(--slate-200);
  --line-soft:     var(--slate-100);

  /* Type */
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans:  "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* 8px spacing scale */
  --s1: .5rem;  --s2: 1rem;   --s3: 1.5rem; --s4: 2rem;
  --s5: 2.5rem; --s6: 3rem;   --s7: 4rem;   --s8: 5rem;  --s9: 6.5rem;

  --radius:    12px;
  --radius-sm: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgb(13 27 62 / .06), 0 1px 3px rgb(13 27 62 / .05);
  --shadow:    0 4px 12px rgb(13 27 62 / .07), 0 2px 4px rgb(13 27 62 / .05);
  --shadow-lg: 0 18px 40px rgb(13 27 62 / .13), 0 4px 12px rgb(13 27 62 / .07);

  --container: 1180px;
  --header-h: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* 02 ── Dark mode ────────────────────────────────────────────────────────── */
/* Two triggers: the OS preference, and the header toggle which stamps
   data-theme on <html>. The [data-theme="light"] guard lets the toggle win
   back to light on a dark-preferring OS. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:           #0b1220;
    --bg-raised:    #121b2d;
    --bg-sunken:    #0e1728;
    --bg-inverse:   #060b16;
    --text:         #e8edf6;
    --text-muted:   #9dabc2;
    --text-inverse: #f2f5fa;
    --brand:        #7f9bd8;
    --brand-strong: #a8bde8;
    --accent:       var(--gold-400);
    --accent-strong: var(--gold-300);
    --accent-soft:  #3a2f14;
    --line:         #24314a;
    --line-soft:    #1a2438;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .35);
    --shadow:    0 4px 14px rgb(0 0 0 / .4);
    --shadow-lg: 0 18px 44px rgb(0 0 0 / .5);
  }
}

:root[data-theme="dark"] {
  --bg:           #0b1220;
  --bg-raised:    #121b2d;
  --bg-sunken:    #0e1728;
  --bg-inverse:   #060b16;
  --text:         #e8edf6;
  --text-muted:   #9dabc2;
  --text-inverse: #f2f5fa;
  --brand:        #7f9bd8;
  --brand-strong: #a8bde8;
  --accent:       var(--gold-400);
  --accent-strong: var(--gold-300);
  --accent-soft:  #3a2f14;
  --line:         #24314a;
  --line-soft:    #1a2438;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .35);
  --shadow:    0 4px 14px rgb(0 0 0 / .4);
  --shadow-lg: 0 18px 44px rgb(0 0 0 / .5);
}

/* 03 ── Reset & base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
/* A class that sets `display` (like .btn) would otherwise beat the browser's
   own [hidden] rule, and a hidden button would still show. */
[hidden] { display: none !important; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy-900); color: #fff;
  padding: .75rem 1.25rem; border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 04 ── Typography ───────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  text-wrap: balance;
  color: var(--text);
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p  { text-wrap: pretty; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: var(--s2);
}
.lede { font-size: 1.1rem; color: var(--text-muted); max-width: 62ch; }
.text-accent { color: var(--accent-strong); }

/* 05 ── Layout ───────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s3); }
.section { padding-block: var(--s8); }
.section--tight { padding-block: var(--s7); }
.section--sunken { background: var(--bg-sunken); }
.section--inverse { background: var(--bg-inverse); color: var(--text-inverse); }
.section--inverse h2, .section--inverse h3 { color: #fff; }
.section--inverse .lede { color: #c3cee4; }

.section-head { max-width: 62ch; margin-bottom: var(--s6); }
.section-head--center { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: var(--s3); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stack > * + * { margin-top: var(--s2); }

/* 06 ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  font-weight: 700; font-size: .95rem; text-decoration: none;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--accent); color: #21170a; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--gold-400); color: #21170a; }

.btn--ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / .55); }
.btn--ghost:hover { background: rgb(255 255 255 / .12); color: #fff; border-color: #fff; }

.btn--navy { background: var(--navy-700); color: #fff; }
.btn--navy:hover { background: var(--navy-600); color: #fff; }

.btn--outline { background: transparent; color: var(--brand); border-color: var(--line); }
.btn--outline:hover { background: var(--bg-sunken); border-color: var(--brand); }

.btn--lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* 07 ── Utility bar & header ─────────────────────────────────────────────── */
.utility-bar {
  background: var(--navy-900); color: #c9d4ea;
  font-size: .82rem; border-bottom: 1px solid rgb(255 255 255 / .08);
}
.utility-bar .container {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s3);
  min-height: 40px; padding-block: .35rem;
}
.utility-bar a { color: #dbe4f5; text-decoration: none; }
.utility-bar a:hover { color: var(--gold-300); text-decoration: underline; }
.utility-bar .u-item { display: inline-flex; align-items: center; gap: .4rem; }
.utility-bar svg { width: 14px; height: 14px; flex: none; }
.utility-bar .u-hours { margin-inline-start: auto; color: #a9b8d4; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg-raised) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; gap: var(--s2);
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--text); flex: none; }
.brand__mark { width: auto; height: 46px; flex: none; display: block; }
@media (max-width: 420px) { .brand__mark { height: 40px; } }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-serif); font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; }
.brand__sub { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }

.nav { margin-inline-start: auto; }
.nav__list { display: flex; align-items: center; gap: .15rem; list-style: none; padding: 0; margin: 0; }
.nav__link {
  display: block; padding: .55rem .8rem; border-radius: var(--radius-sm);
  font-size: .92rem; font-weight: 600; text-decoration: none; color: var(--text);
  transition: background-color .2s, color .2s;
}
.nav__link:hover { background: var(--bg-sunken); color: var(--brand); }
.nav__link[aria-current="page"] { color: var(--accent-strong); }
.nav__link[aria-current="page"]::after {
  content: ""; display: block; height: 2px; margin-top: 3px; border-radius: 2px; background: var(--accent);
}

.header-actions { display: flex; align-items: center; gap: .5rem; flex: none; }

.theme-toggle {
  display: grid; place-items: center; width: 40px; height: 40px;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius-pill);
  color: var(--text); transition: background-color .2s, border-color .2s;
}
.theme-toggle:hover { background: var(--bg-sunken); border-color: var(--brand); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

.nav-toggle {
  display: none; place-items: center; width: 42px; height: 42px;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text);
}
.nav-toggle svg { width: 20px; height: 20px; }

/* 08 ── Mobile drawer ────────────────────────────────────────────────────── */
@media (max-width: 899px) {
  .nav { display: none; }
  .nav-toggle { display: grid; }
  .header-cta { display: none; }

  .drawer {
    position: fixed; inset: 0; z-index: 200;
    background: rgb(6 11 22 / .55);
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .drawer[data-open="true"] { opacity: 1; visibility: visible; }
  .drawer__panel {
    position: absolute; inset-block: 0; inset-inline-end: 0;
    width: min(340px, 86vw); background: var(--bg-raised);
    padding: var(--s3); overflow-y: auto;
    transform: translateX(100%); transition: transform .28s var(--ease);
    display: flex; flex-direction: column; gap: var(--s2);
  }
  .drawer[data-open="true"] .drawer__panel { transform: none; }
  .drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s1); }
  .drawer__close { display: grid; place-items: center; width: 42px; height: 42px; background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); }
  .drawer__close svg { width: 20px; height: 20px; }
  .drawer__list { list-style: none; margin: 0; padding: 0; }
  .drawer__list a {
    display: block; padding: .95rem .25rem; border-bottom: 1px solid var(--line-soft);
    font-weight: 600; text-decoration: none; color: var(--text);
  }
  .drawer__list a[aria-current="page"] { color: var(--accent-strong); }
}
@media (min-width: 900px) { .drawer { display: none; } }

/* 09 ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 62vh;
  display: flex; align-items: center;
  padding-block: var(--s8) var(--s9);
  overflow: hidden;
  background: var(--navy-900);
  isolation: isolate;
}
@media (min-width: 900px) { .hero { min-height: 78vh; } }

/* Slides stack; JS crossfades between them. */
.hero__media { position: absolute; inset: 0; z-index: -3; }
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.4s ease-in-out;
}
.hero__slide[data-active="true"] { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }

/* Layered scrim: left-to-right navy wash, then a bottom vignette. Text stays
   AA-legible regardless of which photograph is swapped in. */
.hero__scrim {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(100deg, rgb(9 17 40 / .93) 0%, rgb(9 17 40 / .82) 38%, rgb(9 17 40 / .42) 70%, rgb(9 17 40 / .25) 100%),
    linear-gradient(to top, rgb(6 11 26 / .75) 0%, rgb(6 11 26 / 0) 45%);
}
/* Low-opacity paper grain for depth — pure CSS, no image request. */
.hero__texture {
  position: absolute; inset: 0; z-index: -1; opacity: .32; mix-blend-mode: overlay;
  background-image:
    repeating-linear-gradient(45deg, rgb(255 255 255 / .045) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(-45deg, rgb(255 255 255 / .03) 0 2px, transparent 2px 6px);
}

.hero__inner { position: relative; max-width: 660px; color: #fff; }
.hero .eyebrow { color: var(--gold-300); }
.hero h1 { color: #fff; margin-bottom: var(--s3); }
.hero h1 em { font-style: normal; color: var(--gold-300); }
.hero__lede { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: #d7e0f2; max-width: 52ch; margin-bottom: var(--s4); }

.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s4); }
@media (max-width: 479px) {
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
}

.hero__trust { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); }
.rating-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .22);
  padding: .4rem .8rem; border-radius: var(--radius-pill);
  font-size: .85rem; font-weight: 600; color: #fff;
}
.rating-badge .stars { color: var(--gold-300); letter-spacing: .05em; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .8rem; border-radius: var(--radius-pill);
  font-size: .82rem; font-weight: 600;
  background: rgb(255 255 255 / .09); border: 1px solid rgb(255 255 255 / .16); color: #e4ebf8;
}
.chip svg { width: 14px; height: 14px; color: var(--gold-300); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%);
  z-index: 2; display: grid; place-items: center; gap: .3rem;
  background: none; border: 0; color: #cdd8ee; font-size: .72rem;
  letter-spacing: .18em; text-transform: uppercase;
}
.scroll-cue svg { width: 20px; height: 20px; animation: nudge 2s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (max-width: 899px) { .scroll-cue { display: none; } }

/* Inner-page hero — same system, shorter. */
.hero--inner { min-height: 280px; padding-block: var(--s6); }
@media (min-width: 900px) { .hero--inner { min-height: 280px; } }
.hero--inner h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: var(--s1); }
.hero--inner .hero__lede { margin-bottom: 0; }

/* 10 ── Breadcrumb ───────────────────────────────────────────────────────── */
.breadcrumb { background: var(--bg-sunken); border-bottom: 1px solid var(--line); font-size: .86rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; list-style: none; margin: 0; padding: .8rem 0; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--text); font-weight: 600; }
.breadcrumb li + li::before { content: "/"; margin-inline-end: .45rem; color: var(--slate-300); }

/* 11 ── Cards ────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s3);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
  height: 100%; display: flex; flex-direction: column;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--navy-300); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--text-muted); }
.card__icon {
  display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-strong);
  margin-bottom: var(--s2);
}
.card__icon svg { width: 24px; height: 24px; }
.card__link { margin-top: auto; padding-top: var(--s2); font-weight: 700; font-size: .9rem; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.card__link svg { width: 15px; height: 15px; transition: transform .2s; }
.card--hover:hover .card__link svg { transform: translateX(3px); }
.card__media { margin: calc(var(--s3) * -1) calc(var(--s3) * -1) var(--s3); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 16 / 10; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }

.person-card { text-align: center; }
.person-card__photo { width: 108px; height: 108px; border-radius: 50%; overflow: hidden; margin: 0 auto var(--s2); border: 3px solid var(--accent-soft); }
.person-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.person-card__role { color: var(--accent-strong); font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.person-card--lead .person-card__photo { width: 148px; height: 148px; }
.person-card__photo picture { display: block; width: 100%; height: 100%; }

/* 12 ── Stats strip ──────────────────────────────────────────────────────── */
.stats-wrap { position: relative; }
@media (min-width: 900px) { .stats-wrap { margin-top: -40px; } }
.stats {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: repeat(2, 1fr);
  overflow: hidden; position: relative; z-index: 3;
}
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: var(--s3) var(--s2); text-align: center; border-bottom: 1px solid var(--line-soft); }
.stat:nth-child(odd) { border-inline-end: 1px solid var(--line-soft); }
@media (min-width: 760px) {
  .stat { border-bottom: 0; border-inline-end: 1px solid var(--line-soft); }
  .stat:last-child { border-inline-end: 0; }
  .stat:nth-child(odd) { border-inline-end: 1px solid var(--line-soft); }
}
.stat__num { font-family: var(--font-serif); font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 700; color: var(--brand); line-height: 1; }
:root[data-theme="dark"] .stat__num { color: var(--gold-300); }
.stat__label { font-size: .85rem; color: var(--text-muted); margin-top: .35rem; }

/* 13 ── Principal, mosaic, CTA ───────────────────────────────────────────── */
.principal { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 860px) { .principal { grid-template-columns: 320px 1fr; gap: var(--s7); } }
.principal__photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 5; }
.principal__photo img { width: 100%; height: 100%; object-fit: cover; }
.principal blockquote { font-family: var(--font-serif); font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.45; margin: 0 0 var(--s3); }
.principal blockquote::before { content: "\201C"; color: var(--accent); font-size: 2.5em; line-height: 0; vertical-align: -.35em; margin-inline-end: .08em; }
.signature { font-family: var(--font-serif); font-style: italic; font-size: 1.35rem; color: var(--brand); }
:root[data-theme="dark"] .signature { color: var(--gold-300); }

.mosaic { display: grid; gap: var(--s2); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 160px; } }
.mosaic figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-sunken); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.mosaic figure:hover img { transform: scale(1.05); }
@media (min-width: 760px) {
  .mosaic figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .mosaic figure:nth-child(4) { grid-column: span 2; }
}
@media (max-width: 759px) { .mosaic figure { aspect-ratio: 4 / 3; } }

.carousel { position: relative; }
.carousel__track { display: flex; gap: var(--s3); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: var(--s2); scrollbar-width: thin; }
.carousel__track::-webkit-scrollbar { height: 6px; }
.carousel__track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.carousel__item { flex: 0 0 min(420px, 85%); scroll-snap-align: start; }
.quote-card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4); height: 100%; display: flex; flex-direction: column; }
.quote-card p { font-family: var(--font-serif); font-size: 1.1rem; line-height: 1.5; margin-bottom: var(--s3); }
.quote-card footer { margin-top: auto; display: flex; align-items: center; gap: .75rem; }
.quote-card__avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none; }
.quote-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.quote-card__name { font-weight: 700; font-size: .92rem; }
.quote-card__meta { font-size: .82rem; color: var(--text-muted); }
.carousel__controls { display: flex; gap: .5rem; justify-content: flex-end; margin-top: var(--s2); }
.carousel__btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--bg-raised); border: 1px solid var(--line); color: var(--text); }
.carousel__btn:hover { background: var(--bg-sunken); border-color: var(--brand); }
.carousel__btn svg { width: 18px; height: 18px; }

.cta-band { background: linear-gradient(115deg, var(--navy-900), var(--navy-700)); color: #fff; border-radius: var(--radius-lg); padding: var(--s6) var(--s4); text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: var(--s2); }
.cta-band p { color: #cbd6ec; max-width: 56ch; margin: 0 auto var(--s4); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: center; }
.deadline-pill { display: inline-flex; align-items: center; gap: .5rem; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .2); color: #fff; padding: .45rem .95rem; border-radius: var(--radius-pill); font-size: .85rem; font-weight: 600; margin-bottom: var(--s3); }

/* 14 ── Notices & filters ────────────────────────────────────────────────── */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--s4); }
.filter-btn { padding: .55rem 1.1rem; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--bg-raised); color: var(--text); font-size: .88rem; font-weight: 600; transition: background-color .2s, color .2s, border-color .2s; }
.filter-btn:hover { border-color: var(--brand); }
.filter-btn[aria-pressed="true"] { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }

.notice { display: flex; gap: var(--s3); align-items: flex-start; }
.notice__date { flex: none; width: 62px; text-align: center; background: var(--accent-soft); color: var(--accent-strong); border-radius: var(--radius-sm); padding: .5rem .25rem; }
.notice__day { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; line-height: 1; }
.notice__mon { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.tag { display: inline-block; padding: .2rem .6rem; border-radius: var(--radius-pill); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--bg-sunken); color: var(--brand); border: 1px solid var(--line); margin-bottom: .5rem; }
:root[data-theme="dark"] .tag { color: var(--brand-strong); }
.empty-state { text-align: center; padding: var(--s7) var(--s3); color: var(--text-muted); }

/* 15 ── Tables ───────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raised); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
caption { text-align: left; padding: var(--s2) var(--s3); font-weight: 700; color: var(--text-muted); font-size: .88rem; }
th, td { padding: .9rem var(--s2); text-align: left; border-bottom: 1px solid var(--line-soft); }
thead th { background: var(--bg-sunken); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--bg-sunken); }

/* 16 ── Forms ────────────────────────────────────────────────────────────── */
.form { display: grid; gap: var(--s3); }
.form-row { display: grid; gap: var(--s3); }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field .req { color: var(--err); }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem;
  background: var(--bg-raised); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); outline: none;
}
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: .8rem; color: var(--text-muted); }
.field .error { font-size: .82rem; color: var(--err); font-weight: 600; min-height: 1.2em; }
.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea { border-color: var(--err); }
.form-status { padding: var(--s2) var(--s3); border-radius: var(--radius-sm); font-weight: 600; }
.form-status[data-state="success"] { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); }
.form-status[data-state="error"] { background: color-mix(in srgb, var(--err) 10%, transparent); color: var(--err); border: 1px solid color-mix(in srgb, var(--err) 32%, transparent); }
.form-status[hidden] { display: none; }

/* 17 ── Gallery & lightbox ───────────────────────────────────────────────── */
.gallery { display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery__item { position: relative; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-sunken); aspect-ratio: 4 / 3; cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgb(4 8 18 / .93); display: grid; place-items: center; padding: var(--s3); }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: 1000px; width: 100%; }
.lightbox__figure img { width: 100%; height: auto; max-height: 78vh; object-fit: contain; border-radius: var(--radius); }
.lightbox__caption { color: #dbe3f3; text-align: center; margin-top: var(--s2); font-size: .92rem; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .25); color: #fff; }
.lightbox__btn:hover { background: rgb(255 255 255 / .22); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: var(--s3); right: var(--s3); }
.lightbox__prev { left: var(--s2); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: var(--s2); top: 50%; transform: translateY(-50%); }

/* 18 ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy-900); color: #b9c6de; padding-block: var(--s7) var(--s3); margin-top: var(--s8); }
.site-footer h3 { color: #fff; font-size: 1rem; font-family: var(--font-sans); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: var(--s2); }
.site-footer a { color: #cdd8ec; text-decoration: none; }
.site-footer a:hover { color: var(--gold-300); text-decoration: underline; }
.footer-grid { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__sub { color: #92a3c2; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .92rem; }
.footer-contact { font-size: .92rem; display: grid; gap: .6rem; }
.footer-contact .row { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; flex: none; margin-top: .25rem; color: var(--gold-400); }
.socials { display: flex; gap: .6rem; margin-top: var(--s2); }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .12); transition: background-color .2s; }
.socials a:hover { background: var(--gold-500); }
.socials a:hover svg { color: #21170a; }
.socials svg { width: 18px; height: 18px; color: #dbe4f5; }
.footer-bottom { margin-top: var(--s6); padding-top: var(--s3); border-top: 1px solid rgb(255 255 255 / .1); display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; justify-content: space-between; font-size: .85rem; color: #93a3c0; }

.map-embed { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-sunken); }
.map-embed iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }

/* 19 ── Motion ───────────────────────────────────────────────────────────── */
/* Transform-only reveal. Opacity is animated too, but the base state of
   .reveal is fully visible — JS adds [data-reveal] only when it can observe,
   so if JS never runs the content is simply there. */
.reveal { opacity: 1; }
[data-reveal="pending"] { opacity: 0; transform: translateY(18px); }
[data-reveal="shown"] { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }

.hero__inner > * { animation: heroIn .7s var(--ease) both; }
.hero__inner > *:nth-child(1) { animation-delay: .05s; }
.hero__inner > *:nth-child(2) { animation-delay: .14s; }
.hero__inner > *:nth-child(3) { animation-delay: .23s; }
.hero__inner > *:nth-child(4) { animation-delay: .32s; }
.hero__inner > *:nth-child(5) { animation-delay: .41s; }
/* Transform only — never opacity — so if animations do not run the hero text
   is still visible rather than pinned invisible by animation-fill-mode. */
@keyframes heroIn { from { transform: translateY(16px); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal="pending"] { opacity: 1; transform: none; }
}

/* 20 ── Print ────────────────────────────────────────────────────────────── */
@media print {
  .utility-bar, .site-header, .drawer, .scroll-cue, .site-footer, .carousel__controls { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { min-height: auto; padding-block: var(--s3); }
  .hero__media, .hero__scrim, .hero__texture { display: none; }
  .hero__inner { color: #000; }
  .hero h1 { color: #000; }
}

/* ── Real photographs (2026-09-18) ─────────────────────────────────────── */
/* Hero: the Principal is centre-frame with children either side. Anchor the
   crop to the faces so nothing important is lost as the viewport changes. On
   phones the source is the full square; the eyes sit ~38% down. Text lives in
   the lower-left over the existing scrim, so the heads stay clear of it. */
/* The <picture> wrapper never stretched, so the image's height:100% resolved
   against its own intrinsic box (a 375px square on phones) rather than the
   hero — leaving a flat navy band below it. Make the wrapper fill the slide. */
.hero__slide picture { display: block; width: 100%; height: 100%; }
.hero__slide img { object-position: 50% 45%; }
/* Phones. The hero is tall because of the text stack (≈1180px), far taller
   than the 1:1 photo, so letting the image stretch to the hero either left a
   navy band (wrapper unstretched) or blew the photo up and slid the faces
   under the headline (wrapper stretched). Instead: the photo is a fixed
   viewport-tall band at the top, filled by the square with the faces centred,
   the text sits on the navy below it, and a short fade joins the two. */
@media (max-width: 700px) {
  .hero__slide img { height: 72svh; object-position: 50% 42%; }
  .hero__inner { padding-top: 64svh; }
  .hero__scrim {
    background:
      linear-gradient(to top, rgb(9 17 40 / 1) 0%, rgb(9 17 40 / 1) calc(100% - 72svh),
                      rgb(9 17 40 / .55) calc(100% - 60svh), rgb(9 17 40 / 0) calc(100% - 44svh)),
      linear-gradient(to bottom, rgb(6 11 26 / .35) 0%, rgb(6 11 26 / 0) 18%);
  }
}

/* Principal photo is a landscape poster shown whole (client decision) — the
   4:5 cover crop would slice its text off, so the box takes the poster's own
   shape and contains it. */
.principal__photo { aspect-ratio: 1085 / 910; }
.principal__photo img { object-fit: contain; background: var(--bg-sunken); }
@media (min-width: 860px) { .principal { grid-template-columns: 380px 1fr; } }


/* ── Editorial photo layouts (2026-09-18) ───────────────────────────────── */
/* Science feature: copy beside a large lab photograph, with the portrait
   microscope shot overlapping its lower-left corner. On phones the inset
   drops to a second, smaller tile below the main photograph. */
.feature { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 900px) { .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7); } }
.feature__media { position: relative; display: grid; gap: var(--s2); }
.feature figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-sunken); box-shadow: var(--shadow); }
.feature img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature__main { aspect-ratio: 3 / 2; }
.feature__main img { object-position: 50% 40%; }
.feature__inset { aspect-ratio: 3 / 4; }
.feature__inset img { object-position: 50% 45%; }
@media (max-width: 899px) {
  .feature__media { grid-template-columns: 2fr 1fr; align-items: stretch; }
  .feature__inset { aspect-ratio: auto; }
}
@media (min-width: 900px) {
  .feature__media { display: block; padding-bottom: var(--s5); padding-left: var(--s5); }
  .feature__inset { position: absolute; left: 0; bottom: 0; width: 34%; border: 4px solid var(--bg); box-shadow: var(--shadow-lg); }
}

/* Sports story: the trophy presentation leads, two action shots stack beside
   it, two team photographs run along the bottom. Different sizes on purpose. */
.story { display: grid; gap: var(--s2); grid-template-columns: 1fr; }
.story figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-sunken); }
.story img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.story figure:hover img { transform: scale(1.04); }
/* Every tile is sized by an aspect ratio close to its photograph's own, never by
   a fixed row height, so people keep their heads and feet at every width. */
.story__lead { aspect-ratio: 4 / 3; }
.story__lead img { object-position: 50% 20%; }
.story__side { aspect-ratio: 3 / 2; }
.story__side img { object-position: 50% 40%; }
.story__wide { aspect-ratio: 16 / 10; }
.story__wide img { object-position: 50% 80%; }
@media (min-width: 640px) {
  .story { grid-template-columns: repeat(2, 1fr); }
  .story__lead { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  /* trophy presentation leads (7/12, two rows tall); two action shots stack
     beside it at 3:2; the two squads share the bottom row */
  .story { grid-template-columns: repeat(12, 1fr); }
  .story__lead { grid-column: 1 / 8; grid-row: 1 / 3; aspect-ratio: auto; }
  .story__side { grid-column: 8 / 13; }
  .story__wide { grid-column: span 6; }
}


/* ── 14 ── Notice board (database-driven) ────────────────────────────────────
   Used by notices.html, notice.html and the home page cards. Everything here
   reuses the tokens above so the board matches the rest of the college site. */
.container--narrow { max-width: 760px; }

.board-search { margin-bottom: var(--s3); }
.board-search__label { display: block; font-size: .85rem; font-weight: 600; color: var(--text-muted); margin-bottom: .35rem; }
.board-search__input { width: 100%; max-width: 420px; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--bg-raised); color: var(--text); font: inherit; font-size: .95rem; }
.board-search__input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-color: var(--brand); }

.board-status { margin-block: var(--s3); padding: var(--s3); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raised); color: var(--text-muted); text-align: center; }
.board-status[data-kind="error"] { border-color: var(--err); color: var(--err); background: var(--bg-raised); }
.board-status[data-kind="empty"] { border-style: dashed; }

.board-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); margin-top: var(--s4); }
.board-count { color: var(--text-muted); font-size: .88rem; margin: 0; }

.card--pinned { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.tag--pinned { background: var(--accent-soft); color: var(--accent-strong); border-color: var(--accent); margin-left: .35rem; }

.notice__title-link { color: inherit; text-decoration: none; }
.notice__title-link:hover { color: var(--brand); text-decoration: underline; }
.notice__meta { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .82rem; color: var(--text-muted); margin-bottom: .6rem; }
.notice__deadline { color: var(--accent-strong); font-weight: 600; }
.notice__pdf { color: var(--brand); font-weight: 600; }
.notice__error { color: var(--err); }

.notice-detail__tags { margin-bottom: .75rem; }
.notice-detail__meta { color: var(--text-muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin-bottom: var(--s4); }
.notice-detail__body { line-height: 1.75; }
.notice-detail__body p { margin-bottom: var(--s2); }
.notice-detail__body ul { margin: 0 0 var(--s2) 1.25rem; list-style: disc; }
.notice-detail__body li { margin-bottom: .35rem; }
.notice-detail__attachment { display: inline-flex; align-items: center; gap: .55rem; margin-top: var(--s3); padding: .7rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-sunken); }
.notice-detail__attachment a[aria-busy="true"] { opacity: .6; }
.notice-detail__back { margin-top: var(--s5); }

/* A notice card is a flex row (date block + text). A flex item will not shrink
   below its longest word by default, so a title containing a long URL or an
   unbroken string pushed the card past the screen edge on phones. */
.notice > :not(.notice__date) { min-width: 0; }
.notice h3, .notice__title-link, .notice__meta, .notice-detail__title { overflow-wrap: anywhere; }

/* ── Content published from the dashboard ─────────────────────────────────
   Notices (/notices/<slug>), articles (/blogs/<slug>), the News page and the
   staff cards. The article body comes from SJCRichText, which only ever
   writes p, h2–h4, lists, quotes, links, images, figures, hr and simple
   tables, so these rules cover every case. Colours use the site's tokens,
   so dark mode follows automatically. */
.btn--sm { padding: .5rem 1rem; font-size: .86rem; }
.tag--expired { background: var(--bg-sunken); color: var(--err); border-color: var(--err); margin-left: .35rem; }
.notice-detail h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); overflow-wrap: anywhere; margin-bottom: var(--s2); }
.notice-detail__meta > * + * { margin-left: .2rem; }
.notice-detail__meta > span::before { content: "\00b7"; margin-right: .6rem; color: var(--text-muted); }
.notice-detail__meta .notice__deadline::before { content: none; }
.article__summary { font-size: 1.12rem; line-height: 1.6; color: var(--text-muted); margin-bottom: var(--s4); }
.article__note { margin-bottom: var(--s3); padding: .8rem 1rem; border-radius: var(--radius-sm); background: var(--bg-sunken); border-left: 4px solid var(--warn); color: var(--text-muted); }
.article__cover { margin: 0 0 var(--s4); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bg-sunken); }
.article__cover img { display: block; width: 100%; height: auto; }
.article__body { font-size: 1.04rem; line-height: 1.75; overflow-wrap: anywhere; }
.article__body > * + * { margin-top: var(--s2); }
.article__body h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-top: var(--s4); }
.article__body h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); margin-top: var(--s3); }
.article__body h4 { font-family: var(--font-sans); font-size: 1rem; font-weight: 700; margin-top: var(--s3); }
.article__body ul, .article__body ol { padding-left: 1.4rem; }
.article__body ul { list-style: disc; }
.article__body ol { list-style: decimal; }
.article__body li + li { margin-top: .3rem; }
.article__body a { color: var(--brand); text-underline-offset: .18em; }
.article__body blockquote { margin: 0; padding: .3rem 0 .3rem 1.1rem; border-left: 4px solid var(--accent); font-family: var(--font-serif); font-size: 1.15rem; color: var(--text); }
.article__body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.article__body figure { margin: 0; }
.article__body figcaption { margin-top: .5rem; font-size: .88rem; color: var(--text-muted); }
.article__body hr { border: 0; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); margin-block: var(--s4); }
.rt-table { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.rt-table table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 28rem; }
.rt-table th, .rt-table td { padding: .55rem .75rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.rt-table th { background: var(--bg-sunken); font-weight: 700; }
.rt-table tr:last-child td { border-bottom: 0; }
.article__tags { list-style: none; padding: 0; margin: var(--s4) 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.article__tags .tag { margin: 0; }
.article__share { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); }
.article__share-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-right: .25rem; }
.notice__files { margin-top: var(--s4); }
.notice__files h2 { font-size: 1.2rem; }
.notice__files ul { list-style: none; padding: 0; margin: var(--s2) 0 0; display: grid; gap: .6rem; }
.file-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .75rem; padding: .75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raised); }
.file-row__icon { flex: none; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-strong); font-size: .66rem; font-weight: 800; letter-spacing: .04em; }
.file-row__name { flex: 1 1 calc(100% - 3.4rem); min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.file-row__size { font-weight: 500; color: var(--text-muted); font-size: .85rem; }
.file-row .btn { flex: 1 1 0; justify-content: center; }
@media (min-width: 640px) { .file-row__name { flex: 1 1 auto; } .file-row .btn { flex: none; } }
.news-card h3 { overflow-wrap: anywhere; }
.person-card__initials { display: grid; place-items: center; width: 100%; height: 100%; background: var(--bg-sunken); color: var(--brand); font-family: var(--font-serif); font-size: 2rem; font-weight: 700; }
