/* =============================================================================
 * Okonguarri - design system
 * -----------------------------------------------------------------------------
 * Layout and components shared by every theme. Colour, type and character come
 * from the custom properties below, which css/themes/<key>.css overrides along
 * with anything that theme does differently.
 *
 * Written for three audiences: people in distress, the people who care about
 * them, and referring professionals. Hence: generous type and spacing, calm
 * colour, high contrast, clear signposting, and contact always within reach.
 * ========================================================================== */

/* ---------------------------------------------------------------------------
 * 1. Tokens
 * ------------------------------------------------------------------------ */
:root {
    --bg:            #f7f4ef;
    --bg-alt:        #efe9df;
    --surface:       #ffffff;
    --ink:           #1d2621;
    --text:          #3d4641;
    --muted:         #69716c;
    --line:          #e4ddd2;
    --line-strong:   #cdc4b6;
    --accent:        #8e2f25;
    --accent-ink:    #ffffff;
    --accent-soft:   #f5e9e5;
    --dark:          #1f2b25;
    --dark-2:        #18211c;
    --on-dark:       #f1ece4;
    --on-dark-muted: #b6bdb4;
    --on-dark-line:  rgba(241, 236, 228, 0.16);
    --success:       #3e6b4f;
    --warn-bg:       #fbf2e7;
    --warn-line:     #c47a3a;
    --info-bg:       #edf1ec;
    /* Colour of a rule that is not negotiable (the conditions of admission). Sits
       with the accent rather than --warn-line: authority, not hazard. Themes retune
       it, since how firm a rule may look is a property of the theme's character. */
    --strict:        #8e2f25;

    --font-display:  Georgia, 'Times New Roman', serif;
    --font-body:     system-ui, -apple-system, 'Segoe UI', sans-serif;
    --display-weight: 500;
    --display-tracking: -0.01em;
    --emphasis-weight: 600;

    --radius-sm:     4px;
    --radius:        8px;
    --radius-lg:     14px;
    --radius-btn:    999px;
    --shadow-sm:     0 1px 2px rgba(29, 38, 33, .05);
    --shadow:        0 1px 2px rgba(29, 38, 33, .04), 0 12px 32px -8px rgba(29, 38, 33, .10);
    --shadow-lg:     0 2px 4px rgba(29, 38, 33, .04), 0 24px 60px -12px rgba(29, 38, 33, .18);

    --container:     1240px;
    --gutter:        clamp(1.25rem, 4vw, 2.5rem);
    --section:       clamp(3.5rem, 6vw, 5.5rem);
    --header-h:      100px;
    --ease:          cubic-bezier(.22, .61, .36, 1);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
body.menu-open, body.lightbox-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
main img { filter: saturate(.9) contrast(.97); }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color .2s var(--ease); }
a:hover { color: var(--ink); }

strong, b { font-weight: 700; color: var(--ink); }

/* A quieter emphasis for use inside running prose, where 700 plus the jump to
   --ink reads as a shout. The semantics stay with <strong>; only the weight and the
   colour step change. Kept deliberately before .section--dark strong and
   .feature-box strong below: those later rules keep their light-on-dark colour in
   dark sections, while this weight still applies, since no later rule weights
   <strong> heavier than --emphasis-weight. */
.text--soft { font-weight: var(--emphasis-weight); color: inherit; }

em { font-style: italic; }
small { font-size: .85em; }

h1, h2, h3, h4 {
    margin: 0 0 .5em;
    font-family: var(--font-display);
    font-weight: var(--display-weight);
    letter-spacing: var(--display-tracking);
    line-height: 1.12;
    color: var(--ink);
    text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 4.8vw, 4.1rem); line-height: 1.04; }
h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.35rem, 1.8vw, 1.6rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

hr { border: 0; height: 1px; background: var(--line); margin: 1.5rem 0; }

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

h1, h2, h3, h4, .fact__num, .step__num, .hero__badge-num, .contact-item__big { font-variant-numeric: lining-nums; }

.icon { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -0.2em; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
/* Narrow pages keep the same left edge as the page title above them. */
.container.narrow > * { max-width: 52rem; }

.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 1000;
    background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: var(--radius-sm); text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

.eyebrow {
    display: inline-flex; align-items: center; gap: .75rem;
    margin: 0 0 1.1rem;
    font-family: var(--font-body); font-size: .78rem; font-weight: 600;
    letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }

.lead { font-size: clamp(1.15rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--ink); }

.prose { max-width: 42rem; }
.prose p { margin-bottom: 1.15em; }
.admission-checklist { list-style: decimal; padding-inline-start: 1.5em; margin-block: 0 1.15em; }
.admission-checklist li + li { margin-top: .85rem; }

/* ---------------------------------------------------------------------------
 * 3. Buttons and links
 * ------------------------------------------------------------------------ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    min-height: 52px; padding: .85rem 1.6rem;
    border: 1px solid transparent; border-radius: var(--radius-btn);
    font: inherit; font-size: .98rem; font-weight: 600; line-height: 1.2;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn small { font-weight: 400; opacity: .75; font-size: .8em; }
.btn--primary { background: var(--dark); color: var(--on-dark); }
.btn--primary:hover { background: var(--accent); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--ink); color: var(--ink); background: var(--surface); }
.btn--ghost { background: transparent; color: var(--on-dark); border-color: rgba(241, 236, 228, .45); }
.btn--ghost:hover { background: rgba(241, 236, 228, .12); border-color: var(--on-dark); color: #fff; }
input.btn { -webkit-appearance: none; appearance: none; }

.link-arrow {
    display: inline-flex; align-items: center; gap: .45rem;
    font-weight: 600; text-decoration: none; color: var(--accent);
}
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--ink); }
.link-arrow:hover .icon { transform: translateX(4px); }

.section-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 3rem; }

/* ---------------------------------------------------------------------------
 * 4. Header
 * ------------------------------------------------------------------------ */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--bg);
    border-bottom: 1px solid transparent;
    transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -12px rgba(29, 38, 33, .18); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; gap: 2rem; }

.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
/* okonguarri_emblem.png is 170px wide; keep the displayed size at or below
   ~85px so high-density screens still get at least 2 image pixels per CSS px. */
.brand__mark { display: block; width: 62px; flex: none; }
.brand__mark img { display: block; width: 100%; height: auto; max-width: none; filter: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 2.05rem; letter-spacing: .005em; }
.brand__tag { margin-top: .4rem; font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.primary-nav { margin-left: auto; }
.menu { display: flex; align-items: center; gap: .1rem; }
.menu > li { position: relative; }
.menu a, .submenu-toggle {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .55rem .7rem;
    font: inherit; font-size: .94rem; font-weight: 500; color: var(--ink);
    text-decoration: none; white-space: nowrap;
    background: none; border: 0; cursor: pointer; border-radius: var(--radius-sm);
}
.menu > li > a, .submenu-toggle { position: relative; }
.menu > li:not(.menu__cta) > a::after, .submenu-toggle::after {
    content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .2rem; height: 2px;
    background: var(--accent); border-radius: 2px;
    transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.menu > li > a:hover, .submenu-toggle:hover { color: var(--accent); }
.menu > li > a[aria-current="page"]::after,
.has-sub.is-current > .submenu-toggle::after,
.menu > li:not(.menu__cta) > a:hover::after { transform: scaleX(1); }
.submenu-toggle__icon { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.has-sub.is-open .submenu-toggle__icon { transform: rotate(180deg); }

.submenu {
    position: absolute; top: calc(100% + .5rem); left: 0; min-width: 14rem; z-index: 5;
    padding: .5rem; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.has-sub.is-open > .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; width: 100%; padding: .65rem .85rem; }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--bg-alt); color: var(--ink); }

.menu__cta { margin-left: .9rem; }
.menu__cta > a {
    min-height: 46px; padding: .7rem 1.35rem; border-radius: var(--radius-btn);
    background: var(--dark); color: var(--on-dark); font-weight: 600;
}
.menu__cta > a:hover, .menu__cta > a[aria-current="page"] { background: var(--accent); color: #fff; }

.nav-toggle {
    display: none; margin-left: auto;
    width: 48px; height: 48px; border-radius: 50%;
    align-items: center; justify-content: center;
    background: transparent; border: 1px solid var(--line-strong); color: var(--ink); cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 18px; height: 12px; }
.nav-toggle__bars::before, .nav-toggle__bars::after, .nav-toggle__bars span {
    content: ""; position: absolute; left: 0; right: 0; height: 1.6px; border-radius: 2px; background: currentColor;
    transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars span { top: 5.2px; }
.nav-toggle__bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5.2px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5.2px) rotate(-45deg); }

@media (max-width: 1199px) {
    .nav-toggle { display: inline-flex; }
    .primary-nav {
        position: fixed; left: 0; right: 0; bottom: 0; top: var(--nav-top, var(--header-h)); z-index: 49;
        margin: 0; padding: 1.5rem var(--gutter) 3rem;
        background: var(--bg); overflow-y: auto;
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    }
    body.menu-open .primary-nav { opacity: 1; visibility: visible; transform: none; }
    body.menu-open .site-header { border-bottom-color: var(--line); }
    .menu { flex-direction: column; align-items: stretch; gap: 0; max-width: 34rem; margin: 0 auto; }
    .menu > li { border-bottom: 1px solid var(--line); }
    .menu a, .submenu-toggle {
        width: 100%; justify-content: space-between; padding: 1rem .25rem;
        font-family: var(--font-display); font-size: 1.55rem; font-weight: var(--display-weight);
    }
    .menu > li:not(.menu__cta) > a::after, .submenu-toggle::after { display: none; }
    .menu > li > a[aria-current="page"] { color: var(--accent); }
    .submenu {
        position: static; display: none; min-width: 0; padding: 0 0 1rem 1rem;
        background: none; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none;
    }
    .has-sub.is-open > .submenu { display: block; }
    .submenu a { font-size: 1.25rem; padding: .55rem .25rem; }
    .submenu a:hover { background: none; }
    .menu__cta { margin: 1.75rem 0 0; border-bottom: 0 !important; }
    .menu__cta > a { justify-content: center; font-family: var(--font-body); font-size: 1.05rem; min-height: 56px; }
}
@media (max-width: 420px) {
    .site-header__inner { gap: 1rem; }
    .brand { gap: .7rem; }
    .brand__name { font-size: 1.65rem; }
    .brand__tag { font-size: .6rem; letter-spacing: .12em; }
    .brand__mark { width: 50px; }
}
@media (max-width: 360px) {
    .brand { gap: .6rem; }
    .brand__name { font-size: 1.45rem; }
    .brand__tag { font-size: .54rem; letter-spacing: .1em; }
    .brand__mark { width: 42px; }
}

/* ---------------------------------------------------------------------------
 * 5. Home hero
 * ------------------------------------------------------------------------ */
.hero { position: relative; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); overflow: hidden; }
.hero__inner {
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
    padding-block: clamp(2rem, 4vw, 3.5rem) clamp(3rem, 6vw, 5rem);
}
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 em { color: var(--accent); }
.hero__lead { font-size: clamp(1.12rem, 1.5vw, 1.28rem); line-height: 1.65; max-width: 34rem; margin-bottom: 2.25rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }
.hero__note { display: flex; align-items: center; gap: .55rem; font-size: .9rem; color: var(--muted); }
.hero__note .icon { color: var(--success); }

.hero__media { position: relative; margin: 0; }
.hero__media img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; object-position: 55% center; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero__badge {
    position: absolute; left: -2rem; bottom: 2.5rem; max-width: 15rem;
    display: flex; flex-direction: column; gap: .3rem;
    padding: 1.25rem 1.4rem; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    font-size: .9rem; line-height: 1.45; color: var(--muted);
}
.hero__badge-num { font-family: var(--font-display); font-size: 1.6rem; color: var(--accent); line-height: 1.1; }

@media (max-width: 900px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__media { max-width: 34rem; }
    .hero__media img { aspect-ratio: 4 / 3; }
    .hero__badge { display: none; }
}

/* ---------------------------------------------------------------------------
 * 6. Page hero (inner pages)
 * ------------------------------------------------------------------------ */
.page-hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.page-hero__inner { padding-block: clamp(2rem, 4vw, 3rem) clamp(3rem, 6vw, 4.5rem); }
.page-hero--image .page-hero__inner {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.page-hero h1 { margin-bottom: 1.25rem; }
.page-hero__intro { max-width: 40rem; font-size: clamp(1.08rem, 1.4vw, 1.22rem); line-height: 1.65; color: var(--text); }
.page-hero__media { margin: 0; }
.page-hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
@media (max-width: 860px) {
    .page-hero--image .page-hero__inner { grid-template-columns: 1fr; }
    .page-hero__media img { aspect-ratio: 16 / 9; }
}

.breadcrumb { margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .35rem .6rem; font-size: .85rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .6rem; opacity: .5; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); }

/* ---------------------------------------------------------------------------
 * 7. Sections and headings
 * ------------------------------------------------------------------------ */
.section { padding-block: var(--section); }
.section--flush-top { padding-top: clamp(2.5rem, 5vw, 4rem); }
.section--tint { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: var(--on-dark-muted); }
.section--dark h2, .section--dark h3, .section--dark strong { color: var(--on-dark); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { margin-bottom: 0; }
.section-head__intro { margin-top: 1.25rem; font-size: 1.1rem; color: var(--muted); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }

/* Split image / text */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.split__media--tall img { aspect-ratio: 4 / 5; }
.split__media--top img { object-position: center 15%; }
.split__text h2 { margin-bottom: 1.25rem; }
.split__text .link-arrow { margin-top: 1.25rem; }
@media (max-width: 860px) {
    .split { grid-template-columns: 1fr; }
    .split--reverse .split__media { order: 0; }
    .split__media--tall img { aspect-ratio: 4 / 3; }
}

/* Tags (conditions, community skills) */
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.tags li {
    padding: .45rem .95rem; border: 1px solid var(--line-strong); border-radius: 999px;
    background: var(--surface); color: var(--ink); font-size: .93rem; line-height: 1.4;
}
/* Tags used inside a run of prose, where the list is only one move in the paragraph and
   the sentences continue after it. Mirrors the 1.5rem the list already takes above it. */
.prose .tags + p { margin-top: 1.5rem; }

/* Bulleted list. Where tags work for short, equal-weight labels, .bullets keeps the
   reading order of prose and gives each item a visible marker -- useful as soon as an
   item needs a qualifier after its subject ("Affective Disorders such as depression
   and bipolar disorder"), which a pill cannot carry. The subject keeps the list's own
   colour and size; the quieter wording after it steps back with .bullets__note. */
.bullets { display: grid; gap: .55rem; margin-top: 1.5rem; max-width: 46rem; }
.bullets li { position: relative; padding-left: 1.15rem; line-height: 1.55; }
.bullets li::before {
    content: ""; position: absolute; left: 0; top: .58em;
    width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.bullets__note { color: var(--muted); font-size: .92em; }
.bullets--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 2rem; }
@media (max-width: 640px) { .bullets--cols { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
 * 8. Audience paths
 * ------------------------------------------------------------------------ */
.section--paths { padding-top: clamp(4rem, 8vw, 6.5rem); }
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.path-card {
    display: flex; flex-direction: column;
    padding: clamp(1.75rem, 3vw, 2.5rem);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}
.path-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.path-card__icon {
    width: 56px; height: 56px; margin-bottom: 1.5rem; border-radius: 50%;
    display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
}
.path-card__icon .icon { width: 26px; height: 26px; }
.path-card h3 { font-size: clamp(1.5rem, 2vw, 1.8rem); margin-bottom: .75rem; }
.path-card > p { color: var(--muted); margin-bottom: 1.5rem; }
.path-card__links { margin-top: auto; border-top: 1px solid var(--line); }
.path-card__links li { border-bottom: 1px solid var(--line); }
.path-card__links a {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .85rem 0; font-weight: 600; color: var(--ink); text-decoration: none;
}
.path-card__links a .icon { color: var(--accent); transition: transform .25s var(--ease); }
.path-card__links a:hover { color: var(--accent); }
.path-card__links a:hover .icon { transform: translateX(4px); }
@media (max-width: 960px) { .paths { grid-template-columns: 1fr; max-width: 40rem; margin: 0 auto; } }

.crisis-note {
    display: flex; align-items: flex-start; justify-content: center; gap: .6rem;
    max-width: 46rem; margin: 2.5rem auto 0; text-align: center;
    font-size: .92rem; color: var(--muted);
}
.crisis-note .icon { margin-top: .2em; color: var(--accent); }

/* ---------------------------------------------------------------------------
 * 9. Facts band
 * ------------------------------------------------------------------------ */
.facts { background: var(--dark); color: var(--on-dark); }
.facts__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { padding: clamp(2.25rem, 4vw, 3.25rem) 1.5rem; text-align: center; display: flex; flex-direction: column; gap: .4rem; }
.fact + .fact { border-left: 1px solid var(--on-dark-line); }
.fact__num { font-family: var(--font-display); font-size: clamp(2.2rem, 3.6vw, 3.1rem); line-height: 1; color: var(--on-dark); }
.fact__label { font-size: .9rem; color: var(--on-dark-muted); }
@media (max-width: 760px) {
    .facts__grid { grid-template-columns: 1fr 1fr; }
    .fact:nth-child(3) { border-left: 0; }
    .fact:nth-child(n+3) { border-top: 1px solid var(--on-dark-line); }
}

/* ---------------------------------------------------------------------------
 * 10. Steps (admission)
 * ------------------------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; counter-reset: step; position: relative; }
.steps::before {
    content: ""; position: absolute; top: 24px; left: 24px; right: 24px; height: 1px; background: var(--line-strong);
}
.step { position: relative; }
.step__num {
    position: relative; z-index: 1;
    width: 48px; height: 48px; margin-bottom: 1.5rem; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--bg); border: 1px solid var(--accent); color: var(--accent);
    font-family: var(--font-display); font-size: 1.35rem;
}
.step h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.step p { font-size: .95rem; line-height: 1.6; color: var(--muted); }
@media (max-width: 1100px) {
    .steps { grid-template-columns: 1fr; gap: 0; max-width: 44rem; }
    .steps::before { top: 24px; bottom: 24px; left: 24px; right: auto; width: 1px; height: auto; }
    .step { display: grid; grid-template-columns: 48px 1fr; column-gap: 1.5rem; padding-bottom: 2rem; }
    .step__num { grid-row: span 2; margin: 0; }
    .step h3 { margin-top: .6rem; }
}

/* ---------------------------------------------------------------------------
 * 11. Cards
 * ------------------------------------------------------------------------ */
.cards { display: grid; gap: 1.5rem; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards--3, .cards--2 { grid-template-columns: 1fr; } }

.card {
    display: flex; flex-direction: column;
    padding: clamp(1.6rem, 3vw, 2.25rem);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    color: var(--text);
}
.card h2, .card h3 { font-size: clamp(1.4rem, 1.8vw, 1.6rem); margin-bottom: .75rem; }
.card p { font-size: .98rem; }
/* Lists inside cards: the global reset in section 2 strips markers, so this component supplies
   its own dot. currentColor keeps it readable on .card--emphasis and the dark themes. */
.card__list { font-size: .98rem; color: var(--muted); display: grid; gap: .4rem; margin: 0 0 1.1em; }
.card__list li { position: relative; padding-left: 1rem; }
.card__list li::before {
    content: ""; position: absolute; left: 0; top: .6em;
    width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .5;
}
.card__icon {
    width: 48px; height: 48px; margin-bottom: 1.25rem; border-radius: var(--radius);
    display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
}
.card__icon .icon { width: 24px; height: 24px; }
.card--link { text-decoration: none; transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s; }
.card--link:hover { color: var(--text); box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.card--link p { color: var(--muted); }
.card__more { margin-top: auto; padding-top: 1.25rem; display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .92rem; color: var(--accent); }
.card--link:hover .card__more .icon { transform: translateX(4px); }
.card__more .icon { transition: transform .25s var(--ease); }
.card--emphasis { background: var(--dark); border-color: var(--dark); color: var(--on-dark-muted); }
.card--emphasis h2, .card--emphasis strong { color: var(--on-dark); }
.card--emphasis .card__icon { background: rgba(241, 236, 228, .1); color: var(--on-dark); }
.cards--compact .card { padding: 1.75rem; }

/* ---------------------------------------------------------------------------
 * 12. Home: founder, setting, patient voice, professionals, MVV
 * ------------------------------------------------------------------------ */
.founder__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.founder__aside { position: sticky; top: calc(var(--header-h) + 2rem); }
.founder__portrait { margin: 0; }
.founder__portrait img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.founder__portrait figcaption { margin-top: 1rem; display: flex; flex-direction: column; }
.founder__portrait figcaption strong { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.4rem; }
.founder__portrait figcaption span { color: var(--muted); font-size: .92rem; }
.founder__quote { font-style: italic; font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.2; margin-bottom: 2rem; }
.signature { font-family: var(--font-display); font-style: italic; font-size: 1.6rem; color: var(--ink); margin-top: 1.75rem; }
@media (max-width: 860px) {
    .founder__grid { grid-template-columns: 1fr; }
    .founder__aside { position: static; max-width: 30rem; }
}

.setting { padding-bottom: var(--section); }
.setting__panorama { max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto clamp(3rem, 6vw, 5rem); padding: 0 var(--gutter); }
.setting__panorama img { width: 100%; aspect-ratio: 1200 / 420; object-fit: cover; border-radius: var(--radius-lg); }
@media (max-width: 640px) { .setting__panorama img { aspect-ratio: 16 / 9; } }

.voice__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.voice__media { margin: 0; }
.voice__media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); }
.voice__quote { margin: 0; }
.voice__quote p { font-family: var(--font-display); font-style: italic; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.3; color: var(--on-dark); margin-bottom: 1.5rem; }
.voice__quote footer { color: var(--on-dark-muted); margin-bottom: 2rem; }
.voice__quote .link-arrow { color: var(--on-dark); }
.voice__quote .link-arrow:hover { color: #fff; }
@media (max-width: 860px) { .voice__grid { grid-template-columns: 1fr; } .voice__media { max-width: 26rem; } }

.pro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.pro__intro h2 { margin-bottom: 1.25rem; }
.pro__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.pro__list { border-top: 1px solid var(--line); }
.pro__list li { display: flex; gap: 1.1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.pro__list .icon { width: 24px; height: 24px; margin-top: .15rem; color: var(--accent); }
.pro__list strong { display: block; margin-bottom: .15rem; }
.pro__list span { display: block; font-size: .95rem; color: var(--muted); }
@media (max-width: 860px) { .pro { grid-template-columns: 1fr; } }

.mvv__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.mvv__item { padding: clamp(1.75rem, 3vw, 2.5rem); background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.mvv__item h3 { font-size: 1.75rem; color: var(--accent); margin-bottom: 1rem; }
.mvv__item p { font-size: 1rem; }
.values li { padding: .5rem 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.values li:last-child { border-bottom: 0; }
@media (max-width: 960px) { .mvv__grid { grid-template-columns: 1fr; max-width: 40rem; margin: 0 auto; } }

/* ---------------------------------------------------------------------------
 * 13. Content pages: aside contents, blocks, notes
 * ------------------------------------------------------------------------ */
.with-aside {
    display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start; padding-block: clamp(2.5rem, 5vw, 4rem) var(--section);
}
.with-aside__main { min-width: 0; max-width: 50rem; }

.toc { position: sticky; top: calc(var(--header-h) + 2rem); }
.toc__title { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.toc ol { border-left: 1px solid var(--line-strong); }
.toc a {
    display: block; margin-left: -1px; padding: .5rem 0 .5rem 1.1rem;
    border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: .95rem; line-height: 1.4;
}
.toc a:hover { color: var(--ink); }
.toc a[aria-current] { color: var(--ink); font-weight: 600; border-left-color: var(--accent); }
@media (max-width: 960px) {
    .with-aside { grid-template-columns: 1fr; }
    .toc { position: static; padding: 1.25rem 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
    .toc ol { border: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
    .toc a { padding: .25rem 0; border: 0; margin: 0; color: var(--accent); }
}

.block { padding-top: clamp(2.5rem, 5vw, 3.5rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--line); }
.with-aside__main > .block:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.with-aside__main > .cards { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.with-aside__main > .feature-box + .block { border-top: 0; }
.block h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: 1.25rem; }
.block h3 { font-size: 1.45rem; margin: 2.25rem 0 .75rem; }
.block > p { max-width: 42rem; }
.block__media { margin: .5rem 0 1.75rem; }
.block__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); }
.block .tags, .block .bullets, .block .checklist, .block .mini-steps, .block .note, .block .alert { margin-top: 1.5rem; }
.block .prose + .prose { margin-top: 1.5rem; }

/* A break inside a section, between two groups of prose that belong to the same
   argument but should not be read as one continuous flow. Its weight is deliberate:
   stronger than the 2.25rem an h3 already leaves above the next principle (which is
   what the gap alone would read as), and weaker than .block's border-top, which means
   "new section" and would falsely lift the closing paragraph out of the section above it.

   The first version was a hairline spanning the prose measure with a short accent
   segment at its left end, and it failed the one job it has: it read as a border, i.e.
   as a section rule. Two things caused that. Hard terminals -- a rule that simply stops
   at each end is the shape of an edge, not of a pause. And width: the longer a rule, the
   more it reads as the boundary of a container rather than as a beat inside a sentence.

   So the mark is symmetric, centred on the text column, and weighted towards its own
   middle -- two hairlines that peak beside the ring and taper outward into nothing, with
   no flat run and no end to terminate on. Uniform weight is what makes the old version
   read as a border; weight that gathers at the centre and dissolves at the ends cannot,
   and it also puts the ink where the pause actually is. The gap in the middle states the
   break: a gap asks to be crossed, a border asks to be stopped at, which is exactly the
   difference between "still this section" and "the next section". In that gap sits a
   ring on the accent colour -- the site's own motif (the concentric rings behind every
   page header, the rings around the .mini-steps numerals), reduced to the size of a full
   stop, so it reads as the house mark rather than as decoration. */
.block__divider {
    position: relative; display: block; width: 100%; max-width: 42rem; height: 1px; border: 0;
    /* Left-aligned, not margin:auto: the box is capped at the prose measure, and centring
       the box would centre it in the wider column (.with-aside__main is 50rem) and so put
       the mark ~2rem right of the text it belongs to. Aligned left, the box coincides with
       the text column and the mark's own centring lands on the text's centre. */
    margin: clamp(2.75rem, 5vw, 3.75rem) 0 clamp(2rem, 3.5vw, 2.5rem);
    /* Chromium's UA stylesheet gives <hr> overflow:clip, which cut the ring at the rule's
       1px height and left two red specks where a circle should be. */
    overflow: visible;
    /* One element carries both hairlines; the transparent run in the middle is the gap the
       ring stands in. Ink lives only within 12rem of the centre -- past that the gradient
       is transparent for the rest of the measure, which keeps the mark from spanning the
       column like a rule does. --line-strong rather than --line: a taper this light needs
       the extra pigment at its peak to register. */
    background: linear-gradient(90deg,
        transparent calc(50% - 12rem), var(--line-strong) calc(50% - 2.5rem),
        transparent calc(50% - 2.5rem), transparent calc(50% + 2.5rem),
        var(--line-strong) calc(50% + 2.5rem), transparent calc(50% + 12rem));
}
/* An outline rather than a filled dot: on a hairline a solid dot reads as a bullet that
   lost its list, while an outlined ring is unmistakably the same family as the rings used
   everywhere else. */
.block__divider::before {
    content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 8px; height: 8px; border-radius: 50%;
    border: 1px solid var(--accent); opacity: .65;
}

.feature-box {
    padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: var(--radius-lg);
    background: var(--dark); color: var(--on-dark-muted);
}
.feature-box h2 { color: var(--on-dark); font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 1.25rem; }
.feature-box b, .feature-box strong { color: var(--on-dark); }
.feature-box a:not(.btn) { color: var(--on-dark); }
.feature-box__label { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark); opacity: .8; }
.feature-box .btn { margin-top: 1.5rem; background: var(--on-dark); color: var(--ink); }
.feature-box .btn:hover { background: #fff; color: var(--ink); }

/* Numbered steps: the compact sibling of .steps (§10). The ring and coloured numeral are
   the same idea, scaled down to sit inside reading text, and the ring hangs off the first
   line the way .checklist's tick does, so a page that uses both reads as one family. The
   earlier version boxed every step in a padded card and floated the number in the middle
   of it: four short sentences became four slabs of empty white, the numbers drifted away
   from the words they number, and the boxes fought the ticked list a section below.
   Lining figures are not a nicety here -- this face's defaults are text figures, whose
   3 and 4 fall below the baseline and sit shorter than 1 and 2, so a column of numerals
   looks crooked in a ring. Tabular keeps each ring equally filled. */
.mini-steps { counter-reset: mini; display: grid; gap: .65rem; max-width: 46rem; }
.mini-steps li {
    counter-increment: mini; position: relative; display: flex; gap: .75rem;
    align-items: flex-start; line-height: 1.55; color: var(--ink);
}
.mini-steps li::before {
    content: counter(mini); flex: 0 0 auto; position: relative; z-index: 1; margin-top: 1px;
    width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
    background: var(--bg); border: 1px solid var(--accent); color: var(--accent);
    font-family: var(--font-display); font-size: .95rem; font-weight: 600; line-height: 1;
    font-variant-numeric: lining-nums tabular-nums;
}
/* Hairline from one ring to the next; the negative bottom reaches across the grid gap. */
.mini-steps li:not(:last-child)::after {
    content: ""; position: absolute; left: 11.5px; top: 26px; bottom: calc(-.75rem - 1px);
    width: 1px; background: var(--line-strong);
}

.checklist { display: grid; gap: .75rem; }
.checklist--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 2rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; line-height: 1.55; }
.checklist .icon {
    width: 24px; height: 24px; padding: 4px; margin-top: .05rem; border-radius: 50%;
    background: var(--accent-soft); color: var(--accent); stroke-width: 2.2;
}
@media (max-width: 640px) { .checklist--cols { grid-template-columns: 1fr; } }

.note, .alert { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.35rem; border-radius: var(--radius); }
.note { background: var(--info-bg); color: var(--ink); }
.note .icon, .alert .icon { width: 22px; height: 22px; margin-top: .1rem; }
.note .icon { color: var(--success); }
.alert--warn { background: var(--warn-bg); border-left: 3px solid var(--warn-line); color: var(--ink); }
.alert--warn .icon { color: var(--warn-line); }
.alert--info { background: var(--info-bg); border-left: 3px solid var(--success); color: var(--ink); margin-bottom: 2rem; }
.alert--info .icon { color: var(--success); }
.alert--block { display: block; padding: 1.5rem 1.75rem; }
.alert__title { display: flex; align-items: center; gap: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .82rem; color: var(--warn-line); margin-bottom: .9rem !important; }
.alert--info .alert__title { color: var(--success); }  /* the notice's own heading takes the colour of its rule, not the hazard orange */
.alert--block p { margin-bottom: .75em; }

/* The social row inside a notice (Vacancies): the same round icon links the footer
   uses, rebuilt for a light surface, because .footer-social__link is scoped to
   .site-footer and would render here as three unstyled links. The circles keep the
   footer's size so the two sets read as one component seen twice.
   Not .footer-social__list: flex would fight the alert's own block layout, so the
   row takes its space from the paragraph above rather than adding any below. */
.social-links__list { display: flex; align-items: center; gap: .55rem; margin-top: 1.1rem; }
.social-links__link {
    display: grid; place-items: center; width: 38px; height: 38px;
    border: 1px solid var(--line-strong); border-radius: 50%;
    color: var(--muted);
    transition: color .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease);
}
.social-links__link:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); text-decoration: none; }
/* .alert .icon sizes every icon in the notice to 22px; the brand marks stay at the
   footer's 19px, and .alert's top offset is returned so the row stays centred. */
.alert .social-links__icon { width: 19px; height: 19px; margin-top: 0; }

/* A notice that has to be read rather than skimmed: what Okonguarri cannot admit.
   Inline asides (.note, .alert--calm) sit within a column of prose; this one stands in
   the reading path between sections, so it is composed as a raised card instead --
   surface white against a tinted section, ringed and lifted, with the circular icon
   badge the site already uses for anything worth a second look. Its weight comes from
   size, space and elevation; the colour stays in the calm end of the palette, because
   an admission limit stated in alarm red reads as danger rather than as care.
   Not given .reveal: it should be present, not animate into presence. */
.alert--emphasis {
    display: grid; grid-template-columns: auto minmax(0, 1fr);
    gap: 1.1rem 1.5rem; align-items: start;
    /* Centred as a block, like the crisis note above it, but the text stays left-
       aligned: centred paragraphs of a clinical instruction are harder to scan and
       more likely to be read past than read. */
    max-width: 66rem; margin: clamp(3rem, 6vw, 4.5rem) auto 0;
    padding: clamp(1.75rem, 3.5vw, 2.5rem) clamp(1.75rem, 4vw, 3rem);
    background: var(--surface);
    border: 1px solid var(--line-strong); border-left-width: 4px; border-left-color: var(--success);
    border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.alert__badge {
    width: 52px; height: 52px; border-radius: 50%; flex: none;
    display: grid; place-items: center;
    background: var(--accent-soft); color: var(--accent);
}
.alert--emphasis p { font-size: 1.05rem; line-height: 1.65; color: var(--ink); }
/* .alert--block gives every paragraph a bottom margin; the card's last one has to
   give the space back, or the notice looks bottom-heavy. */
.alert--emphasis p:last-child { margin-bottom: 0; }
.alert--emphasis .alert__title { font-size: .86rem; letter-spacing: .16em; color: var(--success); }
.alert--emphasis .alert__badge .icon { width: 26px; height: 26px; margin-top: 0; }
@media (max-width: 560px) {
    .alert--emphasis { gap: 1rem; padding: 1.5rem 1.35rem; }
    .alert__badge { width: 44px; height: 44px; }
    .alert--emphasis .alert__badge .icon { width: 22px; height: 22px; }
}
/* The card used to open a section instead of standing between two. Its top margin is
   sized to separate two blocks of prose, so under its own heading it reads as a gap
   with nothing above it and the notice drifts away from the heading it belongs to. */
.block > .alert--emphasis--top { margin-top: 1.5rem; margin-bottom: clamp(2rem, 4vw, 2.75rem); }

/* The conditions of admission: a notice that has to be complied with, not merely
   read. Same standing as .alert--emphasis - raised, ringed, out of the prose - but
   composed as a document rather than as a callout, because a document is what
   carries obligations: a heavy top edge and a ring of the same colour enclose the
   text, the label sits under its own rule like a heading, and each obligation is
   numbered and named. The counting does the most work (a numbered list reads as
   binding where a paragraph reads as advice), the consequences attached to each
   rule do the next most, and --strict does the rest.
   The red is loud in shape and quiet in area: it is a bar, a hairline, a ring and
   three small discs, never a wash and never the body text. The reader of this page
   may already be frightened; "we are serious" should be legible before it is
   intimidating, and a dark or fully tinted panel would say the louder, wrong thing.
   Not given .reveal: a condition of admission is already in force. */
.alert--strict {
    display: block;
    padding: clamp(1.6rem, 3.2vw, 2.15rem) clamp(1.6rem, 3.8vw, 2.75rem) clamp(1.75rem, 3.5vw, 2.5rem);
    /* Plain values first, then the same again mixed with --strict: an unsupported
       color-mix invalidates its own declaration, so the notice still gets a ring and
       a card surface rather than a currentColor border. */
    background: var(--surface);
    /* 4% of the strict colour over the card white: enough that the notice is not
       the same surface as the cards beside it, not enough to tint the words. */
    background: color-mix(in srgb, var(--strict) 4%, var(--surface));
    border: 1px solid var(--line-strong);
    border: 1px solid color-mix(in srgb, var(--strict) 34%, var(--line));
    border-top: 4px solid var(--strict);
    border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
/* .block .alert gives inline notices a 1.5rem top margin; this one has to be
   visibly separated from the packing checklist above it, or it reads as one more
   item on the list someone is free to ignore. */
.block .alert--strict { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

/* Label, then its own rule: the two are read as a heading over a document, which
   is the frame that makes what follows feel settled rather than negotiable. */
.alert--strict .alert__title {
    padding-bottom: .85rem; color: var(--strict);
    font-size: .86rem; letter-spacing: .16em;
    border-bottom: 1px solid var(--line);
    border-bottom: 1px solid color-mix(in srgb, var(--strict) 26%, var(--line));
}
/* The one sentence that tells the reader nothing here is optional. Set in ink and
   at the emphasis weight, but not in red and not uppercase: shouting the summary
   would leave nothing louder for the rule that matters most. */
.alert--strict > p:not(.alert__title) {
    color: var(--ink); font-weight: var(--emphasis-weight);
}

/* The counting is drawn from a CSS counter and the numbers are ::before content,
   so reordering the HTML renumbers the rules by itself, while the markup stays a
   real <ol> and a screen reader still announces "3 items". */
.rules { list-style: none; counter-reset: rule; display: grid; gap: 0; margin: 0; padding: 0; }
.rules li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.05rem; align-items: start; padding: 1.15rem 0; }
.rules li:first-child { padding-top: 0; }
.rules li:last-child { padding-bottom: 0; }
/* Hairlines between the rules, faintly red like the ring: three separate
   obligations rather than one block of small print, which is what makes a list of
   them skimmable under stress. */
.rules li + li {
    border-top: 1px solid var(--line);
    border-top: 1px solid color-mix(in srgb, var(--strict) 14%, var(--line));
}
/* The number as a filled disc, ink reversed out of it: the small stamp. Held off the
   line so its centre meets the centre of the rule's own name - h3's line box is
   .82rem x 1.3, so half of that (0.533em) less half the disc (0.875em). */
.rules li::before {
    counter-increment: rule; content: counter(rule);
    width: 1.75rem; height: 1.75rem; margin-top: -.34rem; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--strict); color: var(--surface);
    font-size: .9rem; font-weight: 700; line-height: 1;
}
/* The rule's own name is a real heading: it is what a returning reader scans for,
   and it is the first thing a screen reader jumps to. Reset from the display-face
   h3 styling and given the label's tracking, so the three of them read as clauses
   of one notice rather than as three headings of their own section. */
.rules h3 {
    margin: 0 0 .4rem; font-family: var(--font-body); font-size: .82rem;
    font-weight: 700; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase;
    color: var(--ink);
}
.rules p { margin: 0; color: var(--ink); }
/* The one strong phrase in the notice, in the strict colour. Held to one phrase on
   purpose: emphasis that appears on every second line is emphasis nobody reads. */
.rules strong { color: var(--strict); }
@media (max-width: 560px) {
    .rules li { gap: .8rem; padding: 1rem 0; }
    .rules li::before { width: 1.55rem; height: 1.55rem; margin-top: -.21rem; font-size: .82rem; }
}
/* Browsers drop background colours when printing unless the user forces them, which
   would reverse the disc's number out of nothing. Outlined rather than reversed, so
   a printed copy of these conditions still arrives numbered. */
@media print {
    .rules li::before { background: transparent; color: var(--strict); border: 1px solid var(--strict); }
    .rules strong { text-decoration: underline; }
}

.key-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.75rem 0; }
.key-facts > div { padding: 1.25rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.key-facts dt { display: flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .4rem; }
.key-facts dd { margin: 0; color: var(--ink); font-size: 1.05rem; }
@media (max-width: 640px) { .key-facts { grid-template-columns: 1fr; } }

.photo-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.photo-trio img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
@media (max-width: 640px) { .photo-trio { grid-template-columns: 1fr 1fr; } .photo-trio img:first-child { grid-column: 1 / -1; } }

/* Fees */
.download-card {
    display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
    padding: 1.75rem 2rem; margin-bottom: 1.5rem;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.download-card__icon { width: 56px; height: 56px; border-radius: var(--radius); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.download-card__icon .icon { width: 28px; height: 28px; }
.download-card__text { flex: 1; min-width: 12rem; }
.download-card h2 { font-size: 1.6rem; margin-bottom: .2rem; }
.download-card p { color: var(--muted); }

.panel { padding: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.panel__label { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem !important; }
.panel :is(h2, .panel__heading) { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 1.25rem; }
.panel :is(h2, .panel__heading) .h2-sub { font-size: .68em; font-weight: 500; }

/* Map */
.coords { display: grid; gap: .5rem; margin: 0 0 1.5rem; }
.coords > div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.coords dt { color: var(--muted); }
.coords dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }
.coords dd span { color: var(--muted); font-weight: 400; }
.card .btn { align-self: flex-start; margin-top: auto; }

.route { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; margin-top: clamp(3rem, 6vw, 4.5rem); }
.route h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 1.75rem; }
.waypoints { position: relative; }
.waypoints::before { content: ""; position: absolute; left: 15px; top: 16px; bottom: 16px; width: 1px; background: var(--line-strong); }
.waypoints li { position: relative; display: flex; align-items: center; gap: 1rem; padding: .6rem 0; }
.waypoints__dot {
    position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; flex: none;
    display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-strong);
    font-size: .82rem; font-weight: 700; color: var(--ink);
}
.waypoints li:last-child .waypoints__dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.waypoints code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .95rem; color: var(--ink); }
.waypoints em { color: var(--accent); font-style: normal; font-weight: 600; }
.route__map { margin: 0; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.route__map img { width: 100%; border-radius: var(--radius-sm); }
@media (max-width: 860px) { .route { grid-template-columns: 1fr; } }

/* Contact */
.contact-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; padding-bottom: var(--section); }
.contact-info { display: grid; gap: 1rem; }
.contact-item { display: flex; gap: 1.1rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.contact-item__icon { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.contact-item__icon .icon { width: 20px; height: 20px; }
.contact-item h2 { font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.contact-item p { font-size: .97rem; }
.contact-item--primary { background: var(--dark); border-color: var(--dark); color: var(--on-dark-muted); }
.contact-item--primary h2 { color: var(--on-dark-muted); }
.contact-item--primary .contact-item__icon { background: rgba(241, 236, 228, .12); color: var(--on-dark); }
.contact-item__big { font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2rem); color: var(--on-dark); text-decoration: none; line-height: 1.2; }
.contact-item__big:hover { color: #fff; text-decoration: underline; }
.email-list { margin: 0; display: grid; gap: .65rem; }
.email-list dt { font-size: .88rem; color: var(--muted); }
.email-list dd { margin: 0; font-weight: 600; word-break: break-word; }
.email-list small { font-weight: 400; color: var(--muted); }
.email-list__hint { font-size: .85rem; line-height: 1.5; }

.form-card { padding: clamp(1.75rem, 4vw, 3rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.form-card h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: .4rem; }
.form-card__intro { color: var(--muted); margin-bottom: 2rem !important; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 1.35rem; }
.form-group label:not(.error) { display: block; margin-bottom: .45rem; font-size: .92rem; font-weight: 600; color: var(--ink); }
.form-group input, .form-group textarea {
    width: 100%; min-height: 52px; padding: .8rem 1rem;
    font: inherit; font-size: 1rem; color: var(--ink);
    background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius);
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.form-group textarea { min-height: 10rem; resize: vertical; line-height: 1.6; }
.form-group input:hover, .form-group textarea:hover { border-color: var(--muted); }
.form-group input:focus, .form-group textarea:focus {
    outline: none; background: var(--surface); border-color: var(--ink);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}
.form-group ::placeholder { color: var(--muted); opacity: .7; }

/* What the message is about: one card per mailbox. The real radio is kept and
   only hidden from the eye, so arrow keys, the required rule and a form re-render
   with the choice still selected all work as they do for any other field. What
   marks a card as chosen -- its outline, its tick, the line naming the desk it
   goes to -- is CSS reading :checked, so no script is involved. */
.choice-grid { min-width: 0; margin: 0 0 1.6rem; padding: 0; border: 0; }
.choice-grid__legend { display: table; padding: 0; margin-bottom: .4rem; font-size: .92rem; font-weight: 600; }
.choice-grid__req { margin-left: .1em; }
.choice-grid__hint { margin: 0 0 .9rem; font-size: .9rem; }
.choice-grid__options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
@media (max-width: 560px) { .choice-grid__options { grid-template-columns: 1fr; } }
.choice { position: relative; display: grid; grid-template-columns: 1fr auto; gap: .1rem .6rem; align-content: start; padding: 1.05rem 1.15rem 1.15rem; cursor: pointer; }
.choice__input {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
/* The frame carries the card's background, hairline and chosen wash. It is
   absolutely positioned, so it must be kept below the text: a positioned box
   would otherwise paint over the labels sitting in the card's own grid. */
.choice__frame { position: absolute; inset: 0; z-index: 0; border-radius: var(--radius); }
.choice__tick, .choice__title, .choice__hint, .choice__dest { position: relative; z-index: 1; }
.choice__tick { grid-column: 2; grid-row: 1; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.choice__tick .icon { width: 13px; height: 13px; stroke-width: 2.6; }
.choice__title { grid-column: 1; grid-row: 1; font-size: .97rem; font-weight: 600; }
.choice__hint { grid-column: 1 / -1; font-size: .85rem; line-height: 1.5; }
.choice__dest { grid-column: 1 / -1; display: none; margin-top: .55rem; font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.choice__input:checked ~ .choice__tick { opacity: 1; }
.choice__input:checked ~ .choice__dest { display: block; }
.choice__input:focus-visible ~ .choice__frame { outline: 2px solid currentColor; outline-offset: 3px; }
.error, label.error { display: block; margin: .4rem 0 0; font-size: .88rem; font-weight: 500; color: #a3261c; }
p.error { margin: 0 0 .4rem; }
input.error, textarea.error { border-color: #c4554b !important; }
/* Spam honeypot (includes/spam_guard.php): moved off-screen rather than
   display:none, because some bots skip fields that are display:none. */
.form-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-error { padding: 1rem 1.25rem; margin-bottom: 1.5rem !important; background: #fbecea; border-radius: var(--radius); color: #8a2018; }
.form-submit { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: .5rem; }
.form-submit__note { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--muted); margin: 0; }
.form-submit__note .icon { color: var(--success); }
#contact_submit:disabled { opacity: .6; cursor: wait; }
.thanks-box { text-align: center; padding: 2.5rem 1.5rem; border-radius: var(--radius-lg); background: var(--info-bg); }
.thanks-box__icon { width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: var(--success); color: #fff; }
.thanks-box__icon .icon { width: 28px; height: 28px; stroke-width: 2.2; }
.thanks-box__dest { font-size: .92rem; }
@media (max-width: 960px) { .contact-layout { grid-template-columns: 1fr; } }

/* Team */
.team-group + .team-group { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.team-group__title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); padding-bottom: 1rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2.5vw, 2rem); }
.team-member { margin: 0; }
.team-member__photo { overflow: hidden; border-radius: var(--radius-lg); background: var(--bg-alt); margin-bottom: 1rem; }
.team-member__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 22%; transition: transform .8s var(--ease); }
/* Shown when a team member's photo file is missing from team/. */
.team-member__initials { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 3.5rem); color: var(--muted); letter-spacing: .04em; }
.team-member:hover .team-member__photo img { transform: scale(1.03); }
.team-member figcaption strong { display: block; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.3rem; line-height: 1.25; margin-bottom: .25rem; }
.team-member figcaption span { display: block; font-size: .92rem; line-height: 1.5; color: var(--muted); }

/* Vacancies */
.job { padding: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.job__head { margin-bottom: 1.25rem; }
.job__head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: .75rem 0 0; }
.job__head em { font-style: normal; }
.job__tag { display: inline-block; padding: .3rem .8rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.job .checklist { margin: 0 0 1.25rem; }
.job__apply { display: flex; align-items: center; gap: .6rem; margin-top: 1.5rem !important; padding-top: 1.25rem; border-top: 1px solid var(--line); font-weight: 600; }
.job__apply .icon { color: var(--accent); }

/* Gallery + lightbox */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: clamp(.5rem, 1.2vw, .9rem); padding-bottom: var(--section); }
.gallery__item { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--bg-alt); }
.gallery__item img { width: 100%; aspect-ratio: 569 / 320; object-fit: cover; transition: transform .8s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__zoom {
    position: absolute; right: .75rem; bottom: .75rem; width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--ink);
    opacity: 0; transform: translateY(6px); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.gallery__item:hover .gallery__zoom, .gallery__item:focus-visible .gallery__zoom { opacity: 1; transform: none; }

.lightbox {
    position: fixed; inset: 0; z-index: 200;
    display: flex; align-items: center; justify-content: center; gap: 1rem;
    padding: 4rem 1rem; background: rgba(14, 19, 16, .94);
    opacity: 0; transition: opacity .25s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure { margin: 0; max-width: min(1100px, 100%); flex: 1; display: flex; flex-direction: column; align-items: center; }
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 11rem); width: auto; border-radius: var(--radius-sm); filter: none; }
.lightbox figcaption { width: 100%; display: flex; justify-content: space-between; gap: 1.5rem; padding-top: 1rem; color: rgba(255, 255, 255, .8); font-size: .95rem; }
.lightbox__count { flex: none; color: rgba(255, 255, 255, .55); }
.lightbox__close, .lightbox__nav {
    width: 48px; height: 48px; border-radius: 50%; flex: none;
    display: grid; place-items: center; cursor: pointer;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); color: #fff;
    transition: background .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .2); }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; }
.lightbox .icon { width: 22px; height: 22px; }
@media (max-width: 640px) {
    .lightbox__nav { position: absolute; bottom: 1rem; }
    .lightbox__prev { left: calc(50% - 56px); }
    .lightbox__next { right: calc(50% - 56px); }
}

/* Testimonials */
.testimonials-note { max-width: 50rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem) !important; padding-left: 1.25rem; border-left: 2px solid var(--line-strong); font-size: .92rem; color: var(--muted); }
.testimonials { columns: 2 22rem; column-gap: 1.5rem; padding-bottom: var(--section); }
.testimonial {
    break-inside: avoid; margin-bottom: 1.5rem; padding: clamp(1.75rem, 3.5vw, 2.5rem);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.testimonial::before { content: "\201C"; display: block; height: 2.2rem; font-family: var(--font-display); font-size: 4rem; line-height: 1; color: var(--accent); opacity: .45; }
.testimonial h3 { font-size: 1.65rem; margin-bottom: 1rem; }
.testimonial p { font-family: var(--font-display); font-size: 1.18rem; line-height: 1.55; color: var(--ink); margin-bottom: .7em; }

/* ---------------------------------------------------------------------------
 * 14. Closing call to action
 * ------------------------------------------------------------------------ */
.cta-band { position: relative; overflow: hidden; background: var(--dark); color: var(--on-dark-muted); isolation: isolate; }
.cta-band__media { position: absolute; inset: 0; z-index: -1; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; opacity: .5; filter: saturate(.75); }
.cta-band__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--dark) 20%, color-mix(in srgb, var(--dark) 70%, transparent) 60%, color-mix(in srgb, var(--dark) 30%, transparent) 100%); }
.cta-band__inner { padding-block: clamp(4.5rem, 9vw, 7rem); }
.cta-band .eyebrow { color: var(--on-dark); opacity: .85; }
.cta-band h2 { color: var(--on-dark); font-size: clamp(2.2rem, 4.2vw, 3.4rem); max-width: 40rem; margin-bottom: 1.25rem; }
.cta-band__text { max-width: 38rem; font-size: 1.12rem; margin-bottom: 2.25rem !important; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta-band .btn--primary { background: var(--on-dark); color: var(--ink); }
.cta-band .btn--primary:hover { background: #fff; color: var(--ink); }

/* ---------------------------------------------------------------------------
 * 15. Footer
 * ------------------------------------------------------------------------ */
.site-footer { background: var(--dark-2); color: var(--on-dark-muted); font-size: .95rem; }
.site-footer__grid {
    display: grid; grid-template-columns: 1.3fr 1fr 1.25fr 1fr; gap: clamp(2rem, 4vw, 3.5rem);
    padding-block: clamp(3.5rem, 7vw, 5.5rem) 3rem;
}
.footer-brand__logo { display: inline-block; margin-bottom: 1.25rem; }
.footer-brand__logo img { width: 112px; }
.footer-brand p { max-width: 18rem; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.45; color: var(--on-dark); }
.site-footer h2 { font-family: var(--font-body); font-size: .76rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 1.25rem; opacity: .8; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-col--nav ul { columns: 2; column-gap: 1.25rem; }
.footer-col--nav li { margin-bottom: .55rem; break-inside: avoid; }
.footer-col--contact p { margin-bottom: .75rem; line-height: 1.55; }
.footer-col--contact strong { display: block; font-weight: 400; font-size: .84rem; color: var(--on-dark-muted); }
.footer-col--contact hr { background: var(--on-dark-line); margin: 1rem 0; }
.footer-col--visit p { margin-bottom: 1rem; color: var(--on-dark); }
.footer-col--visit .link-arrow { color: var(--on-dark); }
.site-footer__base {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
    padding-block: 1.5rem; font-size: .84rem;
    background: linear-gradient(var(--on-dark-line), var(--on-dark-line)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
/* Social links close the footer's last column: quiet outlines, filled in on hover. */
.footer-social__list { display: flex; align-items: center; gap: .55rem; }
.site-footer .footer-social__link {
    display: grid; place-items: center; width: 38px; height: 38px;
    border: 1px solid var(--on-dark-line); border-radius: 50%;
    transition: color .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease);
}
.site-footer .footer-social__link:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); text-decoration: none; }
.footer-social__icon { width: 19px; height: 19px; vertical-align: 0; }
.footer-col--contact strong + br { display: none; }
@media (max-width: 1000px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
 * 16. Utilities: back to top, reveal, design switcher
 * ------------------------------------------------------------------------ */
.back-to-top {
    position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40;
    width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.back-to-top__icon { transform: rotate(-90deg); width: 20px; height: 20px; }
body.show-back-to-top .back-to-top { opacity: 1; visibility: visible; transform: none; }

.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
.js-reveal .cards > .reveal:nth-child(2), .js-reveal .steps > .reveal:nth-child(2), .js-reveal .mvv__grid > .reveal:nth-child(2) { transition-delay: .08s; }
.js-reveal .cards > .reveal:nth-child(3), .js-reveal .steps > .reveal:nth-child(3), .js-reveal .mvv__grid > .reveal:nth-child(3) { transition-delay: .16s; }
.js-reveal .steps > .reveal:nth-child(4) { transition-delay: .24s; }
.js-reveal .steps > .reveal:nth-child(5) { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.theme-switcher { position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 60; font: 13px/1.4 system-ui, -apple-system, 'Segoe UI', sans-serif; }
.theme-switcher summary {
    list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem;
    padding: .6rem 1rem; border-radius: 999px; background: #161616; color: #eee; box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}
.theme-switcher summary::-webkit-details-marker { display: none; }
.theme-switcher summary .fa { display: none; }
.theme-switcher summary strong { color: #fff; }
.theme-switcher ul { position: absolute; bottom: calc(100% + .5rem); left: 0; width: 17rem; padding: .4rem; background: #fff; border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, .25); }
.theme-switcher a { display: flex; gap: .75rem; align-items: center; padding: .6rem .7rem; border-radius: 8px; color: #222; text-decoration: none; }
.theme-switcher a:hover, .theme-switcher a[aria-current] { background: #f3f1ee; color: #222; }
.theme-switcher strong { color: #111; }
.theme-switcher small { display: block; color: #777; font-size: 12px; }
.theme-switcher__swatch { flex: none; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.theme-switcher__swatch--sanctuary  { background: linear-gradient(135deg, #f7f4ef 50%, #8e2f25 50%); }
.theme-switcher__swatch--wilderness { background: linear-gradient(135deg, #1c2621 50%, #b4643a 50%); }

@media print {
    .site-header, .cta-band, .back-to-top, .theme-switcher, .toc { display: none !important; }
    body { background: #fff; }
}
