/* =====================================================================
   St. Sebastian's HSS, Nedumkandam — site stylesheet
   Order: tokens → fonts → base → layout → components → pages → utilities
   Mobile-first. Breakpoints: 640px (tablet), 1024px (desktop), 1280px (full nav).
   ===================================================================== */

/* ---------- 1. Tokens ---------------------------------------------- */
:root {
    --navy-900: #1F2A5C;
    --navy-800: #182049;
    --navy-700: #2E3B78;
    --navy-50: #EEF0F7;
    --gold-500: #C9A227;
    --gold-700: #8A6D12;
    --gold-300: #E8C766;
    --red-700: #9E1B32;
    --cream-50: #FAF7F0;
    --cream-100: #F3EDE0;
    --white: #FFFFFF;
    --ink-900: #1C2233;
    --ink-600: #4A5163;
    --ink-400: #7A8094;
    --line: #E5E1D8;
    --line-strong: #CFC9BB;
    --success: #2E7D4F;
    --error: #B42318;

    --font-serif: "Lora", Georgia, "Times New Roman", serif;
    --font-sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
    --font-ml: "Noto Sans Malayalam", "Nirmala UI", "Malayalam Sangam MN", "Kartika", system-ui, sans-serif;

    --fs-h1: clamp(2rem, 1.35rem + 2.6vw, 3rem);
    --fs-h2: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
    --fs-h3: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
    --fs-lead: 1.1875rem;
    --fs-body: 1.0625rem;
    --fs-small: 0.875rem;
    --fs-eyebrow: 0.8rem;

    --s-1: 0.25rem;
    --s-2: 0.5rem;
    --s-3: 0.75rem;
    --s-4: 1rem;
    --s-5: 1.5rem;
    --s-6: 2rem;
    --s-7: 3rem;
    --s-8: 4rem;
    --s-9: 6rem;

    --section-y: var(--s-7);
    --container: 1200px;
    --narrow: 760px;
    --gutter: 16px;

    --r-btn: 6px;
    --r-card: 10px;
    --shadow-1: 0 1px 2px rgba(28, 34, 51, 0.06);
    --shadow-2: 0 6px 18px rgba(28, 34, 51, 0.10);
    --focus: 3px solid var(--gold-500);

    --header-h: 72px;
    --topbar-h: 36px;
}

@media (min-width: 640px) {
    :root { --gutter: 24px; }
}

@media (min-width: 1024px) {
    :root {
        --gutter: 32px;
        --section-y: var(--s-8);
        --header-h: 88px;
    }
}

/* ---------- 2. Fonts (self-hosted, OFL) ----------------------------- */
@font-face {
    font-family: "Lora";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/lora-latin-600-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Lora";
    font-style: italic;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/lora-latin-600-italic.woff2") format("woff2");
}

@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
}

/* ---------- 3. Base ------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    overflow-x: clip;
    scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: 1.6;
    color: var(--ink-900);
    background: var(--white);
    overflow-x: hidden;
    overflow-x: clip;
}

body.drawer-open {
    overflow: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--navy-900);
    margin: 0 0 var(--s-4);
    text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: 1.125rem; font-family: var(--font-sans); }
.h3 { font-size: var(--fs-h3); }
.h4 { font-size: 1.125rem; font-family: var(--font-sans); color: var(--ink-600); letter-spacing: 0.02em; }

p, ul, ol, dl, figure, blockquote {
    margin: 0 0 var(--s-4);
}

p:last-child, ul:last-child, ol:last-child {
    margin-bottom: 0;
}

a {
    color: var(--navy-900);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
}

a:hover {
    color: var(--navy-700);
}

img, picture, svg, video {
    display: block;
    max-width: 100%;
    height: auto;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

:focus-visible {
    outline: var(--focus);
    outline-offset: 2px;
}

main:focus {
    outline: none;
}

[lang="ml"] {
    font-family: var(--font-ml);
    line-height: 1.75;
}

table {
    border-collapse: collapse;
    width: 100%;
}

th, td {
    text-align: left;
    padding: var(--s-3) var(--s-4);
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    font-weight: 600;
    color: var(--navy-900);
    background: var(--cream-50);
}

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: var(--s-6) 0;
}

code {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.9em;
}

/* ---------- 4. Layout ----------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container--narrow {
    max-width: calc(var(--narrow) + 2 * var(--gutter));
}

.section {
    padding-block: var(--section-y);
}

.section--tight {
    padding-block: var(--s-6);
}

.section--cream {
    background: var(--cream-50);
}

.section--line {
    border-top: 1px solid var(--line);
}

.grid {
    display: grid;
    gap: var(--s-5);
}

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
    .grid--2 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.split {
    display: grid;
    gap: var(--s-6);
    align-items: center;
}

@media (min-width: 1024px) {
    .split {
        grid-template-columns: 1.1fr 0.9fr;
        gap: var(--s-8);
    }

    .split--media-left > .split__media { order: -1; }
}

.stack > * + * { margin-top: var(--s-4); }
.stack--lg > * + * { margin-top: var(--s-6); }

.prose {
    max-width: 70ch;
}

.prose p {
    margin-bottom: var(--s-4);
}

.prose ul, .prose ol {
    padding-left: 1.25rem;
}

.prose li + li {
    margin-top: var(--s-2);
}

.lead {
    font-size: var(--fs-lead);
    color: var(--ink-600);
}

.muted {
    color: var(--ink-600);
}

.small {
    font-size: var(--fs-small);
}

/* ---------- 5. Components ------------------------------------------- */

/* Skip link */
.skip-link {
    position: absolute;
    left: var(--gutter);
    top: -100px;
    z-index: 200;
    padding: var(--s-3) var(--s-4);
    background: var(--navy-900);
    color: var(--white);
    border-radius: var(--r-btn);
    font-weight: 600;
}

.skip-link:focus {
    top: var(--s-3);
}

/* Eyebrow + section heading */
.eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: var(--fs-eyebrow);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-700);
    margin-bottom: var(--s-2);
}

.section-heading {
    margin-bottom: var(--s-6);
    max-width: 70ch;
}

.section-heading--center {
    text-align: center;
    margin-inline: auto;
}

.section-heading h2 {
    margin-bottom: var(--s-3);
}

.section-heading__rule {
    display: block;
    width: 48px;
    height: 3px;
    background: var(--gold-500);
    border-radius: 2px;
    margin: 0 0 var(--s-4);
}

.section-heading--center .section-heading__rule {
    margin-inline: auto;
}

.section-heading p {
    color: var(--ink-600);
    font-size: var(--fs-lead);
}

.section-heading__row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-4);
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: var(--s-6);
}

.section-heading__row .section-heading {
    margin-bottom: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    min-height: 48px;
    padding: 0.6rem 1.4rem;
    border-radius: var(--r-btn);
    border: 2px solid transparent;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    text-align: center;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn--primary {
    background: var(--gold-500);
    border-color: var(--gold-500);
    color: var(--navy-900);
}

.btn--primary:hover {
    background: #B99320;
    border-color: #B99320;
    color: var(--navy-900);
}

.btn--outline {
    background: transparent;
    border-color: var(--navy-900);
    color: var(--navy-900);
}

.btn--outline:hover {
    background: var(--navy-50);
}

.btn--on-dark {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.85);
    color: var(--white);
}

.btn--on-dark:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
}

.btn--small {
    min-height: 40px;
    padding: 0.4rem 1rem;
    font-size: 0.95rem;
}

.btn--block {
    width: 100%;
}

.btn[disabled], .btn[aria-disabled="true"] {
    opacity: 0.6;
    pointer-events: none;
}

.btn svg {
    width: 1.1em;
    height: 1.1em;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
}

@media (max-width: 639px) {
    .btn-row--stack .btn { width: 100%; }
}

.text-link {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
}

.text-link svg {
    width: 1em;
    height: 1em;
}

/* Cards (used sparingly) */
.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    box-shadow: var(--shadow-1);
    overflow: hidden;
    transition: box-shadow 200ms ease;
}

@media (hover: hover) {
    .card:hover { box-shadow: var(--shadow-2); }
}

.card__body {
    padding: var(--s-5);
}

.card__title {
    font-size: 1.25rem;
    margin-bottom: var(--s-2);
}

.card__title a {
    text-decoration: none;
}

.card__title a:hover {
    text-decoration: underline;
}

/* Chip / badge */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: var(--fs-small);
    font-weight: 600;
    background: var(--navy-50);
    color: var(--navy-900);
}

.chip--gold {
    background: var(--gold-300);
    color: var(--navy-900);
}

.chip--outline {
    background: transparent;
    border: 1px solid var(--line-strong);
    color: var(--ink-600);
}

/* Icons */
.icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.icon--lg {
    width: 36px;
    height: 36px;
    stroke-width: 1.5;
}

.icon-disc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--cream-50);
    border: 1px solid var(--line);
    color: var(--gold-700);
}

/* Top bar */
.topbar {
    display: none;
    background: var(--navy-900);
    color: var(--white);
    font-size: var(--fs-small);
    min-height: var(--topbar-h);
}

.topbar a {
    color: var(--white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    min-height: var(--topbar-h);
}

.topbar a:hover {
    color: var(--gold-300);
}

.topbar .icon {
    width: 16px;
    height: 16px;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-5);
}

.topbar__contacts {
    display: flex;
    gap: var(--s-5);
}

.topbar__cta {
    color: var(--gold-300) !important;
    font-weight: 600;
}

@media (min-width: 640px) {
    .topbar { display: block; }
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    transition: box-shadow 200ms ease;
}

.header.is-scrolled {
    box-shadow: var(--shadow-2);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    min-height: var(--header-h);
}

.brand {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    text-decoration: none;
    color: var(--navy-900);
    min-width: 0;
    flex-shrink: 0;
}

.brand__emblem {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.brand__name {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand__sub {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold-700);
    font-weight: 600;
}

@media (min-width: 1024px) {
    .brand__emblem { width: 60px; height: 60px; }
    .brand__name { font-size: 1.2rem; }
}

.header__actions {
    display: flex;
    align-items: center;
    gap: var(--s-3);
}

.header__cta {
    display: none;
}

@media (min-width: 640px) {
    .header__cta { display: inline-flex; }
}

/* Desktop nav */
.nav {
    display: none;
}

.nav > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2px;
}

.nav__link,
.nav__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    min-height: 44px;
    padding: 0.4rem 0.6rem;
    border: 0;
    background: none;
    border-radius: var(--r-btn);
    color: var(--navy-900);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
}

.nav__link:hover,
.nav__toggle:hover,
.nav__link[aria-current="page"] {
    background: var(--navy-50);
}

.nav__link[aria-current="page"] {
    box-shadow: inset 0 -2px 0 var(--gold-500);
}

.nav__toggle svg {
    width: 16px;
    height: 16px;
    transition: transform 150ms ease;
}

.nav__toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.nav__item {
    position: relative;
}

.nav__sub {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    margin: 0;
    padding: var(--s-2);
    list-style: none;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    box-shadow: var(--shadow-2);
    display: none;
    flex-direction: column;
    gap: 0;
}

.nav__item.is-open > .nav__sub {
    display: flex;
}

.nav__sub a {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: var(--r-btn);
    text-decoration: none;
    font-weight: 400;
    color: var(--ink-900);
}

.nav__sub a:hover,
.nav__sub a:focus-visible {
    background: var(--cream-50);
    color: var(--navy-900);
}

@media (min-width: 1280px) {
    .nav { display: block; min-width: 0; }

    /* Between 1280 and 1439px the eight items only fit in a compact form:
       the brand links home, so the Home item is left to the drawer and footer. */
    .nav__item--home { display: none; }
    .nav__link, .nav__toggle { font-size: 0.92rem; padding: 0.4rem 0.5rem; }
    .brand__sub { display: none; }
}

@media (min-width: 1440px) {
    .nav__item--home { display: block; }
    .nav__link, .nav__toggle { font-size: 0.95rem; padding: 0.4rem 0.65rem; }
    .brand__sub { display: block; }
}

/* Menu toggle + drawer */
.menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    min-height: 48px;
    min-width: 48px;
    padding: 0 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--r-btn);
    background: var(--white);
    color: var(--navy-900);
    font-weight: 600;
}

.menu-toggle svg {
    width: 22px;
    height: 22px;
}

@media (min-width: 1280px) {
    .menu-toggle { display: none; }
}

.drawer {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: none;
}

.drawer[data-open="true"] {
    display: block;
}

.drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(28, 34, 51, 0.55);
}

.drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(100%, 400px);
    background: var(--white);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-2);
    overflow-y: auto;
}

.drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--s-4) var(--gutter);
    border-bottom: 1px solid var(--line);
    min-height: var(--header-h);
}

.drawer__title {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--navy-900);
}

.drawer__close {
    min-width: 48px;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: var(--r-btn);
    background: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.drawer__nav {
    padding: var(--s-3) var(--s-2);
    flex: 1;
}

.drawer__nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.drawer__link,
.drawer__acc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 0.6rem var(--s-4);
    border: 0;
    background: none;
    border-radius: var(--r-btn);
    text-align: left;
    text-decoration: none;
    color: var(--navy-900);
    font-weight: 600;
    font-size: 1.05rem;
}

.drawer__link:hover,
.drawer__acc:hover,
.drawer__link[aria-current="page"] {
    background: var(--cream-50);
}

.drawer__acc svg {
    width: 18px;
    height: 18px;
    transition: transform 150ms ease;
}

.drawer__acc[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.drawer__sub {
    display: none;
    padding-left: var(--s-4);
    border-left: 2px solid var(--gold-300);
    margin: 0 0 var(--s-2) var(--s-4);
}

.drawer__acc[aria-expanded="true"] + .drawer__sub {
    display: block;
}

.drawer__sub a {
    display: block;
    min-height: 44px;
    padding: 0.55rem var(--s-4);
    text-decoration: none;
    color: var(--ink-900);
    border-radius: var(--r-btn);
}

.drawer__sub a:hover {
    background: var(--cream-50);
}

.drawer__foot {
    padding: var(--s-4) var(--gutter) var(--s-6);
    border-top: 1px solid var(--line);
    display: grid;
    gap: var(--s-3);
}

.drawer__contact {
    display: flex;
    align-items: center;
    gap: 0.5em;
    min-height: 44px;
    text-decoration: none;
    color: var(--ink-900);
    word-break: break-all;
}

.drawer__contact svg {
    width: 18px;
    height: 18px;
    color: var(--gold-700);
}

/* Hero */
.hero {
    position: relative;
    background: var(--navy-900);
    color: var(--white);
}

.hero__media {
    position: relative;
    max-width: 1600px;
    margin-inline: auto;
    overflow: hidden;
}

.hero__slide {
    display: block;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Slideshow (only when more than one slide exists): slides stack and crossfade. */
.hero[data-slides] .hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.hero[data-slides] .hero__slide.is-active {
    opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
    .hero[data-slides] .hero__slide { transition: opacity 900ms ease; }
}

.hero__scrim {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(31, 42, 92, 0.65) 0%, rgba(31, 42, 92, 0) 45%);
}

.hero__content {
    position: relative;
    padding-block: var(--s-6) var(--s-7);
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--s-3);
    margin-bottom: var(--s-4);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: var(--fs-eyebrow);
    color: var(--gold-300);
}

.hero__emblem {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    padding: 2px;
    box-shadow: 0 0 0 2px var(--gold-500);
}

.hero h1 {
    color: var(--white);
    font-size: var(--fs-h1);
    margin-bottom: var(--s-3);
    max-width: 16ch;
}

.hero__place {
    display: block;
    font-size: 0.6em;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--gold-300);
    margin-top: 0.2em;
}

.hero__motto {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem);
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: var(--s-5);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
}

@media (max-width: 1023px) {
    .hero__media {
        aspect-ratio: 4 / 3;
    }

    .hero__media img {
        position: absolute;
        inset: 0;
    }

    .hero__scrim {
        display: none;
    }

    .hero__actions .btn {
        flex: 1 1 200px;
    }
}

@media (min-width: 1024px) {
    .hero__media {
        position: absolute;
        inset: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
    }

    .hero__media .hero__slide {
        position: absolute;
        inset: 0;
    }

    .hero__scrim {
        background:
            linear-gradient(90deg, rgba(24, 32, 73, 0.86) 0%, rgba(24, 32, 73, 0.68) 34%, rgba(24, 32, 73, 0.22) 62%, rgba(24, 32, 73, 0) 100%),
            linear-gradient(0deg, rgba(24, 32, 73, 0.45) 0%, rgba(24, 32, 73, 0) 40%);
    }

    .hero__content {
        min-height: clamp(540px, 66vh, 720px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-block: var(--s-8);
        max-width: var(--container);
    }

    .hero__content > * {
        max-width: 620px;
    }
}

/* Featured slot (event / notice) */
.featured {
    background: var(--cream-50);
    border-bottom: 1px solid var(--line);
}

.featured__inner {
    display: grid;
    gap: var(--s-4);
    padding-block: var(--s-5);
    align-items: center;
}

.featured__label {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-size: var(--fs-eyebrow);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy-900);
    background: var(--gold-300);
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    width: max-content;
}

.featured__title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--navy-900);
    margin: 0;
}

.featured__title a {
    text-decoration: none;
}

.featured__title a:hover {
    text-decoration: underline;
}

.featured__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2) var(--s-5);
    color: var(--ink-600);
    font-size: 0.95rem;
}

.featured__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
}

.featured__meta svg {
    width: 18px;
    height: 18px;
    color: var(--gold-700);
}

@media (min-width: 1024px) {
    .featured__inner {
        grid-template-columns: auto 1fr auto;
        gap: var(--s-6);
    }
}

/* Gold-framed photo */
.frame-gold {
    position: relative;
    margin: 0;
}

.frame-gold img {
    width: 100%;
    border-radius: 4px;
}

.frame-gold::after {
    content: "";
    position: absolute;
    inset: 12px -12px -12px 12px;
    border: 2px solid var(--gold-500);
    border-radius: 4px;
    z-index: -1;
}

.frame-gold figcaption {
    margin-top: var(--s-5);
    font-size: var(--fs-small);
    color: var(--ink-600);
}

/* Stats strip */
.stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-4);
}

.stat {
    text-align: center;
    padding: var(--s-5) var(--s-3);
    border-top: 2px solid var(--gold-500);
}

.stat__value {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem);
    line-height: 1;
    color: var(--navy-900);
}

.stat__label {
    display: block;
    margin-top: var(--s-2);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-600);
    font-weight: 600;
}

@media (min-width: 1024px) {
    .stats { grid-template-columns: repeat(4, 1fr); gap: var(--s-6); }
}

/* Editorial section blocks (High School / Higher Secondary) */
.editorial {
    display: grid;
    gap: var(--s-6);
}

.editorial__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--s-4) var(--s-5);
    padding-top: var(--s-5);
    border-top: 1px solid var(--line);
}

.editorial__num {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    line-height: 1;
    color: var(--gold-500);
}

.editorial__item h3 {
    font-size: 1.6rem;
    margin-bottom: var(--s-2);
}

.editorial__facts {
    list-style: none;
    padding: 0;
    margin: var(--s-3) 0 var(--s-4);
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
}

.editorial__facts li {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.25rem 0.7rem;
    background: var(--cream-50);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.95rem;
}

.editorial__facts svg {
    width: 16px;
    height: 16px;
    color: var(--gold-700);
}

@media (min-width: 1024px) {
    .editorial {
        grid-template-columns: 1fr 1fr;
        gap: var(--s-8);
    }
}

/* Golden Jubilee signature band */
.jubilee {
    position: relative;
    background: var(--navy-900);
    color: var(--white);
    overflow: hidden;
}

.jubilee::before,
.jubilee::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-500) 20%, var(--gold-500) 80%, transparent);
}

.jubilee::before { top: 14px; }
.jubilee::after { bottom: 14px; }

.jubilee__inner {
    display: grid;
    gap: var(--s-6);
    padding-block: var(--s-8);
    align-items: center;
}

.jubilee__emblem {
    justify-self: center;
    width: min(100%, 320px);
    padding: var(--s-4);
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--gold-500), 0 0 0 12px rgba(201, 162, 39, 0.15);
}

.jubilee__emblem img {
    width: 100%;
    border-radius: 50%;
}

.jubilee__fifty {
    display: flex;
    align-items: baseline;
    gap: var(--s-3);
    margin-bottom: var(--s-3);
}

.jubilee__fifty strong {
    font-family: var(--font-serif);
    font-size: clamp(4rem, 3rem + 5vw, 7rem);
    line-height: 0.9;
    color: var(--white);
    background: var(--red-700);
    padding: 0.05em 0.18em;
    border-radius: 6px;
}

.jubilee__fifty span {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
    color: var(--gold-300);
}

.jubilee h2 {
    color: var(--white);
    margin-bottom: var(--s-3);
}

.jubilee__years {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    letter-spacing: 0.08em;
    color: var(--gold-300);
    margin-bottom: var(--s-4);
}

.jubilee__tagline {
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
    color: var(--gold-300);
    margin-bottom: var(--s-3);
}

.jubilee__text {
    color: rgba(255, 255, 255, 0.86);
    max-width: 60ch;
    margin-bottom: var(--s-5);
}

.jubilee__next {
    margin-top: var(--s-5);
    padding-top: var(--s-4);
    border-top: 1px solid rgba(232, 199, 102, 0.35);
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2) var(--s-4);
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
}

.jubilee .breadcrumb,
.jubilee .breadcrumb a { color: rgba(255, 255, 255, 0.75); }
.jubilee .breadcrumb [aria-current="page"] { color: var(--gold-300); }
.jubilee .breadcrumb li + li::before { color: rgba(255, 255, 255, 0.5); }

.jubilee__next a {
    color: var(--gold-300);
    font-weight: 600;
}

@media (min-width: 1024px) {
    .jubilee__inner {
        grid-template-columns: 360px 1fr;
        gap: var(--s-9);
        padding-block: var(--s-9);
    }

    .jubilee__emblem {
        width: 360px;
    }
}

/* Clubs list */
.clubs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
}

.club {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--s-4);
    padding: var(--s-5) 0;
    border-bottom: 1px solid var(--line);
    align-items: start;
}

.club h3 {
    font-size: 1.25rem;
    margin-bottom: 0.15rem;
}

.club__full {
    display: block;
    font-size: var(--fs-small);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gold-700);
    font-weight: 600;
    margin-bottom: var(--s-2);
}

.club p {
    color: var(--ink-600);
}

@media (min-width: 640px) {
    .clubs {
        grid-template-columns: 1fr 1fr;
        gap: 0 var(--s-8);
    }
}

@media (min-width: 1024px) {
    .clubs--3 { grid-template-columns: repeat(3, 1fr); gap: 0 var(--s-6); }
}

/* Message cards (leadership) */
.messages {
    display: grid;
    gap: var(--s-6);
}

.message {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: var(--s-5);
    align-items: start;
}

.message img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--gold-500);
}

.message blockquote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--ink-900);
    margin: 0 0 var(--s-3);
}

.message__name {
    font-weight: 600;
    color: var(--navy-900);
}

.message__role {
    color: var(--ink-600);
    font-size: var(--fs-small);
}

@media (min-width: 1024px) {
    .messages { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
}

/* School life editorial */
.life__photo img {
    width: 100%;
    border-radius: var(--r-card);
}

.life__caption {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--s-3);
    margin-top: var(--s-3);
    font-size: var(--fs-small);
    color: var(--ink-600);
}

/* Campus glimpses carousel */
.glimpses {
    position: relative;
}

.glimpses__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--s-4);
    margin-bottom: var(--s-4);
}

.glimpses__controls {
    display: flex;
    gap: var(--s-2);
}

.glimpses__btn {
    min-width: 48px;
    min-height: 48px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--white);
    color: var(--navy-900);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.glimpses__btn:hover {
    background: var(--navy-50);
}

.glimpses__btn[disabled] {
    opacity: 0.4;
    cursor: default;
}

.glimpses__track {
    list-style: none;
    margin: 0;
    padding: 0 0 var(--s-2);
    display: flex;
    gap: var(--s-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.glimpse {
    flex: 0 0 auto;
    scroll-snap-align: start;
    margin: 0;
    background: var(--cream-100);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    padding: var(--s-2);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.glimpse img {
    /* Displayed at the image's own pixel size: never upscaled. */
    width: auto;
    max-width: 100%;
    height: 208px;
    border-radius: 6px;
}

/* News / poster cards */
.news-grid {
    display: grid;
    gap: var(--s-5);
}

@media (min-width: 640px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .news-grid { grid-template-columns: repeat(3, 1fr); }
    .news-grid--list { grid-template-columns: repeat(2, 1fr); }
    .split--news { grid-template-columns: 1fr 340px; align-items: start; }
}

.poster-frame {
    display: block;
    aspect-ratio: 4 / 5;
    background: var(--cream-100);
    border-bottom: 1px solid var(--line);
    padding: var(--s-3);
}

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.poster-frame--landscape {
    aspect-ratio: 16 / 10;
    padding: 0;
}

.poster-frame--landscape img {
    object-fit: cover;
}

.news-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-2) var(--s-3);
    margin-bottom: var(--s-3);
    font-size: var(--fs-small);
    color: var(--ink-600);
}

.news-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
}

.news-card__meta svg {
    width: 18px;
    height: 18px;
    color: var(--gold-700);
}

.news-card__meta time {
    font-weight: 600;
    color: var(--navy-900);
}

.news-card p {
    color: var(--ink-600);
}

/* Album cards */
.album-card .poster-frame {
    aspect-ratio: 4 / 3;
    padding: 0;
}

.album-card .poster-frame img {
    object-fit: cover;
}

.album-card__meta {
    font-size: var(--fs-small);
    color: var(--ink-600);
}

/* Photo grid + lightbox */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-3);
}

@media (min-width: 640px) {
    .photo-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
}

@media (min-width: 1024px) {
    .photo-grid { grid-template-columns: repeat(4, 1fr); }
}

.photo-grid button {
    padding: 0;
    border: 0;
    background: var(--cream-100);
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 1;
    display: block;
    width: 100%;
}

.photo-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .photo-grid button:hover img { transform: scale(1.03); }
}

.lightbox {
    border: 0;
    padding: 0;
    background: transparent;
    max-width: 100vw;
    max-height: 100vh;
    width: 100%;
    height: 100%;
}

.lightbox::backdrop {
    background: rgba(12, 16, 36, 0.94);
}

.lightbox__inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: var(--white);
}

.lightbox__stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px var(--s-4) var(--s-4);
    min-height: 0;
}

.lightbox__stage img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.lightbox__caption {
    padding: var(--s-3) var(--s-5) var(--s-5);
    text-align: center;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.lightbox__btn {
    position: absolute;
    min-width: 48px;
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(28, 34, 51, 0.6);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lightbox__btn:hover {
    background: rgba(28, 34, 51, 0.9);
}

.lightbox__close { top: var(--s-3); right: var(--s-3); }
.lightbox__prev { left: var(--s-2); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: var(--s-2); top: 50%; transform: translateY(-50%); }

.lightbox__count {
    position: absolute;
    top: var(--s-4);
    left: var(--s-4);
    font-size: var(--fs-small);
    color: rgba(255, 255, 255, 0.8);
}

/* CTA band */
.cta-band {
    background: var(--navy-900);
    color: var(--white);
    border-top: 3px solid var(--gold-500);
}

.cta-band--cream {
    background: var(--cream-50);
    color: var(--ink-900);
}

.cta-band__inner {
    display: grid;
    gap: var(--s-5);
    padding-block: var(--s-7);
    align-items: center;
}

.cta-band h2 {
    color: inherit;
    margin-bottom: var(--s-2);
}

.cta-band--cream h2 {
    color: var(--navy-900);
}

.cta-band p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 60ch;
}

.cta-band--cream p {
    color: var(--ink-600);
}

@media (min-width: 1024px) {
    .cta-band__inner {
        grid-template-columns: 1fr auto;
        gap: var(--s-8);
    }
}

/* Page header (internal pages) */
.page-header {
    background: var(--cream-50);
    border-bottom: 1px solid var(--line);
    padding-block: var(--s-6) var(--s-7);
}

.page-header h1 {
    margin-bottom: var(--s-3);
}

.page-header .lead {
    max-width: 65ch;
}

.breadcrumb {
    list-style: none;
    margin: 0 0 var(--s-4);
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em;
    font-size: var(--fs-small);
    color: var(--ink-600);
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: 0.4em;
    color: var(--ink-400);
}

.breadcrumb a {
    color: var(--ink-600);
}

.breadcrumb [aria-current="page"] {
    color: var(--navy-900);
    font-weight: 600;
}

/* Timeline */
.timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 var(--s-5);
    border-left: 2px solid var(--gold-300);
}

.timeline li {
    position: relative;
    padding: 0 0 var(--s-6) var(--s-4);
}

.timeline li::before {
    content: "";
    position: absolute;
    left: calc(-1 * var(--s-5) - 7px);
    top: 0.4rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold-500);
    box-shadow: 0 0 0 3px var(--white);
}

.timeline__year {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--navy-900);
}

/* Motto block */
.motto {
    display: grid;
    gap: var(--s-4);
    padding: var(--s-6);
    background: var(--navy-900);
    color: var(--white);
    border-radius: var(--r-card);
    text-align: center;
}

.motto .icon {
    color: var(--gold-300);
    margin-inline: auto;
}

.motto__en {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem);
    color: var(--white);
    margin: 0;
}

.motto__ml {
    color: var(--gold-300);
    font-size: 1.2rem;
    margin: 0;
}

/* Vision & mission panels */
.panel {
    padding: var(--s-6);
    background: var(--cream-50);
    border-left: 4px solid var(--gold-500);
    border-radius: 0 var(--r-card) var(--r-card) 0;
}

.panel h3 {
    margin-bottom: var(--s-3);
}

.panel p {
    color: var(--ink-900);
}

/* Leaders */
.leaders {
    display: grid;
    gap: var(--s-5);
}

.leader {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--s-4);
    align-items: center;
    padding: var(--s-5);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--white);
}

.leader__photo,
.leader__initials {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.leader__initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-50);
    color: var(--navy-900);
    font-family: var(--font-serif);
    font-size: 1.25rem;
}

.leader__role {
    font-size: var(--fs-small);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold-700);
    font-weight: 600;
}

.leader__name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--navy-900);
}

@media (min-width: 640px) {
    .leaders { grid-template-columns: 1fr 1fr; }
}

/* Definition / facts table (stacks on mobile) */
.facts-table th,
.facts-table td {
    padding: var(--s-3) var(--s-4);
}

@media (max-width: 639px) {
    .facts-table thead { display: none; }

    .facts-table tr {
        display: block;
        padding: var(--s-3) 0;
        border-bottom: 1px solid var(--line);
    }

    .facts-table td {
        display: grid;
        grid-template-columns: 9rem 1fr;
        gap: var(--s-3);
        border: 0;
        padding: var(--s-1) 0;
    }

    .facts-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--navy-900);
    }
}

/* Contact block */
.contact-cards {
    display: grid;
    gap: var(--s-4);
}

.contact-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--s-4);
    padding: var(--s-5);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--white);
}

.contact-card h3 {
    font-size: 1.05rem;
    margin-bottom: var(--s-1);
    font-family: var(--font-sans);
}

.contact-card a {
    overflow-wrap: anywhere;
}

@media (min-width: 640px) {
    .contact-cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

/* Map facade */
.map-facade {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--navy-50);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.map-facade iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-facade__btn {
    display: grid;
    gap: var(--s-3);
    justify-items: center;
    text-align: center;
    padding: var(--s-5);
}

/* Forms */
.form {
    display: grid;
    gap: var(--s-5);
}

.form__row {
    display: grid;
    gap: var(--s-5);
}

@media (min-width: 640px) {
    .form__row--2 { grid-template-columns: 1fr 1fr; }
}

.field {
    display: grid;
    gap: var(--s-2);
}

.field label,
.field legend {
    font-weight: 600;
    color: var(--navy-900);
}

.field__hint {
    font-size: var(--fs-small);
    color: var(--ink-600);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="password"],
.field input[type="date"],
.field input[type="datetime-local"],
.field input[type="file"],
.field select,
.field textarea {
    width: 100%;
    min-height: 48px;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-btn);
    background: var(--white);
}

.field textarea {
    min-height: 140px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: var(--focus);
    outline-offset: 0;
    border-color: var(--gold-500);
}

.field .input-validation-error {
    border-color: var(--error);
}

.field-validation-error {
    color: var(--error);
    font-size: var(--fs-small);
    font-weight: 600;
}

.field--check {
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: var(--s-3);
}

.field--check input {
    width: 22px;
    height: 22px;
    margin-top: 0.2rem;
    accent-color: var(--navy-900);
}

.field--check label {
    font-weight: 400;
}

.validation-summary {
    padding: var(--s-4) var(--s-5);
    border: 1px solid var(--error);
    border-left-width: 4px;
    border-radius: var(--r-btn);
    background: #FFF5F3;
    color: var(--ink-900);
}

.validation-summary ul {
    margin: var(--s-2) 0 0;
    padding-left: 1.2rem;
}

.validation-summary a {
    color: var(--error);
}

.alert {
    padding: var(--s-4) var(--s-5);
    border-radius: var(--r-btn);
    border: 1px solid var(--line);
    border-left-width: 4px;
}

.alert--success {
    border-color: var(--success);
    background: #F1F8F3;
}

.alert--info {
    border-color: var(--navy-700);
    background: var(--navy-50);
}

.alert h2, .alert h3 {
    font-size: 1.2rem;
    margin-bottom: var(--s-2);
}

/* Honeypot: hidden from people, present for bots */
.hp-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Filter tabs */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    list-style: none;
    margin: 0 0 var(--s-6);
    padding: 0;
}

.filters a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.4rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    color: var(--navy-900);
    background: var(--white);
}

.filters a:hover {
    background: var(--cream-50);
}

.filters a[aria-current="true"] {
    background: var(--navy-900);
    border-color: var(--navy-900);
    color: var(--white);
}

/* Pager */
.pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--s-3);
    margin-top: var(--s-7);
    flex-wrap: wrap;
}

.pager__info {
    color: var(--ink-600);
    font-size: var(--fs-small);
}

/* Download list */
.download-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

.download-list li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--s-4);
    align-items: center;
    padding: var(--s-4) 0;
    border-bottom: 1px solid var(--line);
}

.download-list .icon {
    color: var(--gold-700);
}

.download-list__meta {
    font-size: var(--fs-small);
    color: var(--ink-600);
}

/* Events list (jubilee / news sidebar) */
.event-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--s-4);
}

.event {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: var(--s-4);
    align-items: start;
}

.event__date {
    text-align: center;
    border: 1px solid var(--gold-500);
    border-radius: var(--r-btn);
    padding: var(--s-2);
    background: var(--white);
    color: var(--navy-900);
    line-height: 1.1;
}

.event__date strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.6rem;
}

.event__date span {
    font-size: var(--fs-small);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.event__date--tbc {
    border-style: dashed;
    color: var(--ink-600);
    font-size: var(--fs-small);
    display: grid;
    place-items: center;
    min-height: 72px;
}

.event h3,
.event h4 {
    font-size: 1.15rem;
    margin-bottom: var(--s-1);
}

.event p {
    color: var(--ink-600);
    font-size: 0.95rem;
}

/* Post body */
.post-body {
    white-space: pre-line;
}

.post-cover {
    margin: 0 0 var(--s-6);
}

.post-cover img {
    max-height: 80vh;
    width: auto;
    margin-inline: auto;
    border-radius: var(--r-card);
    background: var(--cream-100);
}

/* Footer */
.footer {
    background: var(--navy-900);
    color: rgba(255, 255, 255, 0.86);
    margin-top: 0;
}

.footer a {
    color: var(--white);
}

.footer a:hover {
    color: var(--gold-300);
}

.footer__grid {
    display: grid;
    gap: var(--s-6);
    padding-block: var(--s-8) var(--s-6);
}

.footer h2 {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-300);
    margin-bottom: var(--s-3);
}

.footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer li + li {
    margin-top: var(--s-2);
}

.footer__brand {
    display: flex;
    gap: var(--s-4);
    align-items: flex-start;
}

.footer__brand img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--white);
    padding: 2px;
    flex-shrink: 0;
}

.footer__name {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--white);
}

.footer__motto {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--gold-300);
}

.footer address {
    font-style: normal;
}

.footer__contact li {
    display: flex;
    gap: 0.5em;
    align-items: flex-start;
}

.footer__contact svg {
    width: 18px;
    height: 18px;
    margin-top: 0.2em;
    color: var(--gold-300);
    flex-shrink: 0;
}

.footer__social {
    display: flex;
    gap: var(--s-3);
    margin-top: var(--s-4);
}

.footer__social a {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-block: var(--s-4);
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2) var(--s-5);
    justify-content: space-between;
    font-size: var(--fs-small);
    color: rgba(255, 255, 255, 0.7);
}

.footer__bottom ul {
    display: flex;
    gap: var(--s-4);
}

.footer__bottom li + li {
    margin: 0;
}

@media (min-width: 640px) {
    .footer__grid { grid-template-columns: 1fr 1fr; }

    .footer__quick ul {
        columns: 2;
    }
}

@media (min-width: 1024px) {
    .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-8); }

    .footer__quick ul { columns: 1; }
}

/* Mobile floating contact buttons */
.fab {
    position: fixed;
    right: max(var(--s-4), env(safe-area-inset-right));
    bottom: max(var(--s-4), env(safe-area-inset-bottom));
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
}

.fab a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--navy-900);
    color: var(--white);
    box-shadow: var(--shadow-2);
}

.fab a.fab--whatsapp {
    background: var(--success);
}

body.drawer-open .fab {
    display: none;
}

@media (min-width: 1024px) {
    .fab { display: none; }
}

/* Empty state (public pages: one sentence) */
.empty-note {
    padding: var(--s-6);
    text-align: center;
    color: var(--ink-600);
    border: 1px dashed var(--line-strong);
    border-radius: var(--r-card);
}

/* Draft notice (visible only while content is pending approval) */
.draft-note {
    font-size: var(--fs-small);
    color: var(--ink-600);
    border-left: 3px solid var(--gold-500);
    padding-left: var(--s-3);
}

/* ---------- 6. Motion (only when the user allows it) ---------------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(12px);
        transition: opacity 400ms ease, transform 400ms ease;
    }

    .reveal.is-visible {
        opacity: 1;
        transform: none;
    }

    .glimpses__track {
        scroll-behavior: smooth;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---------- 7. Utilities -------------------------------------------- */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.stat__value--text { font-size: 1.3rem; line-height: 1.3; }
.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: var(--s-4) !important; }
.mt-6 { margin-top: var(--s-6) !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: var(--s-4) !important; }
.mb-6 { margin-bottom: var(--s-6) !important; }
.nowrap { white-space: nowrap; }

@media print {
    .topbar, .header, .fab, .footer, .cta-band, .drawer { display: none !important; }
}
