/* The college websites. Colours come from Look & Layout (lookCss() prints --primary, --accent and
   their tints in the page head); the body classes headings-*, header-* and corners-* switch the other
   Look & Layout choices. Light theme: colour is used on buttons, headings and small marks only. */
:root {
    --primary: #7b1e2b;
    --primary-dark: #5c1620;
    --primary-tint: #f8f0f1;
    --primary-soft: #f0dfe1;
    --accent: #d9a441;
    --accent-tint: #f8edd9;
    --on-accent: #14171f;
    --ink: #1f1f24;
    --muted: #565a63;
    --line: #e4e1dc;
    --field-line: #8c8f96;
    --whatsapp: #1a7f45;
    --error: #b42318;
    --serif: 'Source Serif 4', Georgia, serif;
    --sans: Inter, system-ui, sans-serif;
    --heading: var(--serif);
    --heading-weight: 600;
    --radius: 10px;
    --btn-radius: 6px;
}
.headings-sans { --heading: var(--sans); --heading-weight: 700; }
.corners-rounded { --radius: 18px; --btn-radius: 999px; }

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

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 110px; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
}

img { max-width: 100%; height: auto; }

a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
/* Standalone links underline on hover; links inside a sentence stay underlined */
:where(a) { text-decoration: none; }
:where(a:hover) { text-decoration: underline; }
p a:not(.btn),
.form-message a { text-decoration: underline; }

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

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

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

.icon-sprite { display: none; }
.icon {
    flex: none;
    width: 18px;
    height: 18px;
}

.wrap {
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 40px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 24px;
    border: 2px solid transparent;
    border-radius: var(--btn-radius);
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { border-color: var(--primary); color: var(--primary); background: #fff; }
.btn-outline:hover { background: var(--primary-tint); color: var(--primary-dark); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #136536; color: #fff; }
.btn-row {
    margin: 24px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Strip above the header */
.top-strip {
    background: var(--primary-tint);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}
.top-strip-bar { padding-block: 7px; }
.top-strip-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
}
.top-strip-list li { display: inline-flex; align-items: center; gap: 6px; }
.top-strip-list .icon { width: 14px; height: 14px; color: var(--primary); }
.top-strip a { color: var(--ink); }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.header-tint .site-header { background: var(--primary-tint); }
.header-bar {
    min-height: 76px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0 24px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-block: 10px;
    color: var(--ink);
}
.brand:hover { text-decoration: none; }
.logo { display: block; height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; }
.brand-name {
    font-family: var(--heading);
    font-weight: 700;
    font-size: 22px;
    line-height: 1.1;
    color: var(--primary);
}
.brand-line {
    margin-top: 2px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--btn-radius);
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.site-nav {
    display: none;
    flex-basis: 100%;
    padding-bottom: 20px;
}
.site-nav.is-open { display: block; }
.nav-list,
.sub-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav-list > li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-top: 1px solid var(--line);
}
.nav-list > li > a {
    flex: 1;
    padding-block: 12px;
    color: var(--ink);
    font-weight: 500;
    text-decoration: none;
}
.nav-list a[aria-current="page"] { color: var(--primary); font-weight: 600; }
.sub-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    background: none;
    color: var(--ink);
    cursor: pointer;
}
.sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.sub-menu {
    display: none;
    flex-basis: 100%;
    padding: 0 0 10px 16px;
}
.has-sub.is-open .sub-menu { display: block; }
.sub-menu a {
    display: block;
    padding-block: 8px;
    color: var(--ink);
    text-decoration: none;
}
.sub-menu a:hover { color: var(--primary); }
.header-cta { margin-top: 12px; width: 100%; }

@media (min-width: 1080px) {
    .menu-toggle { display: none; }
    .site-nav,
    .site-nav.is-open {
        display: flex;
        align-items: center;
        gap: 28px;
        flex-basis: auto;
        padding-bottom: 0;
    }
    .nav-list { display: flex; gap: 26px; }
    .nav-list > li {
        position: relative;
        border-top: 0;
        flex-wrap: nowrap;
    }
    .nav-list > li > a {
        position: relative;
        padding-block: 26px;
        font-size: 15px;
    }
    .nav-list > li > a::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 18px;
        height: 2px;
        background: var(--accent);
        transform: scaleX(0);
        transition: transform 0.2s ease;
    }
    .nav-list > li > a:hover { color: var(--primary); }
    .nav-list > li > a:hover::after,
    .nav-list > li > a:focus-visible::after,
    .nav-list > li > a[aria-current="page"]::after { transform: scaleX(1); }
    .sub-toggle { width: 26px; height: 26px; }
    .sub-menu {
        position: absolute;
        top: 100%;
        left: -20px;
        min-width: 240px;
        padding: 10px 0;
        background: #fff;
        border: 1px solid var(--line);
        border-top: 3px solid var(--primary);
        border-radius: 0 0 var(--radius) var(--radius);
        box-shadow: 0 12px 28px rgba(20, 20, 30, 0.10);
    }
    .has-sub:hover .sub-menu,
    .has-sub:focus-within .sub-menu,
    .has-sub.is-open .sub-menu { display: block; }
    .sub-menu a { padding: 8px 20px; font-size: 15px; }
    .header-cta { margin-top: 0; width: auto; min-height: 44px; }
}

/* Breadcrumbs */
.breadcrumbs ol {
    margin: 0;
    padding: 16px 0 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    font-size: 14px;
    color: var(--muted);
}
.breadcrumbs li + li::before {
    content: "/";
    margin-inline: 8px;
    color: var(--field-line);
}

/* Headings */
.eyebrow {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
}
h1,
.banner-title,
.section-title,
.form-title,
.card h3,
.option h3,
.highlight strong,
.fact-value,
.footer-name {
    font-family: var(--heading);
    font-weight: var(--heading-weight);
    color: var(--ink);
}
h1 {
    margin: 0;
    font-size: clamp(34px, 4.6vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.01em;
}
.hero-sub {
    margin: 16px 0 0;
    max-width: 640px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--muted);
}
.page-head { padding-block: clamp(24px, 3.5vw, 44px) 0; }

/* Banner: full-width pictures with a text card over them */
.banner {
    position: relative;
    background: var(--primary-tint);
}
.banner-slide { position: relative; }
.banner-slide[hidden] { display: none; }
.banner-link { display: block; }
.banner-img {
    display: block;
    width: 100%;
    height: clamp(300px, 46vw, 640px);
    object-fit: cover;
    object-position: center;
}
.banner-over {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    pointer-events: none;
}
.banner-row { width: 100%; display: flex; }
.banner-right .banner-row { justify-content: flex-end; }
.banner-center .banner-row { justify-content: center; text-align: center; }
.banner-center .btn-row { justify-content: center; }
.banner-card {
    pointer-events: auto;
    max-width: 560px;
    padding: clamp(24px, 3vw, 36px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 16px 40px rgba(20, 20, 30, 0.14);
}
.banner-title {
    margin: 0;
    font-size: clamp(28px, 3.4vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.01em;
}
.banner-text {
    margin: 14px 0 0;
    font-size: 17px;
    color: var(--muted);
}
.banner-card .btn-row { margin-top: 20px; }
.banner-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    pointer-events: none;
}
.banner-controls > * { pointer-events: auto; }
.banner-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
}
.banner-arrow:hover { color: var(--primary); }
.banner-dots {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
}
.banner-dot {
    width: 28px;
    height: 32px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
.banner-dot::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    margin: auto;
    border-radius: 4px;
    background: rgba(20, 20, 30, 0.35);
    transition: width 0.2s ease;
}
.banner-dot[aria-current="true"]::before { width: 22px; background: var(--primary); }
@media (max-width: 899px) {
    .banner { background: #fff; }
    .banner-img { height: 260px; }
    .banner-over { position: static; display: block; }
    .banner-row { display: block; text-align: left; }
    .banner-center .btn-row { justify-content: flex-start; }
    .banner-card {
        max-width: none;
        padding: 24px 0 8px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .banner-controls { position: static; padding: 8px 0 4px; }
    .banner-dots { background: none; }
}

/* Key facts strip */
.facts-strip { border-bottom: 1px solid var(--line); }
.facts-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}
.facts-list li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 24px 20px;
    border-left: 1px solid var(--line);
}
.facts-list li:first-child { border-left: 0; padding-left: 0; }
.fact-value {
    font-size: 30px;
    line-height: 1.15;
    color: var(--primary);
}
.fact-label { font-size: 14px; color: var(--muted); }
@media (max-width: 599px) {
    .facts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .facts-list li { padding: 16px 12px 16px 0; border-left: 0; border-top: 1px solid var(--line); }
    .facts-list li:nth-child(-n+2) { border-top: 0; }
    .fact-value { font-size: 24px; }
}

/* Sections */
.section { padding-top: clamp(48px, 6vw, 80px); }
.section-tight { padding-top: clamp(24px, 3vw, 36px); }
.section-end { padding-top: clamp(48px, 6vw, 80px); }
.band {
    margin-top: clamp(48px, 6vw, 80px);
    padding-bottom: clamp(48px, 6vw, 80px);
    background: var(--primary-tint);
}
.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: 28px;
}
.section-head .section-title { margin-bottom: 0; }
.section-head .section-intro { margin: 12px 0 0; }
.section-title {
    margin: 0 0 18px;
    font-size: clamp(30px, 3.6vw, 42px);
    line-height: 1.12;
}
.section-title.small { font-size: clamp(26px, 3vw, 34px); }
.section-intro {
    max-width: 720px;
    margin: -6px 0 24px;
    font-size: 18px;
    color: var(--muted);
}
.muted { color: var(--muted); font-size: 15px; }
.strong-link { font-weight: 600; }
.arrow-link::after { content: " \2192"; }

.two-col {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 56px;
}
.two-col > div { flex: 1 1 380px; min-width: 0; }
.two-col p { margin: 0 0 18px; }
.two-col .section-title { margin-bottom: 14px; }
.about-band { align-items: flex-start; }
.pull-quote {
    margin: 8px 0 22px;
    padding-left: 18px;
    border-left: 3px solid var(--accent);
    font-family: var(--serif);
    font-size: 21px;
    font-style: italic;
    line-height: 1.45;
}

/* Course cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
    gap: 24px;
}
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.card-media {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--primary-tint);
}
.card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.card:hover .card-media img { transform: scale(1.03); }
.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 24px 24px 0;
    border-radius: min(var(--radius), 14px);
    background: var(--primary-tint);
    color: var(--primary);
}
.card-icon svg { width: 28px; height: 28px; }
.card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
    padding: 20px 24px 24px;
}
.card h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.25;
}
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--primary); }
.card p { margin: 0; flex: 1; color: var(--muted); font-size: 16px; }
.chip-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.chip-list li {
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--primary-tint);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
}
.card-link { font-weight: 600; color: var(--primary); }
.card-link::after { content: " \2192"; }

/* Highlights (vision, mission, success keys) */
.highlight-grid {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: 16px;
}
.highlight {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.highlight strong { font-size: 19px; color: var(--primary); }
.highlight span { color: var(--muted); font-size: 15px; }

/* Lists */
.benefit-list,
.contact-list,
.footer-contact {
    margin: 0;
    padding: 0;
    list-style: none;
}
.benefit-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
    gap: 0 40px;
}
.benefit-list li {
    display: flex;
    gap: 14px;
    padding-block: 14px;
    border-top: 1px solid var(--line);
}
.tick { margin-top: 4px; color: var(--primary); }

.tag-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tag-list li {
    padding: 8px 16px;
    border: 1px solid var(--primary-soft);
    border-radius: var(--btn-radius);
    background: var(--primary-tint);
    font-weight: 500;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: 20px;
}
.option {
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--primary);
    border-radius: var(--radius);
}
.option h3 {
    margin: 0 0 6px;
    font-size: 22px;
}
.option p { margin: 0 0 10px; color: var(--muted); }

.detail-grid {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 16px;
}
.detail-grid > div {
    padding: 16px 18px;
    border-radius: var(--radius);
    background: var(--primary-tint);
}
.detail-grid dt { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.detail-grid dd { margin: 4px 0 0; font-size: 18px; font-weight: 600; }

.steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 20px 32px;
}
.steps li { counter-increment: step; }
.steps li::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    border-radius: 50%;
    background: var(--accent-tint);
    color: var(--ink);
    font-weight: 700;
}
.steps strong { display: block; font-size: 18px; }
.steps span { display: block; color: var(--muted); }

.faq-list details {
    border-top: 1px solid var(--line);
    padding-block: 16px;
}
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font-weight: 600; }
.faq-list p { margin: 10px 0 0; }

.facts {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
}
.facts dt,
.facts dd {
    margin: 0;
    padding-block: 12px;
    border-top: 1px solid var(--line);
}
.facts dt { font-weight: 600; }

.notice {
    margin: 0 0 24px;
    padding: 16px 18px;
    border-left: 4px solid var(--accent);
    background: #fff;
    font-size: 16px;
}

/* Course page top */
.service-hero {
    padding-block: clamp(24px, 3vw, 40px) 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 32px 48px;
}
.service-hero-text { flex: 1 1 460px; min-width: 0; }
.service-hero-media { flex: 1 1 380px; min-width: 0; }
.service-hero-media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
}
.service-hero-media .media-icon { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.media-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--primary-tint);
    color: var(--primary);
}
.media-icon svg { width: 32%; height: 32%; max-width: 120px; max-height: 120px; }

/* Enquiry forms */
.form-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 32px 56px;
}
.form-aside { flex: 1 1 300px; min-width: 0; }
.form-aside p { margin: 0 0 16px; }
.form-aside .aside-intro { margin-bottom: 20px; font-size: 18px; color: var(--muted); }
.enquiry-form,
.form-thanks { flex: 999 1 520px; min-width: 0; }

.enquiry-form {
    padding: clamp(18px, 2.4vw, 30px);
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--primary);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(20, 20, 30, 0.05);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}
@media (max-width: 560px) {
    .enquiry-form { grid-template-columns: minmax(0, 1fr); }
}
.form-title {
    margin: 0;
    font-size: clamp(24px, 2.4vw, 28px);
    line-height: 1.15;
}
.enquiry-form > .form-title,
.enquiry-form > .form-intro,
.enquiry-form > .form-required-note,
.enquiry-form > .full { grid-column: 1 / -1; }
.form-intro,
.form-required-note { margin: -6px 0 0; }
.form-required-note { font-size: 14px; color: var(--muted); }
.req { color: var(--error); }

.field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.field > label,
.check-group > legend {
    font-size: 13px;
    font-weight: 600;
}
.field > input,
.field > select,
.field > textarea {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--field-line);
    border-radius: min(var(--btn-radius), 10px);
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
}
.field > textarea { resize: vertical; }
.field > input:focus,
.field > select:focus,
.field > textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 0;
    border-color: var(--primary);
}
.field > [aria-invalid="true"] { border: 2px solid var(--error); }

.check-group {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}
.check-group > legend { padding: 0; margin-bottom: 4px; }
.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 4px 18px;
}
.check {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 32px;
    cursor: pointer;
}
.check input { width: 20px; height: 20px; accent-color: var(--primary); flex: none; }
.check-group[aria-invalid="true"] .check-grid { outline: 2px solid var(--error); outline-offset: 6px; }

.enquiry-form .trap-field {
    position: absolute;
    left: -9999px;
}
.field-error {
    color: var(--error);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
}
.check-group .field-error { display: block; margin-top: 10px; }
.form-message {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--error);
    font-size: 15px;
    line-height: 1.45;
}
.form-message a { color: inherit; font-weight: 600; }

.enquiry-form button { min-height: 48px; margin-top: 4px; }
.enquiry-form button:disabled { cursor: default; opacity: 0.85; }
.enquiry-form button.is-submitting::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: form-spin 0.8s linear infinite;
}
@keyframes form-spin { to { transform: rotate(360deg); } }

.form-thanks {
    padding: clamp(20px, 3vw, 36px);
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--primary);
    border-radius: var(--radius);
    outline: none;
}
.form-thanks .form-title { margin-bottom: 10px; }
.form-thanks p { margin: 0 0 8px; }
.form-reference { font-weight: 600; color: var(--primary); }

/* Contact details beside a form */
.contact-list li {
    padding-block: 12px;
    border-top: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.contact-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}
.contact-label .icon { width: 15px; height: 15px; color: var(--primary); }
.contact-list a { font-weight: 600; overflow-wrap: anywhere; }
.contact-map {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--primary-tint);
}

/* Closing call to action: a white card with a soft shadow, clear of the footer */
.closing-cta { padding-block: clamp(48px, 6vw, 80px); }
.closing-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 28px;
    padding: clamp(24px, 3.5vw, 40px);
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--primary);
    border-radius: var(--radius);
    box-shadow: 0 18px 44px rgba(20, 20, 30, 0.08);
}
/* A soft circle of the highlight colour in the corner, behind the buttons */
.closing-card::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -120px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--accent-tint);
    pointer-events: none;
}
.closing-card > * { position: relative; z-index: 1; }
.closing-icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-tint);
    color: var(--primary);
}
.closing-icon svg { width: 32px; height: 32px; }
.closing-text { flex: 1 1 380px; min-width: 0; }
.closing-cta .section-title { margin-bottom: 6px; }
.closing-text p { margin: 0; color: var(--muted); }
.closing-cta .btn-row { margin-top: 0; }
@media (max-width: 599px) {
    .closing-card { flex-direction: column; align-items: flex-start; }
    .closing-text { flex: none; }
    .closing-cta .btn-row, .closing-cta .btn-row .btn { width: 100%; }
}

/* Footer */
.site-footer {
    padding-block: clamp(36px, 4vw, 52px) 24px;
    background: var(--primary-tint);
    border-top: 3px solid var(--primary);
    color: var(--ink);
    font-size: 15px;
}
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--primary); }
.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 32px 48px;
}
.footer-cols ul { margin: 0 0 24px; padding: 0; list-style: none; }
.footer-cols li { padding-block: 4px; }
.footer-name {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    color: var(--primary);
}
.footer-tagline {
    margin: 6px 0 16px;
    font-size: 13px;
    color: var(--muted);
}
.footer-contact li {
    display: flex;
    gap: 10px;
    padding-block: 5px;
    overflow-wrap: anywhere;
}
.footer-contact .icon { margin-top: 4px; color: var(--primary); }
.footer-heading {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}
.footer-bottom {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--primary-soft);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 32px;
    font-size: 13px;
    color: var(--muted);
}
.footer-hours { margin: 16px 0 0; }
.footer-hours strong, .footer-hours span { display: block; }
.footer-hours strong { margin-bottom: 4px; }
.footer-cols .footer-social { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 16px 0 0; }
.footer-social li { padding-block: 0; }

/* Floating WhatsApp button (only when a WhatsApp number is set) */
.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}
.whatsapp-float:hover { color: #fff; background: #136536; }
.whatsapp-float svg { width: 28px; height: 28px; }

/* Floating call button, phones only (only when a phone number is set); above WhatsApp when both show */
.call-float { display: none; }
@media (max-width: 599px) {
    .call-float {
        position: fixed;
        right: 18px;
        bottom: 18px;
        z-index: 40;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: var(--primary);
        color: #fff;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    }
    .whatsapp-float + .call-float { bottom: 86px; }
    .call-float:hover { color: #fff; background: var(--primary-dark); }
    .call-float svg { width: 26px; height: 26px; }
}

/* Text Page: text written in the admin's rich text editor */
.prose { max-width: 760px; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 40px 0 12px; font-family: var(--heading); font-size: 28px; font-weight: var(--heading-weight); line-height: 1.2; }
.prose h3 { margin: 28px 0 8px; font-size: 20px; line-height: 1.3; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { padding-block: 2px; }
.prose img { display: block; max-width: 100%; height: auto; margin: 8px 0; border-radius: min(var(--radius), 12px); }
/* Sizes picked in the editor (none = full width); phones show every picture full width */
.prose img[data-size="medium"] { width: 50%; }
.prose img[data-size="small"] { width: 30%; }
@media (max-width: 599px) {
    .prose img[data-size] { width: 100%; }
}

/* A Text Page's featured picture, wide under the headline */
.page-feature {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    margin-top: 8px;
    border-radius: min(var(--radius), 12px);
    background: var(--primary-tint);
}
.prose blockquote { margin: 20px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--line); color: var(--muted); }
.prose a { text-decoration: underline; }

/* Faculty & Management: a photo (or initials) over the name, what they teach and their qualification */
.people-grid {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 28px 24px;
}
.people-grid.compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 24px 20px; }
.person { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.person-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--primary-tint);
}
.person-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.person-initials {
    font-family: var(--heading);
    font-weight: var(--heading-weight);
    font-size: clamp(36px, 5vw, 52px);
    color: var(--primary);
    letter-spacing: 0.02em;
}
.compact .person-initials { font-size: clamp(30px, 4vw, 40px); }
.person-text { display: flex; flex-direction: column; gap: 2px; }
.person-name { font-family: var(--heading); font-weight: var(--heading-weight); font-size: 19px; line-height: 1.25; }
.compact .person-name { font-size: 17px; }
.person-role { color: var(--primary); font-weight: 600; font-size: 14px; }
.person-meta { color: var(--muted); font-size: 14px; }
.count-note {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--primary-tint);
    color: var(--primary);
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    vertical-align: middle;
}
@media (max-width: 599px) {
    .people-grid, .people-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
}

/* Gallery: album cards and an album's photos */
.album-grid {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 24px;
}
.album-card a { display: flex; flex-direction: column; gap: 4px; color: var(--ink); text-decoration: none; }
.album-cover {
    display: block;
    aspect-ratio: 3 / 2;
    margin-bottom: 8px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--primary-tint);
}
.album-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.album-card a:hover .album-cover img { transform: scale(1.03); }
.album-title { font-family: var(--heading); font-weight: var(--heading-weight); font-size: 19px; line-height: 1.25; }
.album-card a:hover .album-title { color: var(--primary); }
.album-meta, .album-page-meta { color: var(--muted); font-size: 14px; }
.album-page-meta { margin: 10px 0 0; }
/* An album's YouTube videos, above its photos */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
    gap: 16px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}
.video-grid iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: min(var(--radius), 12px);
    background: #000;
}
.photo-grid {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 12px;
}
.photo-grid a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: min(var(--radius), 12px); background: var(--primary-tint); }
.photo-grid img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.photo-grid a:hover img { transform: scale(1.04); }
@media (max-width: 599px) {
    .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
.back-link { margin: 28px 0 0; }

/* Photo viewer: one photo large, with arrows, a caption and a close button */
.lightbox {
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    margin: 0;
    padding: 56px 64px 72px;
    border: 0;
    background: rgba(15, 15, 20, 0.94);
    color: #fff;
}
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(15, 15, 20, 0.6); }
.lightbox-img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 6px; }
.lightbox-caption { margin: 14px 0 0; text-align: center; }
.lightbox-caption:empty { display: none; }
.lightbox-count { position: absolute; left: 0; right: 0; bottom: 20px; margin: 0; text-align: center; font-size: 14px; color: #d4d4da; }
.lightbox-close, .lightbox-arrow {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font: inherit;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}
.lightbox-close:hover, .lightbox-arrow:hover { background: rgba(255, 255, 255, 0.26); }
.lightbox-close { top: 14px; right: 14px; }
.lightbox-arrow { top: 50%; transform: translateY(-50%); }
.lightbox-arrow .icon { width: 24px; height: 24px; }
.lightbox-arrow.prev { left: 10px; }
.lightbox-arrow.next { right: 10px; }
@media (max-width: 599px) {
    .lightbox { padding: 56px 8px 88px; }
    .lightbox-arrow { top: auto; bottom: 14px; transform: none; }
    .lightbox-arrow.prev { left: calc(50% - 110px); }
    .lightbox-arrow.next { right: calc(50% - 110px); }
    .lightbox-count { bottom: 28px; }
}
/* A group with no photos at all: small initials badges beside the names */
.people-grid.no-photos { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px 24px; }
.no-photos .person {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.no-photos .person-photo { flex: none; width: 56px; height: 56px; border-radius: 50%; }
.no-photos .person-initials, .no-photos.compact .person-initials { font-size: 19px; }
.no-photos .person-name { font-size: 17px; }
@media (max-width: 599px) {
    .people-grid.no-photos { grid-template-columns: minmax(0, 1fr); }
}

/* Notice Board link at the end of the strip above the header */
.top-strip-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; }
.top-strip-link { font-weight: 600; color: var(--primary) !important; }
.top-strip-count {
    display: inline-block;
    min-width: 20px;
    margin-left: 4px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
}

/* Notices: a date badge beside the title, category, text and attachment */
.notice-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.notice-item {
    display: flex;
    gap: 16px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.notice-item.is-pinned { border-color: var(--accent); background: var(--accent-tint); }
.notice-badge {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 68px;
    min-height: 64px;
    padding: 6px 4px;
    border-radius: min(var(--radius), 12px);
    background: var(--primary-tint);
    color: var(--primary);
    text-align: center;
}
.is-pinned .notice-badge { background: #fff; }
.notice-day { font-family: var(--heading); font-weight: var(--heading-weight); font-size: 26px; line-height: 1; }
.notice-mon { margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.2; }
.notice-main { min-width: 0; }
.notice-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 4px; }
.notice-tag, .notice-pin {
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.notice-tag { background: var(--primary-tint); color: var(--primary); }
.is-pinned .notice-tag { background: #fff; }
.notice-pin { background: var(--primary); color: #fff; }
.notice-title { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.35; }
.notice-title a { color: var(--ink); }
.notice-title a:hover { color: var(--primary); }
.notice-text { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.notice-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 8px 0 0; }
p.notice-links a.notice-link { text-decoration: none; }
p.notice-links a.notice-link:hover { text-decoration: underline; }
.notice-badge .icon { width: 26px; height: 26px; }
.notice-link { font-weight: 600; font-size: 15px; }
.notice-link span { font-weight: 400; color: var(--muted); }
.notice-list.full .notice-title { font-size: 19px; }

/* Filter buttons (Notice Board categories, Results years) */
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.page-head .filter-chips { margin: 20px 0 0; }
.filter-chips a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
}
.filter-chips a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.filter-chips a[aria-current] { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Toppers: the score is the headline, the photo is small (they often come from posters) */
.topper-grid {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
    gap: 20px;
}
.topper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 40px 16px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-align: center;
}
.topper-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    margin-bottom: 8px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--primary-tint);
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--accent);
}
.topper-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.topper-photo .person-initials { font-size: 28px; }
.topper-score {
    font-family: var(--heading);
    font-weight: 700;
    font-size: 38px;
    line-height: 1;
    color: var(--primary);
}
.topper-score small { margin-left: 4px; font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--muted); }
.topper-name { margin-top: 6px; font-size: 16px; line-height: 1.3; }
.topper-exam { color: var(--muted); font-size: 13px; }
.topper-badge {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1px 10px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--on-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}
@media (max-width: 599px) {
    .topper-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .topper { padding-inline: 10px; }
    .topper-score { font-size: 30px; }
    .topper-badge { font-size: 10px; }
}

/* A poster slide (Banners > Picture type: Poster): the whole picture, centred, nothing cut off */
.banner-img.is-poster { object-fit: contain; background: var(--primary-tint); }

/* Text box "Under the picture": a tinted band below the picture, text on the left and the button on the
   right, so nothing covers the picture; the slide controls stay over the bottom of the picture as on the
   other slides. Phones keep their own stacked layout (above). */
@media (min-width: 900px) {
    .banner-below .banner-over { position: static; display: block; background: var(--primary-tint); border-bottom: 1px solid var(--line); }
    .banner-below .banner-row { display: block; text-align: left; }
    .banner-below .banner-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 40px;
        align-items: center;
        max-width: none;
        padding: 24px 0;
        border: 0;
        border-radius: 0;
        background: none;
        box-shadow: none;
    }
    .banner-below .banner-card > :not(.btn-row) { grid-column: 1; }
    .banner-below .banner-card .eyebrow { margin-bottom: 6px; }
    .banner-below .banner-title { font-size: clamp(24px, 2.4vw, 32px); }
    .banner-below .banner-text { margin-top: 6px; font-size: 16px; }
    .banner-below .banner-card .btn-row { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
    .banner:has(.banner-below.is-active) .banner-controls { top: calc(clamp(300px, 46vw, 640px) - 60px); bottom: auto; }
}

/* Narrow phones: a smaller logo and name, and the Menu button as just its icon, so they share one row */
@media (max-width: 479px) {
    .brand { gap: 8px; }
    .logo { height: 40px; }
    .brand-name { font-size: 18px; }
    .brand-line { font-size: 10px; letter-spacing: 0.05em; }
    .menu-toggle { width: 44px; padding: 0; justify-content: center; }
    .menu-toggle span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}
@media (max-width: 479px) {
    /* Up to 12 slide dots must fit beside the arrows on a small phone */
    .banner-controls { gap: 4px; }
    .banner-dot { width: 18px; }
    .banner-dot[aria-current="true"]::before { width: 16px; }
}
@media (max-width: 359px) {
    .brand-line { display: none; }
}

/* Look & Layout > Logo size (Medium is the size above) */
.logo-small .logo { height: 42px; }
.logo-large .logo { height: 68px; }
.logo-xlarge .logo { height: 84px; }
@media (max-width: 479px) {
    .logo-small .logo { height: 34px; }
    .logo-large .logo { height: 48px; }
    .logo-xlarge .logo { height: 56px; }
}

/* About page: the management, each with their photo and a few lines about them */
.leader-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 20px; }
.leader {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.leader-photo {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--primary-tint);
}
.leader-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.leader-photo .person-initials { font-size: 34px; }
.leader-role { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); }
.leader-name { margin: 2px 0 0; font-family: var(--heading); font-weight: var(--heading-weight); font-size: 22px; line-height: 1.25; }
.leader-meta { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.leader-bio { margin: 10px 0 0; font-size: 16px; }
@media (max-width: 479px) {
    .leader { flex-direction: column; align-items: center; text-align: center; }
    .leader-photo { width: 96px; height: 96px; }
}

/* Top ticker: the titles of the notices marked "Top ticker", moving right to left above the header */
.ticker {
    background: var(--primary);
    color: #fff;
    font-size: 14px;
}
.ticker-bar { display: flex; align-items: stretch; gap: 14px; }
.ticker-label {
    flex: none;
    display: inline-flex;
    align-items: center;
    margin-block: 6px;
    padding: 0 10px;
    border-radius: var(--btn-radius);
    background: var(--accent);
    color: var(--on-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
}
.ticker-window {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.ticker-window::-webkit-scrollbar { display: none; }
.ticker-move { display: flex; width: max-content; }
.ticker-track {
    flex: none;
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap;
}
.ticker-track li { display: inline-flex; align-items: center; padding: 9px 0; }
.ticker-track li::after {
    content: "";
    width: 6px;
    height: 6px;
    margin-inline: 22px;
    border-radius: 50%;
    background: var(--accent);
}
.ticker-track a { color: #fff; text-decoration: none; }
.ticker-track a:hover, .ticker-track a:focus-visible { text-decoration: underline; }
.ticker.is-moving .ticker-window { overflow: hidden; }
.ticker.is-moving .ticker-move { animation: ticker-move 30s linear infinite; }
.ticker.is-moving:hover .ticker-move,
.ticker.is-moving:focus-within .ticker-move { animation-play-state: paused; }
@keyframes ticker-move {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Popup (admin > Popup): opens over the page when the website is opened */
.site-popup {
    width: min(560px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    box-shadow: 0 24px 60px rgba(20, 20, 30, 0.3);
    overflow: auto;
}
.site-popup::backdrop { background: rgba(15, 15, 20, 0.6); }
.site-popup-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    background: var(--primary-tint);
}
.site-popup-img:last-child { max-height: calc(100vh - 32px); }
.site-popup-body { padding: 24px clamp(20px, 4vw, 32px) 28px; }
.site-popup-title {
    margin: 0;
    padding-right: 36px;
    font-family: var(--heading);
    font-weight: var(--heading-weight);
    font-size: clamp(22px, 3vw, 28px);
    line-height: 1.2;
}
.site-popup-img + .site-popup-body .site-popup-title { padding-right: 0; }
.site-popup-text { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.site-popup-body .btn-row { margin: 20px 0 0; }
.site-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(20, 20, 30, 0.15);
}
.site-popup-close:hover { color: var(--primary); }
.site-popup-close .icon { width: 20px; height: 20px; }
