@charset "utf-8";
/*
 * AFGSN - the whole design system: tokens, type, chrome, components.
 * Per-page sheets (normal-pages/css/{slug}-page.css) only add layout that
 * one page needs. Class prefix: af-.
 *
 * Palette: from the 'Battling the Odds' roundel and the BCT logo (cyan,
 * lime, magenta) over the navy the network already used (#0c243d).
 * Inspiration (charity brief 2026-10-30): Combat Stress (navy, condensed
 * capitals), GamCare (support-first cards), Help for Heroes (heavy display
 * headings with coloured words, a prominent Get help button).
 * Contrast: text colours on white are the -ink variants (>= 4.5:1); the
 * bright logo colours are used as text only on navy.
 */

/* ---------- fonts (self-hosted: no request to Google) ---------- */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../../fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: italic; font-weight: 400; font-display: swap; src: url("../../fonts/barlow-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../../fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../../fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("../../fonts/barlow-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../../fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../../fonts/barlow-condensed-700.woff2") format("woff2"); }

/* ---------- tokens ---------- */
:root {
    --af-navy-950: #061423;
    --af-navy-900: #081b2e;
    --af-navy: #0c243d;
    --af-navy-700: #163a5f;
    --af-navy-600: #234f7b;
    --af-cyan: #00b0f0;
    --af-cyan-ink: #00739f;
    --af-cyan-head: #0086bd;
    --af-magenta: #d4007a;
    --af-magenta-600: #ad0064;
    --af-magenta-on-dark: #ff5aac;
    --af-lime: #cddc29;
    --af-mist: #eef4f8;
    --af-mist-2: #e2ecf3;
    --af-line: #d5e0ea;
    --af-ink: #14263a;
    --af-ink-soft: #46586b;
    --af-on-dark: #d6e2ed;
    --af-white: #fff;
    --af-danger: #b3261e;
    --af-success: #1d7a45;
    --af-focus: #ffbf47;

    --af-radius: 12px;
    --af-radius-sm: 6px;
    --af-shadow: 0 12px 32px rgba(8, 27, 46, .09);
    --af-shadow-sm: 0 4px 14px rgba(8, 27, 46, .07);
    --af-container: 1200px;
    --af-gutter: 20px;
    --af-header-h: 92px;

    --af-font: "Barlow", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --af-display: "Barlow Condensed", "Arial Narrow", "Barlow", Arial, sans-serif;

    /* Heading highlights: darker on light backgrounds, logo-bright on navy. */
    --af-hl-cyan: var(--af-cyan-head);
    --af-hl-magenta: var(--af-magenta);
    --af-hl-lime: var(--af-navy-600);
}

.af-on-dark,
.af-section--navy,
.af-page-hero,
.af-cta--navy,
.af-footer {
    --af-hl-cyan: var(--af-cyan);
    --af-hl-magenta: var(--af-magenta-on-dark);
    --af-hl-lime: var(--af-lime);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--af-header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
    margin: 0;
    background: var(--af-white);
    color: var(--af-ink);
    font: 400 1.0625rem/1.65 var(--af-font);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 { margin: 0 0 .5em; color: inherit; }
h1, h2 { font-family: var(--af-display); font-weight: 700; line-height: 1.04; letter-spacing: .005em; }
h3 { font-size: 1.3rem; line-height: 1.25; font-weight: 700; }
h4 { font-size: 1.1rem; line-height: 1.3; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--af-cyan-ink); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--af-magenta); }
/* armedforces@beaconcounsellingtrust.co.uk is wider than a 390px phone. */
a[href^="mailto:"] { overflow-wrap: anywhere; }

:focus-visible {
    outline: 3px solid var(--af-focus);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px var(--af-navy);
}

.screen-reader-text {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.af-skip {
    position: absolute; left: 16px; top: -100px; z-index: 1000;
    padding: .75rem 1rem; background: var(--af-focus); color: var(--af-navy-950);
    font-weight: 700; border-radius: var(--af-radius-sm); text-decoration: none;
}
.af-skip:focus { top: 12px; }

.af-main { display: block; outline: none; }

.af-container {
    width: 100%;
    max-width: calc(var(--af-container) + 2 * var(--af-gutter));
    margin: 0 auto;
    padding: 0 var(--af-gutter);
}

.af-icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.22em; }
.af-flip { transform: scaleX(-1); }

/* The "medal ribbon": the three logo colours as a stripe. */
.af-ribbon {
    height: 6px;
    background: linear-gradient(90deg,
        var(--af-cyan) 0 46%, transparent 46% 47%,
        var(--af-lime) 47% 64%, transparent 64% 65%,
        var(--af-magenta) 65% 100%);
}

/* ---------- type helpers ---------- */
.af-eyebrow {
    margin: 0 0 .9rem;
    font: 600 .85rem/1.3 var(--af-font);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--af-hl-cyan);
}
.af-title {
    font-size: clamp(2rem, 3.6vw, 3.1rem);
    text-transform: uppercase;
    margin-bottom: .45em;
}
.af-title--sm { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.af-lead { font-size: 1.2rem; line-height: 1.6; color: var(--af-ink-soft); }
.af-on-dark .af-lead, .af-section--navy .af-lead { color: var(--af-on-dark); }
.af-hl-cyan { color: var(--af-hl-cyan); }
.af-hl-magenta { color: var(--af-hl-magenta); }
.af-hl-lime { color: var(--af-hl-lime); }

/* ---------- buttons & links ---------- */
.af-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 50px;
    padding: .7rem 1.35rem;
    border: 2px solid transparent;
    border-radius: var(--af-radius-sm);
    font: 700 1.125rem/1.1 var(--af-display);
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.af-btn .af-icon { width: 1.15em; height: 1.15em; transition: transform .2s; }
.af-btn:hover .af-icon:last-child { transform: translateX(3px); }
.af-btn--primary { background: var(--af-magenta); color: var(--af-white); }
.af-btn--primary:hover { background: var(--af-magenta-600); color: var(--af-white); }
.af-btn--cyan { background: var(--af-cyan); color: var(--af-navy-950); }
.af-btn--cyan:hover { background: #33c4f5; color: var(--af-navy-950); }
.af-btn--navy { background: var(--af-navy); color: var(--af-white); }
.af-btn--navy:hover { background: var(--af-navy-700); color: var(--af-white); }
.af-btn--ghost { background: transparent; color: var(--af-white); border-color: rgba(255, 255, 255, .7); }
.af-btn--ghost:hover { background: var(--af-white); color: var(--af-navy); border-color: var(--af-white); }
.af-btn--outline { background: transparent; color: var(--af-navy); border-color: var(--af-navy); }
.af-btn--outline:hover { background: var(--af-navy); color: var(--af-white); }

.af-btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.af-link-arrow {
    display: inline-flex; align-items: center; gap: .4rem;
    font: 700 1.05rem/1.2 var(--af-display); letter-spacing: .04em; text-transform: uppercase;
    color: var(--af-magenta); text-decoration: none;
}
.af-link-arrow .af-icon { transition: transform .2s; }
.af-link-arrow:hover { color: var(--af-magenta-600); }
.af-link-arrow:hover .af-icon { transform: translateX(3px); }
.af-link-arrow--back:hover .af-icon { transform: scaleX(-1) translateX(3px); }

.af-round-btn {
    display: inline-grid; place-items: center;
    width: 48px; height: 48px; border-radius: 50%;
    border: 2px solid var(--af-navy); background: var(--af-white); color: var(--af-navy);
    cursor: pointer; transition: background-color .2s, color .2s;
}
.af-round-btn:hover { background: var(--af-navy); color: var(--af-white); }
.af-round-btn[disabled] { opacity: .35; cursor: default; background: var(--af-white); color: var(--af-navy); }

.af-tag {
    display: inline-block; padding: .2rem .6rem; border-radius: 99px;
    background: var(--af-mist-2); color: var(--af-cyan-ink);
    font: 600 .75rem/1.4 var(--af-font); letter-spacing: .08em; text-transform: uppercase;
}
.af-tag--light { background: rgba(255, 255, 255, .14); color: var(--af-white); }

/* ---------- top bar ---------- */
.af-topbar { background: var(--af-navy-950); color: var(--af-on-dark); font-size: .92rem; }
.af-topbar__inner { display: flex; align-items: center; gap: 24px; min-height: 52px; }
.af-topbar a { color: var(--af-white); }
.af-topbar__led { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.af-topbar__led-text { font: 600 .8rem/1 var(--af-font); letter-spacing: .14em; text-transform: uppercase; color: var(--af-on-dark); }
.af-topbar__bct { display: inline-flex; padding: 4px 10px; background: var(--af-white); border-radius: 6px; }
.af-topbar__bct img { height: 30px; width: auto; }
.af-topbar__crisis { margin: 0 0 0 auto; display: flex; align-items: center; gap: .5rem; }
.af-topbar__crisis .af-icon { color: var(--af-lime); }
.af-topbar__crisis a { font-weight: 700; text-decoration: none; }
.af-topbar__crisis a:hover { text-decoration: underline; color: var(--af-white); }
.af-topbar__mail { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; }
.af-topbar__mail:hover span { text-decoration: underline; }
.af-topbar__mail .af-icon { color: var(--af-cyan); }

/* ---------- header ---------- */
.af-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--af-white);
    border-bottom: 1px solid var(--af-line);
    transition: box-shadow .2s;
}
.af-header.is-scrolled { box-shadow: 0 6px 24px rgba(8, 27, 46, .1); }
.af-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--af-header-h); }

.af-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--af-navy); flex: none; }
.af-brand__logo { width: 72px; height: 72px; }
.af-brand__name { font: 700 1.12rem/1 var(--af-display); text-transform: uppercase; letter-spacing: .03em; }
.af-brand__name span { display: block; }
.af-brand__name span:nth-child(2) { color: var(--af-cyan-head); }
.af-brand:hover { color: var(--af-navy); }

.af-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.af-nav__list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.af-nav__item { position: relative; display: flex; align-items: center; }
.af-nav__link {
    position: relative; display: block; padding: 10px 10px;
    color: var(--af-navy); font: 600 1.02rem/1.2 var(--af-font); text-decoration: none; white-space: nowrap;
}
.af-nav__link::after {
    content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 3px;
    background: var(--af-cyan); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.af-nav__item:hover > .af-nav__link::after,
.af-nav__item.is-current > .af-nav__link::after { transform: scaleX(1); }
.af-nav__item.is-current > .af-nav__link::after { background: var(--af-magenta); }
.af-nav__link:hover { color: var(--af-navy); }
.af-nav__toggle {
    display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: -6px;
    padding: 0; border: 0; background: none; color: var(--af-navy); cursor: pointer; border-radius: 4px;
}
.af-nav__toggle .af-icon { width: 18px; height: 18px; transition: transform .2s; }
.af-nav__toggle[aria-expanded="true"] .af-icon { transform: rotate(180deg); }

.af-nav__sub {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 10;
    min-width: 290px; margin: 0; padding: 10px 0; list-style: none;
    background: var(--af-white); border-top: 4px solid var(--af-cyan); border-radius: 0 0 10px 10px;
    box-shadow: var(--af-shadow);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .18s, transform .18s, visibility 0s .18s;
}
.af-nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 10px; } /* hover bridge */
.af-nav__item:hover > .af-nav__sub,
.af-nav__item:focus-within > .af-nav__sub,
.af-nav__item.is-open > .af-nav__sub {
    opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.af-nav__sub a {
    display: block; padding: 10px 20px; color: var(--af-ink); text-decoration: none; font-weight: 500; line-height: 1.35;
}
.af-nav__sub a:hover, .af-nav__sub a[aria-current="page"] { background: var(--af-mist); color: var(--af-navy); box-shadow: inset 4px 0 0 var(--af-magenta); }

.af-nav__cta .af-btn { min-height: 46px; padding: .6rem 1.1rem; }

.af-burger {
    display: none; margin-left: auto; align-items: center; gap: 8px;
    padding: 10px 12px; border: 2px solid var(--af-navy); border-radius: var(--af-radius-sm);
    background: var(--af-white); color: var(--af-navy); font: 700 1rem/1 var(--af-display);
    letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
}
.af-burger__close { display: none; }
.af-burger[aria-expanded="true"] .af-burger__open { display: none; }
.af-burger[aria-expanded="true"] .af-burger__close { display: inline; }
.af-burger .af-icon { width: 22px; height: 22px; vertical-align: middle; }

@media (max-width: 1180px) {
    :root { --af-header-h: 76px; }
    .af-brand__logo { width: 58px; height: 58px; }
    .af-burger { display: inline-flex; }
    .af-nav {
        position: absolute; left: 0; right: 0; top: 100%;
        display: none; flex-direction: column; align-items: stretch; gap: 0;
        max-height: calc(100vh - var(--af-header-h)); overflow-y: auto;
        background: var(--af-white); border-top: 1px solid var(--af-line);
        box-shadow: 0 18px 30px rgba(8, 27, 46, .18);
        padding: 8px var(--af-gutter) 24px;
    }
    .af-nav.is-open { display: flex; }
    .af-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .af-nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--af-line); }
    .af-nav__link { flex: 1; padding: 16px 4px; font-size: 1.1rem; }
    .af-nav__link::after { display: none; }
    .af-nav__item.is-current > .af-nav__link { color: var(--af-magenta); }
    .af-nav__toggle { width: 48px; height: 48px; margin: 0; }
    .af-nav__sub {
        position: static; flex-basis: 100%; min-width: 0; display: none;
        padding: 0 0 12px 12px; border: 0; box-shadow: none; border-radius: 0;
        opacity: 1; visibility: visible; transform: none; transition: none;
    }
    .af-nav__item:hover > .af-nav__sub, .af-nav__item:focus-within > .af-nav__sub { display: none; }
    .af-nav__item.is-open > .af-nav__sub { display: block; }
    .af-nav__sub a { padding: 10px 12px; }
    .af-nav__cta { padding-top: 20px; }
    .af-nav__cta .af-btn { width: 100%; min-height: 54px; }
}

@media (max-width: 760px) {
    .af-topbar__inner { flex-wrap: wrap; gap: 6px 16px; padding-top: 8px; padding-bottom: 8px; }
    .af-topbar__mail { display: none; }
    .af-topbar__crisis { margin: 0; font-size: .86rem; }
    .af-topbar__bct img { height: 24px; }
    .af-brand__name { font-size: 1rem; }
}
@media (max-width: 400px) {
    .af-brand__name { font-size: .92rem; }
    .af-burger__label { display: none; }
}

/* ---------- sections ---------- */
.af-section { padding: clamp(56px, 8vw, 100px) 0; }
.af-section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.af-section--light { background: var(--af-mist); }
.af-section--navy { background: var(--af-navy); color: var(--af-white); }
.af-section--navy a:not(.af-btn) { color: var(--af-cyan); }
.af-section--navy a:not(.af-btn):hover { color: var(--af-white); }
.af-section + .af-section--light, .af-section--light + .af-section--light { border-top: 1px solid var(--af-line); }

.af-section-head { max-width: 780px; margin-bottom: clamp(28px, 4vw, 44px); }
.af-section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.af-section-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.af-section-head--row .af-title { margin-bottom: 0; }

/* ---------- layout ---------- */
.af-grid { display: grid; gap: 24px; }
.af-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.af-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.af-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.af-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.af-split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.af-split--media-left > :first-child { order: 2; }
.af-split--top { align-items: start; }

@media (max-width: 1024px) {
    .af-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .af-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .af-split, .af-split--even { grid-template-columns: minmax(0, 1fr); }
    .af-split--media-left > :first-child { order: 0; }
}
@media (max-width: 640px) {
    .af-grid--2, .af-grid--3, .af-grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- inner page hero ---------- */
.af-page-hero {
    position: relative; overflow: hidden;
    background-color: var(--af-navy);
    /* Rank chevrons - three stacked, very faint, off to the right. */
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 260'%3E%3Cg fill='%2300b0f0' fill-opacity='.09'%3E%3Cpath d='M0 70 150 0l150 70v40L150 40 0 110z'/%3E%3Cpath d='M0 145 150 75l150 70v40L150 115 0 185z'/%3E%3Cpath d='M0 220 150 150l150 70v40L150 190 0 260z'/%3E%3C/g%3E%3C/svg%3E"),
        radial-gradient(1200px 500px at 85% -10%, rgba(0, 176, 240, .16), transparent 60%);
    background-repeat: no-repeat;
    background-position: right max(-60px, calc((100vw - 1240px) / 2 - 40px)) center, center;
    background-size: min(440px, 60vw) auto, auto;
    color: var(--af-white);
}
.af-page-hero__inner { display: grid; gap: 40px; padding-top: clamp(40px, 6vw, 76px); padding-bottom: clamp(44px, 6vw, 80px); }
.af-page-hero--image .af-page-hero__inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; }
.af-page-hero__text { max-width: 820px; }
.af-page-hero__title { font-size: clamp(2.5rem, 5.6vw, 4.4rem); text-transform: uppercase; margin-bottom: .3em; }
.af-page-hero__title--post { font-size: clamp(2rem, 4vw, 3.2rem); text-transform: none; line-height: 1.08; }
.af-page-hero__intro { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--af-on-dark); max-width: 720px; }
.af-page-hero__media img { width: 100%; border-radius: var(--af-radius); box-shadow: 0 24px 48px rgba(0, 0, 0, .3); }
.af-page-hero .af-ribbon { position: absolute; left: 0; right: 0; bottom: 0; }
@media (max-width: 860px) { .af-page-hero--image .af-page-hero__inner { grid-template-columns: minmax(0, 1fr); } }

.af-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; font-size: .92rem; color: var(--af-on-dark); }
.af-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.af-crumbs a { color: var(--af-white); text-decoration: none; }
.af-crumbs a:hover { text-decoration: underline; color: var(--af-white); }
.af-post-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--af-on-dark); font-weight: 500; }

/* ---------- cards ---------- */
.af-card {
    position: relative; display: flex; flex-direction: column;
    padding: clamp(22px, 2.6vw, 32px);
    background: var(--af-white); border: 1px solid var(--af-line); border-radius: var(--af-radius);
    box-shadow: var(--af-shadow-sm);
}
.af-card > :last-child { margin-bottom: 0; }
.af-card h3 { margin-bottom: .45em; }
.af-card--top-cyan { border-top: 5px solid var(--af-cyan); }
.af-card--top-magenta { border-top: 5px solid var(--af-magenta); }
.af-card--top-lime { border-top: 5px solid var(--af-lime); }
.af-card--top-navy { border-top: 5px solid var(--af-navy); }
.af-card--navy { background: var(--af-navy); color: var(--af-white); border-color: var(--af-navy); }
.af-card--mist { background: var(--af-mist); box-shadow: none; }
.af-card__foot { margin-top: auto; padding-top: 18px; }

/* A whole card as one link (support channels, resources). */
.af-card--link { text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s; }
.af-card--link:hover { transform: translateY(-4px); box-shadow: var(--af-shadow); border-color: var(--af-cyan); color: inherit; }
.af-card--link .af-link-arrow { margin-top: auto; padding-top: 16px; }

.af-badge {
    display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px;
    border-radius: 14px; background: rgba(0, 176, 240, .14); color: var(--af-cyan-ink); flex: none;
}
.af-badge .af-icon { width: 28px; height: 28px; }
.af-badge--magenta { background: rgba(212, 0, 122, .1); color: var(--af-magenta); }
.af-badge--lime { background: rgba(205, 220, 41, .3); color: #4f5600; }
.af-badge--navy { background: var(--af-navy); color: var(--af-cyan); }

/* ---------- lists ---------- */
.af-checklist { margin: 0 0 1.2em; padding: 0; list-style: none; }
.af-checklist li { position: relative; padding: .35em 0 .35em 2.2em; }
.af-checklist li::before {
    content: ""; position: absolute; left: 0; top: .5em; width: 1.45em; height: 1.45em; border-radius: 50%;
    background: var(--af-cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23081b2e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.af-checklist--magenta li::before { background-color: var(--af-lime); }

.af-steps { counter-reset: af-step; margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.af-steps li { counter-increment: af-step; position: relative; padding-left: 64px; min-height: 48px; }
.af-steps li::before {
    content: counter(af-step); position: absolute; left: 0; top: 0;
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
    background: var(--af-navy); color: var(--af-lime); font: 700 1.4rem/1 var(--af-display);
}

/* ---------- stat callout ---------- */
.af-stat { display: flex; gap: 22px; align-items: flex-start; }
.af-stat__num { font: 700 clamp(4rem, 9vw, 6.5rem)/.85 var(--af-display); color: var(--af-hl-magenta); letter-spacing: -.01em; }
.af-stat__text { font-size: 1.15rem; line-height: 1.5; padding-top: 6px; }

/* ---------- alerts ---------- */
.af-alert {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 20px 24px; border-radius: var(--af-radius);
    background: #fff4d6; border-left: 6px solid #e0a000; color: var(--af-ink);
}
.af-alert .af-icon { width: 28px; height: 28px; color: #9a6b00; margin-top: 2px; }
.af-alert p { margin: 0; }
.af-alert a { color: var(--af-ink); font-weight: 700; }

/* ---------- video ---------- */
.af-video { margin: 0; }
.af-video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--af-radius); overflow: hidden; background: var(--af-navy-950); box-shadow: var(--af-shadow); }
.af-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.af-video__play { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.af-video__thumb { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, filter .4s; filter: saturate(.95) brightness(.85); }
.af-video__play:hover .af-video__thumb { transform: scale(1.03); filter: none; }
.af-video__icon {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%;
    background: var(--af-magenta); color: var(--af-white); box-shadow: 0 0 0 10px rgba(212, 0, 122, .25);
    transition: transform .2s;
}
.af-video__icon .af-icon { width: 34px; height: 34px; margin-left: 5px; }
.af-video__play:hover .af-video__icon { transform: translate(-50%, -50%) scale(1.07); }
.af-video__caption { margin-top: 12px; font-weight: 600; }
.af-video__note { display: block; font-weight: 400; font-size: .85rem; opacity: .75; }

/* ---------- quotes carousel ---------- */
.af-quotes__track {
    display: grid; grid-auto-flow: column; grid-auto-columns: min(400px, 86%); gap: 20px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
    padding: 6px 2px 18px; scrollbar-width: thin;
}
.af-quote {
    scroll-snap-align: start; margin: 0; display: flex; flex-direction: column;
    padding: 28px; background: var(--af-white); border-radius: var(--af-radius); border: 1px solid var(--af-line);
    box-shadow: var(--af-shadow-sm);
}
.af-quote__mark { color: var(--af-magenta); }
.af-quote__mark .af-icon { width: 36px; height: 36px; }
.af-quote blockquote { margin: 12px 0 18px; font-size: 1.08rem; line-height: 1.6; }
.af-quote figcaption { margin-top: auto; font: 700 1.1rem/1.2 var(--af-display); text-transform: uppercase; letter-spacing: .04em; color: var(--af-navy); }
.af-quotes__nav { display: flex; gap: 10px; margin-top: 8px; }
/* One card per screen on phones: let each be its own height rather than the longest quote's. */
@media (max-width: 640px) { .af-quotes__track { align-items: start; } }

/* ---------- news ---------- */
.af-news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px; }
.af-news-card { background: var(--af-white); border-radius: var(--af-radius); overflow: hidden; box-shadow: var(--af-shadow-sm); border: 1px solid var(--af-line); transition: transform .2s, box-shadow .2s; }
.af-news-card:hover { transform: translateY(-4px); box-shadow: var(--af-shadow); }
.af-news-card[hidden] { display: none; }
.af-news-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.af-news-card__link:hover { color: inherit; }
.af-news-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--af-mist); }
.af-news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.af-news-card:hover .af-news-card__media img { transform: scale(1.04); }
.af-news-card__placeholder { display: grid; place-items: center; height: 100%; color: var(--af-cyan-ink); }
.af-news-card__placeholder .af-icon { width: 48px; height: 48px; }
.af-news-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.af-news-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; font-size: .88rem; color: var(--af-ink-soft); }
.af-news-card__title { font-size: 1.25rem; line-height: 1.28; margin-bottom: .5em; color: var(--af-navy); }
.af-news-card__excerpt { color: var(--af-ink-soft); font-size: .98rem; }
.af-news-card__more { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: .35rem; font: 700 1rem/1 var(--af-display); text-transform: uppercase; letter-spacing: .05em; color: var(--af-magenta); }

.af-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.af-filter {
    padding: .55rem 1.1rem; border-radius: 99px; border: 2px solid var(--af-line); background: var(--af-white);
    color: var(--af-navy); font: 600 .95rem/1 var(--af-font); cursor: pointer;
}
.af-filter:hover { border-color: var(--af-navy); }
.af-filter[aria-pressed="true"] { background: var(--af-navy); border-color: var(--af-navy); color: var(--af-white); }

/* ---------- gallery ---------- */
.af-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.af-gallery__item { position: relative; margin: 0; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--af-mist); }
.af-gallery__item button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.af-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.af-gallery__item:hover img { transform: scale(1.05); }
.af-lightbox { width: min(1100px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: var(--af-radius); background: var(--af-navy-950); color: var(--af-white); }
.af-lightbox::backdrop { background: rgba(6, 20, 35, .88); }
.af-lightbox img { width: 100%; max-height: calc(92vh - 70px); object-fit: contain; }
.af-lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 18px; }
.af-lightbox__bar p { margin: 0; font-size: .95rem; color: var(--af-on-dark); }
.af-lightbox__close { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: var(--af-white); cursor: pointer; }
.af-lightbox__close:hover { background: var(--af-magenta); }

/* ---------- CTA band ---------- */
.af-cta { padding: clamp(44px, 6vw, 72px) 0; }
.af-cta--navy { background: var(--af-navy); color: var(--af-white); }
.af-cta--light { background: var(--af-mist); }
.af-cta--magenta { background: var(--af-magenta); color: var(--af-white); --af-hl-cyan: var(--af-white); }
.af-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 48px; }
.af-cta__text { max-width: 720px; }
.af-cta__title { font-size: clamp(1.9rem, 3.4vw, 2.8rem); text-transform: uppercase; margin-bottom: .25em; }
.af-cta__text p { font-size: 1.15rem; margin: 0; }
.af-cta--navy .af-cta__text p { color: var(--af-on-dark); }
.af-cta .af-btn-row { margin-top: 0; }

/* ---------- prose (post bodies, text pages) ---------- */
.af-prose { max-width: 760px; font-size: 1.1rem; }
.af-prose h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); text-transform: uppercase; margin-top: 1.4em; }
.af-prose h3 { margin-top: 1.4em; }
.af-prose ul, .af-prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.af-prose li { margin-bottom: .35em; }
.af-prose li::marker { color: var(--af-magenta); }
.af-prose blockquote { margin: 1.6em 0; padding: .2em 0 .2em 1.3em; border-left: 5px solid var(--af-magenta); font-size: 1.2rem; color: var(--af-navy); }
.af-prose a { word-break: break-word; }
.af-prose .af-video { margin: 1.8em 0; }
.af-prose > :first-child { margin-top: 0; }

.af-section--article { padding-top: clamp(36px, 5vw, 56px); }
.af-article { display: grid; justify-items: center; }
.af-article > * { width: 100%; max-width: 760px; }
.af-article__image { margin: 0 0 36px; }
.af-article__image { display: grid; place-items: center; background: var(--af-mist); border-radius: var(--af-radius); }
/* Posters and magazine pages are portrait: cap them rather than fill a screen and a half. */
.af-article__image img { width: auto; max-width: 100%; max-height: min(75vh, 720px); border-radius: var(--af-radius); box-shadow: var(--af-shadow); }
.af-article__back { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--af-line); }

/* ---------- profiles (team) ---------- */
.af-profile { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.af-profile + .af-profile { margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--af-line); }
.af-profile__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 6px solid var(--af-white); box-shadow: 0 0 0 4px var(--af-cyan), var(--af-shadow); }
.af-profile:nth-child(2) .af-profile__photo img { box-shadow: 0 0 0 4px var(--af-magenta), var(--af-shadow); }
.af-profile:nth-child(3) .af-profile__photo img { box-shadow: 0 0 0 4px var(--af-lime), var(--af-shadow); }
.af-profile__name { font: 700 clamp(1.8rem, 3vw, 2.4rem)/1.05 var(--af-display); text-transform: uppercase; margin-bottom: .2em; color: var(--af-navy); }
.af-profile__role { margin-bottom: 1.1em; font-weight: 600; color: var(--af-cyan-ink); }
.af-profile blockquote { margin: 1.4em 0 0; padding: 1.1em 1.4em; background: var(--af-mist); border-left: 5px solid var(--af-magenta); border-radius: 0 10px 10px 0; font-size: 1.1rem; color: var(--af-navy); }
@media (max-width: 700px) {
    .af-profile { grid-template-columns: minmax(0, 1fr); }
    .af-profile__photo { max-width: 200px; }
}

/* ---------- logo + text rows (awards, programmes) ---------- */
.af-logo-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.af-logo-row__logo { display: grid; place-items: center; padding: 20px; background: var(--af-white); border-radius: var(--af-radius); border: 1px solid var(--af-line); min-height: 160px; }
.af-logo-row__logo img { max-height: 200px; width: auto; }
@media (max-width: 640px) {
    .af-logo-row { grid-template-columns: minmax(0, 1fr); }
    .af-logo-row__logo { justify-self: start; min-height: 0; }
    .af-logo-row__logo img { max-height: 140px; }
}

/* ---------- downloads ---------- */
.af-download { display: flex; gap: 18px; align-items: flex-start; }
.af-download__meta { font-size: .9rem; color: var(--af-ink-soft); margin: .2em 0 .8em; }

/* ---------- partner carousel ---------- */
.af-partners { padding: 44px 0 52px; background: var(--af-white); border-top: 1px solid var(--af-line); }
.af-partners__title { margin: 0 0 28px; text-align: center; font: 600 1rem/1.3 var(--af-font); letter-spacing: .14em; text-transform: uppercase; color: var(--af-ink-soft); }
.af-partners__viewport {
    display: flex; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.af-partners__list {
    flex: none; display: flex; align-items: center; gap: 64px; margin: 0; padding: 0 32px; list-style: none;
    animation: af-marquee 42s linear infinite;
}
.af-partners__viewport:hover .af-partners__list,
.af-partners__viewport:focus-within .af-partners__list { animation-play-state: paused; }
.af-partners__item { flex: none; display: grid; place-items: center; height: 84px; }
.af-partners__item img { max-height: 84px; max-width: 220px; width: auto; height: auto; }
.af-partners__item.is-member img { max-height: 70px; }
.af-partners__item a { display: block; border-radius: 6px; }
@keyframes af-marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
    .af-partners__viewport { flex-wrap: wrap; justify-content: center; -webkit-mask-image: none; mask-image: none; }
    .af-partners__list { animation: none; flex-wrap: wrap; justify-content: center; gap: 32px 48px; }
    .af-partners__list[aria-hidden="true"] { display: none; }
}

/* ---------- footer ---------- */
.af-footer { background: var(--af-navy-900); color: var(--af-on-dark); font-size: 1rem; }
.af-footer a { color: var(--af-white); text-decoration: none; }
.af-footer a:hover { color: var(--af-cyan); text-decoration: underline; }
.af-footer__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1.25fr); gap: 40px; padding-top: 64px; padding-bottom: 56px; }
.af-footer__brand img { width: 96px; height: 96px; margin-bottom: 18px; background: var(--af-white); border-radius: 50%; padding: 4px; }
.af-footer__heading { margin: 0 0 16px; font: 700 1.2rem/1.1 var(--af-display); letter-spacing: .06em; text-transform: uppercase; color: var(--af-cyan); }
.af-footer__links { margin: 0; padding: 0; list-style: none; }
.af-footer__links li { margin-bottom: 10px; }
.af-footer__contact p { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.af-footer__contact .af-icon { color: var(--af-cyan); margin-top: 3px; }
.af-footer__crisis { display: block !important; margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: rgba(255, 255, 255, .06); font-size: .95rem; }
.af-socials { display: flex; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.af-socials a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.af-socials a:hover { background: var(--af-cyan); color: var(--af-navy-950); }
.af-socials .af-icon { width: 22px; height: 22px; }
.af-footer__legal { background: var(--af-navy-950); font-size: .9rem; }
.af-footer__legal-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 18px; }
.af-footer__legal p { margin: 0; }
@media (max-width: 1024px) { .af-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .af-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 48px; } }

/* ---------- forms ---------- */
.af-form-wrap { max-width: 760px; }
.af-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 20px; }
.af-field { grid-column: 1 / -1; margin: 0; padding: 0; border: 0; min-width: 0; }
.af-field--half { grid-column: auto; }
@media (max-width: 600px) { .af-field--half { grid-column: 1 / -1; } }
.af-field label, .af-field legend { display: block; margin-bottom: 6px; font-weight: 600; color: var(--af-navy); }
.af-field legend { padding: 0; }
.af-req { color: var(--af-magenta); }
.af-optional { font-weight: 400; color: var(--af-ink-soft); font-size: .92em; }
.af-field__hint { margin: -2px 0 8px; font-size: .92rem; color: var(--af-ink-soft); }
.af-field input, .af-field select, .af-field textarea {
    width: 100%; padding: .8rem 1rem; border: 2px solid #b9c8d6; border-radius: 8px;
    background: var(--af-white); color: var(--af-ink); font: inherit; font-size: 1.05rem; line-height: 1.4;
    transition: border-color .15s, box-shadow .15s;
}
.af-field select { appearance: none; padding-right: 2.6rem; background: var(--af-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c243d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right .9rem center / 18px no-repeat; }
.af-field textarea { min-height: 130px; resize: vertical; }
.af-field input:focus, .af-field select:focus, .af-field textarea:focus { border-color: var(--af-cyan-ink); box-shadow: 0 0 0 4px rgba(0, 176, 240, .25); outline: none; }
.af-field.has-error input, .af-field.has-error select, .af-field.has-error textarea { border-color: var(--af-danger); }
.af-field__error { margin: 6px 0 0; color: var(--af-danger); font-weight: 600; font-size: .95rem; }
.af-check { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-weight: 400 !important; color: var(--af-ink) !important; cursor: pointer; }
.af-check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--af-magenta); }
.af-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.af-form__privacy { margin: 24px 0 20px; font-size: .95rem; color: var(--af-ink-soft); }
.af-form__submit { min-width: 220px; }
.af-form-errors { margin-bottom: 24px; padding: 18px 22px; background: #fdeceb; border-left: 6px solid var(--af-danger); border-radius: 8px; }
.af-form-errors ul { margin: 8px 0 0; padding-left: 1.2em; }
.af-form-errors a { color: var(--af-danger); font-weight: 600; }
.af-form-thanks { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; padding: 26px 28px; background: #e8f6ee; border-left: 6px solid var(--af-success); border-radius: 10px; }
.af-form-thanks > :not(svg) { grid-column: 2; }
.af-form-thanks__icon { grid-row: span 2; width: 40px; height: 40px; color: var(--af-success); }
.af-form-panel { padding: clamp(24px, 4vw, 44px); background: var(--af-white); border-radius: var(--af-radius); box-shadow: var(--af-shadow); border-top: 6px solid var(--af-magenta); }

/* ---------- misc ---------- */
.af-center { text-align: center; }
.af-mt-0 { margin-top: 0 !important; }
.af-mb-0 { margin-bottom: 0 !important; }
.af-muted { color: var(--af-ink-soft); }
.af-media-frame img { width: 100%; border-radius: var(--af-radius); box-shadow: var(--af-shadow); }
.af-pagination { margin-top: 40px; }

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

@media print {
    .af-topbar, .af-header, .af-partners, .af-footer, .af-cta, .af-video { display: none !important; }
    .af-page-hero { background: none !important; color: #000 !important; }
}
