/* St. Rita — public site, theme B « Cour de récré »
   Logo cyan + ink, a crayon yellow for calls to action, warm paper ground, rounded shapes. */
:root {
    --cyan: #00b8e0;           /* logo cyan: fills only, never text on white */
    --cyan-ink: #006f8c;       /* cyan dark enough for text on white (5.6:1) */
    --cyan-deep: #00596f;      /* text on --cyan-soft */
    --cyan-soft: #ddf4fa;
    --sun: #ffc53d;            /* crayon yellow: Inscription, highlights (ink text on it) */
    --sun-ink: #7a5200;
    --sun-soft: #fff1cc;
    --ink: #13262e;            /* text, dark bands, primary buttons */
    --ink-line: #2b4048;
    --muted: #3e5157;
    --on-dark: #e9eef0;
    --on-dark-muted: #c5d0d3;
    --line: #e4e1d8;
    --field: #9ea5a6;
    --sand: #f1efe8;           /* soft section background */
    --mist: #e4ecee;
    --ground: #fbfaf6;         /* page background */
    --white: #ffffff;
    --danger: #b3261e;

    --font-body: "DM Sans", "Readex Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Bricolage Grotesque", "DM Sans", "Readex Pro", system-ui, sans-serif;

    --wrap: 1200px;
    --gutter: clamp(16px, 4vw, 24px);
    --radius: 24px;
    --radius-sm: 14px;
    --pill: 999px;
    --step--1: 0.875rem;
    --step-0: 1.0625rem;
    --step-1: 1.1875rem;
    --step-2: 1.5rem;
    --step-3: clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem);
    --step-4: clamp(2.4rem, 1.5rem + 3.4vw, 4.25rem);
}

.track-technique {
    --cyan: #00a5d0;
    --cyan-ink: #00627c;
    --cyan-deep: #00566c;
}

:lang(ar) {
    --font-body: "Readex Pro", "DM Sans", Tahoma, sans-serif;
    --font-display: "Readex Pro", "Bricolage Grotesque", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.6;
    color: var(--ink);
    background: var(--ground);
}

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

a { color: var(--cyan-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

h1, h2, h3 {
    font-family: var(--font-display);
    line-height: 1.06;
    margin: 0;
    text-wrap: balance;
    color: var(--ink);
}
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.015em; }
h3 { font-weight: 800; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; line-height: 1.3; font-weight: 700; }

p { margin: 0; }

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: absolute;
    inset-inline-start: 8px;
    top: -60px;
    background: var(--ink);
    color: var(--white);
    padding: 10px 16px;
    border-radius: var(--pill);
    z-index: 100;
}
.skip-link:focus { top: 8px; }

/* Small label above a heading: bold cyan text */
.eyebrow {
    display: block;
    font-size: 0.9375rem;
    color: var(--muted);
    font-weight: 700;
}
.eyebrow--accent { color: var(--cyan-ink); }
.eyebrow--light { color: #7fdcf2; }
/* In page heads and the hero it becomes a chip */
.hero .eyebrow--accent, .page-head .eyebrow--accent {
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: var(--pill);
    background: var(--cyan-soft);
    color: var(--cyan-deep);
    font-size: var(--step--1);
}

.chip {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    padding: 3px 12px;
    border-radius: var(--pill);
    background: var(--cyan-soft);
    color: var(--cyan-deep);
    font-size: var(--step--1);
    font-weight: 700;
}
.chip--sun { background: var(--sun); color: var(--ink); }
.chip--plain { background: var(--white); color: var(--ink); }

.highlight { background: var(--sun); padding: 0 0.18em; border-radius: var(--radius-sm); box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.lead { font-size: var(--step-1); color: var(--muted); max-width: 36em; }

/* ---------------------------------------------------------------- buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--pill);
    transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--sun); color: var(--ink); }
.btn--accent:hover { background: #ffd366; color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #20404c; color: var(--white); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.link-more { font-weight: 700; text-decoration: none; }
.link-more::after { content: " →"; }
[dir="rtl"] .link-more::after { content: " ←"; }
.link-more:hover { text-decoration: underline; }
.link-back { display: inline-block; margin-bottom: 4px; font-weight: 700; text-decoration: none; }

/* ---------------------------------------------------------------- top bar */
.topbar { background: var(--ink); color: var(--on-dark); font-size: var(--step--1); }
.topbar__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 24px;
    padding-block: 9px;
}
.topbar__contact { display: flex; gap: 8px; flex-wrap: wrap; }
.topbar__contact a { color: var(--on-dark); text-decoration: none; }
.langs { display: flex; gap: 16px; }
.langs a { color: var(--on-dark); text-decoration: none; padding-block: 2px; }
.langs a[aria-current] { color: var(--white); font-weight: 700; border-bottom: 2px solid var(--sun); }

/* ----------------------------------------------------------------- header */
.header { border-bottom: 1px solid var(--line); background: var(--white); position: relative; z-index: 20; }
.header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 24px;
    padding-block: 12px;
}
.brand img { height: 58px; width: auto; }

.track-switch {
    display: inline-flex;
    padding: 4px;
    background: var(--sand);
    border-radius: var(--pill);
}
.track-switch a {
    padding: 8px 16px;
    border-radius: var(--pill);
    color: var(--muted);
    font-size: var(--step--1);
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}
.track-switch a:hover { color: var(--ink); }
.track-switch a[aria-current] { background: var(--ink); color: var(--white); font-weight: 700; }

.nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-inline-start: auto;
}
.nav a:not(.btn) {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--pill);
    white-space: nowrap;
}
.nav a:not(.btn):hover { background: var(--sand); color: var(--ink); }
.nav a[aria-current="page"]:not(.btn) { background: var(--cyan-soft); font-weight: 700; }
.nav__cta { min-height: 44px; padding: 0 20px; margin-inline-start: 8px; background: var(--sun); color: var(--ink); }
.nav__cta:hover { background: #ffd366; color: var(--ink); }

.menu-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    margin-inline-start: auto;
    min-height: 46px;
    padding: 0 18px;
    background: var(--sand);
    border: 0;
    border-radius: var(--pill);
    font: inherit;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
}
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    position: relative;
}
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }

@media (max-width: 1140px) {
    .menu-toggle { display: inline-flex; }
    .nav {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        margin: 0;
        padding-bottom: 8px;
    }
    .nav.is-open { display: flex; }
    .nav a:not(.btn) { padding: 12px 16px; }
    .nav__cta { margin: 8px 0 0; }
    .brand img { height: 48px; }
}
@media (max-width: 520px) {
    .track-switch { order: 3; flex-basis: 100%; }
    .track-switch a { flex: 1; text-align: center; }
}

/* -------------------------------------- presentation video (centred, above the hero) */
.hero-video { background: var(--ground); padding: clamp(20px, 4vw, 40px) 16px 0; }
.hero-video video {
    display: block;
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin-inline: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    border-radius: var(--radius);
    background: #06232b;
}

/* ------------------------------------------------------------------- hero */
.hero { background: var(--ground); }
.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(28px, 5vw, 56px);
    align-items: center;
    padding-block: clamp(36px, 6vw, 72px) clamp(24px, 4vw, 40px);
}
.hero__text { display: flex; flex-direction: column; gap: 22px; }
.hero__media { position: relative; }
.hero__media img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius);
}
.hero__badge {
    position: absolute;
    inset-inline-start: -18px;
    bottom: -18px;
    max-width: 240px;
    padding: 18px 20px;
    border-radius: var(--radius);
    background: var(--cyan);
    color: #06232b;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 1.15;
    text-decoration: none;
}
.hero__badge:hover { color: #06232b; background: #33c7e7; }
.hero__badge small { display: block; margin-top: 8px; font-family: var(--font-body); font-size: var(--step--1); font-weight: 700; text-decoration: underline; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.9375rem; }
.hero__facts li { display: flex; align-items: center; gap: 8px; }
.hero__facts li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); }
.hero__facts li:nth-child(2)::before { background: var(--sun); }
.hero__facts li:nth-child(3)::before { background: var(--ink); }
@media (max-width: 860px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__badge { inset-inline-start: 12px; bottom: -14px; }
}

/* ------------------------------------------------------------- quick links */
.quicklinks {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding-top: 36px;
}
.quicklink {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
    text-decoration: none;
    transition: border-color .15s, transform .15s;
}
.quicklink:hover { border-color: var(--cyan); color: var(--ink); transform: translateY(-2px); }
.quicklink__mark {
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    background: var(--cyan-soft);
    color: var(--cyan-ink);
    display: grid;
    place-items: center;
}
.quicklink:nth-child(even) .quicklink__mark { background: var(--sun-soft); color: var(--sun-ink); }
.quicklink__mark svg { width: 22px; height: 22px; }
.quicklink__title { display: block; font-weight: 700; }
.quicklink__hint { display: block; font-size: var(--step--1); color: var(--muted); }
@media (max-width: 900px) { .quicklinks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .quicklinks { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- sections */
.section { padding-block: clamp(44px, 6vw, 72px); }
.section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 28px;
}
.section__head .eyebrow { margin-bottom: 8px; }
.band { background: var(--sand); }
.band--dark { background: var(--ink); color: var(--on-dark); }
.band--dark h2 { color: var(--white); }
.band--dark .link-more { color: #7fdcf2; }
.band--dark .lead, .band--dark p { color: var(--on-dark-muted); }

.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) {
    .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.empty { color: var(--muted); padding: 24px; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--white); }

/* ------------------------------------------------------------------ cards */
.card-activity {
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: var(--ink);
    text-decoration: none;
}
.card-activity:hover { color: var(--ink); }
.card-activity__media {
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--sand);
    border-radius: var(--radius);
    overflow: hidden;
}
.card-activity__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card-activity:hover img { transform: scale(1.04); }
.card-activity__body { display: flex; flex-direction: column; gap: 8px; }
.card-activity__meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--step--1); color: var(--muted); }
.card-activity__title { font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; line-height: 1.2; }
.card-activity:hover .card-activity__title { text-decoration: underline; text-decoration-thickness: 2px; }
.card-activity__meta { font-size: var(--step--1); color: var(--muted); }

/* Cycle cards: a colour block per cycle, with its number */
.card-cycle {
    --tone: var(--cyan-soft);
    --tone-ink: var(--cyan-ink);
    display: flex;
    flex-direction: column;
    background: var(--tone);
    color: var(--ink);
    text-decoration: none;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .15s;
}
.card-cycle:hover { color: var(--ink); transform: translateY(-3px); }
.card-cycle--2 { --tone: var(--sun-soft); --tone-ink: var(--sun-ink); }
.card-cycle--3 { --tone: var(--mist); --tone-ink: var(--muted); }
.card-cycle--4 { --tone: var(--ink); --tone-ink: var(--cyan); color: var(--white); }
.card-cycle--4:hover { color: var(--white); }
.card-cycle__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.card-cycle__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card-cycle:hover img { transform: scale(1.04); }
.card-cycle__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; flex: 1; }
.card-cycle__num { font-family: var(--font-display); font-weight: 800; font-size: 2.5rem; line-height: 1; color: var(--tone-ink); }
.card-cycle__title { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1.15; }
.card-cycle__levels { margin-top: auto; align-self: flex-start; padding: 3px 12px; border-radius: var(--pill); background: var(--white); color: var(--ink); font-size: var(--step--1); font-weight: 700; }

/* ---------------------------------------------------------------- message */
.message {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 56px);
    align-items: center;
}
.message__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--white); border-radius: var(--pill) var(--pill) var(--radius) var(--radius); }
.message__text { display: flex; flex-direction: column; gap: 18px; }
.message blockquote { margin: 0; }
.message blockquote p {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
    line-height: 1.3;
    letter-spacing: -0.01em;
    max-width: 34em;
    color: var(--ink);
}
.message__name { font-weight: 700; }
@media (max-width: 640px) {
    .message { grid-template-columns: 1fr; }
    .message__portrait { max-width: 240px; }
}

/* ------------------------------------------------------------------ promo */
.promo-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--cyan);
    color: #06232b;
}
.promo-card__text { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.promo-card__text h2 { color: #06232b; }
.promo-card__text p { color: #06232b; }
.promo-card__text .btn { align-self: flex-start; }
.promo-card img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.promo-card--dark { background: var(--ink); color: var(--on-dark); }
.promo-card--dark .promo-card__text h2 { color: var(--white); }
.promo-card--dark .promo-card__text p { color: var(--on-dark-muted); }
@media (max-width: 760px) { .promo-card { grid-template-columns: 1fr; } }

.promo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 40px;
    padding-block: clamp(40px, 5vw, 64px);
}
.promo > div { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }

/* -------------------------------------------------------------- page head */
.page-head { background: var(--ground); }
.page-head .wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-block: clamp(36px, 5vw, 64px) clamp(16px, 3vw, 28px);
}
.page-head__meta { color: var(--muted); }
.page-head--error { min-height: 50vh; display: flex; align-items: center; }
.page-head--error .wrap { padding-block: 56px; }
.prose { max-width: 70ch; font-size: var(--step-1); }

/* ---------------------------------------------------------------- gallery */
.gallery {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 3 280px;
    column-gap: 14px;
}
.gallery__item { break-inside: avoid; margin-bottom: 14px; background: var(--sand); border-radius: var(--radius-sm); overflow: hidden; }
.gallery__item a { display: block; overflow: hidden; }
.gallery__item img { width: 100%; height: auto; transition: transform .3s ease, opacity .3s; }
.gallery__item a:hover img { transform: scale(1.03); opacity: .94; }
.gallery__item video { width: 100%; background: #000; }

/* --------------------------------------------------------------- lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 56px 8px 24px;
    background: rgba(12, 24, 29, .95);
}
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: var(--radius-sm); }
.lightbox__figure figcaption { color: var(--on-dark-muted); font-size: var(--step--1); }
.lightbox button {
    background: rgba(255, 255, 255, .1);
    color: var(--white);
    border: 0;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    flex: none;
}
.lightbox button:hover { background: rgba(255, 255, 255, .2); }
.lightbox__close { position: absolute; top: 8px; inset-inline-end: 8px; }
[dir="rtl"] .lightbox__nav { transform: scaleX(-1); }
body.no-scroll { overflow: hidden; }

/* ------------------------------------------------------------------ pager */
.pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 44px;
}
.pager a { font-weight: 700; text-decoration: none; padding: 10px 20px; border-radius: var(--pill); background: var(--white); border: 1px solid var(--line); color: var(--ink); }
.pager a:hover { border-color: var(--ink); }
.pager span { color: var(--muted); }

/* ----------------------------------------------------------------- footer */
.footer { background: var(--ink); color: var(--on-dark-muted); }
.footer a { color: var(--on-dark-muted); text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer__grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, minmax(0, 1fr));
    gap: 32px;
    padding-block: 56px 32px;
}
.footer__grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer__about { display: flex; flex-direction: column; gap: 8px; }
.footer__name { font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); color: var(--white); }
.footer__title { font-weight: 700; color: var(--white); margin-bottom: 10px; }
.footer__legal { padding-block: 16px 28px; border-top: 1px solid var(--ink-line); font-size: 0.8125rem; color: var(--on-dark-muted); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* ======================================================= content pages */
.muted { color: var(--muted); }
.section--tight { padding-top: 0; }
.section__title { margin-bottom: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
@media (max-width: 760px) { .grid--2 { grid-template-columns: 1fr; } }

/* Page head with a photo: text on the left, rounded photo on the right */
.page-head--image .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    grid-template-areas: "text image";
    align-items: center;
    gap: 16px clamp(24px, 5vw, 56px);
}
.page-head--image .page-head__text { grid-area: text; display: flex; flex-direction: column; gap: 16px; }
.page-head--image .page-head__image {
    grid-area: image;
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    border-radius: var(--radius);
}
@media (max-width: 820px) {
    .page-head--image .wrap { grid-template-columns: 1fr; grid-template-areas: "text" "image"; }
}
.page-head__switch { font-size: var(--step--1); color: var(--muted); }

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: clamp(24px, 5vw, 64px);
    align-items: start;
}
.split--text > :first-child h2 { position: sticky; top: 24px; }
.split__image { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 820px) {
    .split { grid-template-columns: 1fr; }
    .split--text > :first-child h2 { position: static; }
}

.prose { display: flex; flex-direction: column; gap: 1em; line-height: 1.7; }
.prose__first { font-family: var(--font-display); font-weight: 600; font-size: var(--step-2); line-height: 1.4; color: var(--ink); }

.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.value { background: var(--white); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.value:nth-child(4n+1) { background: var(--cyan-soft); }
.value:nth-child(4n+2) { background: var(--sun-soft); }
.value:nth-child(4n+3) { background: var(--mist); }
.value:nth-child(4n+4) { background: var(--ink); color: var(--white); }
.value:nth-child(4n+4) h3 { color: var(--white); }
.value:nth-child(4n+4) p { color: var(--on-dark-muted); }
.value__num { font-family: var(--font-display); font-weight: 800; font-size: 2.25rem; line-height: 1; color: var(--cyan-ink); }
.value:nth-child(4n+2) .value__num { color: var(--sun-ink); }
.value:nth-child(4n+3) .value__num { color: var(--muted); }
.value:nth-child(4n+4) .value__num { color: var(--cyan); }
.value h3 { font-size: var(--step-1); }
.value p { color: var(--muted); }
@media (max-width: 980px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

.rector { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.rector__aside { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 4px; }
.rector__aside img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--white); margin-bottom: 14px; border-radius: var(--pill) var(--pill) var(--radius) var(--radius); }
.rector__name { font-weight: 700; }
.rector__role { color: var(--muted); font-size: var(--step--1); }
@media (max-width: 760px) {
    .rector { grid-template-columns: 1fr; }
    .rector__aside { position: static; max-width: 240px; }
}

.checklist { margin: 0; padding: 0; list-style: none; counter-reset: item; display: flex; flex-direction: column; gap: 16px; }
.checklist > li { counter-increment: item; position: relative; padding-inline-start: 52px; min-height: 36px; }
.checklist > li::before {
    content: counter(item);
    position: absolute;
    inset-inline-start: 0;
    top: -4px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--sun);
    color: var(--ink);
    font-weight: 700;
}
.checklist ul { margin: 8px 0 0; padding-inline-start: 20px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }

.levels { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.levels li { padding: 14px 18px; background: var(--white); border-radius: var(--radius-sm); }

.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { padding: 8px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--pill); }
.tags--large li { font-weight: 700; background: var(--cyan-soft); border-color: transparent; }
.tags--large li:nth-child(even) { background: var(--sun-soft); }
.tags--links li { padding: 0; }
.tags--links a { display: block; padding: 12px 20px; border-radius: var(--pill); color: var(--ink); text-decoration: none; font-weight: 700; }
.tags--links a:hover { background: var(--cyan-soft); }

/* ---------------------------------------------------------------- people */
.people-page { display: flex; flex-direction: column; gap: clamp(36px, 5vw, 56px); }
.people-group__title { font-size: var(--step-2); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.people-group__title::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--sun); flex: none; }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.people--compact { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.person { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.person__photo { flex: none; width: 64px; height: 64px; object-fit: cover; border-radius: 50%; }
.person__photo--empty {
    display: grid;
    place-items: center;
    background: var(--cyan-soft);
    color: var(--cyan-ink);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
}
.person:nth-child(even) .person__photo--empty { background: var(--sun-soft); color: var(--sun-ink); }
.people--compact .person__photo { width: 44px; height: 44px; font-size: 1.05rem; }
.person__body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.person__role { font-size: var(--step--1); color: var(--cyan-ink); font-weight: 700; }
.person__name { font-weight: 700; font-size: var(--step-1); }
.person__sub { font-size: var(--step--1); color: var(--muted); }
.person__contact { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: var(--step--1); align-items: center; }
.person__contact span { padding: 2px 10px; border-radius: var(--pill); background: var(--sand); font-weight: 700; }
.person__contact a { overflow-wrap: anywhere; }
.extensions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.extensions li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.extensions__num { font-weight: 700; font-variant-numeric: tabular-nums; padding: 2px 12px; border-radius: var(--pill); background: var(--cyan-soft); color: var(--cyan-deep); }

/* --------------------------------------------------------- announcements */
.notice-card { display: flex; flex-direction: column; background: var(--white); color: var(--ink); border-radius: var(--radius); overflow: hidden; scroll-margin-top: 24px; }
.band:not(.band--dark) .notice-card, .section .notice-card { border: 1px solid var(--line); }
.band--dark .notice-card { border: 0; }
.band--dark .notice-card .link-more { color: var(--cyan-ink); }
.notice-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--sand); overflow: hidden; }
.notice-card__media img { width: 100%; height: 100%; object-fit: cover; }
.notice-card__badge { position: absolute; top: 12px; inset-inline-end: 12px; padding: 3px 12px; border-radius: var(--pill); background: var(--sun); color: var(--ink); font-size: 0.8125rem; font-weight: 700; }
.notice-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; }
.notice-card__date { font-size: var(--step--1); color: var(--muted); font-weight: 500; }
.band--dark .notice-card p, .band--dark .notice-card__date { color: var(--muted); }
.notice-card__title { font-size: 1.375rem; line-height: 1.2; }
.notice-card__sub { color: var(--muted); }
.notice-card:target { outline: 4px solid var(--sun); }
.notice-list { display: flex; flex-direction: column; gap: 24px; }
.notice-list .notice-card { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
.notice-list .notice-card__media { aspect-ratio: auto; min-height: 220px; }
.notice-list .notice-card__body { padding: 28px 32px; gap: 12px; }
.notice-list .notice-card__title { font-size: var(--step-2); }
.notice-list .btn { align-self: flex-start; }
@media (max-width: 720px) { .notice-list .notice-card { grid-template-columns: 1fr; } .notice-list .notice-card__media { aspect-ratio: 16 / 10; min-height: 0; } }

.notices-band { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 40px); align-items: start; }
.notices-band__intro { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 900px) { .notices-band { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- cycles */
.hero--page .hero__text { gap: 16px; }
.hero__levels { align-self: flex-start; padding: 4px 14px; border-radius: var(--pill); background: var(--sun); font-weight: 700; color: var(--ink); }

/* ---------------------------------------------------------------- majors */
.majors { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(32px, 5vw, 56px); }
.major { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; scroll-margin-top: 24px; }
.major:nth-child(even) .major__media { order: 2; }
.major__media video, .major__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #111; border-radius: var(--radius); }
.major__placeholder {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    background: var(--cyan-soft);
    color: var(--cyan-ink);
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
}
.major:nth-child(even) .major__placeholder { background: var(--sun-soft); color: var(--sun-ink); }
.major__body { display: flex; flex-direction: column; gap: 12px; }
.major__num { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--cyan-ink); }
@media (max-width: 820px) {
    .major { grid-template-columns: 1fr; }
    .major:nth-child(even) .major__media { order: 0; }
}

/* ---------------------------------------------------------------- forms */
.contact-card { display: flex; flex-direction: column; gap: 22px; padding: 28px; border-radius: var(--radius); background: var(--cyan-soft); }
.contact-card__title { font-size: var(--step--1); font-weight: 700; color: var(--cyan-deep); margin-bottom: 4px; font-family: var(--font-body); }
.form { display: flex; flex-direction: column; gap: 24px; min-width: 0; scroll-margin-top: 16px; }
.form--narrow { max-width: 760px; }
.form__note { font-size: var(--step--1); color: var(--muted); }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
@media (max-width: 640px) { .form__grid { grid-template-columns: 1fr; } }
.form__section { margin: 0; padding: 24px 24px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); min-width: 0; }
.form__section legend { display: flex; align-items: center; gap: 10px; padding: 0 8px; font-family: var(--font-display); font-weight: 800; font-size: var(--step-1); }
.form__step { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--sun); color: var(--ink); font-size: 0.9375rem; font-family: var(--font-body); }
.form .btn { align-self: flex-start; min-width: 180px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field--wide { grid-column: 1 / -1; }
.field > label, .field legend { font-weight: 700; font-size: var(--step--1); }
.field__req { color: var(--danger); }
.field input:not([type=radio]), .field select, .field textarea {
    width: 100%;
    min-height: 50px;
    padding: 10px 16px;
    font: inherit;
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid var(--field);
    border-radius: var(--radius-sm);
}
.field input[type=file] { padding: 10px; background: var(--ground); border-style: dashed; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--cyan); outline-offset: 0; border-color: var(--ink); }
.field__hint { font-size: var(--step--1); color: var(--muted); }
.field__error { font-size: var(--step--1); color: var(--danger); font-weight: 700; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); border-width: 2px; }
.field__choices { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.choice { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 1.5px solid var(--field); border-radius: var(--pill); cursor: pointer; font-weight: 500; background: var(--white); }
.choice:has(input:checked) { border-color: var(--ink); background: var(--cyan-soft); font-weight: 700; }
.choice input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.field--radios legend { margin-bottom: 6px; }

.notice { padding: 14px 20px; border-radius: var(--radius-sm); font-weight: 500; }
.notice:focus { outline: none; }
.notice--success { background: #e4f4ea; color: #145a33; box-shadow: inset 4px 0 0 #1d7a46; }
.notice--error { background: #fde8e6; color: #8c1d17; box-shadow: inset 4px 0 0 var(--danger); }
[dir="rtl"] .notice--success { box-shadow: inset -4px 0 0 #1d7a46; }
[dir="rtl"] .notice--error { box-shadow: inset -4px 0 0 var(--danger); }

/* Honeypot: hidden from people, visible to bots */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
