/* ScienceX public design system, 11 October 2026.
   Blue-led palette informed by NCSC and SIC; shared by every public page.
   Loaded after the legacy component and responsive navigation styles. */
:root {
    --sx-blue: #0c2891;
    --sx-blue-hover: #092173;
    --sx-navy: #10245a;
    --sx-topbar: #123ba8;
    --sx-login-yellow: #ffda60;
    --sx-sky: #0573b9;
    --sx-gold: #d9a53b;
    --sx-text: #26354a;
    --sx-muted: #526176;
    --sx-tint: #f1f6fc;
    --sx-line: #dce4ef;
    --ink: var(--sx-navy);
    --ink-soft: var(--sx-muted);
    --teal: var(--sx-sky);
    --teal-deep: var(--sx-blue);
    --brand-heading-navy: var(--sx-navy);
    --brand-heading-deep: var(--sx-navy);
    --ui-border: var(--sx-line);
    --ui-muted: var(--sx-muted);
}
body, body.is-home, body.is-inner-page, body.is-home[data-home-background] {
    font-family: 'Inter var', 'Segoe UI', Arial, sans-serif;
    color: var(--sx-text);
    background: #fff;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, button, input, select, textarea { font-family: inherit; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.025em; }
button, input, select, textarea { font-size: inherit; }
p { color: var(--sx-muted); }
.hero-copy, .page-hero .hero-copy, .section-heading p { color: var(--sx-muted); }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .1em; line-height: 1.5; }
:where(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--sx-sky); outline-offset: 3px; }
html { scroll-padding-top: 140px; }
.site-header { background: #fff; border-bottom: 1px solid var(--sx-line); box-shadow: 0 2px 8px rgb(16 36 90 / 4%); backdrop-filter: none; }
.site-header::after, .site-header .topbar::after { display: none; }
.site-header .topbar { background: var(--sx-topbar); border: 0; backdrop-filter: none; }
.site-header .topbar .wrap { min-height: 40px; color: #fff; gap: 20px; }
.site-header .social-links { margin: 0; padding: 0 14px 0 0; background: transparent; box-shadow: none; min-height: 40px; border-right: 1px solid #52628b; }
.site-header .social-links:empty { display: none; }
.site-header .social-link { color: #fff; min-width: 28px; height: 32px; }
.site-header .contact-point { color: #fff; font-size: .72rem; font-weight: 400; white-space: nowrap; }
.site-header .contact-point + .contact-point { border-color: #52628b; }
.site-header .topbar-links { gap: 18px; flex-wrap: nowrap; color: #fff; font-size: .72rem; font-weight: 500; }
.site-header .topbar-links a { min-height: 36px; display: inline-flex; align-items: center; white-space: nowrap; }
.site-header .login-link { min-height: 30px; margin: 0; padding: 3px 12px; border: 1px solid var(--sx-login-yellow); border-radius: 5px; color: var(--sx-navy); background: var(--sx-login-yellow); box-shadow: none; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.site-header .login-link::before { display: none; }
.site-header .topbar a:focus-visible { outline-color: #ffd67c; }
.site-header .login-link:hover { background: #ffe58a; color: var(--sx-navy); transform: none; }
.site-header .nav-row { min-height: 86px; grid-template-columns: minmax(240px, 310px) minmax(0, 1fr); gap: 24px; }
.site-header .brand { min-width: 0; width: auto; gap: 12px; padding: 12px 0; }
.site-header .brand-copy { max-width: 265px; gap: 5px; }
.site-header .brand strong { font-size: .95rem; line-height: 1.3; letter-spacing: -.02em; white-space: normal; }
.site-header .brand small { font-size: .58rem; color: var(--sx-muted); line-height: 1.3; letter-spacing: .09em; }
.site-header .brand-mark { width: 38px; flex-basis: 38px; }
.site-header .site-nav { gap: clamp(8px, 1vw, 16px); }
.site-header .site-nav-link { font-size: .82rem; font-weight: 600; color: var(--sx-navy); border-radius: 5px; }
.site-header [aria-current="page"], .site-header .is-current-group > button { color: var(--sx-blue); }
.site-header [aria-current="page"] { background: #edf2fc; }
.site-header .is-current-group > button::before { background: var(--sx-blue); }
.site-header .nav-dropdown { border: 1px solid var(--sx-line); border-top: 3px solid var(--sx-blue); border-radius: 0 0 8px 8px; box-shadow: 0 12px 24px rgb(16 36 90 / 12%); }
.site-header .nav-dropdown-link { font-size: .85rem; line-height: 1.5; border-radius: 5px; }
.site-header .nav-dropdown-link:hover { color: var(--sx-blue); background: #edf2fc; }
.site-cart-count, .site-cart-count.is-zero { background: #eaf0fb; color: var(--sx-blue); }
.button, .brochure-action { border-radius: 6px; min-height: 46px; gap: 8px; font-size: .87rem; font-weight: 600; letter-spacing: 0; box-shadow: none; }
.button.button-primary, .brochure-action { background: var(--sx-blue); border: 1px solid var(--sx-blue); color: #fff; box-shadow: none; }
.button.button-primary:hover, .brochure-action:hover { background: var(--sx-blue-hover); color: #fff; transform: none; }
.button.button-secondary { color: var(--sx-blue); background: #fff; border: 1px solid #b7c7e2; box-shadow: none; }
.button.button-secondary:hover { background: #edf2fc; border-color: var(--sx-blue); transform: none; }
.is-home .hero { padding: 36px 0 28px; background: var(--sx-tint); border-bottom: 1px solid var(--sx-line); }
.is-home .hero::before, .is-home .hero::after { display: none; }
.is-home .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 48px; align-items: center; }
.is-home .hero-copy-block { max-width: none; padding: 0; }
.is-home .hero h1 { max-width: 23ch; font-family: inherit; font-size: clamp(2rem, 3.35vw, 3.1rem); font-weight: 750; line-height: 1.14; letter-spacing: -.045em; margin: 12px 0 18px; }
.is-home .hero-copy { max-width: 58ch; font-size: .98rem; line-height: 1.75; margin: 0 0 14px; }
.is-home .hero-organiser { max-width: 62ch; padding-left: 12px; border-left: 3px solid var(--sx-gold); font-size: .78rem; line-height: 1.65; margin: 16px 0 22px; }
.is-home .hero-actions { gap: 12px; margin: 0; }
.is-home .hero-stage { min-height: 360px; height: clamp(360px, 28vw, 420px); background: #e5edf7; border: 0; border-radius: 10px; box-shadow: none; }
.is-home .hero-visual-shell { border-radius: 10px; }
.is-home .hero-slideshow::after { background: none; }
.is-home .hero-slide img { object-position: center 30%; }
/* The active photograph and background share a palette; first slide works without JS. */
.is-home .hero[data-hero-carousel] {
    --hero-colour: #d3e88d;
    background-color: var(--hero-colour);
    background-image: linear-gradient(110deg, rgb(255 255 255 / 24%), transparent 70%), linear-gradient(rgb(255 255 255 / 8%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 8%) 1px, transparent 1px);
    background-size: auto, 72px 72px, 72px 72px;
    transition: background-color .6s ease;
}
.is-home .hero[data-hero-palette="yellow"] { --hero-colour: #ffda65; }
.is-home .hero[data-hero-palette="sky"] { --hero-colour: #7ccbf6; }
.is-home .hero[data-hero-carousel] :is(.hero-copy, .hero-organiser) { color: #243b53; }
.is-home .hero[data-hero-carousel] .hero-organiser { border-left-color: var(--sx-blue); }
.is-home .hero[data-hero-carousel] .hero-slide { opacity: 0; visibility: hidden; transform: translateX(18px); pointer-events: none; transition: opacity .6s ease, transform .6s ease, visibility .6s; }
.is-home .hero[data-hero-carousel] .hero-slide.is-active { opacity: 1; visibility: visible; transform: none; }
.hero-carousel-controls { position: absolute; z-index: 5; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid rgb(255 255 255 / 70%); border-radius: 8px; background: rgb(255 255 255 / 94%); }
.hero-carousel-controls[hidden] { display: none; }
.hero-carousel-controls button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-width: 44px; min-height: 44px; padding: 4px; border: 0; border-radius: 5px; background: transparent; color: var(--sx-blue); font: inherit; font-weight: 700; cursor: pointer; }
.hero-carousel-controls button:hover { background: #eaf0fb; }
.hero-carousel-controls button:focus-visible { outline-offset: -3px; }
.hero-carousel-dots { display: flex; flex: 1; min-width: 0; justify-content: safe center; overflow-x: auto; }
.hero-carousel-dots button { min-width: 28px; }
.hero-carousel-dots span { width: 8px; height: 8px; border-radius: 8px; background: #8796bf; }
.hero-carousel-dots [aria-pressed="true"] span { width: 18px; background: var(--sx-blue); }
.hero-carousel-controls .hero-carousel-play { min-width: 56px; font-size: .75rem; border-left: 1px solid var(--sx-line); border-radius: 0; }
@media (prefers-reduced-motion: reduce) {
    .is-home .hero[data-hero-carousel], .is-home .hero[data-hero-carousel] .hero-slide { transition: none; }
}
.hero-quick-access { grid-column: 1 / -1; min-width: 0; margin: 0; }
.hero-quick-access .task-shortcuts { margin: 0; gap: 0; border: 1px solid #ccd8ea; border-radius: 8px; background: #fff; overflow: hidden; }
.hero-quick-access .task-shortcuts a { position: relative; padding: 16px 48px 16px 22px; min-height: 84px; border: 0; border-right: 1px solid var(--sx-line); border-radius: 0; background: #fff; color: var(--sx-blue); font-size: .96rem; gap: 2px; }
.hero-quick-access .task-shortcuts a:last-child { border-right: 0; }
.hero-quick-access .task-shortcuts a:hover { background: #edf2fc; transform: none; }
.hero-quick-access .task-shortcuts a:focus-visible { outline-offset: -4px; }
.hero-quick-access .task-shortcuts span { font-size: .71rem; font-weight: 400; color: var(--sx-muted); }
.hero-quick-access .task-shortcuts b { position: absolute; right: 22px; top: 29px; font-size: 1.25rem; font-weight: 400; }
.is-home .section, .is-home .home-section { padding: 42px 0; background: #fff; }
.is-home .home-section::before, .is-home .home-section::after { display: none; }
.is-home .home-section:nth-of-type(even), .is-home .home-section:nth-of-type(odd) { background: #fff; }
.is-home .home-section.home-section-registration-steps, .is-home .home-section.home-section-resources-and-pages { background: var(--sx-tint); }
.is-home .section-heading, .section-heading { display: block; margin-bottom: 24px; max-width: 900px; }
.is-home .section-heading h2, .section-heading h2 { max-width: 42ch; margin: 6px 0 10px; font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.3; font-weight: 700; letter-spacing: -.03em; }
.is-home .section-heading p:last-child, .section-heading p:last-child { max-width: 75ch; font-size: .92rem; line-height: 1.7; }
.is-home .section-heading .eyebrow { margin-bottom: 8px; font-size: .7rem; }
.home-calendar-strip { background: #fff; border-bottom: 1px solid var(--sx-line); }
.calendar-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: 22px; }
.calendar-strip-inner h2 { margin: 0 0 4px; font-size: 1rem; letter-spacing: -.01em; }
.calendar-strip-inner p { margin: 0; max-width: 90ch; font-size: .83rem; }
.calendar-strip-inner > a { flex-shrink: 0; }
.card-grid, .notice-grid, .resource-grid, .article-grid, .winner-grid { gap: 22px; }
.content-card, .feature-card, .notice-card, .resource-card, .article-card, .timeline-item,
.is-home .feature-card, .is-home .notice-card, .is-home .resource-card, .winner-card,
.syllabus-topic-card, .contact-sidebar-card, .contact-form-panel { background: #fff; border: 1px solid var(--sx-line); border-radius: 9px; box-shadow: none; }
.is-home .feature-card:nth-child(n), .is-home .resource-card:nth-child(n), .is-home .notice-card:nth-child(n), .resource-card:nth-child(n) { border-top: 1px solid var(--sx-line); background: #fff; }
.is-home .feature-card::before, .is-home .resource-card::before, .is-home .notice-card::before, .is-home .timeline-item::before { display: none; }
.feature-card:hover, .notice-card:hover, .resource-card:hover, .article-card:hover, .winner-card:hover { transform: none; border-color: #a6bddc; box-shadow: 0 5px 16px rgb(16 36 90 / 6%); }
.card-media { aspect-ratio: 16 / 9; background: #eaf0f8; }
.card-media::after { display: none; }
.is-home .home-card-visual { background: #eaf0fb; color: var(--sx-blue); box-shadow: none; border-radius: 6px; }
.feature-card h3, .notice-card h3, .resource-card h3, .timeline-item h3, .winner-card h3 { font-family: inherit; font-size: 1.08rem; line-height: 1.4; font-weight: 650; letter-spacing: -.015em; }
.feature-card p, .notice-card p, .resource-card p, .timeline-item p { color: var(--sx-muted); font-size: .88rem; line-height: 1.7; }
.feature-card > a, .notice-card > a, .resource-card > a, .article-card-body > a { color: var(--sx-blue); font-size: .83rem; font-weight: 600; }
.feature-card > a:hover, .notice-card > a:hover, .resource-card > a:hover { text-decoration: underline; }
.tag, .status, .winner-badge { background: #edf2fc; color: var(--sx-blue); border-radius: 4px; font-size: .7rem; font-weight: 600; }
.notice-card .status, .is-home .notice-card .status, .is-home .feature-card .tag { background: #edf2fc; color: var(--sx-blue); }
.is-home .notice-card.is-breaking-notice .status { background: #fceceb; color: #9e2621; }
.article-card::before, .winner-card::before { display: none; }
.is-breaking-notice { border-color: #cbd6e8; }
.winner-photo { background: #eef3fa; }
.page-hero { background: var(--sx-tint); padding: 34px 0; border-bottom: 1px solid var(--sx-line); }
.page-hero::before, .page-hero::after { display: none; }
.page-hero h1, .contact-hero-card h1, .winners-hero h1, .brochure-page-hero h1 { max-width: 35ch; font-family: inherit; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.2; letter-spacing: -.035em; margin: 10px 0 14px; }
.page-hero .hero-copy { max-width: 82ch; font-size: .96rem; line-height: 1.75; margin-bottom: 0; }
.is-inner-page .section { padding-block: 34px; }
.is-inner-page .section.alt { background: #f7f9fc; }
.rich-content { color: var(--sx-text); font-size: .95rem; line-height: 1.85; }
.rich-content h2 { font-size: 1.5rem; line-height: 1.35; }
.rich-content h3 { font-size: 1.15rem; }
.rich-content a { color: var(--sx-blue); text-decoration: underline; text-underline-offset: 3px; }
.rich-content th, .brochure-table th { background: #edf2fc; color: var(--sx-navy); }
.resource-search { border-radius: 9px; background: #fff; box-shadow: none; }
.resource-search label { color: var(--sx-text); font-size: .86rem; font-weight: 600; }
.resource-search input, .resource-search select { border-color: #aabbd1; border-radius: 5px; }
.contact-hero-card { border: 1px solid var(--sx-line); border-radius: 9px; background: var(--sx-tint); box-shadow: none; }
.contact-hero-actions a { border-radius: 6px; background: #fff; border: 1px solid #b7c7e2; color: var(--sx-blue); }
.contact-method-card { background: #f5f8fc; border-radius: 6px; }
.site-footer { background: var(--sx-navy); margin-top: 0; border-top: 4px solid var(--sx-gold); }
.site-footer .footer-column h2 { color: #fff !important; font-family: inherit; font-size: .92rem; font-weight: 650; }
.site-footer .footer-organiser-name { color: #fff; font-size: 1.05rem; }
.site-footer .footer-kicker { color: #f0cd7d; }
.site-footer p, .site-footer li, .site-footer a { color: #e1e8f6; }
.site-footer .footer-organiser, .site-footer .footer-bottom { border-color: #435580; }
.site-footer .footer-organiser > .button { background: transparent; color: #fff; border-color: #8796bf; }
.site-footer .footer-organiser > .button:hover { background: #fff; color: var(--sx-navy); }
.footer-newsletter .newsletter-link { background: #eaf0ff; border-color: #eaf0ff; color: var(--sx-blue); border-radius: 5px; }
.footer-newsletter .newsletter-input { border-radius: 5px; }
.site-footer :where(a, button, input):focus-visible { outline-color: #ffd67c; }
.back-to-top { right: 20px; bottom: 20px; }
.back-to-top-frame { width: 44px; height: 44px; padding: 0; background: var(--sx-blue); border-radius: 6px; box-shadow: 0 3px 12px rgb(16 36 90 / 15%); }
.back-to-top-pill { width: 44px; height: 44px; border-radius: 6px; background: var(--sx-blue); color: #fff; }
/* Align the specialist store and admin-authored paper layouts with the shell. */
.shop-filter-chip { border-radius: 6px; font-size: .86rem; font-weight: 600; }
.shop-filter-chip.is-active { background: var(--sx-blue); border-color: var(--sx-blue); color: #fff; }
.product-card { border: 1px solid var(--sx-line); border-radius: 9px; background: #fff; box-shadow: none; }
.product-card h3 { font-family: inherit; font-size: 1.1rem; line-height: 1.4; }
.product-buy-button { background: var(--sx-blue); border: 1px solid var(--sx-blue); border-radius: 6px; color: #fff; font-family: inherit; font-weight: 600; }
.product-buy-button:hover:not(:disabled) { background: var(--sx-blue-hover); color: #fff; }
.product-buy-button:disabled { background: #e8edf4; border-color: #d6dfeb; color: #526176; }
.product-view-button { background: #fff; border: 1px solid #b7c7e2; border-radius: 6px; color: var(--sx-blue); font-weight: 600; }
.tracking-hero { padding: 34px 0; background: var(--sx-tint); }
.tracking-hero h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.2; letter-spacing: -.035em; }
.tracking-help-card, .tracking-lookup-panel, .tracking-progress-card, .tracking-info-card, .tracking-order-card, .tracking-note-card { border: 1px solid var(--sx-line); border-radius: 9px; background: #fff; box-shadow: none; }
.tracking-help-card span { color: var(--sx-blue); font-size: .72rem; font-weight: 600; }
.tracking-help-card strong { font-size: 1.05rem; line-height: 1.45; }
.tracking-help-card p { font-size: .88rem; }
.tracking-section .wrap { max-width: var(--page-width); }
.tracking-lookup-panel { margin-top: 0; }
.tracking-lookup-copy h2 { font-size: 1.5rem; line-height: 1.3; }
.tracking-lookup-form label { font-weight: 600; }
.tracking-lookup-form label span { font-size: .8rem; letter-spacing: 0; text-transform: none; }
.tracking-lookup-form input { background: #fff; border-color: #aabbd1; border-radius: 5px; min-height: 46px; font-size: .86rem; font-weight: 400; }
.previous-papers-content .previous-papers-section { width: min(var(--page-width), calc(100% - var(--page-gutter) * 2)); max-width: none; margin: 32px auto; padding: 0; font-family: inherit; --secondary: var(--sx-blue); --accent-soft: #edf2fc; --teal-soft: #edf2fc; }
.previous-papers-content .papers-header { background: var(--sx-tint); border: 1px solid var(--sx-line); border-radius: 9px; padding: 30px; box-shadow: none; }
.previous-papers-content .papers-header h2 { color: var(--sx-navy) !important; font-family: inherit; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.2; text-shadow: none; }
.previous-papers-content .papers-header p { color: var(--sx-muted); }
.previous-papers-content .papers-header .section-label { padding: 0; background: transparent; color: var(--sx-blue); font-weight: 600; }
.previous-papers-content .benefit-item, .previous-papers-content .table-scroll { background: #fff; border: 1px solid var(--sx-line); border-radius: 9px; box-shadow: none; }
.previous-papers-content .benefit-number { border-radius: 6px; background: #edf2fc; color: var(--sx-blue); }
.previous-papers-content .papers-table thead th { background: #edf2fc; color: var(--sx-navy); }
.previous-papers-content .papers-table thead th:first-child, .previous-papers-content .papers-table thead th:last-child { border-radius: 0; }
.previous-papers-content .paper-button { background: var(--sx-blue); border-radius: 5px; min-height: 44px; font-weight: 600; }
.previous-papers-content .paper-button:hover { background: var(--sx-blue-hover); transform: none; box-shadow: none; }
.previous-papers-content .practice-guide { background: var(--sx-tint); border: 1px solid var(--sx-line); border-left: 3px solid var(--sx-gold); border-radius: 9px; }
.previous-papers-content .mock-test-button { border: 1px solid #b7c7e2; border-radius: 6px; background: #fff; color: var(--sx-blue) !important; font-weight: 600; }
.previous-papers-content .mock-test-button:hover { background: #edf2fc; transform: none; }
/* Content accents echo the hero palette without changing the hero or navigation. */
#main-content :is(.feature-card, .resource-card, .notice-card, .article-card, .winner-card, .timeline-item, .content-card, .syllabus-topic-card, .product-card, .contact-method-card) {
    --card-tint: #fff9e6;
    --card-accent: #edc44c;
    background: var(--card-tint);
    border-top: 4px solid var(--card-accent);
}
#main-content :is(.feature-card, .resource-card, .notice-card, .article-card, .winner-card, .timeline-item, .content-card, .syllabus-topic-card, .product-card, .contact-method-card):nth-child(3n + 2) {
    --card-tint: #f2f8e7;
    --card-accent: #a6c966;
}
#main-content :is(.feature-card, .resource-card, .notice-card, .article-card, .winner-card, .timeline-item, .content-card, .syllabus-topic-card, .product-card, .contact-method-card):nth-child(3n) {
    --card-tint: #edf7ff;
    --card-accent: #72bce8;
}
#main-content .home-card-visual { background: var(--card-accent, #ffda60); color: var(--sx-navy); }
#main-content .winner-badge { background: #ffeb9c; color: var(--sx-navy); }
#main-content .home-calendar-strip { background: #fffbee; }
#main-content :is(.feature-card, .notice-card, .resource-card, .article-card-body) > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: start;
    justify-self: start;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #e7bf43;
    border-radius: 6px;
    background: var(--sx-login-yellow);
    color: var(--sx-navy);
    font-size: .83rem;
    font-weight: 650;
    line-height: 1.5;
    text-decoration: none;
}
#main-content > :not(.hero) :is(.button-primary, .button-secondary, .brochure-action, .product-view-button, .product-buy-button, .paper-button, .mock-test-button):not(:disabled):not([aria-disabled="true"]),
#main-content .contact-hero-actions a {
    background: var(--sx-login-yellow);
    border-color: #e7bf43;
    color: var(--sx-navy);
    box-shadow: none;
}
#main-content > :not(.hero) :is(.button-primary, .button-secondary, .brochure-action, .product-view-button, .product-buy-button, .paper-button, .mock-test-button):not(:disabled):not([aria-disabled="true"]):hover,
#main-content :is(.feature-card, .notice-card, .resource-card, .article-card-body) > a:hover,
#main-content .contact-hero-actions a:hover {
    background: #ffe58a;
    border-color: #cc9f28;
    color: var(--sx-navy);
    text-decoration: none;
    transform: none;
}
@media (max-width: 1199px) {
    .site-header .topbar { display: block; }
    .site-header .topbar-links, .site-header .topbar .social-links { display: none; }
    .site-header .topbar .wrap { min-height: 40px; gap: 12px; flex-direction: row; align-items: center; justify-content: space-between; padding-block: 4px; }
    .site-header .topbar-left, .site-header .topbar-right { display: flex; width: auto; flex-wrap: nowrap; }
    .site-header .nav-row { grid-template-columns: minmax(0, 1fr) auto; min-height: 80px; gap: 12px; }
    .site-header .brand { padding: 0; }
    .site-header .brand-copy { max-width: none; }
    .site-header .menu-toggle { border-color: #bdcce1; border-radius: 5px; color: var(--sx-blue); }
    .site-header .site-nav { border-radius: 8px; background: #f5f8fc; }
    .site-header.is-menu-open .site-nav,
    .site-header:not(.is-compact).is-menu-open .site-nav { max-height: var(--menu-space, calc(100dvh - 144px)); overflow-y: auto; }
    .site-header .site-nav-link { border-radius: 5px; font-size: .88rem; }
    .site-header .nav-dropdown { border: 0; border-left: 2px solid #b4c9e6; box-shadow: none; border-radius: 0; }
    .site-header .mobile-priority-links a { background: #eaf0fb; color: var(--sx-blue); border-color: #c7d5ec; border-radius: 5px; }
    .site-header .mobile-priority-links .mobile-priority-login, .site-header .mobile-menu-login { background: var(--sx-login-yellow); border-color: var(--sx-login-yellow); color: var(--sx-navy); }
    .site-header .mobile-menu-utility { background: #edf2fc; border-radius: 6px; }
    .is-home .hero-grid { gap: 30px; }
    .is-home .hero h1 { font-size: 2.35rem; }
    .is-home .hero-stage { min-height: 360px; height: 100%; }
}
@media (min-width: 768px) and (max-width: 999px) {
    .is-home .hero-grid { grid-template-columns: 1fr; }
    .is-home .hero-copy-block { max-width: 760px; }
    .is-home .hero h1 { max-width: 30ch; }
    .is-home .hero-stage { height: 340px; min-height: 340px; }
    .hero-quick-access .task-shortcuts a { padding-left: 16px; padding-right: 32px; font-size: .87rem; }
    .hero-quick-access .task-shortcuts b { right: 12px; }
}
@media (max-width: 767px) {
    .site-header .brand strong { font-size: .78rem; }
    .site-header .brand small { font-size: .49rem; }
    .site-header .brand { gap: 8px; }
    .site-header .brand-mark { flex-basis: 28px; width: 28px; }
    .site-header .contact-point { font-size: .66rem; }
    .site-header .login-link { font-size: .67rem; padding-inline: 8px; }
    .is-home .hero { padding: 26px 0 22px; }
    .is-home .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .is-home .hero h1 { font-size: clamp(1.8rem, 7.6vw, 2.5rem); max-width: 25ch; }
    .is-home .hero-copy { font-size: .92rem; }
    .is-home .hero-organiser { font-size: .75rem; }
    .is-home .hero-stage { min-height: 0; height: auto; aspect-ratio: 4 / 3; }
    .is-home .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .is-home .hero-actions .button { padding: 10px; text-align: center; font-size: .76rem; }
    .is-home .hero-copy-block { order: 1; }
    .hero-quick-access { order: 2; margin: 0; }
    .is-home .hero-stage { order: 3; }
    .hero-quick-access .task-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-quick-access .task-shortcuts a { min-height: 84px; padding: 14px 30px 14px 14px; font-size: .83rem; }
    .hero-quick-access .task-shortcuts a:nth-child(2) { border-right: 0; }
    .hero-quick-access .task-shortcuts a:nth-child(-n+2) { border-bottom: 1px solid var(--sx-line); }
    .hero-quick-access .task-shortcuts span { font-size: .64rem; }
    .hero-quick-access .task-shortcuts b { right: 12px; font-size: 1rem; }
    .is-home .section, .is-home .home-section, .is-inner-page .section { padding-block: 28px; }
    .is-home .section-heading h2, .section-heading h2 { font-size: 1.5rem; }
    .calendar-strip-inner { flex-direction: column; align-items: flex-start; gap: 14px; padding-block: 20px; }
    .calendar-strip-inner .button { min-height: 44px; }
    .page-hero { padding: 26px 0; }
    .page-hero h1, .contact-hero-card h1 { font-size: 1.85rem; }
    .content-card, .notice-card, .timeline-item { padding: 20px; }
    .card-grid, .notice-grid { grid-template-columns: minmax(0, 1fr); }
    .site-footer .footer-organiser-name { font-size: .96rem; }
    .back-to-top { right: 12px; bottom: 12px; }
}
@media (max-width: 540px) {
    .site-header .topbar .contact-point:nth-child(2) { display: none; }
    .site-header .topbar .contact-points { gap: 0; }
}
