/* ==========================================================================
   School Library website
   DBRA CM SHRI School, Sector 11, Rohini
   Colours come from the CM SHRI School emblem (royal blue, saffron, orange,
   sky blue). Shapes and numbered sections follow the look of EUNOIA, the
   school e-magazine.
   ========================================================================== */

:root {
    --navy: #1b2a6b;
    --navy-deep: #142057;
    --navy-ink: #0d1640;
    --blue: #2f6db5;
    --sky: #4aaee3;
    --sky-soft: #e8f4fb;
    --saffron: #f5b301;
    --saffron-pale: #ffd978;
    --accent: #d9622b;
    --accent-dark: #b84d1c;
    --cream: #fbf6ec;
    --white: #ffffff;
    --ink: #1a1f36;
    --muted: #565d75;
    --line: #e7e0d0;
    --line-cool: #dde3ef;
    --head: "Lexend", "Segoe UI", Roboto, Arial, sans-serif;
    --display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
    --sans: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;
    --container: 1200px;
    --radius: 4px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 64px;
}

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--navy);
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 400;
}

p {
    margin: 0 0 1em;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

button {
    font: inherit;
    cursor: pointer;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 100;
    background: var(--saffron);
    color: var(--navy-ink);
    padding: 8px 14px;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 8px;
}

:focus-visible {
    outline: 2px solid var(--saffron);
    outline-offset: 2px;
}


/* ---------- Shared type ---------- */

.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.eyebrow--light {
    color: var(--saffron);
}

.section-title {
    font-family: var(--head);
    font-size: clamp(28px, 3.4vw, 40px);
    line-height: 1.2;
    color: var(--navy);
}

.section-title--light {
    color: var(--white);
}

.section-head {
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 18px;
}

.section-head::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 72px;
    height: 4px;
    background: linear-gradient(90deg, var(--saffron) 0 33.3%, var(--sky) 33.3% 66.6%, var(--accent) 66.6% 100%);
}

.section-head--row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}

.section-head__note {
    margin: 0;
    color: var(--muted);
    max-width: 380px;
}

.lead {
    font-size: 19px;
    color: var(--ink);
}

.subhead {
    font-family: var(--head);
    font-size: 22px;
    color: var(--navy);
    margin: 56px 0 20px;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.link-arrow::after {
    content: "";
    width: 7px;
    height: 7px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s;
}

.link-arrow:hover {
    color: var(--accent);
}

.link-arrow:hover::after {
    transform: translateX(3px) rotate(45deg);
}

.tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 2px 8px;
    border: 1px solid var(--line-cool);
    color: var(--navy);
    background: var(--sky-soft);
    border-radius: var(--radius);
    vertical-align: middle;
    white-space: nowrap;
}

.tag--red {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.tag--gold {
    background: var(--saffron);
    border-color: var(--saffron);
    color: var(--navy-ink);
}


/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius);
    transition: background .2s, color .2s, border-color .2s;
}

.btn--primary {
    background: var(--saffron);
    color: var(--navy-ink);
    border-color: var(--saffron);
}

.btn--primary:hover {
    background: #e2a400;
    border-color: #e2a400;
}

.btn--ghost {
    color: var(--navy);
    border-color: var(--navy);
    background: transparent;
}

.btn--ghost:hover {
    background: var(--navy);
    color: var(--white);
}

.btn--outline {
    color: var(--navy);
    border-color: var(--navy);
    background: var(--white);
}

.btn--outline:hover {
    background: var(--navy);
    color: var(--white);
}


/* ---------- Top bar ---------- */

.topbar {
    background: var(--navy-ink);
    color: #c9d1e6;
    font-size: 14px;
}

.topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 38px;
    gap: 16px;
}

.topbar__text {
    margin: 0;
}

.topbar__links {
    display: flex;
    gap: 0;
}

.topbar__links li+li {
    border-left: 1px solid rgba(255, 255, 255, .18);
}

.topbar__links a {
    color: #c9d1e6;
    text-decoration: none;
    padding: 0 14px;
}

.topbar__links li:last-child a {
    padding-right: 0;
}

.topbar__links a:hover {
    color: var(--white);
}


/* ---------- Masthead ---------- */

.masthead {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.masthead__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    padding-bottom: 18px;
    gap: 24px;
}

.masthead__brand {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
}

.masthead__logo {
    width: 92px;
    height: 92px;
    flex-shrink: 0;
}

.masthead__name {
    display: flex;
    flex-direction: column;
}

.masthead__title {
    font-family: var(--head);
    font-size: clamp(19px, 2.2vw, 27px);
    line-height: 1.2;
    color: var(--navy);
    font-weight: 600;
    letter-spacing: -.01em;
}

.masthead__place {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent);
}

.masthead__unit {
    border-left: 1px solid var(--line);
    padding-left: 24px;
    text-align: right;
}

.masthead__unit-label {
    display: inline-block;
    font-family: var(--display);
    font-size: 26px;
    letter-spacing: .06em;
    line-height: 1;
    color: var(--navy-ink);
    background: var(--saffron);
    padding: 9px 14px 7px;
    white-space: nowrap;
}

.br-sm {
    display: none;
}

.nw {
    white-space: nowrap;
}


/* ---------- Main nav ---------- */


/* ---------- Ticker ---------- */

.ticker {
    background: var(--sky-soft);
    border-bottom: 1px solid var(--line-cool);
}

.ticker__inner {
    display: flex;
    align-items: stretch;
    padding-left: 0;
    padding-right: 0;
}

.ticker__label {
    flex-shrink: 0;
    background: var(--accent);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 10px 18px;
    display: flex;
    align-items: center;
}

.ticker__viewport {
    overflow: hidden;
    flex: 1;
    position: relative;
}

.ticker__track {
    display: flex;
    width: max-content;
    animation: ticker 55s linear infinite;
}

.ticker:hover .ticker__track {
    animation-play-state: paused;
}

.ticker__track li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    white-space: nowrap;
}

.ticker__track li::after {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--accent);
    margin: 0 28px;
    transform: rotate(45deg);
}

.ticker__track a {
    color: var(--navy);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.ticker__track a:hover {
    text-decoration: underline;
}

@keyframes ticker {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}


/* ---------- Hero ---------- */

.hero {
    position: relative;
    background: var(--navy-ink);
}

.hero__slides {
    position: relative;
    height: clamp(380px, 52vw, 560px);
    overflow: hidden;
}

.hero__slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .9s ease, visibility .9s;
}

.hero__slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(11, 21, 49, .54);
    pointer-events: none;
}

.hero__caption {
    position: absolute;
    z-index: 2;
    left: max(24px, calc((100% - var(--container)) / 2 + 24px));
    top: 50%;
    max-width: 720px;
    padding: 0;
    transform: translateY(-50%);
}

.hero__caption .eyebrow {
    color: var(--saffron);
}

.hero__caption h1,
.hero__caption h2 {
    font-family: var(--head);
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 10px;
}

.hero__caption h1 {
    max-width: 680px;
    font-size: 48px;
}

.hero__caption p {
    max-width: 600px;
    color: rgba(255, 255, 255, .92);
    margin-bottom: 20px;
}

.hero__caption .btn--ghost {
    color: var(--white);
    border-color: rgba(255, 255, 255, .85);
    background: transparent;
}

.hero__caption .btn--ghost:hover {
    background: var(--white);
    color: var(--navy);
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero__controls {
    position: absolute;
    z-index: 3;
    right: max(24px, calc((100% - var(--container)) / 2 + 24px));
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero__arrow {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .92);
    border: 0;
    border-radius: var(--radius);
    color: var(--navy);
}

.hero__arrow:hover {
    background: var(--white);
    color: var(--accent);
}

.hero__arrow svg,
.lightbox svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.hero__dots {
    display: flex;
    gap: 8px;
}

.hero__dots button {
    width: 28px;
    height: 4px;
    padding: 0;
    border: 0;
    background: rgba(255, 255, 255, .5);
}

.hero__dots button[aria-selected="true"] {
    background: var(--saffron);
}


/* ---------- Facts ---------- */

.facts {
    background: var(--navy);
    color: var(--white);
}

.facts__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.fact {
    padding: 28px 24px;
    border-left: 1px solid rgba(255, 255, 255, .14);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fact:first-child {
    border-left: 0;
    padding-left: 0;
}

.fact__num {
    font-family: var(--display);
    font-size: 48px;
    line-height: 1;
    letter-spacing: .02em;
    color: var(--saffron);
}

.fact__label {
    font-size: 15px;
    color: #c9d1e6;
}


/* ---------- Sections ---------- */

.section {
    padding: 88px 0;
}

.section--paper {
    background: var(--cream);
}

.section--tight {
    padding: 64px 0;
}


/* ---------- Welcome + notice ---------- */

.welcome {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 64px;
    align-items: start;
}

.welcome__text .section-title {
    margin-bottom: 22px;
}

.welcome__text p {
    color: #3b4254;
}

.welcome__text .lead {
    color: var(--ink);
}

.notice {
    border: 1px solid var(--line);
    background: var(--white);
}

.notice__head {
    background: var(--navy);
    padding: 14px 22px;
}

.notice__head h3 {
    font-family: var(--head);
    font-size: 20px;
    color: var(--white);
}

.notice__list li {
    padding: 16px 22px;
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.notice__list li:last-child {
    border-bottom: 0;
}

.notice__list a {
    color: var(--ink);
    text-decoration: none;
    font-size: 16px;
    line-height: 1.45;
}

.notice__list a:hover {
    color: var(--accent);
    text-decoration: underline;
}


/* ---------- Services ---------- */

.services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    background: var(--white);
}

.service {
    display: block;
    padding: 30px 26px 32px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: var(--ink);
    position: relative;
    transition: background .2s;
}

.service::before {
    content: "";
    position: absolute;
    left: -1px;
    top: -1px;
    right: -1px;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s;
}

.service:hover {
    background: #fbfaf7;
}

.service:hover::before {
    transform: scaleX(1);
}

.service__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 18px;
    fill: none;
    stroke: var(--navy);
    stroke-width: 1.6;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.service:hover .service__icon {
    stroke: var(--accent);
}

.service h3 {
    font-family: var(--head);
    font-size: 20px;
    color: var(--navy);
    margin-bottom: 8px;
}

.service p {
    font-size: 15px;
    color: var(--muted);
    margin: 0;
}


/* ---------- Catalogue ---------- */

.catalogue {
    background: var(--navy-deep);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.catalogue>.container {
    position: relative;
    z-index: 1;
}

.catalogue__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.catalogue__note {
    margin: 0;
    color: #b9c3dd;
    max-width: 400px;
}

.search {
    position: relative;
}

.search__icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--muted);
    stroke-width: 2;
}

.search__input {
    width: 100%;
    padding: 18px 20px 18px 56px;
    font: inherit;
    font-size: 18px;
    color: var(--ink);
    background: var(--white);
    border: 2px solid var(--white);
    border-radius: var(--radius);
}

.search__input:focus {
    outline: none;
    border-color: var(--saffron);
}

.search__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 14px;
    font-size: 14px;
    color: #b9c3dd;
}

.search__chips button {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: var(--radius);
    padding: 4px 12px;
    font-size: 14px;
}

.search__chips button:hover {
    border-color: var(--saffron);
    color: var(--saffron);
}

.results {
    margin-top: 28px;
    background: var(--white);
    color: var(--ink);
}

.results__meta {
    padding: 12px 20px;
    font-size: 14px;
    color: var(--muted);
    border-bottom: 1px solid var(--line-cool);
    background: #f8f9fc;
}

.results__meta strong {
    color: var(--navy);
}

.results__table-wrap {
    overflow-x: auto;
}

.results__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.results__table th {
    text-align: left;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
    padding: 12px 20px;
    border-bottom: 1px solid var(--line-cool);
    white-space: nowrap;
}

.results__table td {
    padding: 12px 20px;
    border-bottom: 1px solid #eef0f5;
    vertical-align: top;
}

.results__table tr:last-child td {
    border-bottom: 0;
}

.results__table tbody tr:hover {
    background: #fafbfd;
}

.results__table td:first-child {
    font-variant-numeric: tabular-nums;
    color: var(--muted);
    white-space: nowrap;
}

.results__table td:nth-child(2) {
    font-weight: 600;
    color: var(--navy);
}

.results__table td:nth-child(5) {
    white-space: nowrap;
}

.results__table mark {
    background: #fbe8a6;
    color: inherit;
    padding: 0 1px;
}

.results__empty {
    padding: 36px 20px;
    text-align: center;
    color: var(--muted);
}


/* ---------- EUNOIA ---------- */

.eunoia {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.eunoia__photo {
    margin: 0;
    position: relative;
}

.eunoia__photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.eunoia__photo::before {
    content: "";
    position: absolute;
    left: -14px;
    top: -14px;
    width: 40%;
    height: 40%;
    border-left: 4px solid var(--saffron);
    border-top: 4px solid var(--saffron);
    pointer-events: none;
}

.eunoia__photo figcaption {
    font-size: 14px;
    color: var(--muted);
    margin-top: 10px;
}

.eunoia__text .section-title {
    margin-bottom: 20px;
}

.eunoia__text p {
    color: #3b4254;
}

.eunoia__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}


/* ---------- Graduation ---------- */

.graduation {
    background: var(--navy);
    color: var(--white);
    text-align: center;
    padding: 72px 0;
    border-top: 6px solid var(--saffron);
    position: relative;
    overflow: hidden;
}

.graduation__inner {
    max-width: 920px;
}

.graduation h2 {
    font-family: var(--head);
    font-size: clamp(26px, 3.2vw, 38px);
    line-height: 1.25;
    margin-bottom: 18px;
}

.graduation p {
    color: #c9d1e6;
    font-size: 18px;
    margin: 0;
}


/* ---------- Reviews ---------- */

.reviews {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.review {
    display: grid;
    grid-template-columns: 200px 1fr;
    background: var(--white);
    border: 1px solid var(--line);
}

.review__media {
    background: var(--navy-ink);
}

.review__media video {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
    display: block;
    background: var(--navy-ink);
}

.review__body {
    padding: 26px 26px 24px;
    display: flex;
    flex-direction: column;
}

.review__book {
    font-family: var(--head);
    font-size: 24px;
    color: var(--navy);
    line-height: 1.2;
}

.review__author {
    color: var(--muted);
    font-size: 15px;
    margin: 4px 0 16px;
}

.review blockquote {
    margin: 0 0 18px;
    padding-left: 16px;
    border-left: 3px solid var(--saffron);
}

.review blockquote p {
    margin: 0;
    font-size: 16px;
    color: #3b4254;
}

.review__by {
    margin: auto 0 0;
    font-size: 15px;
    color: var(--muted);
}

.review__by strong {
    color: var(--ink);
}

.written {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.written__item {
    padding: 0;
    border: 1px solid var(--line);
    background: var(--white);
    text-align: left;
    transition: border-color .2s, transform .2s;
}

.written__item:hover {
    border-color: var(--navy);
    transform: translateY(-2px);
}

.written__item img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top;
}

.written__item span {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    border-top: 1px solid var(--line);
}


/* ---------- PDF badge ---------- */

.doc__type {
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--white);
    background: var(--accent);
    padding: 3px 7px;
    border-radius: var(--radius);
}


/* ---------- Gallery ---------- */

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.gallery button {
    padding: 0;
    border: 0;
    background: var(--cream);
    overflow: hidden;
    position: relative;
}

.gallery--featured button:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .4s;
}

.gallery button:hover img {
    transform: scale(1.04);
}


/* ---------- Lightbox ---------- */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(8, 14, 32, .94);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 72px;
}

.lightbox[hidden] {
    display: none;
}

.lightbox__figure {
    margin: 0;
    text-align: center;
}

.lightbox__figure img {
    max-width: 100%;
    max-height: calc(100vh - 140px);
    margin: 0 auto;
    object-fit: contain;
}

.lightbox__figure figcaption {
    color: #c9d1e6;
    font-size: 14px;
    margin-top: 12px;
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .1);
    border: 0;
    color: var(--white);
    border-radius: var(--radius);
}

.lightbox__close:hover,
.lightbox__nav:hover {
    background: rgba(255, 255, 255, .2);
}

.lightbox__close {
    top: 16px;
    right: 16px;
}

.lightbox__nav--prev {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__nav--next {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}


/* ---------- Footer ---------- */

.footer {
    background: var(--navy-ink);
    color: #b9c3dd;
    font-size: 15px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    padding-top: 64px;
    padding-bottom: 48px;
}

.footer__brand img {
    background: var(--white);
    padding: 8px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    box-sizing: content-box;
}

.footer__brand p {
    margin: 0 0 4px;
}

.footer__name {
    font-family: var(--head);
    font-size: 19px;
    color: var(--white);
    margin-bottom: 8px !important;
    line-height: 1.3;
}

.footer h4 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 16px;
}

.footer li {
    margin-bottom: 9px;
}

.footer a {
    color: #b9c3dd;
    text-decoration: none;
}

.footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 14px;
}

.footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    padding-bottom: 18px;
    flex-wrap: wrap;
}

.footer__bottom p {
    margin: 0;
}


/* ---------- Inner page banner ---------- */

.page-banner {
    background: var(--navy-deep);
    color: var(--white);
    padding: 44px 0 52px;
    border-bottom: 6px solid var(--saffron);
    position: relative;
    overflow: hidden;
}

.page-banner>.container {
    position: relative;
    z-index: 1;
}

.crumbs {
    font-size: 14px;
    color: #9fabc9;
    margin-bottom: 22px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.crumbs a {
    color: #c9d1e6;
    text-decoration: none;
}

.crumbs a:hover {
    color: var(--white);
    text-decoration: underline;
}

.crumbs [aria-current] {
    color: var(--white);
}

.page-banner__title {
    font-family: var(--head);
    font-size: clamp(32px, 4.4vw, 50px);
    line-height: 1.1;
    margin-bottom: 14px;
}

.page-banner__intro {
    margin: 0;
    max-width: 720px;
    font-size: 18px;
    color: #c9d1e6;
}

.fine-print {
    margin: 20px 0 0;
    font-size: 14px;
    color: var(--muted);
}


/* ---------- Home: quick search footer ---------- */

.results__foot {
    padding: 14px 20px;
    border-top: 1px solid var(--line-cool);
    background: #f8f9fc;
}


/* ---------- Catalogue page ---------- */

.opac {
    display: grid;
    grid-template-columns: 1fr 240px 210px;
    gap: 16px;
    align-items: end;
    padding: 24px;
    background: var(--cream);
    border: 1px solid var(--line);
}

.opac__field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.search--bordered .search__input {
    border: 1px solid #c9ccd6;
    font-size: 17px;
    padding: 13px 16px 13px 50px;
}

.search--bordered .search__input:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(22, 41, 90, .15);
}

.search--bordered .search__icon {
    left: 17px;
    width: 20px;
    height: 20px;
}

.select {
    width: 100%;
    font: inherit;
    font-size: 16px;
    color: var(--ink);
    padding: 13px 40px 13px 14px;
    border: 1px solid #c9ccd6;
    border-radius: var(--radius);
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2316295a' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
    appearance: none;
    -webkit-appearance: none;
}

.select:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(22, 41, 90, .15);
}

.results--page {
    margin-top: 24px;
    border: 1px solid var(--line-cool);
}

.results__meta--row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.link-btn {
    background: none;
    border: 0;
    padding: 0;
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    text-decoration: underline;
}

.pager {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 24px;
}

.pager button {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line-cool);
    background: var(--white);
    color: var(--navy);
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius);
}

.pager button:hover:not(:disabled) {
    border-color: var(--navy);
}

.pager button[aria-current="page"] {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.pager button:disabled {
    color: #a3a9b6;
    cursor: default;
}

.pager .pager__gap {
    border: 0;
    background: none;
    min-width: 20px;
    padding: 0;
}


/* ---------- Book reviews page ---------- */

.reviews--stack {
    grid-template-columns: 1fr;
    gap: 32px;
}

.review--full {
    grid-template-columns: 300px 1fr;
}

.review--full .review__media video {
    min-height: 460px;
}

.review--full .review__body {
    padding: 36px 40px;
}

.review--full .review__book {
    font-size: 30px;
}

.review--full blockquote p {
    font-size: 17px;
    line-height: 1.75;
}


/* ---------- Viewer (e-magazine, policies) ---------- */

.viewer__tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-bottom: 0;
    background: var(--white);
}

.viewer__tab {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 16px 20px;
    text-align: left;
    background: var(--white);
    border: 0;
    border-right: 1px solid var(--line);
    border-bottom: 3px solid transparent;
}

.viewer__tab:last-child {
    border-right: 0;
}

.viewer__tab-year {
    font-family: var(--display);
    font-size: 30px;
    line-height: 1;
    letter-spacing: .03em;
    color: var(--navy);
}

.viewer__tab-note {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}

.viewer__tab:hover {
    background: #fbfaf7;
}

.viewer__tab.is-active {
    border-bottom-color: var(--accent);
    background: var(--sky-soft);
}

.viewer__tab.is-active .viewer__tab-year {
    color: var(--accent);
}

.viewer__frame {
    position: relative;
    background: #e9e7e1;
    border: 1px solid var(--line);
}

.viewer__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.viewer__frame--book {
    height: min(78vh, 720px);
}

.viewer__frame--doc {
    height: min(82vh, 860px);
}

.viewer__bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 0;
}

.viewer__label {
    font-weight: 600;
    color: var(--navy);
}

.viewer--side {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 28px;
    align-items: start;
}

.viewer__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 76px;
}

.viewer__doc {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    padding: 18px 20px;
    text-align: left;
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 4px solid var(--line);
}

.viewer__doc:hover {
    border-color: var(--navy);
    border-left-color: var(--navy);
}

.viewer__doc.is-active {
    border-color: var(--navy);
    border-left-color: var(--accent);
    background: var(--sky-soft);
}

.viewer__doc-name {
    font-family: var(--head);
    font-size: 19px;
    color: var(--navy);
    line-height: 1.3;
}

.viewer__doc-meta {
    font-size: 14px;
    color: var(--muted);
}


/* ---------- Dictionary page ---------- */

.doc-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 28px;
    align-items: start;
}

.doc-side {
    padding: 26px;
    background: var(--cream);
    border: 1px solid var(--line);
    position: sticky;
    top: 76px;
}

.doc-side__title {
    font-family: var(--head);
    font-size: 22px;
    color: var(--navy);
    margin-bottom: 10px;
}

.doc-side p {
    color: #3b4254;
    font-size: 16px;
}

.doc-side__facts {
    margin: 0 0 22px;
    border-top: 1px solid var(--line);
}

.doc-side__facts div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}

.doc-side__facts dt {
    color: var(--muted);
}

.doc-side__facts dd {
    margin: 0;
    font-weight: 600;
    color: var(--ink);
    text-align: right;
}

.doc-side__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.doc-side__actions .btn {
    text-align: center;
}


/* ---------- e-Resources page ---------- */

.callout {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 28px;
    margin-bottom: 56px;
    background: var(--sky-soft);
    border: 1px solid var(--line-cool);
    border-left: 4px solid var(--accent);
}

.callout__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    fill: none;
    stroke: var(--navy);
    stroke-width: 1.6;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.callout__text {
    flex: 1;
}

.callout__text h2 {
    font-family: var(--head);
    font-size: 22px;
    color: var(--navy);
    margin-bottom: 4px;
}

.callout__text p {
    margin: 0;
    color: #3b4254;
}

.res-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px 48px;
}

.res-group__title {
    font-family: var(--head);
    font-size: 26px;
    color: var(--navy);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--navy);
    margin-bottom: 12px;
}

.res-group__desc {
    color: var(--muted);
    font-size: 16px;
    margin-bottom: 8px;
}

.res-list li {
    border-bottom: 1px solid var(--line);
}

.res-list a {
    display: grid;
    grid-template-columns: 1fr auto 10px;
    align-items: center;
    gap: 4px 16px;
    padding: 13px 0;
    text-decoration: none;
    color: var(--ink);
}

.res-list a::after {
    content: "";
    width: 7px;
    height: 7px;
    border-top: 1.5px solid var(--muted);
    border-right: 1.5px solid var(--muted);
    transform: rotate(45deg);
}

.res-link__name {
    font-weight: 600;
    color: var(--navy);
}

.res-link__host {
    font-size: 14px;
    color: var(--muted);
}

.res-list a:hover .res-link__name {
    color: var(--accent);
    text-decoration: underline;
}

.res-list a:hover::after {
    border-color: var(--accent);
}


/* ---------- Gallery page ---------- */

.gallery--all {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}


/* ---------- Theme: headings ---------- */

.section-title,
.page-banner__title,
.hero__caption h1,
.hero__caption h2,
.graduation h2,
.subhead,
.service h3,
.review__book,
.notice__head h3,
.res-group__title,
.doc-side__title,
.callout__text h2,
.viewer__doc-name,
.footer__name {
    font-weight: 600;
    letter-spacing: -.01em;
}

.section-title {
    font-size: clamp(26px, 3vw, 36px);
}

.page-banner__title {
    font-size: clamp(30px, 4vw, 46px);
}

.hero__caption h2 {
    font-size: 30px;
}

.graduation h2 {
    font-size: clamp(24px, 3vw, 34px);
}

.service h3 {
    font-size: 18px;
}

.review__book {
    font-size: 22px;
}

.review--full .review__book {
    font-size: 26px;
}

.res-group__title {
    font-size: 22px;
}

.notice__head h3 {
    font-size: 18px;
}

.viewer__doc-name {
    font-size: 17px;
}

.footer__name {
    font-size: 18px;
}


/* Magazine-style section numbers, as in "Students' Corner 02" */

.section-num {
    font-family: var(--display);
    font-weight: 400;
    font-size: 1.3em;
    line-height: 1;
    letter-spacing: .02em;
    color: var(--saffron);
    margin-left: .2em;
    vertical-align: -.06em;
}

.section-head .eyebrow {
    color: var(--accent);
}

.section--cream .section-num,
.section .section-num {
    text-shadow: none;
}


/* ---------- Theme: geometric artwork (from the EUNOIA magazine) ---------- */

.geo {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.geo svg {
    display: block;
    width: 100%;
    height: 100%;
}

.page-banner .geo {
    right: 0;
    top: 0;
    bottom: 0;
    width: min(46%, 520px);
}

.catalogue .geo {
    right: -40px;
    top: -40px;
    width: 300px;
    height: 300px;
    opacity: .9;
}

.graduation .geo--left {
    left: -60px;
    bottom: -60px;
    width: 260px;
    height: 260px;
}

.graduation .geo--right {
    right: -20px;
    top: -20px;
    width: 220px;
    height: 220px;
}


/* Masthead CM SHRI tag line */

.masthead__unit {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.masthead__unit-sub {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}


/* Cards pick up the magazine's rounded photo corners */

.eunoia__photo img,
.review,
.written__item,
.gallery button,
.doc-side,
.notice,
.viewer__doc,
.callout,
.opac,
.results,
.hero__caption,
.services,
.viewer__frame {
    border-radius: var(--radius);
}

.review,
.results,
.notice,
.services {
    overflow: hidden;
}

.gallery button {
    border-radius: 6px;
}


/* Footer accent */

.footer {
    border-top: 6px solid var(--saffron);
}

.footer__brand img {
    border-radius: 50%;
    padding: 6px;
}


/* Notice board header gets the saffron rule */

.notice__head {
    border-bottom: 4px solid var(--saffron);
}


/* Service tile hover bar in saffron */

.service::before {
    background: var(--saffron);
    height: 4px;
}

.service:hover .service__icon {
    stroke: var(--accent);
}


/* Ticker label */

.ticker {
    background: var(--sky-soft);
}

.ticker__label {
    background: var(--accent);
}


/* Page banner tagline (e-magazine) */

.page-banner__tag {
    display: inline-block;
    margin-top: 18px;
    font-family: var(--display);
    font-size: 24px;
    letter-spacing: .05em;
    line-height: 1;
    color: var(--navy-ink);
    background: var(--saffron);
    padding: 8px 12px 6px;
}


/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
    .services {
        grid-template-columns: repeat(2, 1fr);
    }
    .reviews {
        grid-template-columns: 1fr;
    }
    .opac {
        grid-template-columns: 1fr 1fr;
    }
    .opac__field--grow {
        grid-column: 1 / -1;
    }
    .viewer__tabs {
        grid-template-columns: repeat(2, 1fr);
    }
    .viewer__tab:nth-child(2) {
        border-right: 0;
    }
    .viewer__tab:nth-child(-n+2) {
        border-bottom-color: var(--line);
    }
    .viewer__tab.is-active {
        border-bottom-color: var(--accent);
    }
    .review--full {
        grid-template-columns: 240px 1fr;
    }
}

@media (max-width: 900px) {
    .welcome,
    .eunoia {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .viewer--side,
    .doc-layout {
        grid-template-columns: 1fr;
    }
    .viewer__list,
    .doc-side {
        position: static;
    }
    .viewer__list {
        flex-direction: row;
    }
    .viewer__doc {
        flex: 1;
    }
    .res-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .gallery--all {
        grid-template-columns: repeat(2, 1fr);
    }
    .masthead__unit {
        display: none;
    }
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
    .facts__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .fact:nth-child(3) {
        border-left: 0;
        padding-left: 0;
    }
    .fact:nth-child(n+3) {
        border-top: 1px solid rgba(255, 255, 255, .14);
    }
}

@media (max-width: 680px) {
    body {
        font-size: 16px;
    }
    .section {
        padding: 64px 0;
    }
    .topbar__text {
        display: none;
    }
    .topbar__inner {
        justify-content: flex-end;
    }
    .masthead__logo {
        width: 76px;
    }
    .masthead__brand {
        gap: 14px;
    }
    .masthead__place {
        font-size: 12px;
        letter-spacing: .12em;
    }
    .hero__slides {
        height: 520px;
    }
    .hero__caption {
        left: 20px;
        right: 20px;
        top: auto;
        bottom: 76px;
        max-width: none;
        transform: none;
    }
    .hero__caption h1 {
        font-size: 36px;
    }
    .hero__caption h2 {
        font-size: 27px;
    }
    .hero__caption p {
        font-size: 15px;
        margin-bottom: 14px;
    }
    .hero__controls {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        bottom: 20px;
    }
    .services {
        grid-template-columns: 1fr;
    }
    .review {
        grid-template-columns: 1fr;
    }
    .review__media video {
        min-height: 0;
        height: auto;
        aspect-ratio: 9 / 14;
        max-height: 460px;
    }
    .written {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-banner {
        padding: 28px 0 32px;
    }
    .page-banner__intro {
        font-size: 16px;
    }
    .opac {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    .review--full {
        grid-template-columns: 1fr;
    }
    .review--full .review__media video {
        min-height: 0;
    }
    .review--full .review__body {
        padding: 24px 22px;
    }
    .review--full .review__book {
        font-size: 24px;
    }
    .viewer__tab {
        padding: 12px 14px;
    }
    .viewer__tab-year {
        font-size: 19px;
    }
    .viewer__frame--book {
        height: 70vh;
    }
    .viewer__frame--doc {
        height: 75vh;
    }
    .viewer__list {
        flex-direction: column;
    }
    .callout {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 20px;
    }
    .res-list a {
        grid-template-columns: 1fr 10px;
    }
    .res-link__host {
        grid-column: 1;
        grid-row: 2;
    }
    .res-list a::after {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
    .gallery--all {
        gap: 8px;
    }
    .results__table .col-pub,
    .results__table td:nth-child(4),
    .results__table .col-subj,
    .results__table td:nth-child(5) {
        display: none;
    }
    .results__table th,
    .results__table td {
        padding: 10px 12px;
    }
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .lightbox {
        padding: 64px 12px;
    }
    .lightbox__nav {
        top: auto;
        bottom: 16px;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .ticker__track {
        animation: none;
    }
    .hero__slide {
        transition: none;
    }
}


/* ---------- Theme artwork on small screens ---------- */

@media (max-width: 900px) {
    .masthead__unit {
        display: none;
    }
    .page-banner .geo {
        width: 60%;
        opacity: .35;
    }
}

@media (max-width: 680px) {
    .page-banner .geo {
        width: 80%;
        opacity: .2;
    }
    .catalogue .geo {
        display: none;
    }
    .graduation .geo {
        opacity: .35;
    }
    .masthead__logo {
        width: 68px;
        height: 68px;
    }
}


/* ==========================================================================
   School website components (About, Achievements, Events, navigation)
   ========================================================================== */


/* ---------- Top bar: accessibility controls ---------- */

.topbar__right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.a11y {
    display: flex;
    align-items: center;
    gap: 2px;
    border-right: 1px solid rgba(255, 255, 255, .18);
    padding-right: 14px;
}

.a11y button {
    min-width: 30px;
    height: 26px;
    padding: 0 6px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 3px;
    color: #c9d1e6;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    display: inline-grid;
    place-items: center;
}

.a11y button:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, .3);
}

.a11y button[aria-pressed="true"] {
    background: var(--saffron);
    color: var(--navy-ink);
}

.a11y svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.2;
}

.a11y svg circle {
    fill: none;
}

html[data-font="-1"] body {
    zoom: .92;
}

html[data-font="1"] body {
    zoom: 1.1;
}

html[data-font="2"] body {
    zoom: 1.2;
}

html.hc body {
    filter: contrast(1.3) saturate(1.15);
}

html.hc a {
    text-decoration: underline;
}


/* ---------- Masthead motto ---------- */

.masthead__motto {
    max-width: 300px;
    padding-left: 22px;
    border-left: 4px solid var(--saffron);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.masthead__motto-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
}

.masthead__motto-text {
    font-family: var(--head);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.35;
    color: var(--navy);
}


/* ---------- Shared pieces ---------- */

.pill {
    display: inline-block;
    padding: 4px 12px 3px;
    border-radius: 999px;
    background: #2326a8;
    color: var(--white);
    font-family: var(--display);
    font-size: 18px;
    letter-spacing: .04em;
    line-height: 1.1;
}

.pill--sm {
    font-size: 14px;
    padding: 3px 9px 2px;
}

.section--navy {
    background: var(--navy);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.section--navy>.container {
    position: relative;
    z-index: 1;
}

.section--navy .geo {
    right: -40px;
    top: -40px;
    width: 300px;
    height: 300px;
}

.section--navy .section-head__note {
    color: #c9d1e6;
}

.section--navy .btn--outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, .6);
}

.center-action {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

.btn--outline {
    white-space: nowrap;
}

.to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 80;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--saffron);
    color: var(--navy-ink);
    box-shadow: 0 6px 18px rgba(13, 22, 64, .28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .25s;
}

.to-top.is-shown {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.to-top svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
}


/* Reveal on scroll */

.js-reveal .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}

.js-reveal .reveal.is-in {
    opacity: 1;
    transform: none;
}


/* ---------- Home: principal teaser ---------- */

.principal-mini {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 20px;
    align-items: center;
    margin-top: 28px;
    padding: 18px;
    background: var(--cream);
    border-radius: var(--radius);
    border-left: 5px solid var(--saffron);
}

.principal-mini img {
    width: 112px;
    height: 112px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 4px 14px rgba(13, 22, 64, .15);
}

.principal-mini__quote {
    font-family: var(--head);
    font-weight: 500;
    font-size: 17px;
    line-height: 1.45;
    color: var(--navy);
    margin-bottom: 6px;
}

.principal-mini__name {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 6px;
}


/* ---------- Achievement highlight cards ---------- */

.hl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.hl-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 0 var(--line), 0 10px 26px rgba(13, 22, 64, .08);
    transition: transform .25s, box-shadow .25s;
}

.hl-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1px 0 var(--line), 0 18px 34px rgba(13, 22, 64, .14);
}

.hl-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--navy);
}

.hl-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.hl-card:hover .hl-card__media img {
    transform: scale(1.05);
}

.hl-card__media .pill {
    position: absolute;
    left: 12px;
    top: 12px;
}

.hl-card__body {
    padding: 18px 20px 22px;
    border-top: 5px solid var(--saffron);
    flex: 1;
}

.hl-card__result {
    font-family: var(--display);
    font-size: 24px;
    letter-spacing: .03em;
    line-height: 1.05;
    color: var(--accent);
    margin-bottom: 6px;
}

.hl-card__title {
    font-family: var(--head);
    font-weight: 600;
    font-size: 17px;
    line-height: 1.3;
    color: var(--navy);
    margin-bottom: 8px;
}

.hl-card__text {
    font-size: 15px;
    color: var(--muted);
    margin: 0;
}


/* ---------- Learning initiatives ---------- */

.init-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.init {
    position: relative;
    padding: 26px 24px 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.section--cream .init {
    border-color: transparent;
    box-shadow: 0 8px 22px rgba(13, 22, 64, .06);
}

.init::after {
    content: "";
    position: absolute;
    right: -34px;
    top: -34px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--saffron-pale);
    opacity: .55;
    transition: transform .35s;
}

.init:nth-child(3n+2)::after {
    background: #bfe3f6;
}

.init:nth-child(3n)::after {
    background: #f6c9b3;
}

.init:hover::after {
    transform: scale(1.35);
}

.init__icon {
    position: relative;
    z-index: 1;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    fill: none;
    stroke: var(--navy);
    stroke-width: 1.6;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.init h3 {
    position: relative;
    z-index: 1;
    font-family: var(--head);
    font-weight: 600;
    font-size: 19px;
    color: var(--navy);
    margin-bottom: 8px;
}

.init p {
    position: relative;
    z-index: 1;
    font-size: 15px;
    color: var(--muted);
    margin: 0;
}


/* ---------- Events (home strip and events page) ---------- */

.ev-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 210px;
    gap: 14px;
}

.ev-strip .ev-tile:first-child {
    grid-row: span 2;
}

.ev-tile {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: var(--navy-deep);
}

.ev-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s, opacity .3s;
}

.ev-tile:hover img {
    transform: scale(1.05);
    opacity: .9;
}

.ev-tile__label {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: inline-block;
    max-width: calc(100% - 24px);
    background: var(--saffron);
    color: var(--navy-ink);
    font-family: var(--head);
    font-weight: 600;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 3px;
}

.ev-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.ev-card {
    margin: 0;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 0 var(--line), 0 10px 24px rgba(13, 22, 64, .07);
}

.ev-card__btn {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: var(--navy);
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.ev-card__btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.ev-card__btn:hover img {
    transform: scale(1.05);
}

.ev-card figcaption {
    padding: 16px 20px 20px;
    border-top: 5px solid var(--sky);
}

.ev-card:nth-child(3n+2) figcaption {
    border-top-color: var(--saffron);
}

.ev-card:nth-child(3n) figcaption {
    border-top-color: var(--accent);
}

.ev-card h3 {
    font-family: var(--head);
    font-weight: 600;
    font-size: 18px;
    color: var(--navy);
    margin-bottom: 6px;
}

.ev-card p {
    font-size: 15px;
    color: var(--muted);
    margin: 0;
}


/* ---------- About page ---------- */

.about-intro {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 56px;
    align-items: start;
}

.about-intro__text p {
    color: #3b4254;
}

.about-intro__text .lead {
    color: var(--ink);
}

.glance {
    background: var(--navy);
    color: var(--white);
    border-radius: 8px;
    padding: 26px 26px 18px;
    position: sticky;
    top: 80px;
    border-top: 6px solid var(--saffron);
}

.glance__title {
    font-family: var(--display);
    font-size: 30px;
    letter-spacing: .04em;
    color: var(--saffron);
    margin-bottom: 10px;
}

.glance dl {
    margin: 0;
}

.glance dl div {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.glance dl div:last-child {
    border-bottom: 0;
}

.glance dt {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #9fb1dc;
}

.glance dd {
    margin: 2px 0 0;
    font-size: 16px;
    font-weight: 600;
}

.about-building {
    margin: 48px 0 0;
    position: relative;
}

.about-building img {
    width: 100%;
    aspect-ratio: 16 / 5;
    object-fit: cover;
    border-radius: 8px;
}

.about-building figcaption {
    font-size: 14px;
    color: var(--muted);
    margin-top: 8px;
}

.va-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.va-card {
    position: relative;
    padding: 34px 34px 30px;
    border-radius: 22px;
    background: #fbe7a6;
    overflow: hidden;
}

.va-card--blue {
    background: #d6ebf8;
}

.va-card--green {
    background: #dcefd9;
}

.va-card--wide {
    grid-column: 1 / -1;
}

.va-card {
    scroll-margin-top: 110px;
}

.va-card::after {
    content: "";
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 18px solid rgba(255, 255, 255, .45);
}

.va-card__tag {
    display: inline-block;
    font-family: var(--display);
    font-size: 40px;
    letter-spacing: .04em;
    line-height: 1;
    color: var(--navy-ink);
    margin-bottom: 12px;
}

.va-card__quote {
    font-family: var(--head);
    font-weight: 600;
    font-size: 20px;
    line-height: 1.35;
    color: var(--navy);
}

.va-card p {
    position: relative;
    z-index: 1;
    color: #2c3350;
    margin-bottom: 0;
}

.va-card p+p {
    margin-top: 12px;
}

.motto-band {
    position: relative;
    overflow: hidden;
    background: var(--navy-deep);
    color: var(--white);
    padding: 64px 0;
    text-align: center;
    border-top: 6px solid var(--saffron);
    border-bottom: 6px solid var(--saffron);
}

.motto-band .geo {
    left: -60px;
    top: -60px;
    width: 300px;
    height: 300px;
}

.motto-band>.container {
    position: relative;
    z-index: 1;
}

.motto-band__text {
    font-family: var(--display);
    font-size: clamp(34px, 5.2vw, 64px);
    letter-spacing: .03em;
    line-height: 1.05;
    margin: 0;
    color: var(--saffron);
}

.principal {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 56px;
    align-items: start;
}

.principal__photo {
    position: sticky;
    top: 90px;
    margin: 0;
}

.principal__photo img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 4 / 4.4;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(13, 22, 64, .2);
}

.principal__photo .corner-art {
    position: absolute;
    z-index: 0;
    right: -22px;
    top: -22px;
    width: 140px;
    height: 140px;
}

.principal__photo::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: -18px;
    bottom: 40px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--sky);
}

.principal__photo figcaption {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
}

.principal__photo figcaption strong {
    font-family: var(--head);
    font-size: 20px;
    color: var(--navy);
}

.principal__photo figcaption span {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
}

.principal__body p {
    color: #2f3650;
    font-size: 17px;
    line-height: 1.75;
}

.principal__body p:first-child::first-letter {
    font-family: var(--display);
    font-size: 58px;
    float: left;
    line-height: .85;
    margin: 6px 10px 0 0;
    color: var(--saffron);
}

.principal__sign {
    padding-top: 14px;
    border-top: 2px solid var(--saffron);
    display: inline-block;
}

.rash {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: start;
}

.rash__intro .lead {
    text-align: justify;
    text-justify: inter-word;
}

@media (max-width: 600px) {
    .rash__intro .lead {
        font-size: 17px;
        hyphens: auto;
        -webkit-hyphens: auto;
    }
}

.nowrap {
    white-space: nowrap;
}

.rash__photo {
    margin: 24px 0 0;
}

.rash__photo img {
    border-radius: 8px;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.clubs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.club {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    background: var(--cream);
    border-radius: 8px;
    border-left: 5px solid var(--sky);
}

.club:nth-child(even) {
    border-left-color: var(--saffron);
}

.club__num {
    font-family: var(--display);
    font-size: 40px;
    line-height: 1;
    color: var(--navy);
}

.club h3 {
    font-family: var(--head);
    font-weight: 600;
    font-size: 18px;
    color: var(--navy);
    margin-bottom: 2px;
}

.club p {
    margin: 0;
    font-size: 15px;
    color: var(--muted);
}

.family {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
    align-items: start;
}

.family__item {
    margin: 0;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(13, 22, 64, .08);
}

.family__item:first-child {
    grid-column: 1 / -1;
}

.family__btn {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: var(--navy);
}

.family__btn img {
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: cover;
}

.family__item figcaption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-top: 5px solid var(--saffron);
}

.family__item figcaption strong {
    font-family: var(--head);
    font-size: 17px;
    color: var(--navy);
}


/* ---------- Achievements page ---------- */

.ach-controls {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

.ach-years,
.ach-cats,
.album-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ach-years button,
.album-tabs button {
    padding: 8px 18px 6px;
    border-radius: 999px;
    border: 2px solid #2326a8;
    background: var(--white);
    color: #2326a8;
    font-family: var(--display);
    font-size: 20px;
    letter-spacing: .04em;
    line-height: 1.1;
}

.album-tabs button {
    font-family: var(--head);
    font-weight: 600;
    font-size: 15px;
    padding: 9px 18px;
}

.ach-years button[aria-pressed="true"],
.album-tabs button[aria-pressed="true"] {
    background: #2326a8;
    color: var(--white);
}

.ach-cats button {
    padding: 8px 14px;
    border-radius: 4px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--navy);
    font-weight: 600;
    font-size: 15px;
}

.ach-cats button .count {
    display: inline-block;
    min-width: 22px;
    margin-left: 4px;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--sky-soft);
    font-size: 12px;
}

.ach-cats button[aria-pressed="true"] {
    background: var(--saffron);
    border-color: var(--saffron);
    color: var(--navy-ink);
}

.ach-cats button[aria-pressed="true"] .count {
    background: rgba(255, 255, 255, .55);
}

.ach-count {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 18px;
}

.ach-list {
    display: grid;
    gap: 28px;
}

.ach-block {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(13, 22, 64, .07);
}

.ach-block__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
}

.ach-block__head h3 {
    font-family: var(--display);
    font-size: 30px;
    letter-spacing: .04em;
    line-height: 1;
    color: #b88a3c;
    text-transform: uppercase;
}

.ach-table {
    border-top: 4px solid var(--saffron);
}

.ach-row {
    display: grid;
    grid-template-columns: minmax(200px, 1.3fr) 130px 2fr;
    gap: 16px;
    align-items: center;
    padding: 12px 22px;
    border-bottom: 1px solid #f1e3b8;
}

.ach-row:last-child {
    border-bottom: 0;
}

.ach-row:nth-child(even):not(.ach-row--head) {
    background: #fffbf1;
}

.ach-row--head {
    background: #2326a8;
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding-top: 10px;
    padding-bottom: 10px;
}

.ach-event {
    font-weight: 600;
    color: var(--navy);
}

.ach-year {
    display: inline-block;
    margin-left: 6px;
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}

.ach-names {
    color: #2f3650;
}

.medal {
    display: inline-grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    border-radius: 999px;
    font-family: var(--display);
    font-size: 20px;
    letter-spacing: .04em;
    line-height: 1;
    color: var(--navy-ink);
    background: #e7e0d0;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12);
}

.medal--1 {
    background: linear-gradient(145deg, #ffd34d, #f0a800);
}

.medal--2 {
    background: linear-gradient(145deg, #eef1f6, #b9c0cc);
}

.medal--3 {
    background: linear-gradient(145deg, #f2b27c, #c97a3c);
}

.medal--text {
    font-family: var(--head);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0;
    height: auto;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 6px;
    background: var(--sky-soft);
    color: var(--navy);
    box-shadow: none;
    text-align: center;
}

.toppers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 22px;
}

.topper {
    background: var(--cream);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.topper__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: var(--saffron);
}

.topper__class {
    font-family: var(--display);
    font-size: 26px;
    letter-spacing: .05em;
    color: var(--navy-ink);
    line-height: 1;
}

.topper__year {
    font-family: var(--display);
    font-size: 17px;
    color: var(--white);
    background: #2326a8;
    padding: 3px 10px 2px;
    border-radius: 999px;
}

.topper ol {
    list-style: none;
    margin: 0;
    padding: 8px 18px 14px;
}

.topper li {
    display: grid;
    grid-template-columns: 46px 1fr;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f1e3b8;
    font-weight: 600;
    color: var(--navy);
}

.topper li:last-child {
    border-bottom: 0;
}


/* ---------- Gallery and team photo ---------- */

.album-tabs {
    margin-bottom: 24px;
}

.team-photo {
    margin: 0;
}

.team-photo img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(13, 22, 64, .12);
}

.team-photo figcaption {
    margin-top: 12px;
    font-size: 15px;
    color: var(--muted);
    max-width: 820px;
}


/* ---------- Responsive for new components ---------- */

@media (max-width: 1080px) {
    .hl-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .init-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ev-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .toppers {
        grid-template-columns: repeat(2, 1fr);
    }
    .principal {
        grid-template-columns: 300px 1fr;
        gap: 40px;
    }
    .masthead__motto {
        display: none;
    }
    .topbar__text {
        font-size: 13px;
    }
}

@media (max-width: 900px) {
    .about-intro,
    .rash,
    .principal {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .glance,
    .principal__photo {
        position: static;
    }
    .principal__photo {
        max-width: 360px;
    }
    .va-grid {
        grid-template-columns: 1fr;
    }
    .ev-strip {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }
    .a11y {
        border-right: 0;
        padding-right: 0;
    }
    .topbar__links {
        display: none;
    }
}

@media (max-width: 680px) {
    .hl-grid,
    .init-grid,
    .ev-grid,
    .toppers,
    .family {
        grid-template-columns: 1fr;
    }
    .ev-strip {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 140px;
    }
    .ev-strip .ev-tile:first-child {
        grid-column: 1 / -1;
        grid-row: auto;
    }
    .principal-mini {
        grid-template-columns: 80px 1fr;
        gap: 14px;
    }
    .principal-mini img {
        width: 80px;
        height: 80px;
    }
    .ach-row {
        grid-template-columns: 1fr auto;
        gap: 6px 12px;
        padding: 12px 16px;
    }
    .ach-row--head {
        display: none;
    }
    .ach-names {
        grid-column: 1 / -1;
        font-size: 15px;
    }
    .ach-block__head {
        padding: 14px 16px;
    }
    .ach-block__head h3 {
        font-size: 24px;
    }
    .about-building img {
        aspect-ratio: 16 / 8;
    }
    .va-card {
        padding: 26px 22px;
    }
    .club {
        grid-template-columns: 46px 1fr;
    }
    .club__num {
        font-size: 32px;
    }
    .to-top {
        right: 14px;
        bottom: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .js-reveal .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* Mobile menu: readable active item */


/* ==========================================================================
   Page-specific designs: each page is styled for its own topic
   ========================================================================== */


/* ---------- Topic artwork in page banners ---------- */

.page-banner--art .geo--art {
    right: 0;
    top: 0;
    bottom: 0;
    width: min(48%, 560px);
}


/* ---------- Hall of Fame: medal tally ---------- */

.tally-band {
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 34px 0 26px;
}

.tally {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tally__item {
    display: grid;
    grid-template-columns: 74px 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
    align-items: center;
}

.tally__disc {
    grid-row: 1 / 3;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--display);
    font-size: 30px;
    color: var(--navy-ink);
    box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .14), 0 8px 18px rgba(13, 22, 64, .18);
    position: relative;
}

.tally__disc::after {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, .65);
}

.tally__item--gold .tally__disc {
    background: linear-gradient(145deg, #ffd34d, #f0a800);
}

.tally__item--silver .tally__disc {
    background: linear-gradient(145deg, #f3f5f9, #b5bccb);
}

.tally__item--bronze .tally__disc {
    background: linear-gradient(145deg, #f2b27c, #c46f2e);
}

.tally__item--star .tally__disc {
    background: linear-gradient(145deg, #6fc3ef, #2f6db5);
    color: var(--white);
    font-size: 32px;
}

.tally__num {
    font-family: var(--display);
    font-size: 56px;
    line-height: .9;
    color: var(--navy);
}

.tally__label {
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
    line-height: 1.25;
}

.tally__note {
    margin: 18px 0 0;
    font-size: 13px;
    color: var(--muted);
}


/* ---------- Hall of Fame: wall of stars ---------- */

.stars-section .section-head__note {
    color: #c9d1e6;
}

.stars {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}

.star {
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    transition: background .2s, transform .2s;
}

.star:hover {
    background: rgba(255, 255, 255, .12);
    transform: translateY(-2px);
}

.star__count {
    grid-row: 1 / 3;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    font-family: var(--display);
    font-size: 28px;
    color: var(--navy-ink);
    background: var(--saffron);
    clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.star__name {
    font-family: var(--head);
    font-weight: 600;
    font-size: 17px;
    color: var(--white);
    line-height: 1.2;
}

.star__cats {
    font-size: 13px;
    color: #a9b6d8;
}


/* ---------- Hall of Fame: toppers' podium ---------- */

.podium-section {
    background: linear-gradient(180deg, var(--white) 0, var(--white) 60%, var(--cream) 100%);
}

.podiums {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 26px;
}

.podium {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px 18px 0;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(13, 22, 64, .06);
}

.podium__class {
    font-family: var(--display);
    font-size: 28px;
    letter-spacing: .05em;
    color: var(--navy);
    text-align: center;
    margin-bottom: 10px;
}

.podium__stage {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: end;
    gap: 6px;
}

.podium__step {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
}

.podium__name {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.25;
    color: var(--navy);
    padding: 0 2px 8px;
    min-height: 2.6em;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.podium__block {
    display: grid;
    place-items: start center;
    padding-top: 10px;
    border-radius: 6px 6px 0 0;
    box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .08);
}

.podium__rank {
    font-family: var(--display);
    font-size: 30px;
    line-height: 1;
    color: var(--navy-ink);
}

.podium__step--1 .podium__block {
    height: 104px;
    background: linear-gradient(180deg, #ffd34d, #f0a800);
}

.podium__step--2 .podium__block {
    height: 76px;
    background: linear-gradient(180deg, #eef1f6, #b9c0cc);
}

.podium__step--3 .podium__block {
    height: 56px;
    background: linear-gradient(180deg, #f2b27c, #c97a3c);
}

.podium__step--1 .podium__name {
    font-size: 15px;
}

.podium__extra {
    margin: 0 -18px;
    padding: 8px 18px;
    background: var(--cream);
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    text-align: center;
}


/* ---------- School diary: timeline ---------- */

.diary {
    background: repeating-linear-gradient(0deg, transparent 0 31px, rgba(47, 109, 181, .06) 31px 32px), var(--white);
}

.diary__jump {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}

.diary__jump a {
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--sky-soft);
    color: var(--navy);
    text-decoration: none;
}

.diary__jump a:hover {
    background: var(--saffron);
}

.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    margin-left: -2px;
    background: linear-gradient(180deg, var(--saffron), var(--sky), var(--accent));
    border-radius: 2px;
}

.tl-session {
    position: relative;
    text-align: center;
    margin: 10px 0 30px;
    scroll-margin-top: 90px;
}

.tl-session span {
    position: relative;
    display: inline-block;
    padding: 8px 22px 6px;
    border-radius: 999px;
    background: #2326a8;
    color: var(--white);
    font-family: var(--display);
    font-size: 26px;
    letter-spacing: .05em;
    box-shadow: 0 0 0 6px var(--white);
}

.tl-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 96px 1fr;
    align-items: start;
    margin-bottom: 30px;
}

.tl-item .leaf {
    grid-column: 2;
    justify-self: center;
    position: relative;
    z-index: 1;
}

.tl-item--left .tl-card {
    grid-column: 1;
    grid-row: 1;
}

.tl-item--right .tl-card {
    grid-column: 3;
    grid-row: 1;
}

.leaf {
    width: 70px;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    background: var(--white);
    box-shadow: 0 6px 16px rgba(13, 22, 64, .18);
    border: 1px solid var(--line);
}

.leaf__m {
    display: block;
    background: var(--accent);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 4px 0;
}

.leaf__d {
    display: block;
    font-family: var(--display);
    font-size: 36px;
    line-height: 1.05;
    color: var(--navy);
    padding: 4px 0 2px;
}

.leaf--type .leaf__m {
    background: var(--sky);
    height: 18px;
    padding: 0;
}

.leaf__t {
    display: block;
    font-family: var(--head);
    font-weight: 600;
    font-size: 11px;
    line-height: 1.15;
    color: var(--navy);
    padding: 9px 4px;
}

.tl-card {
    margin: 0;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 0 var(--line), 0 12px 26px rgba(13, 22, 64, .09);
    position: relative;
}

.tl-item--left .tl-card::after,
.tl-item--right .tl-card::after {
    content: "";
    position: absolute;
    top: 26px;
    width: 14px;
    height: 14px;
    background: var(--white);
    transform: rotate(45deg);
}

.tl-item--left .tl-card::after {
    right: -7px;
}

.tl-item--right .tl-card::after {
    left: -7px;
}

.tl-card__btn {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: var(--navy);
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.tl-card__btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.tl-card__btn:hover img {
    transform: scale(1.05);
}

.tl-card figcaption {
    padding: 14px 18px 18px;
}

.tl-card h3 {
    font-family: var(--head);
    font-weight: 600;
    font-size: 18px;
    color: var(--navy);
    margin-bottom: 4px;
}

.tl-card p {
    margin: 0;
    font-size: 15px;
    color: var(--muted);
}


/* ---------- Library catalogue: bookshelf ---------- */

.shelf-wrap {
    margin-bottom: 30px;
    padding: 24px 24px 0;
    border-radius: 12px;
    background: linear-gradient(180deg, #fbf3e2, #f3e6c9);
    border: 1px solid #ead7ae;
}

.shelf-wrap__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
}

.shelf-wrap__title {
    font-family: var(--head);
    font-weight: 600;
    font-size: 22px;
    color: var(--navy);
}

.shelf-wrap__head p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
    max-width: 520px;
}

.shelf {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 250px;
    margin-top: 14px;
    padding: 0 6px;
    border-bottom: 16px solid #9a6a3a;
    box-shadow: 0 6px 0 #7c5229;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}

.spine {
    flex: 0 0 52px;
    height: var(--h);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 8px;
    border: 0;
    border-radius: 4px 4px 0 0;
    background: var(--c);
    color: var(--t);
    box-shadow: inset -6px 0 0 rgba(0, 0, 0, .12), inset 6px 0 0 rgba(255, 255, 255, .14);
    transition: transform .2s, box-shadow .2s;
}

.spine::before,
.spine::after {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    height: 3px;
    background: currentColor;
    opacity: .35;
}

.spine::before {
    top: 22px;
}

.spine::after {
    bottom: 34px;
}

.spine:hover {
    transform: translateY(-8px);
}

.spine[aria-pressed="true"] {
    transform: translateY(-16px);
    box-shadow: inset -6px 0 0 rgba(0, 0, 0, .12), 0 0 0 3px var(--navy-ink);
}

.spine__label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--head);
    font-weight: 600;
    font-size: 13px;
    line-height: 1.1;
    max-height: calc(100% - 40px);
    overflow: hidden;
    text-align: left;
    margin-top: 18px;
}

.spine__count {
    font-family: var(--display);
    font-size: 17px;
    line-height: 1;
}

.results--cards .results__table td:first-child {
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
    color: var(--accent-dark);
    font-weight: 700;
}

.howto {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 30px;
}

.howto__step {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    background: var(--cream);
    border-radius: 10px;
}

.howto__num {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--saffron);
    font-family: var(--display);
    font-size: 24px;
    color: var(--navy-ink);
}

.howto__step p {
    margin: 0;
    font-size: 15px;
    color: #3b4254;
}


/* ---------- Book reviews: covers, stamps and a corkboard ---------- */

.bookrevs {
    display: grid;
    gap: 34px;
}

.bookrev {
    display: grid;
    grid-template-columns: 210px 1fr 250px;
    gap: 32px;
    align-items: start;
    padding: 28px;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 1px 0 var(--line), 0 14px 30px rgba(13, 22, 64, .08);
}

.bookrev__cover {
    aspect-ratio: 2 / 3;
    border-radius: 4px 10px 10px 4px;
    padding: 22px 18px 18px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: inset 12px 0 0 rgba(0, 0, 0, .16), inset 14px 0 0 rgba(255, 255, 255, .18), 0 16px 30px rgba(13, 22, 64, .25);
    transform: perspective(700px) rotateY(-12deg);
    transition: transform .4s;
}

.bookrev:hover .bookrev__cover {
    transform: perspective(700px) rotateY(0);
}

.cover--saffron {
    background: var(--saffron);
    color: var(--navy-ink);
}

.cover--blue {
    background: linear-gradient(160deg, #2f6db5, #1b2a6b);
    color: var(--white);
}

.cover__title {
    font-family: var(--head);
    font-weight: 700;
    font-size: 26px;
    line-height: 1.1;
}

.cover__author {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .85;
}

.bookrev__title {
    font-family: var(--head);
    font-weight: 600;
    font-size: 26px;
    color: var(--navy);
}

.bookrev__author {
    color: var(--muted);
    margin: 2px 0 14px;
}

.bookrev blockquote {
    margin: 0 0 18px;
    padding: 0 0 0 18px;
    border-left: 4px solid var(--saffron);
}

.bookrev blockquote p {
    margin: 0;
    font-size: 16px;
    line-height: 1.75;
    color: #2f3650;
}

.stamp {
    display: inline-flex;
    flex-direction: column;
    padding: 8px 16px;
    border: 3px double var(--accent);
    border-radius: 6px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    transform: rotate(-4deg);
}

.stamp strong {
    font-family: var(--head);
    font-size: 17px;
    letter-spacing: .02em;
    text-transform: none;
}

.bookrev__video {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bookrev__video video {
    width: 100%;
    aspect-ratio: 9 / 15;
    object-fit: cover;
    border-radius: 10px;
    background: var(--navy-ink);
}

.bookrev__video-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    text-align: center;
}

.corkboard {
    background: radial-gradient(rgba(120, 72, 30, .18) 1.2px, transparent 1.3px) 0 0 / 12px 12px, #d9a86c;
}

.corkboard .section-title,
.corkboard .eyebrow {
    color: var(--navy-ink);
}

.corkboard .section-head__note {
    color: #4b3a26;
}

.written--board {
    gap: 34px;
}

.written--board .written__item {
    position: relative;
    border: 0;
    padding: 10px 10px 0;
    background: var(--white);
    box-shadow: 0 10px 22px rgba(60, 35, 10, .3);
}

.written--board .pin-1 {
    transform: rotate(-2.5deg);
}

.written--board .pin-2 {
    transform: rotate(2deg);
}

.written--board .pin-3 {
    transform: rotate(-1.5deg);
}

.written--board .pin-4 {
    transform: rotate(2.5deg);
}

.written--board .written__item:hover {
    transform: rotate(0) scale(1.03);
    z-index: 2;
}

.written--board .written__label {
    display: block;
    padding: 8px 4px 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
}

.pin {
    position: absolute;
    left: 50%;
    top: -9px;
    width: 20px;
    height: 20px;
    margin-left: -10px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ff8a73, #c8402a);
    box-shadow: 0 3px 4px rgba(0, 0, 0, .35);
    z-index: 1;
}

.pin-2 .pin,
.pin-4 .pin {
    background: radial-gradient(circle at 35% 35%, #8fd0f5, #2f6db5);
}


/* ---------- e-Magazine: cover rack ---------- */

.rack-section {
    background: linear-gradient(180deg, var(--white) 0 70%, var(--cream) 70%);
}

.rack {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    padding: 0 10px 22px;
    border-bottom: 14px solid #2326a8;
    box-shadow: 0 6px 0 #171a7a;
    margin-bottom: 34px;
    align-items: end;
}

.cover-btn {
    position: relative;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    transition: transform .3s;
}

.cover-btn img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top;
    border-radius: 3px 8px 8px 3px;
    box-shadow: inset 8px 0 0 rgba(0, 0, 0, .2), 0 14px 26px rgba(13, 22, 64, .28);
}

.cover-btn:hover {
    transform: translateY(-8px) rotate(-1deg);
}

.cover-btn.is-active {
    transform: translateY(-14px);
}

.cover-btn.is-active img {
    outline: 5px solid var(--saffron);
    outline-offset: 3px;
}

.cover-btn__ribbon {
    position: absolute;
    top: 12px;
    right: -6px;
    z-index: 1;
    padding: 4px 12px;
    background: var(--accent);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
}

.cover-btn__meta {
    display: block;
    padding: 12px 2px 0;
}

.cover-btn .viewer__tab-year {
    display: block;
    font-family: var(--display);
    font-size: 30px;
    line-height: 1;
    color: var(--navy);
}

.cover-btn.is-active .viewer__tab-year {
    color: var(--accent);
}

.cover-btn__theme {
    display: block;
    font-size: 14px;
    color: var(--muted);
    margin-top: 4px;
}

.reader {
    scroll-margin-top: 80px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(13, 22, 64, .16);
}

.viewer__bar--top {
    border: 0;
    border-bottom: 1px solid var(--line);
    background: var(--navy);
}

.viewer__bar--top .viewer__label {
    color: var(--white);
}

.viewer__bar--top .link-arrow {
    color: var(--saffron);
}

.reader .viewer__frame {
    border: 0;
}

.mag-facts {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.mag-facts li {
    padding: 12px 18px;
    border-radius: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    text-align: center;
}

.mag-facts strong {
    display: block;
    font-family: var(--display);
    font-size: 34px;
    line-height: 1;
    color: var(--accent);
}

.mag-facts span {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}


/* ---------- Word Explorer ---------- */

.wx {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 34px;
    align-items: start;
}

.wotd {
    position: sticky;
    top: 84px;
    padding: 26px 26px 28px;
    border-radius: 14px;
    color: var(--white);
    overflow: hidden;
    background: radial-gradient(circle at 110% -10%, #2f6db5 0 32%, transparent 33%), var(--navy);
    border-bottom: 6px solid var(--saffron);
}

.wotd__label {
    display: inline-block;
    padding: 4px 12px 3px;
    border-radius: 999px;
    background: var(--saffron);
    color: var(--navy-ink);
    font-family: var(--display);
    font-size: 18px;
    letter-spacing: .05em;
}

.wotd__word {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 46px;
    line-height: 1.05;
    margin: 18px 0 6px;
    word-break: break-word;
}

.wotd__pos {
    font-style: italic;
    color: #c9d1e6;
    margin-bottom: 8px;
}

.wotd__level {
    font-size: 15px;
    color: #dfe5f5;
    margin-bottom: 20px;
}

.lvl {
    display: inline-block;
    min-width: 30px;
    padding: 2px 7px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 12px;
    text-align: center;
    color: var(--white);
}

.lvl--A1 {
    background: #1f8a5b;
}

.lvl--A2 {
    background: #2b9cc9;
}

.lvl--B1 {
    background: #2f6db5;
}

.lvl--B2 {
    background: #7a3fb0;
}

.wx__levels,
.wx__letters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.wx__levels button {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--navy);
    font-weight: 600;
    font-size: 14px;
}

.wx__levels button[aria-pressed="true"] {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.wx__letters button {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--navy);
    font-family: Georgia, serif;
    font-weight: 700;
    font-size: 15px;
}

.wx__letters button:first-child {
    width: auto;
    padding: 0 10px;
    font-family: var(--sans);
}

.wx__letters button[aria-pressed="true"] {
    background: var(--saffron);
    border-color: var(--saffron);
    color: var(--navy-ink);
}

.wx__meta {
    margin: 18px 0 14px;
    font-size: 14px;
    color: var(--muted);
}

.wx__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
}

.wcard {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 2px 8px;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    text-decoration: none;
    transition: border-color .2s, transform .2s;
}

.wcard:hover {
    border-color: var(--navy);
    transform: translateY(-2px);
}

.wcard__word {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--navy);
}

.wcard .lvl {
    grid-row: 1;
    grid-column: 2;
    align-self: center;
}

.wcard__pos {
    grid-column: 1 / -1;
    font-size: 13px;
    font-style: italic;
    color: var(--muted);
}

.wx__more {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.wx__empty {
    color: var(--muted);
}


/* ---------- e-Resources: app launcher ---------- */

.launcher {
    padding: 24px;
    border-radius: 16px;
    background: var(--navy-ink);
    margin-bottom: 40px;
    box-shadow: 0 18px 40px rgba(13, 22, 64, .2);
}

.launcher__bar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-bottom: 22px;
}

.launcher__search {
    flex: 1 1 320px;
}

.launcher__search .search__input {
    border-color: transparent;
    border-radius: 10px;
}

.launcher__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.launcher__cats button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .22);
    background: transparent;
    color: #dfe5f5;
    font-weight: 600;
    font-size: 14px;
}

.launcher__cats button i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.launcher__cats button .count {
    font-size: 12px;
    opacity: .7;
}

.launcher__cats button[aria-pressed="true"] {
    background: var(--saffron);
    border-color: var(--saffron);
    color: var(--navy-ink);
}

.apps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .05);
    text-decoration: none;
    text-align: center;
    transition: background .2s, transform .2s;
}

.app:hover {
    background: rgba(255, 255, 255, .12);
    transform: translateY(-3px);
}

.app[hidden] {
    display: none;
}

.app__icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--c);
    color: var(--white);
    font-family: var(--head);
    font-weight: 700;
    font-size: 20px;
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2), 0 6px 14px rgba(0, 0, 0, .25);
}

.app__name {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.25;
    color: var(--white);
}

.app__host {
    font-size: 12px;
    color: #93a3c9;
    word-break: break-all;
}

.launcher__empty {
    color: #c9d1e6;
    margin: 10px 0 0;
}


/* ---------- Policies: rulebook ---------- */

.rulebook {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 44px;
    align-items: start;
}

.rulebook__intro {
    position: sticky;
    top: 84px;
}

.rulebook__intro .lead {
    font-size: 17px;
}

.ladder-box {
    margin: 22px 0;
    padding: 20px;
    border-radius: 12px;
    background: var(--cream);
}

.ladder-box h3 {
    font-family: var(--head);
    font-weight: 600;
    font-size: 17px;
    color: var(--navy);
    margin-bottom: 12px;
}

.ladder {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.ladder li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    color: var(--navy-ink);
    background: color-mix(in srgb, var(--accent) calc(18% + var(--i) * 22%), var(--white));
    margin-right: calc((3 - var(--i)) * 18px);
}

.ladder li:nth-child(4) {
    color: var(--white);
}

.ladder__step {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--white);
    color: var(--accent-dark);
    font-family: var(--display);
    font-size: 17px;
}

.rules {
    display: grid;
    gap: 12px;
}

.rule {
    border-radius: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    overflow: hidden;
}

.rule[open] {
    box-shadow: 0 12px 26px rgba(13, 22, 64, .08);
    border-color: transparent;
}

.rule summary {
    list-style: none;
    display: grid;
    grid-template-columns: 54px 1fr auto 20px;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    cursor: pointer;
}

.rule summary::-webkit-details-marker {
    display: none;
}

.rule summary::after {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--navy);
    border-bottom: 2px solid var(--navy);
    transform: rotate(45deg);
    transition: transform .2s;
    justify-self: center;
}

.rule[open] summary::after {
    transform: rotate(-135deg);
}

.rule__num {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--saffron);
    font-family: var(--display);
    font-size: 28px;
    color: var(--navy-ink);
}

.rule:nth-child(3n+2) .rule__num {
    background: var(--sky);
}

.rule:nth-child(3n) .rule__num {
    background: #f6c9b3;
}

.rule__title {
    font-family: var(--head);
    font-weight: 600;
    font-size: 18px;
    color: var(--navy);
}

.rule__count {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.rule ul {
    list-style: none;
    margin: 0;
    padding: 0 22px 18px 86px;
    display: grid;
    gap: 8px;
}

.rule li {
    position: relative;
    padding-left: 28px;
    color: #2f3650;
}

.rule li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--sky-soft);
}

.rule li::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 7px;
    width: 5px;
    height: 9px;
    border-right: 2px solid var(--blue);
    border-bottom: 2px solid var(--blue);
    transform: rotate(45deg);
}

.subhead--first {
    margin-top: 0;
}

.plag-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.plag-card {
    padding: 20px;
    border-radius: 12px;
    background: var(--white);
    border-top: 5px solid var(--accent);
    box-shadow: 0 8px 20px rgba(13, 22, 64, .06);
}

.plag-card h3 {
    font-family: var(--head);
    font-weight: 600;
    font-size: 17px;
    color: var(--navy);
    margin-bottom: 6px;
}

.plag-card p {
    margin: 0;
    font-size: 15px;
    color: var(--muted);
}

.plag-cols {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 34px;
    margin: 10px 0 24px;
}

.checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.checklist li {
    position: relative;
    padding: 12px 14px 12px 46px;
    border-radius: 10px;
    background: var(--white);
    color: #2f3650;
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 13px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1f8a5b;
}

.checklist li::after {
    content: "";
    position: absolute;
    left: 21px;
    top: 17px;
    width: 5px;
    height: 9px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

.process {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
    counter-reset: p;
}

.process li {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 14px;
    padding: 16px;
    border-radius: 12px;
    background: var(--white);
    position: relative;
}

.process li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 40px;
    bottom: -14px;
    width: 2px;
    height: 16px;
    background: var(--saffron);
}

.process span {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--navy);
    color: var(--saffron);
    font-family: var(--display);
    font-size: 26px;
}

.process strong {
    font-family: var(--head);
    color: var(--navy);
}

.process p {
    margin: 4px 0 0;
    font-size: 15px;
    color: var(--muted);
}


/* ---------- Gallery: photo exhibition ---------- */

.exhibit {
    background: var(--navy-ink);
}

.album-tabs--dark button {
    background: transparent;
    color: #dfe5f5;
    border-color: rgba(255, 255, 255, .3);
}

.album-tabs--dark button[aria-pressed="true"] {
    background: var(--saffron);
    border-color: var(--saffron);
    color: var(--navy-ink);
}

.masonry {
    columns: 4 260px;
    column-gap: 14px;
}

.masonry button {
    position: relative;
    display: block;
    width: 100%;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    background: #1a2350;
    border-radius: 8px;
    overflow: hidden;
    break-inside: avoid;
}

.masonry img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .5s, opacity .3s;
}

.masonry button:hover img {
    transform: scale(1.04);
    opacity: .85;
}

.masonry__cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 26px 12px 10px;
    background: linear-gradient(0deg, rgba(8, 14, 40, .9), transparent);
    color: var(--white);
    font-family: var(--head);
    font-weight: 600;
    font-size: 14px;
    text-align: left;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .25s, transform .25s;
}

.masonry button:hover .masonry__cap,
.masonry button:focus-visible .masonry__cap {
    opacity: 1;
    transform: none;
}


/* ---------- About: journey and the principal's letter ---------- */

.journey {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    position: relative;
}

.journey::before {
    content: "";
    position: absolute;
    left: 4%;
    right: 4%;
    top: 58px;
    height: 4px;
    background: linear-gradient(90deg, var(--saffron), var(--sky), var(--accent));
    border-radius: 2px;
}

.journey__step {
    position: relative;
    text-align: left;
}

.journey__year {
    display: block;
    font-family: var(--display);
    font-size: 36px;
    line-height: 1;
    color: var(--navy);
    height: 44px;
}

.journey__dot {
    display: block;
    width: 22px;
    height: 22px;
    margin: 4px 0 16px;
    border-radius: 50%;
    background: var(--white);
    border: 5px solid var(--saffron);
    position: relative;
    z-index: 1;
}

.journey__step:nth-child(2) .journey__dot {
    border-color: var(--sky);
}

.journey__step:nth-child(3) .journey__dot {
    border-color: var(--blue);
}

.journey__step:nth-child(4) .journey__dot {
    border-color: var(--accent);
}

.journey__step:nth-child(5) .journey__dot {
    background: var(--saffron);
    border-color: var(--navy);
}

.journey__step h3 {
    font-family: var(--head);
    font-weight: 600;
    font-size: 17px;
    color: var(--navy);
    margin-bottom: 6px;
}

.journey__step p {
    margin: 0;
    font-size: 15px;
    color: var(--muted);
}

.section--desk {
    background: radial-gradient(rgba(27, 42, 107, .07) 1px, transparent 1.2px) 0 0 / 16px 16px, #eef2f9;
}

.letter {
    max-width: 920px;
    margin: 0 auto;
    background: #fffdf7;
    border-radius: 6px;
    padding: 40px 54px 44px;
    box-shadow: 0 1px 0 #e7dfc9, 0 24px 50px rgba(13, 22, 64, .16);
    position: relative;
    border-top: 8px solid var(--saffron);
}

.letter::before {
    content: "";
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(217, 98, 43, .28);
}

.letter__head {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 16px;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--navy);
}

.letter__school {
    margin: 0;
    font-family: var(--head);
    font-weight: 700;
    font-size: 19px;
    color: var(--navy);
}

.letter__place {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

.letter__date {
    font-family: var(--display);
    font-size: 20px;
    letter-spacing: .04em;
    color: var(--accent);
}

.letter__title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin: 26px 0 14px;
}

.letter__title {
    font-family: var(--head);
    font-weight: 700;
    font-size: clamp(28px, 3.6vw, 40px);
    color: var(--navy);
}

.letter__photo {
    margin: 0;
    flex-shrink: 0;
    position: relative;
}

.letter__photo img {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--white);
    box-shadow: 0 0 0 4px var(--saffron), 0 10px 24px rgba(13, 22, 64, .2);
}

.letter__body p {
    font-size: 17px;
    line-height: 1.85;
    color: #2a3150;
    margin-bottom: 1.1em;
}

.letter__body p:first-child {
    font-family: var(--head);
    font-weight: 600;
    color: var(--navy);
}

.letter__sign {
    display: flex;
    flex-direction: column;
    margin-top: 26px;
    padding-top: 16px;
    border-top: 1px dashed #cdbf9c;
    width: fit-content;
}

.letter__regards {
    font-style: italic;
    color: var(--muted);
    margin-bottom: 6px;
}

.letter__sign strong {
    font-family: var(--head);
    font-size: 20px;
    color: var(--navy);
}

.letter__sign span:last-child {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
}


/* ---------- Responsive: page-specific designs ---------- */

@media (max-width: 1080px) {
    .tally {
        grid-template-columns: repeat(2, 1fr);
    }
    .podiums {
        grid-template-columns: repeat(2, 1fr);
    }
    .bookrev {
        grid-template-columns: 180px 1fr;
    }
    .bookrev__video {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
    }
    .bookrev__video video {
        width: 220px;
        aspect-ratio: 9 / 15;
        flex-shrink: 0;
    }
    .rack {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
    .plag-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .journey {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 30px;
    }
    .journey::before {
        display: none;
    }
}

@media (max-width: 900px) {
    .wx,
    .rulebook,
    .plag-cols {
        grid-template-columns: 1fr;
    }
    .wotd,
    .rulebook__intro {
        position: static;
    }
    .timeline::before {
        left: 34px;
    }
    .tl-session {
        text-align: left;
    }
    .tl-item {
        grid-template-columns: 70px 1fr;
        gap: 0 16px;
    }
    .tl-item .leaf {
        grid-column: 1;
    }
    .tl-item--left .tl-card,
    .tl-item--right .tl-card {
        grid-column: 2;
    }
    .tl-item--left .tl-card::after {
        right: auto;
        left: -7px;
    }
    .howto {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .tally {
        gap: 16px;
    }
    .tally__item {
        grid-template-columns: 56px 1fr;
        column-gap: 10px;
    }
    .tally__disc {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }
    .tally__num {
        font-size: 40px;
    }
    .tally__label {
        font-size: 13px;
    }
    .podiums {
        grid-template-columns: 1fr;
    }
    .bookrev {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .bookrev__cover {
        width: 60%;
        margin: 0 auto;
    }
    .bookrev__video {
        flex-direction: column;
    }
    .bookrev__video video {
        width: 100%;
    }
    .rack {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 26px;
    }
    .plag-grid {
        grid-template-columns: 1fr;
    }
    .rule ul {
        padding-left: 22px;
    }
    .journey {
        grid-template-columns: 1fr;
    }
    .letter {
        padding: 28px 22px 30px;
    }
    .letter::before {
        left: 12px;
    }
    .letter__head {
        grid-template-columns: 48px 1fr;
    }
    .letter__head img {
        width: 48px;
        height: 48px;
    }
    .letter__date {
        grid-column: 1 / -1;
    }
    .letter__title-row {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
    .letter__photo img {
        width: 96px;
        height: 96px;
    }
    .masonry {
        columns: 2 140px;
        column-gap: 8px;
    }
    .masonry button {
        margin-bottom: 8px;
    }
    .masonry__cap {
        opacity: 1;
        transform: none;
        font-size: 12px;
        padding: 18px 8px 6px;
    }
    .shelf {
        height: 210px;
    }
    .spine {
        flex-basis: 46px;
    }
    .launcher {
        padding: 16px;
    }
    .apps {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-banner--art .geo--art {
        width: 85%;
        opacity: .25;
    }
}

.written--board .pin {
    padding: 0;
    border: 0;
}

.written--board .written__label {
    border-top: 0;
}


/* ==========================================================================
   The school's two names, specialisation, news, location and visiting hours
   ========================================================================== */


/* ---------- Footer: social links ---------- */

.footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 10px !important;
}

.footer__social a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer__social svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--saffron);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ---------- Source notes ---------- */

.source-note {
    margin: 0;
    padding: 14px 18px;
    border-left: 4px solid var(--sky);
    background: var(--sky-soft);
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    color: var(--muted);
}


/* ---------- About: one school, two names ---------- */

.names-section {
    background: var(--navy-deep);
}

.names {
    display: grid;
    grid-template-columns: 1fr 90px 1fr;
    align-items: stretch;
    gap: 0;
}

.plate {
    position: relative;
    padding: 30px 30px 26px;
    border-radius: 10px;
}

.plate--old {
    background: #2a3770;
    color: #c9d1e6;
    border: 2px solid rgba(255, 255, 255, .18);
}

.plate--new {
    background: var(--white);
    color: var(--ink);
    border-top: 8px solid var(--saffron);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
}

.plate__years {
    display: inline-block;
    font-family: var(--display);
    font-size: 20px;
    letter-spacing: .05em;
    padding: 3px 12px 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: var(--saffron-pale);
    margin-bottom: 14px;
}

.plate--new .plate__years {
    background: #2326a8;
    color: var(--white);
}

.plate__label {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #9fb1dc;
}

.plate--new .plate__label {
    color: var(--accent);
}

.plate__name {
    font-family: var(--head);
    font-weight: 700;
    font-size: clamp(20px, 2.2vw, 26px);
    line-height: 1.25;
    margin: 4px 0 4px;
    color: var(--white);
}

.plate--old .plate__name {
    text-decoration: line-through;
    text-decoration-color: rgba(245, 179, 1, .7);
    text-decoration-thickness: 2px;
}

.plate--new .plate__name {
    color: var(--navy);
}

.plate__short {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    color: inherit;
    opacity: .85;
}

.plate__facts {
    display: grid;
    gap: 8px;
}

.plate__facts li {
    position: relative;
    padding-left: 20px;
    font-size: 15px;
}

.plate__facts li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sky);
}

.plate--new .plate__facts li::before {
    background: var(--saffron);
}

.names__arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--saffron);
}

.names__arrow svg {
    width: 56px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.names__arrow span {
    font-family: var(--display);
    font-size: 26px;
    letter-spacing: .05em;
}

.names__note {
    margin: 28px 0 0;
    max-width: 820px;
    color: #c9d1e6;
}


/* ---------- About: specialisation pathway ---------- */

.pathway {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    counter-reset: none;
}

.pathway__stage {
    position: relative;
    padding: 28px 40px 28px 28px;
    background: var(--sky-soft);
    clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%, 26px 50%);
    margin-right: -14px;
}

.pathway__stage:first-child {
    clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%);
    border-radius: 12px 0 0 12px;
}

.pathway__stage:nth-child(2) {
    background: #fbe7a6;
    padding-left: 48px;
}

.pathway__stage:nth-child(3) {
    background: var(--navy);
    color: #dfe5f5;
    padding-left: 48px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 26px 50%);
    border-radius: 0 12px 12px 0;
    margin-right: 0;
}

.pathway__num {
    font-family: var(--display);
    font-size: 48px;
    line-height: 1;
    color: var(--blue);
}

.pathway__stage:nth-child(2) .pathway__num {
    color: var(--accent);
}

.pathway__stage:nth-child(3) .pathway__num {
    color: var(--saffron);
}

.pathway__when {
    display: block;
    margin: 6px 0 2px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

.pathway__stage:nth-child(3) .pathway__when {
    color: #9fb1dc;
}

.pathway__stage h3 {
    font-family: var(--head);
    font-weight: 700;
    font-size: 24px;
    color: var(--navy);
    margin-bottom: 8px;
}

.pathway__stage:nth-child(3) h3 {
    color: var(--white);
}

.pathway__stage p {
    margin: 0;
    font-size: 15px;
}

.skillset {
    margin-top: 34px;
    padding: 24px 26px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--white);
}

.skillset__title {
    font-family: var(--head);
    font-weight: 600;
    font-size: 18px;
    color: var(--navy);
    margin-bottom: 14px;
}

.skillset__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skillset__list li {
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    color: var(--navy-ink);
    background: var(--cream);
    border: 2px solid var(--saffron);
}

.skillset__list li:nth-child(3n+2) {
    border-color: var(--sky);
}

.skillset__list li:nth-child(3n) {
    border-color: var(--accent);
}

.skillset__note {
    margin: 16px 0 0;
    font-size: 14px;
    color: var(--muted);
}

.journey {
    grid-template-columns: repeat(6, 1fr);
}

.journey__step:nth-child(5) .journey__dot {
    background: var(--white);
    border-color: var(--sky);
}

.journey__step:nth-child(6) .journey__dot {
    background: var(--saffron);
    border-color: var(--navy);
}


/* ---------- Achievements: press clippings ---------- */

.news-section {
    background: linear-gradient(180deg, #f3efe6, #fbf8f1);
}

.clippings {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    align-items: start;
}

.clip {
    position: relative;
    display: block;
    padding: 26px 24px 22px;
    background: #fffdf6;
    color: #2a2a2a;
    text-decoration: none;
    box-shadow: 0 2px 0 #e9e2cf, 0 14px 28px rgba(60, 48, 20, .14);
    transition: rotate .2s, translate .2s, box-shadow .2s;
    clip-path: polygon(0 2%, 6% 0, 14% 1.5%, 24% 0, 36% 1%, 48% 0, 60% 1.6%, 72% 0, 84% 1.2%, 94% 0, 100% 1.5%, 100% 98%, 92% 100%, 80% 98.6%, 66% 100%, 52% 98.4%, 38% 100%, 24% 98.8%, 10% 100%, 0 98.5%);
}

.clip--0 {
    rotate: -1.2deg;
}

.clip--1 {
    rotate: .9deg;
    margin-top: 18px;
}

.clip--2 {
    rotate: -.5deg;
}

.clip:hover {
    rotate: 0deg;
    translate: 0 -4px;
    box-shadow: 0 2px 0 #e9e2cf, 0 22px 36px rgba(60, 48, 20, .2);
}

.clip__paper {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: .02em;
    color: #111;
    padding-bottom: 8px;
    border-bottom: 3px double #333;
}

.clip__date {
    display: block;
    margin: 8px 0 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #777;
}

.clip__head {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    font-size: 21px;
    line-height: 1.25;
    color: #151515;
    margin-bottom: 10px;
}

.clip__text {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    line-height: 1.6;
    color: #3a3a3a;
    margin-bottom: 14px;
    columns: 1;
}

.clip__tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 3px 9px;
    background: var(--saffron);
    color: var(--navy-ink);
}

.clip--2 .clip__tag {
    background: var(--sky-soft);
    color: var(--navy);
}


/* ---------- About: location and visiting hours ---------- */

.visit {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 34px;
    align-items: stretch;
}

.postcard {
    position: relative;
    padding: 36px 36px 30px;
    background: #fffdf7;
    border-radius: 6px;
    box-shadow: 0 1px 0 #e7dfc9, 0 22px 44px rgba(13, 22, 64, .14);
    border: 10px solid transparent;
    border-image: repeating-linear-gradient(45deg, var(--accent) 0 14px, #fffdf7 14px 24px, var(--blue) 24px 38px, #fffdf7 38px 48px) 10;
}

.postcard__stamp {
    position: absolute;
    right: 22px;
    top: 22px;
    width: 92px;
    padding: 8px 8px 4px;
    background: var(--white);
    text-align: center;
    outline: 2px dashed #c9b98f;
    outline-offset: -6px;
    transform: rotate(4deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
}

.postcard__stamp img {
    margin: 0 auto;
}

.postcard__stamp span {
    display: block;
    font-family: var(--display);
    font-size: 15px;
    letter-spacing: .1em;
    color: var(--accent);
}

.postcard__to {
    margin: 0 0 4px;
    font-style: italic;
    color: var(--muted);
}

.postcard__address {
    font-style: normal;
    font-family: var(--head);
    font-size: 19px;
    line-height: 1.6;
    color: var(--navy);
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--navy);
    max-width: calc(100% - 110px);
}

.postcard__address strong {
    display: block;
    font-size: 15px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
}

.postcard__rows {
    margin: 0 0 22px;
    display: grid;
    gap: 12px;
}

.postcard__rows div {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 10px;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px dashed #d9cfb5;
}

.postcard__rows dt {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.postcard__rows dt svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--blue);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.postcard__rows dd {
    margin: 0;
    font-weight: 600;
    color: var(--ink);
}

.postcard__rows a {
    color: var(--navy);
}

.postcard__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mapframe {
    margin: 0;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
    background: var(--navy);
    box-shadow: 0 22px 44px rgba(13, 22, 64, .18);
}

.mapframe__map {
    position: relative;
    flex: 1;
    min-height: 380px;
    background: repeating-linear-gradient(0deg, #e8f4fb 0 38px, #dbe9f7 38px 40px), #e8f4fb;
}

.mapframe__map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.mapframe figcaption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 14px 18px;
    color: #dfe5f5;
    font-size: 15px;
    border-top: 5px solid var(--saffron);
}

.mapframe .link-arrow {
    color: var(--saffron);
}


/* ---------- Home: visit the school ---------- */

.visit-band {
    display: grid;
    grid-template-columns: 76px 1fr auto auto;
    align-items: center;
    gap: 26px;
    padding: 28px 34px;
    border-radius: 18px;
    background: var(--navy);
    color: #dfe5f5;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: translate .2s, box-shadow .2s;
}

.visit-band::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 22px solid rgba(74, 174, 227, .3);
    pointer-events: none;
}

.visit-band:hover {
    translate: 0 -3px;
    box-shadow: 0 16px 34px rgba(13, 22, 64, .2);
}

.visit-band__icon {
    width: 76px;
    height: 76px;
    padding: 16px;
    border-radius: 50%;
    background: var(--accent);
    fill: none;
    stroke: var(--white);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.visit-band__kicker {
    display: block;
    font-family: var(--display);
    font-size: 22px;
    letter-spacing: .06em;
    color: var(--saffron);
}

.visit-band__title {
    font-family: var(--head);
    font-weight: 700;
    font-size: clamp(22px, 2.4vw, 30px);
    color: var(--white);
    margin: 2px 0 6px;
}

.visit-band p {
    margin: 0;
}

.visit-band__clock {
    display: grid;
    justify-items: center;
    padding: 12px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    text-align: center;
    position: relative;
    z-index: 1;
}

.visit-band__clock svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: var(--saffron);
    stroke-width: 2.4;
    stroke-linecap: round;
    margin-bottom: 4px;
}

.visit-band__clock strong {
    font-family: var(--display);
    font-size: 26px;
    letter-spacing: .04em;
    color: var(--white);
    line-height: 1.1;
    white-space: nowrap;
}

.visit-band__clock span {
    font-size: 13px;
    color: #b9c3dd;
}

.visit-band .link-arrow {
    color: var(--saffron);
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.visit__note {
    margin-top: 22px;
}


/* ---------- Responsive: new sections ---------- */

@media (max-width: 1080px) {
    .journey {
        grid-template-columns: repeat(3, 1fr);
    }
    .clippings {
        grid-template-columns: repeat(2, 1fr);
    }
    .visit-band {
        grid-template-columns: 76px 1fr auto;
    }
    .visit-band .link-arrow {
        grid-column: 2 / -1;
    }
}

@media (max-width: 900px) {
    .visit {
        grid-template-columns: 1fr;
    }
    .names {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .names__arrow {
        flex-direction: row;
        padding: 14px 0;
    }
    .names__arrow svg {
        transform: rotate(90deg);
    }
    .pathway {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .pathway__stage,
    .pathway__stage:first-child,
    .pathway__stage:nth-child(2),
    .pathway__stage:nth-child(3) {
        clip-path: none;
        margin-right: 0;
        padding: 24px;
        border-radius: 12px;
    }
}

@media (max-width: 680px) {
    .journey {
        grid-template-columns: 1fr;
    }
    .plate {
        padding: 24px 22px 22px;
    }
    .clippings {
        grid-template-columns: 1fr;
    }
    .clip--1 {
        margin-top: 0;
    }
    .visit-band {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 24px;
    }
    .visit-band__icon {
        width: 60px;
        height: 60px;
        padding: 13px;
    }
    .visit-band__clock {
        justify-items: start;
        text-align: left;
    }
    .visit-band .link-arrow {
        grid-column: auto;
    }
    .postcard {
        padding: 26px 20px 24px;
    }
    .postcard__stamp {
        width: 70px;
        right: 14px;
        top: 14px;
    }
    .postcard__stamp img {
        width: 46px;
        height: 46px;
    }
    .postcard__address {
        font-size: 17px;
        max-width: calc(100% - 80px);
    }
    .postcard__rows div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    .mapframe__map {
        min-height: 300px;
    }
}

@media (max-width: 680px) {
    .section--navy .geo {
        width: 170px;
        height: 170px;
        right: -70px;
        top: -70px;
        opacity: .45;
    }
}


/* ==========================================================================
   Main navigation
   A navy bar with the magazine's three-colour stripe, line icons, a
   bookmark notch on the current page and wide drop-down panels.
   ========================================================================== */

.mainnav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--navy);
    transition: box-shadow .25s;
}

.mainnav::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 5px;
    right: 0;
    width: min(30%, 380px);
    pointer-events: none;
    background: linear-gradient(115deg, transparent 0 34px, rgba(47, 109, 181, .55) 34px 100%);
}

.mainnav::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--saffron) 0 33.33%, var(--sky) 33.33% 66.66%, var(--accent) 66.66% 100%);
}

.mainnav.is-stuck {
    box-shadow: 0 10px 26px rgba(11, 21, 49, .3);
}

.mainnav__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    padding-bottom: 5px;
}


/* Small emblem that slides in once the bar sticks to the top */

.mainnav__mini {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: width .3s, opacity .3s, margin .3s;
}

.mainnav__mini img {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--white);
    padding: 3px;
}

.mainnav.is-stuck .mainnav__mini {
    width: 44px;
    opacity: 1;
    margin-right: 8px;
}

.mainnav__list {
    display: flex;
    align-items: stretch;
    flex: 1;
    min-width: 0;
}

.mainnav__item {
    display: flex;
    align-items: stretch;
}

.mainnav__list>li>a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 56px;
    padding: 0 13px;
    color: #e5e9f5;
    text-decoration: none;
    white-space: nowrap;
    font-family: var(--head);
    font-weight: 500;
    font-size: 14.5px;
    letter-spacing: .01em;
    transition: color .2s, background .2s;
}

.mainnav__icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    fill: none;
    stroke: var(--sky);
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke .2s, transform .2s;
}

.mainnav__num {
    display: none;
}


/* Hover: a saffron bar draws in under the label */

.mainnav__list>li>a::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 10px;
    height: 3px;
    border-radius: 2px;
    background: var(--saffron);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

.mainnav__list>li>a:hover,
.has-sub:hover>a {
    color: var(--white);
}

.mainnav__list>li>a:hover .mainnav__icon,
.has-sub:hover>a .mainnav__icon {
    stroke: var(--saffron);
    transform: translateY(-1px);
}

.mainnav__list>li>a:hover::after,
.has-sub:hover>a::after {
    transform: scaleX(1);
}


/* Current page: a saffron tab with a bookmark notch over the stripe */

.mainnav__list>li>a.is-active {
    color: var(--navy-ink);
    background: var(--saffron);
    font-weight: 600;
}

.mainnav__list>li>a.is-active .mainnav__icon {
    stroke: var(--navy-ink);
    transform: none;
}

.mainnav__list>li>a.is-active::after,
.mainnav__list>li>a.is-active:hover::after,
.has-sub:hover>a.is-active::after {
    left: 50%;
    right: auto;
    top: 100%;
    bottom: auto;
    width: 0;
    height: 0;
    border-radius: 0;
    background: none;
    border: 9px solid transparent;
    border-top-color: var(--saffron);
    border-bottom-width: 0;
    transform: translateX(-50%);
}


/* Drop-down toggle (About, Library) */

.has-sub>a {
    padding-right: 4px;
}

.has-sub>a::after {
    right: 4px;
}

.sub-toggle {
    display: grid;
    place-items: center;
    width: 24px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    color: #9fb1dc;
    transition: color .2s;
}

.sub-toggle svg {
    width: 10px;
    height: 8px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform .2s;
}

.has-sub:hover .sub-toggle {
    color: var(--saffron);
}

.has-sub>a.is-active+.sub-toggle {
    background: var(--saffron);
    color: var(--navy-ink);
}

.has-sub>a.is-active+.sub-toggle {
    width: 28px;
    padding-right: 4px;
}


/* Search shortcut */

.mainnav__search {
    margin-left: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px 7px 12px;
    border-radius: 999px;
    border: 2px solid var(--saffron);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: background .2s, color .2s;
}

.mainnav__search svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: var(--saffron);
    stroke-width: 3.4;
    stroke-linecap: round;
    transition: stroke .2s;
}

.mainnav__search:hover {
    background: var(--saffron);
    color: var(--navy-ink);
}

.mainnav__search:hover svg {
    stroke: var(--navy-ink);
}

.mainnav__toggle {
    display: none;
}

.mainnav a:focus-visible,
.sub-toggle:focus-visible,
.mainnav__toggle:focus-visible {
    outline: 3px solid var(--saffron);
    outline-offset: -3px;
}


/* ---------- Drop-down panels ---------- */

.mega {
    position: absolute;
    left: 24px;
    right: 24px;
    top: calc(100% - 5px);
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 300px;
    padding-top: 5px;
    overflow: hidden;
    background: linear-gradient(90deg, var(--saffron) 0 33.33%, var(--sky) 33.33% 66.66%, var(--accent) 66.66% 100%) top / 100% 5px no-repeat, var(--white);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 26px 50px rgba(13, 22, 64, .3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .2s, transform .2s, visibility .2s;
}

.mega--library {
    grid-template-columns: 1fr 340px;
}

@media (min-width: 901px) {
    .has-sub:hover .mega,
    .has-sub:focus-within .mega,
    .has-sub.is-open .mega {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}

.mega__main {
    padding: 24px 26px 22px;
}

.mega__title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 12px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

.mega__title span {
    font-family: var(--display);
    font-size: 30px;
    font-weight: 400;
    letter-spacing: .05em;
    color: var(--navy);
}

.mega__links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 14px;
}

.mega__links a {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    align-items: center;
    padding: 9px 12px;
    border-radius: 10px;
    text-decoration: none;
    transition: background .15s;
}

.mega__links a:hover,
.mega__links a:focus-visible {
    background: var(--sky-soft);
    outline: none;
}

.mega__n {
    font-family: var(--display);
    font-size: 28px;
    line-height: 1;
    color: #c9d3e8;
    transition: color .15s;
}

.mega__links li:nth-child(4n+1) a:hover .mega__n {
    color: var(--saffron);
}

.mega__links li:nth-child(4n+2) a:hover .mega__n {
    color: var(--sky);
}

.mega__links li:nth-child(4n+3) a:hover .mega__n {
    color: var(--accent);
}

.mega__links li:nth-child(4n) a:hover .mega__n {
    color: var(--blue);
}

.mega__text strong {
    display: block;
    font-family: var(--head);
    font-weight: 600;
    font-size: 15px;
    color: var(--navy);
}

.mega__text small {
    display: block;
    font-size: 13px;
    line-height: 1.35;
    color: var(--muted);
}

.mega__feature {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 24px 26px;
    background: var(--navy);
    color: #dfe5f5;
    text-decoration: none;
    overflow: hidden;
}

.mega__feature::before {
    content: "";
    position: absolute;
    right: -46px;
    bottom: -46px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 22px solid rgba(74, 174, 227, .25);
    pointer-events: none;
}

.mega__feature::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--blue) 0 50%, transparent 50%);
    opacity: .6;
    pointer-events: none;
}

.mega__feature>* {
    position: relative;
    z-index: 1;
}

.mega__feature--principal img {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--saffron);
    margin-bottom: 4px;
}

.mega__kicker {
    font-family: var(--display);
    font-size: 19px;
    letter-spacing: .06em;
    color: var(--saffron);
}

.mega__quote {
    font-family: var(--head);
    font-size: 15.5px;
    line-height: 1.45;
    color: var(--white);
}

.mega__sign {
    font-size: 13px;
    font-weight: 600;
    color: #9fb1dc;
}

.mega__feature--principal:hover .mega__sign {
    color: var(--saffron);
}

.mega__search-label {
    font-family: var(--head);
    font-weight: 600;
    font-size: 18px;
    color: var(--white);
}

.mega__search-row {
    display: flex;
    align-items: center;
    margin-top: 4px;
    padding: 4px;
    border-radius: 999px;
    background: var(--white);
}

.mega__search-row:focus-within {
    box-shadow: 0 0 0 3px var(--saffron);
}

.mega__search-row input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 8px 12px;
    background: transparent;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
}

.mega__search-row input:focus {
    outline: none;
}

.mega__search-row button {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--saffron);
}

.mega__search-row button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--navy-ink);
    stroke-width: 3.4;
    stroke-linecap: round;
}

.mega__hint {
    font-size: 13px;
    color: #9fb1dc;
}


/* ---------- Narrower laptop screens ---------- */

@media (max-width: 1199px) and (min-width: 901px) {
    .mainnav__icon {
        display: none;
    }
    .mainnav__list>li>a {
        padding: 0 11px;
        font-size: 14px;
    }
    .mainnav__list>li>a::after {
        left: 11px;
        right: 11px;
    }
    .has-sub>a {
        padding-right: 3px;
    }
    .has-sub>a::after {
        right: 3px;
    }
    .mega {
        grid-template-columns: 1fr 260px;
    }
    .mega--library {
        grid-template-columns: 1fr 300px;
    }
}

@media (max-width: 1023px) and (min-width: 901px) {
    .mainnav__search span {
        display: none;
    }
    .mainnav__search {
        padding: 8px;
    }
}


/* ---------- Phones and tablets: a full menu drawer ---------- */

@media (max-width: 900px) {
    .mainnav::before {
        width: 140px;
    }
    .mainnav__inner {
        flex-wrap: wrap;
        gap: 10px;
        min-height: 62px;
    }
    .mainnav__toggle {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        padding: 9px 16px 9px 12px;
        border-radius: 999px;
        background: rgba(255, 255, 255, .08);
        border: 1px solid rgba(255, 255, 255, .22);
        color: var(--white);
        font-family: var(--head);
        font-weight: 600;
        font-size: 15px;
    }
    .mainnav__bars {
        position: relative;
        display: block;
        width: 20px;
        height: 2px;
        background: var(--saffron);
        border-radius: 2px;
        transition: background .2s;
    }
    .mainnav__bars::before,
    .mainnav__bars::after {
        content: "";
        position: absolute;
        left: 0;
        width: 20px;
        height: 2px;
        border-radius: 2px;
        background: var(--saffron);
        transition: transform .25s, top .25s;
    }
    .mainnav__bars::before {
        top: -6px;
    }
    .mainnav__bars::after {
        top: 6px;
    }
    .mainnav__toggle[aria-expanded="true"] .mainnav__bars {
        background: transparent;
    }
    .mainnav__toggle[aria-expanded="true"] .mainnav__bars::before {
        top: 0;
        transform: rotate(45deg);
    }
    .mainnav__toggle[aria-expanded="true"] .mainnav__bars::after {
        top: 0;
        transform: rotate(-45deg);
    }
    .mainnav__search {
        padding: 9px;
    }
    .mainnav__search span {
        display: none;
    }
    .mainnav__list {
        display: none;
        order: 5;
        flex-basis: calc(100% + 48px);
        flex-direction: column;
        margin: 0 -24px;
        padding: 10px 18px 22px;
        background: var(--navy-deep);
        max-height: calc(100vh - 66px);
        overflow-y: auto;
    }
    .mainnav__list.is-open {
        display: flex;
    }
    .mainnav__item {
        flex-wrap: wrap;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        animation: navIn .35s ease both;
        animation-delay: calc(var(--i) * 35ms);
    }
    .mainnav__list>li>a {
        flex: 1;
        height: auto;
        padding: 10px 8px;
        gap: 14px;
        font-size: 17px;
        border-radius: 12px;
    }
    .mainnav__list>li>a::after {
        display: none;
    }
    .mainnav__icon {
        width: 40px;
        height: 40px;
        padding: 10px;
        border-radius: 12px;
        background: rgba(255, 255, 255, .07);
        stroke: var(--saffron);
        stroke-width: 2.4;
    }
    .mainnav__item:nth-child(3n+2) .mainnav__icon {
        stroke: var(--sky);
    }
    .mainnav__item:nth-child(3n) .mainnav__icon {
        stroke: #f39a6e;
    }
    .mainnav__label {
        order: 1;
    }
    .mainnav__num {
        display: block;
        order: 2;
        margin-left: auto;
        font-family: var(--display);
        font-size: 22px;
        letter-spacing: .04em;
        color: rgba(255, 255, 255, .28);
    }
    .mainnav__list>li>a.is-active {
        background: var(--saffron);
    }
    .mainnav__list>li>a.is-active .mainnav__icon {
        background: rgba(13, 22, 64, .1);
        stroke: var(--navy-ink);
    }
    .mainnav__list>li>a.is-active .mainnav__num {
        color: rgba(13, 22, 64, .45);
    }
    .has-sub>a {
        padding-right: 8px;
    }
    .sub-toggle {
        width: 48px;
        color: var(--white);
        border-left: 1px solid rgba(255, 255, 255, .1);
    }
    .has-sub.is-open .sub-toggle svg {
        transform: rotate(180deg);
    }
    .has-sub>a.is-active+.sub-toggle {
        width: 48px;
        padding: 0;
        background: transparent;
        color: var(--saffron);
    }
    .mega {
        position: static;
        display: none;
        flex-basis: 100%;
        grid-template-columns: 1fr;
        margin: 4px 0 12px;
        padding: 0;
        background: rgba(255, 255, 255, .04);
        border-radius: 14px;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .has-sub.is-open .mega {
        display: grid;
    }
    .mega__main {
        padding: 8px;
    }
    .mega__title {
        display: none;
    }
    .mega__links {
        grid-template-columns: 1fr;
    }
    .mega__links a {
        grid-template-columns: 30px 1fr;
        padding: 9px 10px;
    }
    .mega__links a:hover {
        background: rgba(255, 255, 255, .06);
    }
    .mega__n {
        font-size: 22px;
        color: var(--sky);
    }
    .mega__text strong {
        color: var(--white);
        font-weight: 500;
    }
    .mega__text small {
        color: #9fb1dc;
    }
    .mega__feature--principal {
        display: none;
    }
    .mega__feature {
        margin: 0 8px 8px;
        padding: 18px;
        border-radius: 12px;
        background: var(--navy);
    }
}

@keyframes navIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mainnav__item {
        animation: none;
    }
    .mega,
    .mainnav__mini,
    .mainnav__list>li>a::after {
        transition: none;
    }
}


/* ==========================================================================
   Clean-up layer
   One light tint for alternate sections, no corner shapes or section
   numbers, consistent cards and quieter tables.
   ========================================================================== */

:root {
    --tint: #f5f7fb;
}

.section {
    padding: 76px 0;
}

.section--tight {
    padding: 52px 0;
}

.section--cream,
.section--paper,
.section--desk,
.tally-band,
.news-section {
    background: var(--tint);
}

.tally-band {
    border-bottom: 1px solid var(--line-cool);
}

.section-num {
    display: none;
}

.section-head {
    margin-bottom: 34px;
    padding-bottom: 14px;
}

.section-head::after {
    width: 44px;
    height: 3px;
    border-radius: 2px;
    background: var(--saffron);
}


/* No decorative shapes outside the page banners */

.geo:not(.geo--art),
.corner-art,
.mainnav::before,
.mega__feature::before,
.mega__feature::after,
.init::after,
.va-card::after,
.visit-band::after,
.eunoia__photo::before {
    display: none;
}


/* Graduation message: a quiet card instead of a dark band */

.graduation {
    background: var(--white);
    color: var(--ink);
    border-top: 0;
    padding: 20px 0 64px;
    text-align: left;
}

.graduation__inner {
    max-width: 1152px;
    padding: 34px 40px;
    border-radius: 14px;
    background: var(--tint);
    border-left: 5px solid var(--saffron);
}

.graduation .eyebrow--light {
    color: var(--accent);
}

.graduation h2 {
    color: var(--navy);
    font-size: clamp(22px, 2.6vw, 30px);
    margin-bottom: 10px;
}

.graduation p {
    color: var(--muted);
    font-size: 17px;
}


/* Cards and panels: one border colour, one radius */

.hl-card,
.init,
.notice,
.services,
.ach-block,
.faq__item,
.review,
.written__item {
    border-radius: 12px;
}

.hl-card {
    box-shadow: 0 1px 2px rgba(13, 22, 64, .06), 0 8px 22px rgba(13, 22, 64, .06);
}

.hl-card__body {
    border-top-width: 3px;
}

.init,
.section--cream .init {
    border: 1px solid var(--line-cool);
    box-shadow: none;
}

.notice {
    border-color: var(--line-cool);
}

.notice__head {
    border-bottom-width: 3px;
}

.services {
    border-top-color: var(--line-cool);
    border-left-color: var(--line-cool);
    overflow: hidden;
}

.service {
    border-right-color: var(--line-cool);
    border-bottom-color: var(--line-cool);
}

.service:hover {
    background: var(--tint);
}


/* Home: library search */

.lib-search {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 760px;
    padding: 6px 6px 6px 18px;
    background: var(--white);
    border: 1px solid var(--line-cool);
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(13, 22, 64, .06);
}

.lib-search:focus-within {
    border-color: var(--saffron);
    box-shadow: 0 0 0 3px rgba(245, 179, 1, .35);
}

.lib-search svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: none;
    stroke: var(--muted);
    stroke-width: 3;
    stroke-linecap: round;
}

.lib-search input {
    flex: 1;
    min-width: 0;
    padding: 10px 4px;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 17px;
    color: var(--ink);
}

.lib-search input:focus {
    outline: none;
}

.lib-search .btn {
    border-radius: 999px;
    padding: 11px 26px;
}

.lib-search__try {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 14px 0 34px;
    font-size: 14px;
    color: var(--muted);
}

.lib-search__try a {
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--line-cool);
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
}

.lib-search__try a:hover {
    border-color: var(--saffron);
}


/* Achievements: quieter tables, six rows to start */

.ach-block {
    box-shadow: none;
    border: 1px solid var(--line-cool);
}

.ach-block__head h3 {
    font-family: var(--head);
    font-weight: 600;
    font-size: 19px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--navy);
}

.ach-table {
    border-top: 0;
}

.ach-row {
    border-bottom-color: #edf0f6;
}

.ach-row:nth-child(even):not(.ach-row--head) {
    background: #fafbfd;
}

.ach-row--head {
    background: #eef1f8;
    color: var(--navy);
}

.ach-row--more {
    display: none;
}

.ach-block.is-expanded .ach-row--more {
    display: grid;
}

.ach-more {
    display: block;
    width: 100%;
    padding: 12px;
    border: 0;
    border-top: 1px solid #edf0f6;
    background: var(--white);
    color: var(--navy);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
}

.ach-more:hover {
    background: var(--sky-soft);
}

@media (max-width: 680px) {
    .ach-block__head h3 {
        font-size: 18px;
    }
    .graduation__inner {
        padding: 26px 22px;
    }
    .lib-search {
        padding-left: 14px;
    }
    .lib-search .btn {
        padding: 10px 16px;
    }
    .lib-search input {
        font-size: 15px;
    }
}

.hl-card__result {
    font-family: var(--head);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--accent-dark);
}

.stars:not(.is-expanded) li:nth-child(n+17) {
    display: none;
}


/* ==========================================================================
   School on social media: Instagram posts, YouTube videos, follow buttons
   ========================================================================== */

.instas {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.insta {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line-cool);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    transition: translate .2s, box-shadow .2s;
}

.insta:hover {
    translate: 0 -3px;
    box-shadow: 0 14px 28px rgba(13, 22, 64, .1);
}

.insta__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--navy-ink);
}

.insta__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.insta__media::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 10px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%231b2a6b' stroke-width='3'%3E%3Crect x='7' y='7' width='26' height='26' rx='7'/%3E%3Ccircle cx='20' cy='20' r='6'/%3E%3Ccircle cx='28' cy='12' r='1.2'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.insta__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px 16px;
}

.insta__date {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent-dark);
}

.insta__title {
    font-family: var(--head);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
    color: var(--navy);
}

.insta__text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.follow {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.follow__btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px 12px 14px;
    border-radius: 14px;
    background: var(--white);
    border: 1px solid var(--line-cool);
    color: var(--ink);
    text-decoration: none;
    transition: border-color .2s;
}

.follow__btn:hover {
    border-color: var(--saffron);
}

.follow__btn svg {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    padding: 9px;
    border-radius: 11px;
    fill: none;
    stroke: var(--white);
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.follow__btn--insta svg {
    background: linear-gradient(45deg, #f5b301, #d9622b 50%, #a83291);
}

.follow__btn--yt svg {
    background: #d93025;
}

.follow__btn span {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    color: var(--muted);
}

.follow__btn strong {
    font-family: var(--head);
    font-size: 16px;
    color: var(--navy);
}

.videos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px 20px;
}

.video {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--ink);
    text-decoration: none;
}

.video__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: var(--navy-ink);
}

.video__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.video:hover .video__media img {
    transform: scale(1.04);
}

.video__play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 52px;
    height: 36px;
    margin: -18px 0 0 -26px;
    border-radius: 10px;
    background: rgba(13, 22, 64, .78);
    transition: background .2s;
}

.video__play::after {
    content: "";
    position: absolute;
    left: 21px;
    top: 10px;
    border-left: 14px solid var(--white);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.video:hover .video__play {
    background: #d93025;
}

.video__title {
    font-family: var(--head);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.35;
    color: var(--navy);
}

.video__meta {
    margin-top: -4px;
    font-size: 13px;
    color: var(--muted);
}

.exhibit__note {
    margin: 24px 0 0;
    font-size: 14px;
    color: #9fb1dc;
}


/* Journey: eight milestones in two rows of four */

.journey {
    grid-template-columns: repeat(4, 1fr);
    row-gap: 34px;
}

.journey::before {
    display: none;
}

.journey__step::before {
    content: "";
    position: absolute;
    left: 0;
    right: -18px;
    top: 56px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--saffron), var(--sky));
}

.journey__step:nth-child(4n)::before,
.journey__step:last-child::before {
    right: 0;
}

.journey__dot {
    position: relative;
    z-index: 1;
}

.journey__step:nth-child(7) .journey__dot {
    background: var(--saffron);
    border-color: var(--navy);
}

.journey__step:nth-child(8) .journey__dot {
    background: var(--white);
    border-color: var(--accent);
}

@media (max-width: 1080px) {
    .instas,
    .videos {
        grid-template-columns: repeat(3, 1fr);
    }
    .journey {
        grid-template-columns: repeat(2, 1fr);
    }
    .journey__step::before {
        display: none;
    }
}

@media (max-width: 900px) {
    .instas,
    .videos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .instas {
        gap: 12px;
    }
    .insta__body {
        padding: 10px 12px 12px;
    }
    .insta__title {
        font-size: 14px;
    }
    .insta__text {
        font-size: 13px;
        -webkit-line-clamp: 3;
    }
    .videos {
        gap: 18px 12px;
    }
    .video__title {
        font-size: 14px;
    }
    .follow__btn {
        width: 100%;
    }
    .journey {
        grid-template-columns: 1fr;
    }
}


/* Three names: two old plates stacked on the left */

.names__old {
    display: grid;
    gap: 16px;
}

.center-action--row {
    gap: 12px;
    flex-wrap: wrap;
}

.insta--x .insta__media::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%231b2a6b' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M10 10l20 20M30 10L10 30'/%3E%3C/svg%3E");
}

.follow__btn--x svg {
    background: #0f1419;
}


/* Facilities */

.facts-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.fact-tile {
    padding: 18px 16px;
    border-radius: 12px;
    background: var(--tint);
    border: 1px solid var(--line-cool);
}

.fact-tile__num {
    display: block;
    font-family: var(--display);
    font-size: 40px;
    line-height: 1;
    color: var(--navy);
}

.fact-tile__label {
    font-size: 14px;
    color: var(--muted);
}

@media (max-width: 1080px) {
    .facts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 680px) {
    .facts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ---------------------------------------------------------------- Added 17 Nov 2026: EUNOIA 2026-27 content */


/* Diary cards without a photo */

.tl-card--text {
    background: var(--white);
}

.tl-card__band {
    display: flex;
    align-items: flex-end;
    min-height: 74px;
    padding: 12px 18px;
    background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 70%, var(--sky) 100%);
    position: relative;
    overflow: hidden;
}

.tl-card__band::before {
    content: "";
    position: absolute;
    right: -30px;
    top: -40px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 16px solid rgba(255, 255, 255, .14);
}

.tl-card__band span {
    position: relative;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--saffron-pale);
}

.tl-card--text figcaption p+.link-arrow {
    display: inline-block;
    margin-top: 10px;
    font-size: 15px;
}


/* e-Magazine: the next edition */

.next-ed__grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 32px;
    align-items: start;
}

.next-ed__card {
    position: sticky;
    top: 110px;
    padding: 30px 28px 26px;
    border-radius: 18px;
    color: var(--white);
    background: linear-gradient(160deg, var(--navy-deep), var(--navy) 60%, var(--blue));
    box-shadow: 0 18px 40px rgba(13, 22, 64, .18);
    overflow: hidden;
}

.next-ed__stamp {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--saffron);
    color: var(--navy-ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.next-ed__title {
    font-family: var(--display);
    font-size: 34px;
    letter-spacing: .03em;
    line-height: 1.05;
    margin: 16px 0 14px;
    color: var(--white);
}

.next-ed__list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.next-ed__list li {
    position: relative;
    padding: 10px 0 10px 26px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    font-size: 15.5px;
    line-height: 1.4;
}

.next-ed__list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 17px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--saffron);
}

.next-ed__list a {
    color: var(--white);
    text-decoration: none;
}

.next-ed__list a:hover {
    color: var(--saffron-pale);
    text-decoration: underline;
}

.next-ed__list .next-ed__soon {
    color: rgba(255, 255, 255, .72);
    font-style: italic;
}

.next-ed__list .next-ed__soon::before {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .5);
}

.next-ed__team {
    margin: 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
}

.next-ed__team dt {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--saffron-pale);
}

.next-ed__team dd {
    margin: 4px 0 0;
    font-family: var(--head);
    font-weight: 600;
    font-size: 16px;
}

.story {
    position: relative;
    padding: 38px 42px 30px;
    border-radius: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(13, 22, 64, .07);
    overflow: hidden;
}

.story::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: #c8102e;
}

.story__kanji {
    position: absolute;
    right: 24px;
    top: 14px;
    font-size: 92px;
    line-height: 1;
    color: rgba(200, 16, 46, .08);
    font-family: "Yu Mincho", "MS Mincho", "Noto Serif JP", serif;
    pointer-events: none;
}

.story .eyebrow {
    color: #c8102e;
}

.story__title {
    position: relative;
    font-family: var(--head);
    font-weight: 700;
    font-size: 30px;
    line-height: 1.2;
    color: var(--navy-ink);
    margin: 6px 0 4px;
}

.story__by {
    color: var(--muted);
    font-style: italic;
    margin-bottom: 18px;
}

.story p {
    position: relative;
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
}

.story__lead {
    font-family: var(--head);
    font-size: 19px !important;
    color: var(--navy) !important;
}

.story__more summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 9px 18px;
    border-radius: 999px;
    cursor: pointer;
    background: var(--sky-soft);
    color: var(--navy);
    font-weight: 700;
    font-size: 15px;
    list-style: none;
}

.story__more summary::-webkit-details-marker {
    display: none;
}

.story__more summary:hover {
    background: var(--saffron-pale);
}

.story__more[open] summary {
    order: 2;
    margin-top: 10px;
}

.story__more .story__close,
.story__more[open] .story__open {
    display: none;
}

.story__more[open] .story__close {
    display: inline;
}

.story__more[open] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.story__more[open]>p:first-of-type {
    margin-top: 0;
}

@media (max-width: 960px) {
    .next-ed__grid {
        grid-template-columns: 1fr;
    }
    .next-ed__card {
        position: static;
    }
}

@media (max-width: 600px) {
    .story {
        padding: 28px 20px 22px;
    }
    .story__title {
        font-size: 25px;
    }
    .story__kanji {
        font-size: 64px;
        right: 12px;
    }
}

/* e-Magazine: every topic of EUNOIA 2026-27 (17 Nov 2026) */

.next-ed__team {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
}

.next-ed__team > div + div {
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.next-ed__team .next-ed__tbc {
    font-family: inherit;
    font-weight: 400;
    font-style: italic;
    font-size: 15px;
    color: rgba(255, 255, 255, .72);
}

ol.next-ed__list {
    counter-reset: ned;
    margin-bottom: 0;
}

ol.next-ed__list li {
    counter-increment: ned;
    padding-left: 36px;
}

ol.next-ed__list li::before {
    content: counter(ned);
    top: 10px;
    left: 0;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    font-size: 12.5px;
    font-weight: 700;
    font-style: normal;
    color: var(--navy-ink);
}

ol.next-ed__list .next-ed__soon::before {
    color: rgba(255, 255, 255, .8);
}

.next-ed__soon span {
    font-size: 13.5px;
    opacity: .8;
}

.next-ed__stories {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
}

.story--seva::before {
    background: var(--saffron);
}

.story--seva .eyebrow {
    color: #a26f00;
}

.story--principal::before {
    background: var(--navy);
}

.story--principal .eyebrow {
    color: var(--navy);
}

.story--principal .link-arrow {
    position: relative;
    font-weight: 700;
}

.story__medals {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 18px;
    padding: 0;
}

.story__medals li {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--saffron-pale);
    color: var(--navy-ink);
    font-weight: 600;
    font-size: 15px;
}

.story__medals strong {
    font-family: var(--display);
    font-size: 22px;
    letter-spacing: .02em;
}

.story__medals li + li {
    background: var(--sky-soft);
}

/* The contents card is tall: only keep it sticky on tall screens */
@media (max-height: 940px) {
    .next-ed__card {
        position: static;
    }
}

/* Photos: show the whole photo (no cutting), with a soft blurred copy behind it. 25 Nov 2026 */
.tl-card__btn,
.hl-card__media,
.ev-tile {
    position: relative;
    isolation: isolate;
}

.photo-bg {
    position: absolute;
    inset: -30px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(22px) brightness(.7) saturate(1.1);
}

.tl-card__btn img,
.hl-card__media img,
.ev-tile img {
    position: relative;
    object-fit: contain;
}

.family__btn img {
    object-fit: contain;
}

/* Justified body text on every page (even right edge), like the Rashtraneeti text. 25 Nov 2026 */
.lead,
.page-banner__intro,
.section-head__note,
.about-intro__text p,
.welcome__text p,
.eunoia__text p,
.hero__caption p,
.visit-band__text p,
.graduation__inner > p,
.principal-mini__quote,
.letter__body p,
.story p,
.story__more p,
.team-photo figcaption,
.va-card p,
.init p,
.pathway__stage p,
.journey__step p,
.glance dd,
.plate__facts li,
.names__note,
.visit__note,
.skillset__note,
.notice__list li,
.hl-card__text,
.clip__text,
.tl-card p,
.bookrev__body p,
.shelf-wrap__head p,
.process p,
.rule li {
    text-align: justify;
    text-justify: inter-word;
}

/* Narrow cards: allow soft word breaks so justified lines have no big gaps */
.hl-card__text,
.clip__text,
.journey__step p,
.init p,
.pathway__stage p,
.glance dd {
    hyphens: auto;
    -webkit-hyphens: auto;
}

@media (max-width: 600px) {
    .lead,
    .page-banner__intro,
    .section-head__note,
    .about-intro__text p,
    .welcome__text p,
    .eunoia__text p,
    .hero__caption p,
    .visit-band__text p,
    .graduation__inner > p,
    .principal-mini__quote,
    .letter__body p,
    .story p,
    .story__more p,
    .team-photo figcaption,
    .va-card p,
    .plate__facts li,
    .names__note,
    .visit__note,
    .skillset__note,
    .notice__list li,
    .tl-card p,
    .bookrev__body p,
    .shelf-wrap__head p,
    .process p,
    .rule li {
        hyphens: auto;
        -webkit-hyphens: auto;
    }
}


/* EUNOIA 2026-27 look, taken from the magazine's own design on Canva (December 2026):
   deep navy pages, a confetti border, cream paper, lime-green labels, amber and blue accents. */

.next-ed--mag {
    --mag-navy: #0e1476;
    --mag-navy-deep: #060c5b;
    --mag-cream: #f6f4e3;
    --mag-lime: #8cde30;
    --mag-amber: #feb900;
    --mag-blue: #3486f2;
    --mag-green: #34901d;
    --mag-orange: #e8542c;
    --mag-confetti: repeating-linear-gradient(90deg, var(--mag-lime) 0 22px, var(--mag-amber) 22px 34px, var(--mag-blue) 34px 58px, var(--mag-orange) 58px 70px, #ffffff 70px 78px, var(--mag-green) 78px 96px);
    position: relative;
    background: var(--mag-navy-deep);
    color: #ffffff;
}

.next-ed--mag::before,
.next-ed--mag::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 10px;
    background: var(--mag-confetti);
}

.next-ed--mag::before { top: 0; }
.next-ed--mag::after { bottom: 0; }

.next-ed--mag .section-title,
.next-ed--mag .section-head__note { color: #ffffff; }
.next-ed--mag .eyebrow { color: var(--mag-lime); }
.next-ed--mag .section-num { color: var(--mag-amber); }

.next-ed--mag .next-ed__card {
    background: var(--mag-navy);
    border: 2px solid rgba(255, 255, 255, .16);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}

.next-ed--mag .next-ed__stamp {
    background: var(--mag-lime);
    color: var(--mag-navy-deep);
}

.next-ed--mag .next-ed__team dt,
.next-ed--mag .next-ed__list strong { color: var(--mag-lime); }
.next-ed--mag .next-ed__list a { color: var(--mag-amber); }

.next-ed--mag .story {
    background: var(--mag-cream);
    color: #1d1f3a;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .3);
}

.next-ed--mag .story .eyebrow { color: var(--mag-blue); }
.next-ed--mag .story__title { color: var(--mag-navy); }
.next-ed--mag .story--seva .eyebrow { color: #a87700; }
.next-ed--mag .story--principal .eyebrow { color: var(--mag-green); }
.next-ed--mag .story--board::before { background: var(--mag-orange); }
.next-ed--mag .story--board .eyebrow { color: var(--mag-orange); }
.next-ed--mag .story__medals li { background: var(--mag-lime); color: var(--mag-navy-deep); }

/* EUNOIA 2026-27 entries and written reviews */
.mag-entries__group {
    font-family: var(--display);
    font-size: 30px;
    letter-spacing: .04em;
    color: var(--mag-lime);
    margin: 40px 0 18px;
}
.mag-entries__grid,
.mag-art {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: start;
}
.mag-art { grid-template-columns: repeat(3, 1fr); }
.mag-entry--poem p { text-align: left; }
.mag-entry[lang="hi"] p { text-align: left; font-family: "Nirmala UI", "Mangal", sans-serif; }
.mag-art__soon { font-size: 13px; font-weight: 700; color: var(--mag-green); }
@media (max-width: 860px) {
    .mag-entries__grid, .mag-art { grid-template-columns: 1fr; }
}
@media (min-width: 1000px) {
    .bookrev--text { grid-template-columns: 210px 1fr; }
}

/* EUNOIA 2026-27 team photos */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.team-grid .team-photo { margin: 0; }
.team-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.team-grid__note { margin-top: 16px; }
@media (max-width: 760px) { .team-grid { grid-template-columns: 1fr; } }
