/*
    afrofootball dark editorial theme.

    Design tokens, self-hosted fonts and the site shell (utility bar, header,
    navigation, newsletter, footer). Replaces the retired Grunt/Sass main.css.
    Per-screen styles are added as each template is reskinned; the compat layer
    at the bottom keeps not-yet-reskinned pages legible on the dark background.
*/

/* ---- fonts (self-hosted, latin subset) ---- */
@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 400 800;               /* variable font, covers the whole range */
    font-display: swap;
    src: url(archivo-latin-var.woff2) format('woff2');
}
@font-face {
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(barlow-600-latin.woff2) format('woff2');
}

/* ---- design tokens ---- */
:root {
    --accent: #93b73c;
    --on-accent: #0f100c;

    --bg: #0f0f10;
    --bg-page: #101012;
    --bg-util: #0a0a0b;
    --panel: #17181a;
    --panel-2: #141416;

    --text: #f2f2ee;
    --text-strong: #f7f7f2;
    --text-2: #c4c4bb;
    --text-3: #b9b9b1;
    --text-muted: #8b8b84;
    --nav-text: #e3e3dd;

    --border: rgba(255,255,255,0.09);
    --border-soft: rgba(255,255,255,0.08);
    --border-strong: rgba(255,255,255,0.16);
    --hover-bg: rgba(255,255,255,0.07);

    --gold: #d3a53c;
    --crimson: #b0402c;

    --shadow-card: 0 12px 30px rgba(0,0,0,0.35);
    --shadow-panel: 0 18px 44px rgba(0,0,0,0.4);
    --glow-accent: 0 0 80px rgba(147,183,60,0.16);

    --maxw: 1280px;
    --pad: 30px;

    --font-head: 'Barlow', 'Archivo', Arial, sans-serif;
    --font-body: 'Archivo', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---- base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--on-accent); }
a { color: var(--accent); transition: color .2s, background .2s, border-color .2s; }
img { max-width: 100%; }
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.01em; }

.afb-container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* eyebrow / label */
.afb-eyebrow {
    font-size: 12px; font-weight: 800; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--accent);
}

/* ---- animations ---- */
@keyframes afb-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes afb-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes afb-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes afb-fadein { from { opacity: 0; } to { opacity: 1; } }
.afb-rise { animation: afb-rise 1s cubic-bezier(.22,.61,.36,1) both; animation-delay: .05s; }
.afb-pulse { animation: afb-pulse 1.6s ease-in-out infinite; }
.afb-page { animation: afb-fadein .5s ease both; }
@media (prefers-reduced-motion: reduce) {
    .afb-marquee-track, .afb-rise, .afb-pulse, .afb-page { animation: none !important; }
}

/* three-colour rule strip (gold / green / crimson) */
.afb-rule {
    height: 3px;
    background: linear-gradient(90deg,
        var(--gold) 0%, var(--gold) 33.4%,
        var(--accent) 33.4%, var(--accent) 66.7%,
        var(--crimson) 66.7%, var(--crimson) 100%);
}

/* ---- utility bar ---- */
.afb-util { border-bottom: 1px solid var(--border-soft); background: var(--bg-util); }
.afb-util__inner {
    max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
    height: 38px; display: flex; align-items: center; justify-content: space-between;
    font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
    color: var(--text-muted); text-transform: uppercase;
}
.afb-util__links { display: flex; align-items: center; gap: 16px; }
.afb-util a { color: var(--text-3); text-decoration: none; }
.afb-util a:hover { color: var(--accent); }
.afb-util__social { display: flex; align-items: center; gap: 7px; }
.afb-util__social a {
    width: 20px; height: 20px; border-radius: 99px;
    background: rgba(255,255,255,0.12); color: var(--text);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800;
}
.afb-util__social a:hover { background: var(--accent); color: var(--on-accent); }

/* ---- header + nav ---- */
.afb-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(15,15,16,0.9); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.afb-header__inner {
    max-width: var(--maxw); margin: 0 auto; padding: 0 22px;
    height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.afb-logo { text-decoration: none; display: flex; align-items: center; }
.afb-logo img { height: 26px; width: auto; display: block; }

.afb-nav { display: flex; align-items: center; gap: 2px; }
.afb-nav > a, .afb-dd > button {
    position: relative; text-decoration: none; color: var(--nav-text);
    font-family: inherit; font-weight: 600; font-size: 13.5px;
    padding: 9px 11px; border-radius: 9px; white-space: nowrap;
    border: none; background: transparent; cursor: pointer;
    display: flex; align-items: center; gap: 6px;
}
.afb-nav > a:hover, .afb-dd > button:hover { background: var(--hover-bg); }
.afb-nav > a.is-active::after, .afb-dd.is-active > button::after {
    content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px;
    height: 2px; border-radius: 2px; background: var(--accent);
}

/* dropdown */
.afb-dd { position: relative; }
.afb-dd-menu {
    position: absolute; top: calc(100% + 4px); right: 0;
    min-width: 180px; background: var(--panel-2);
    border: 1px solid rgba(255,255,255,0.12); border-radius: 13px; padding: 7px;
    box-shadow: 0 18px 44px rgba(0,0,0,0.5);
    display: flex; flex-direction: column; gap: 2px;
    opacity: 0; visibility: hidden; transform: translateY(8px); pointer-events: none;
    transition: opacity .22s, transform .22s, visibility .22s; z-index: 60;
}
.afb-dd:hover .afb-dd-menu, .afb-dd:focus-within .afb-dd-menu {
    opacity: 1; visibility: visible; transform: none; pointer-events: auto;
}
.afb-dd-menu a {
    text-decoration: none; color: var(--nav-text); font-weight: 600; font-size: 14px;
    padding: 10px 13px; border-radius: 9px;
}
.afb-dd-menu a:hover { background: var(--hover-bg); color: var(--text-strong); }

/* header actions */
.afb-header__actions { display: flex; align-items: center; gap: 10px; }
.afb-iconbtn {
    width: 40px; height: 40px; border-radius: 10px;
    border: 1px solid var(--border-strong); background: transparent; color: var(--text-3);
    cursor: pointer; display: flex; align-items: center; justify-content: center; text-decoration: none;
}
.afb-iconbtn:hover { border-color: rgba(255,255,255,0.4); color: var(--text); }
.afb-btn {
    display: inline-block; border: none; background: var(--accent); color: var(--on-accent);
    font-weight: 800; font-size: 13px; padding: 10px 16px; border-radius: 10px;
    cursor: pointer; letter-spacing: 0.01em; white-space: nowrap; text-decoration: none;
}
.afb-btn:hover { filter: brightness(1.08); }
.afb-btn:active { transform: scale(0.98); }

/* mobile nav toggle (shown < 960px, wired in the responsive pass) */
.afb-nav-toggle { display: none; }

/* ---- live-results ticker (marquee) ---- */
.afb-marquee {
    background: var(--panel-2); border-bottom: 1px solid var(--border-soft);
    overflow: hidden; display: flex; align-items: stretch;
}
.afb-marquee__label {
    flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 0 20px;
    background: var(--accent); color: var(--on-accent);
    font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
.afb-marquee__dot { width: 7px; height: 7px; border-radius: 99px; background: var(--on-accent); flex: 0 0 auto; }
.afb-marquee__viewport {
    flex: 1; overflow: hidden; position: relative; min-width: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.afb-marquee-track { display: flex; width: max-content; animation: afb-marquee 46s linear infinite; will-change: transform; }
.afb-marquee:hover .afb-marquee-track { animation-play-state: paused; }
.afb-marquee__item {
    display: flex; align-items: center; gap: 9px; padding: 0 22px; height: 42px;
    border-right: 1px solid rgba(255,255,255,0.07);
    font-size: 13px; color: var(--text-3); white-space: nowrap; text-decoration: none;
}
.afb-marquee__item b { color: var(--text); font-weight: 700; }
.afb-marquee__score { font-weight: 800; color: var(--accent); }
.afb-marquee__item:hover b, .afb-marquee__item:hover .afb-marquee__away { color: var(--text-strong); }

/* ---- main content shell ---- */
.afb-main { min-height: 40vh; }
.afb-main > .afb-container { padding-top: 40px; padding-bottom: 40px; }
.afb-content { max-width: none; }
.afb-narrow { max-width: 920px; }        /* editorial column (news, article) */

/* ---- newsletter ---- */
.afb-newsletter { max-width: var(--maxw); margin: 0 auto; padding: 10px var(--pad) 56px; }
.afb-newsletter__panel {
    position: relative; overflow: hidden; border-radius: 24px;
    background: radial-gradient(700px 300px at 85% -20%, rgba(147,183,60,0.12), transparent 60%), var(--panel);
    border: 1px solid var(--border); padding: 46px 52px;
    display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap;
}
.afb-newsletter__img {
    position: absolute; top: 0; right: 0; height: 100%; width: 48%;
    object-fit: cover; object-position: center 30%; opacity: 0.34; pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.8) 48%, #000 78%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.8) 48%, #000 78%);
}
.afb-newsletter__text { max-width: 520px; position: relative; }
.afb-newsletter__text h2 { margin: 0 0 8px; font-size: 30px; color: var(--text); }
.afb-newsletter__text p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-3); }
.afb-newsletter__form {
    display: flex; gap: 10px; flex: 1; min-width: 320px; max-width: 440px; position: relative;
}
.afb-newsletter__form input {
    flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--border-strong);
    border-radius: 11px; padding: 14px 18px; color: var(--text); font-family: inherit; font-size: 14.5px;
}
.afb-newsletter__form button {
    border: none; background: var(--accent); color: var(--on-accent); font-weight: 800;
    font-size: 14.5px; padding: 14px 24px; border-radius: 11px; cursor: pointer; white-space: nowrap;
}
.afb-newsletter__form button:hover { filter: brightness(1.08); }

/* ---- footer ---- */
.afb-footer { background: var(--bg-util); color: var(--nav-text); }
.afb-footer__cols {
    max-width: var(--maxw); margin: 0 auto; padding: 52px var(--pad) 40px;
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px;
}
.afb-footer__cols img { height: 20px; width: auto; display: block; margin-bottom: 18px; }
.afb-footer__about { margin: 0; font-size: 14px; line-height: 1.7; color: #94948c; max-width: 320px; }
.afb-footer__head {
    font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: #696962; margin-bottom: 16px;
}
.afb-footer__links { display: flex; flex-direction: column; gap: 10px; }
.afb-footer__links a { text-decoration: none; color: #c2c2ba; font-size: 14px; }
.afb-footer__links a:hover { color: var(--text-strong); }
.afb-footer__bar { border-top: 1px solid var(--border-soft); }
.afb-footer__bar > div {
    max-width: var(--maxw); margin: 0 auto; padding: 20px var(--pad);
    display: flex; align-items: center; justify-content: space-between;
    font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; color: #696962; text-transform: uppercase;
}

/* ---- shared page furniture (breadcrumb, title, lede) ---- */
.afb-crumbs {
    display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
    font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--text-muted);
}
.afb-crumbs a { color: var(--text-muted); text-decoration: none; }
.afb-crumbs a:hover { color: var(--accent); }
.afb-crumbs__cur { color: var(--accent); }
.afb-title {
    margin: 0 0 12px; font-family: var(--font-head); font-weight: 600;
    font-size: 56px; letter-spacing: -0.015em; color: var(--text); line-height: 1;
}
.afb-lede { margin: 0 0 26px; font-size: 17px; color: var(--text-3); max-width: 620px; line-height: 1.55; }
.afb-more { font-size: 13.5px; font-weight: 700; color: var(--accent); }
.afb-date { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; }

/* category eyebrow colours (from Article.get_color) */
.afb-cat { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.afb-cat--featured, .afb-cat--news { color: var(--accent); }
.afb-cat--fixtures { color: var(--gold); }
.afb-cat--nations { color: #d0604a; }

/* ---- filter chips ---- */
.afb-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.afb-chip {
    font-size: 13px; font-weight: 700; padding: 9px 16px; border-radius: 99px;
    text-decoration: none; cursor: pointer;
    background: rgba(255,255,255,0.04); color: var(--text-3); border: 1px solid var(--border-soft);
    transition: background .2s, color .2s, border-color .2s;
}
.afb-chip:hover { border-color: rgba(147,183,60,0.5); color: var(--text); }
.afb-chip.is-active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* ---- news screen ---- */
.afb-lead {
    display: block; text-decoration: none; background: var(--panel);
    border: 1px solid var(--border); border-radius: 18px; padding: 34px 38px;
    margin-bottom: 34px; transition: border-color .25s;
}
.afb-lead:hover { border-color: rgba(147,183,60,0.45); }
.afb-lead__meta {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.afb-lead__badge { background: var(--accent); color: var(--on-accent); padding: 4px 9px; border-radius: 5px; }
.afb-lead__title {
    margin: 0 0 10px; font-family: var(--font-head); font-size: 29px; font-weight: 600;
    line-height: 1.16; color: var(--text);
}
.afb-lead__blurb { font-size: 15.5px; line-height: 1.6; color: var(--text-3); }
.afb-lead__blurb p { margin: 0; }
.afb-lead__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }

.afb-newsrow {
    display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: start;
    padding: 24px 8px; border-top: 1px solid var(--border-soft);
    text-decoration: none; transition: background .2s;
}
.afb-newsrow:hover { background: rgba(255,255,255,0.03); }
.afb-newsrow__title {
    margin: 8px 0 7px; font-family: var(--font-head); font-size: 19px; font-weight: 600;
    line-height: 1.28; color: var(--text);
}
.afb-newsrow__blurb {
    margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text-3);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.afb-newsrow__blurb p { margin: 0; }
.afb-newsrow .afb-more { display: inline-block; margin-top: 10px; font-size: 13px; }
.afb-newsrow .afb-date { padding-top: 3px; }

/* ---- card grid (stars, teams, etc.) ---- */
.afb-cardgrid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px;
}
.afb-scard {
    display: block; text-decoration: none; background: var(--panel);
    border: 1px solid var(--border); border-radius: 18px; padding: 24px;
    transition: border-color .25s, box-shadow .25s, transform .25s;
}
.afb-scard:hover { border-color: rgba(147,183,60,0.45); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.afb-scard__bar { width: 28px; height: 3px; background: var(--accent); border-radius: 2px; margin-bottom: 16px; }
.afb-scard__title { font-weight: 700; font-size: 17px; color: var(--text); line-height: 1.2; }
.afb-scard__meta { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; }
.afb-scard__blurb {
    font-size: 14px; line-height: 1.55; color: var(--text-3);
    margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-soft);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.afb-scard__blurb p { margin: 0; }

/* ---- pager ---- */
.afb-pager { padding-top: 26px; border-top: 1px solid var(--border-soft); }
.afb-pager ul {
    list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 700; color: var(--text-muted); flex-wrap: wrap;
}
.afb-pager li {
    min-width: 32px; height: 32px; padding: 0 10px; display: flex; align-items: center; justify-content: center;
    border-radius: 8px; border: 1px solid var(--border-strong); color: var(--text-3);
}
.afb-pager li a { color: inherit; text-decoration: none; display: block; }
.afb-pager li:hover { border-color: var(--accent); color: var(--text); }
.afb-pager li.current { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.afb-pager li.ellipsis { border: none; background: transparent; color: var(--text-muted); }

/* ---- hero ---- */
.afb-hero {
    position: relative; overflow: hidden; border-radius: 24px;
    border: 1px solid var(--border); padding: 56px 60px;
    margin-bottom: 30px;                /* separate from the competition nav below */
}
.afb-hero--wc {
    background: radial-gradient(900px 400px at 15% -20%, rgba(147,183,60,0.14), transparent 60%),
        radial-gradient(600px 300px at 95% 110%, rgba(176,64,44,0.1), transparent 55%),
        linear-gradient(160deg, #17181a, #101012);
}
.afb-hero--afcon {
    background: radial-gradient(900px 400px at 80% -20%, rgba(147,183,60,0.18), transparent 60%),
        linear-gradient(160deg, #15170f, #101107);
}
.afb-hero__badge {
    display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: 0.13em;
    text-transform: uppercase; color: var(--on-accent); background: var(--accent);
    padding: 7px 12px; border-radius: 7px; margin-bottom: 18px;
}
.afb-hero__banner {
    position: relative; max-width: 640px; margin-top: 30px;
    border-radius: 24px; overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 0 70px rgba(147,183,60,0.14);
}
.afb-hero__banner img { width: 100%; display: block; }
.afb-hero__banner-veil, .afb-hero__banner-inset {
    position: absolute; inset: 0; border-radius: 24px; pointer-events: none;
}
.afb-hero__banner-veil {
    background: radial-gradient(115% 115% at 50% 45%, transparent 50%, rgba(18,20,12,0.5) 100%),
        linear-gradient(180deg, rgba(21,23,15,0.3), transparent 30%, transparent 72%, rgba(16,17,7,0.42));
}
.afb-hero__banner-inset {
    box-shadow: inset 0 0 0 1px rgba(147,183,60,0.2), inset 0 0 44px rgba(16,17,7,0.55);
}
.afb-hero__title {
    margin: 0; font-family: var(--font-head); font-size: 64px; font-weight: 600;
    line-height: 0.98; letter-spacing: -0.015em; color: var(--text-strong);
}
.afb-hero__text { margin: 16px 0 0; font-size: 17px; color: var(--text-2); max-width: 580px; line-height: 1.55; }
.afb-hero__text p { margin: 0 0 10px; }
.afb-hero__pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.afb-pill {
    text-decoration: none; font-size: 12px; font-weight: 800; letter-spacing: 0.08em;
    text-transform: uppercase; padding: 9px 16px; border-radius: 99px;
    background: rgba(255,255,255,0.08); color: var(--nav-text); border: 1px solid var(--border-strong);
}
.afb-pill:hover { border-color: var(--accent); color: var(--text-strong); }

/* ---- sections & headings ---- */
.afb-section { margin-top: 44px; }
.afb-h2 { margin: 6px 0 20px; font-family: var(--font-head); font-size: 32px; font-weight: 600; color: var(--text); }
.afb-subhead { margin: 24px 0 14px; font-family: var(--font-head); font-size: 20px; font-weight: 600; color: var(--text); }
.afb-subhead a { color: inherit; text-decoration: none; }
.afb-subhead a:hover { color: var(--accent); }
.afb-empty { color: var(--text-muted); padding: 40px 0; }

/* ---- competition / stage chips ---- */
.afb-stagechips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.afb-stagechip {
    text-decoration: none; font-size: 12.5px; font-weight: 700; padding: 7px 13px; border-radius: 8px;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border-soft); color: var(--text-3);
}
.afb-stagechip:hover { border-color: rgba(147,183,60,0.5); color: var(--text); }
.afb-stagechip.is-active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

.afb-more-comps { position: relative; display: inline-block; }
.afb-more-comps summary { list-style: none; cursor: pointer; }
.afb-more-comps summary::-webkit-details-marker { display: none; }
.afb-more-comps__menu {
    display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding: 14px;
    background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px;
}
.afb-more-comps__menu a { color: var(--text-3); text-decoration: none; font-size: 14px; }
.afb-more-comps__menu a:hover { color: var(--accent); }
.afb-more-comps--block { display: block; margin-top: 24px; }
.afb-more-comps__menu--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 20px; }

/* ---- group standings ---- */
.afb-groupgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 18px; }
.afb-groupcard { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.afb-groupcard--wide { max-width: 640px; }
.afb-groupcard__title {
    padding: 16px 16px 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--accent);
}
.afb-table__head, .afb-table__row {
    display: grid; grid-template-columns: 26px 1fr 26px 26px 26px 26px 34px 34px;
    gap: 6px; align-items: center; padding: 12px 14px;
}
.afb-table__head {
    background: var(--bg-page); font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--text-muted);
}
.afb-table__row { border-top: 1px solid var(--border-soft); font-size: 14px; color: var(--text-3); }
.afb-table__row.is-africa { background: rgba(147,183,60,0.05); }
.afb-table .c { text-align: center; }
.afb-table .e { text-align: right; }
.afb-table__rank { font-weight: 800; color: var(--text-muted); }
.afb-table__nation { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); min-width: 0; }
.afb-table__nation a { color: var(--text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.afb-table__nation a:hover { color: var(--accent); }
.afb-table__pts { font-weight: 800; color: var(--accent); }
.afb-dot { width: 7px; height: 7px; border-radius: 99px; background: transparent; flex: 0 0 auto; }
.afb-dot.is-on { background: var(--accent); }
.afb-legend { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 12.5px; color: var(--text-muted); }

/* ---- result cards ---- */
.afb-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.afb-result {
    background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 20px;
    transition: border-color .25s, box-shadow .25s, transform .25s;
}
.afb-result:hover { border-color: rgba(147,183,60,0.5); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.afb-result__tag {
    font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 14px;
}
.afb-result__line { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.afb-result__line:last-child { margin-bottom: 0; }
.afb-result__team { font-weight: 700; font-size: 15px; color: var(--text); }
.afb-result__team a { color: inherit; text-decoration: none; }
.afb-result__team a:hover { color: var(--accent); }
.afb-result__score { font-weight: 800; font-size: 18px; color: var(--text); }
a.afb-result { display: block; text-decoration: none; color: inherit; }

/* home latest-results strip */
.afb-strip__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.afb-strip__more { font-size: 13.5px; font-weight: 700; color: var(--text-3); text-decoration: none; }
.afb-strip__more:hover { color: var(--accent); }

/* ---- teams grid + africa filter ---- */
.afb-toggle {
    display: inline-flex; gap: 4px; background: var(--panel); border: 1px solid var(--border);
    border-radius: 99px; padding: 4px; margin-bottom: 20px;
}
.afb-toggle button {
    font-family: inherit; border: none; background: transparent; color: var(--text-3);
    font-weight: 700; font-size: 13px; padding: 8px 16px; border-radius: 99px; cursor: pointer;
}
.afb-toggle button.is-active { background: var(--accent); color: var(--on-accent); }
.afb-teamgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.afb-teamcard {
    background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 20px;
    transition: border-color .25s, transform .25s;
}
.afb-teamcard:hover { border-color: rgba(147,183,60,0.5); transform: translateY(-2px); }
.afb-teamcard__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.afb-teamcard__grp { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.afb-teamcard__status { font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.afb-teamcard__status.is-advanced { color: var(--accent); }
.afb-teamcard__status.is-champion { color: var(--gold); }
.afb-teamcard__name { font-weight: 700; font-size: 18px; color: var(--text); }
.afb-teamcard__name a { color: inherit; text-decoration: none; }
.afb-teamcard__name a:hover { color: var(--accent); }
.afb-teamgrid.africa-only .not-africa { display: none; }

/* ======================================================================
   home / featured aggregate (plan A6)
   ====================================================================== */
/* hero */
.afb-hhero {
    position: relative; overflow: hidden; border-radius: 24px;
    border: 1px solid var(--border); padding: 72px 60px;
    background: radial-gradient(1000px 480px at 18% -10%, rgba(147,183,60,0.13), transparent 60%),
        radial-gradient(800px 400px at 95% 110%, rgba(211,165,60,0.07), transparent 55%),
        linear-gradient(160deg, #17181a, #101012);
}
.afb-hhero__img {
    position: absolute; top: 0; right: 0; height: 100%; width: 54%;
    object-fit: cover; object-position: 60% 42%; opacity: 0.5; pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.85) 55%, #000 82%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.85) 55%, #000 82%);
}
.afb-hhero__inner { position: relative; max-width: 860px; }
.afb-hhero__title {
    margin: 0; font-family: var(--font-head); font-weight: 600;
    font-size: clamp(32px, 8.5vw, 68px);
    line-height: 1; letter-spacing: -0.015em; color: var(--text-strong);
}
.afb-hhero__lede { margin: 26px 0 0; font-size: 18px; line-height: 1.6; color: var(--text-2); max-width: 640px; }
.afb-hhero__cta { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.afb-rule--inset { max-width: 420px; margin-top: 44px; border-radius: 2px; }
.afb-hhero__stats { display: flex; gap: 52px; margin-top: 28px; flex-wrap: wrap; }
.afb-stat__n { font-family: var(--font-head); font-size: 34px; font-weight: 600; color: var(--text); line-height: 1; }
.afb-stat__l { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-top: 7px; }

/* big buttons + ghost variant (hero / banner) */
.afb-btn--lg { font-size: 15px; padding: 15px 28px; border-radius: 11px; }
.afb-btn--ghost {
    background: var(--hover-bg); color: var(--text); border: 1px solid rgba(255,255,255,0.2); font-weight: 600;
}
.afb-btn--ghost:hover { background: rgba(255,255,255,0.14); filter: none; }

/* section header with a trailing link */
.afb-sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.afb-sechead .afb-h2 { margin: 6px 0 0; font-size: 36px; }

/* featured news grid */
.afb-news-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 20px; }
.afb-feat {
    grid-row: span 2; position: relative; display: flex; flex-direction: column; justify-content: flex-end;
    overflow: hidden; border-radius: 20px; border: 1px solid var(--border); padding: 34px; min-height: 440px;
    text-decoration: none; transition: border-color .25s, box-shadow .25s, transform .25s;
    background: radial-gradient(600px 300px at 10% 0%, rgba(147,183,60,0.12), transparent 60%), var(--panel);
}
.afb-feat__img {
    position: absolute; top: 0; left: 0; width: 100%; height: 76%;
    object-fit: cover; object-position: center 42%; pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, #000 40%, rgba(0,0,0,0.45) 68%, transparent 97%);
    mask-image: linear-gradient(180deg, #000 40%, rgba(0,0,0,0.45) 68%, transparent 97%);
}
.afb-feat__badge {
    align-self: flex-start; position: relative; margin-bottom: auto;
    font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--on-accent); background: var(--accent); padding: 6px 11px; border-radius: 6px;
}
.afb-feat__meta { position: relative; margin: 26px 0 12px; }
.afb-feat__title {
    position: relative; margin: 0 0 12px; font-family: var(--font-head); font-size: 27px; font-weight: 600;
    line-height: 1.14; letter-spacing: -0.01em; color: var(--text);
}
.afb-feat__blurb {
    position: relative; margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--text-3);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.afb-feat__blurb p { margin: 0; }
.afb-feat:hover, .afb-ncard:hover { border-color: rgba(147,183,60,0.45); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.afb-ncard {
    display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--border);
    border-radius: 18px; padding: 24px; text-decoration: none;
    transition: border-color .25s, box-shadow .25s, transform .25s;
}
.afb-ncard__meta { margin-bottom: 12px; }
.afb-ncard__title { margin: 0 0 9px; font-family: var(--font-head); font-size: 19px; font-weight: 600; line-height: 1.22; color: var(--text); }
.afb-ncard__blurb {
    margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text-3);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.afb-ncard__blurb p { margin: 0; }

/* tournament-in-focus banner */
.afb-tbanner {
    position: relative; overflow: hidden; border-radius: 24px; border: 1px solid var(--border);
    padding: 56px 60px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: center;
}
.afb-tbanner--wc {
    background: radial-gradient(900px 400px at 15% -20%, rgba(147,183,60,0.14), transparent 60%),
        radial-gradient(600px 300px at 95% 110%, rgba(176,64,44,0.1), transparent 55%),
        linear-gradient(160deg, #17181a, #101012);
}
.afb-tbanner--afcon {
    background: radial-gradient(900px 400px at 85% -20%, rgba(147,183,60,0.16), transparent 60%),
        linear-gradient(160deg, #15170f, #101107);
}
.afb-tbanner__title {
    margin: 16px 0; font-family: var(--font-head); font-size: 48px; font-weight: 600;
    line-height: 1.02; letter-spacing: -0.015em; color: var(--text-strong); max-width: 560px;
}
.afb-tbanner__blurb { margin: 0 0 28px; font-size: 16.5px; line-height: 1.6; color: var(--text-2); max-width: 520px; }
.afb-tbanner__media {
    display: block; position: relative; border-radius: 24px; overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 0 80px rgba(147,183,60,0.16);
    transition: box-shadow .3s, transform .3s;
}
.afb-tbanner__media img { width: 100%; display: block; }
.afb-tbanner__media:hover { transform: translateY(-3px); box-shadow: 0 28px 70px rgba(0,0,0,0.5), 0 0 100px rgba(147,183,60,0.26); }

/* stars strip (horizontal scroll) */
.afb-hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: 260px; gap: 16px; overflow-x: auto; padding-bottom: 14px; }
.afb-scroll::-webkit-scrollbar { height: 6px; }
.afb-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.16); border-radius: 99px; }

/* nations block */
.afb-nations { display: grid; grid-template-columns: 1fr 1.3fr; gap: 38px; align-items: start; }
.afb-nations .afb-lede { margin: 12px 0 24px; }
.afb-nationgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.afb-nationlink {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px;
    background: var(--panel); border: 1px solid var(--border-soft); border-radius: 12px;
    text-decoration: none; color: var(--text); font-weight: 700; font-size: 14px;
    white-space: nowrap; overflow: hidden;
}
.afb-nationlink span { overflow: hidden; text-overflow: ellipsis; }
.afb-nationlink img { width: 22px; height: auto; border-radius: 3px; flex: 0 0 auto; }
.afb-nationlink:hover { border-color: rgba(147,183,60,0.5); }

/* ======================================================================
   single article
   ====================================================================== */
.afb-article { max-width: 760px; }
.afb-article__cats { margin: 14px 0 0; }
.afb-article__title {
    margin: 20px 0 14px; font-family: var(--font-head); font-weight: 600;
    font-size: clamp(28px, 4vw, 42px); line-height: 1.08; letter-spacing: -0.015em;
    color: var(--text-strong);
}
.afb-article__meta {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    font-size: 12.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
    color: var(--text-muted); padding-bottom: 24px; border-bottom: 1px solid var(--border-soft);
}
.afb-article__sep { color: var(--border-strong); }

/* article body prose (CKEditor HTML); colours come from the .afb-content rules */
.afb-article__body { margin-top: 28px; font-size: 17px; line-height: 1.75; }
.afb-article__body p { margin: 0 0 18px; }
.afb-article__body h1, .afb-article__body h2, .afb-article__body h3 {
    margin: 32px 0 12px; font-family: var(--font-head); font-weight: 600; color: var(--text);
}
.afb-article__body h2 { font-size: 24px; }
.afb-article__body h3 { font-size: 20px; }
.afb-article__body ul, .afb-article__body ol { margin: 0 0 18px; padding-left: 22px; }
.afb-article__body li { margin: 0 0 6px; }
.afb-article__body a { color: var(--accent); }
.afb-article__body img { border-radius: 12px; margin: 8px 0; }

.afb-article__aside { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--border-soft); }
.afb-article__aside .afb-eyebrow { display: block; margin-bottom: 14px; }

/* related-nations bubbles reflow inline rather than on the fixed grid */
.afb-nationgrid--inline { display: flex; flex-wrap: wrap; }
.afb-nationgrid--inline .afb-nationlink { white-space: nowrap; }

/* related-articles list as bordered link rows */
.afb-rellist { display: flex; flex-direction: column; gap: 8px; }
.afb-rellink {
    display: block; padding: 13px 16px; border-radius: 12px;
    background: var(--panel); border: 1px solid var(--border-soft);
    color: var(--text); text-decoration: none; font-weight: 600; font-size: 14.5px; line-height: 1.3;
    transition: border-color .2s, background .2s;
}
.afb-rellink:hover { border-color: rgba(147,183,60,0.5); background: rgba(255,255,255,0.03); color: var(--text-strong); }

/* ======================================================================
   responsive / mobile pass (plan A9)
   ====================================================================== */
/* tablet and below: collapse the nav behind a toggle, stack the wide grids */
@media (max-width: 960px) {
    .afb-nav-toggle {
        display: flex; align-items: center; justify-content: center;
        width: 40px; height: 40px; border-radius: 10px;
        border: 1px solid var(--border-strong); background: transparent; color: var(--text-3);
        cursor: pointer;
    }
    .afb-nav-toggle:hover { border-color: rgba(255,255,255,0.4); color: var(--text); }

    .afb-nav {
        position: absolute; top: 100%; left: 0; right: 0; z-index: 55;
        display: none; flex-direction: column; align-items: stretch; gap: 2px;
        padding: 12px var(--pad); background: var(--panel-2);
        border-bottom: 1px solid var(--border); box-shadow: var(--shadow-panel);
    }
    .afb-nav.is-open { display: flex; }
    .afb-nav > a, .afb-dd > button { width: 100%; padding: 12px; font-size: 15px; }
    .afb-nav > a.is-active::after, .afb-dd.is-active > button::after { left: 12px; right: auto; width: 18px; }

    /* dropdown opens inline in the mobile sheet */
    .afb-dd { width: 100%; }
    .afb-dd > button { justify-content: space-between; }
    .afb-dd-menu {
        position: static; opacity: 1; visibility: visible; transform: none; pointer-events: auto;
        min-width: 0; background: transparent; border: none; box-shadow: none;
        padding: 2px 0 6px 14px;
    }

    .afb-news-grid, .afb-tbanner, .afb-nations { grid-template-columns: 1fr; }
    .afb-feat { grid-row: auto; min-height: 320px; }
    .afb-tbanner { gap: 32px; }
    .afb-tbanner__media { max-width: 520px; }
    .afb-hhero__img { width: 62%; opacity: 0.35; }
}

/* phones: tighten padding, shrink display type, stack section headers */
@media (max-width: 640px) {
    :root { --pad: 18px; }
    .afb-util { display: none; }
    .afb-header__inner { height: 66px; }
    .afb-subscribe { display: none; }

    .afb-hhero { padding: 40px 22px; }
    .afb-hhero__lede { font-size: 16px; }
    .afb-hhero__stats { gap: 26px; }
    .afb-hero { padding: 40px 24px; }
    .afb-hero__title { font-size: 40px; }
    .afb-tbanner { padding: 36px 24px; }
    .afb-tbanner__title { font-size: 32px; }
    .afb-newsletter__panel { padding: 34px 24px; }

    .afb-sechead { flex-direction: column; align-items: flex-start; gap: 6px; }
    .afb-title { font-size: 40px; }
    .afb-h2, .afb-sechead .afb-h2 { font-size: 28px; }

    .afb-footer__cols { grid-template-columns: 1fr 1fr; }
    .afb-nationgrid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

/* ======================================================================
   compat layer for templates not yet reskinned: article, country/team/player,
   search, 404, and the article_abstract sidebar include. Keeps their legacy
   prose and cards legible on the dark background. Not the final look.
   ====================================================================== */
.afb-content h1, .afb-content h2, .afb-content h3 { color: var(--text); }
/* legacy prose links only; reskinned component anchors (.afb-btn, .afb-scard,
   ...) carry their own colour and must not inherit accent-on-accent */
.afb-content a:not([class]) { color: var(--accent); }
.afb-content p, .afb-content li, .afb-content td, .afb-content th { color: var(--text-3); }
.afb-content img { border-radius: 8px; }

.showpage { line-height: 1.7; }
.showpage a { color: var(--accent); }

/* legacy article-abstract card (includes/article_abstract.html.django) */
.news, .sideBlock {
    background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
    padding: 20px 22px; margin-bottom: 16px;
}
.news__category a { color: var(--accent); text-decoration: none; font-weight: 700; }
.news__bodyText { font-weight: 700; font-size: 17px; color: var(--text); margin-bottom: 6px; }
.news__detailText { color: var(--text-3); }
.news__more a, .article_link { color: var(--accent); font-weight: 700; text-decoration: none; }
.news__date { color: var(--text-muted); font-size: 12.5px; margin-top: 8px; }
