/* ==========================================================================
   THE STANDARD ARENA - sections.css
   Hero, centered section heads, cards, grids, bands, facts, single/archive.
   ========================================================================== */

/* ---------- The centered section head (signature component) ---------- */
/* Title-only heads: the 56px gap below the head matches the section's 56px
   padding above it, so every title sits evenly between its neighbours - the
   space the retired kicker and sub headline used to fill is gone. */
.section-head { text-align: center; max-width: 780px; margin: 0 auto 56px; }
.section-head .kicker,
.kicker {
        display: inline-flex; align-items: center; justify-content: center; gap: 14px;
        font-family: var(--sa-sans); font-size: 0.72rem; font-weight: 700;
        letter-spacing: 0.26em; text-transform: uppercase; color: var(--sa-gold-2);
}
/* Hairline flourishes flanking every kicker - pure CSS, no icons or images. */
.kicker::before, .kicker::after { content: ""; width: 36px; height: 1px; background: currentColor; opacity: 0.45; flex: none; }
.section-title {
        font-family: var(--sa-serif); font-weight: 600; letter-spacing: -0.012em;
        font-size: clamp(1.6rem, 3vw, 2.4rem);
        color: var(--sa-navy); margin: 16px 0 0; line-height: 1.12;
        text-wrap: balance;
}
.section-head.on-dark .section-title { color: #fff; }
.section-head.on-dark .kicker { color: var(--sa-gold); }
/* With no kicker above it, a title-first head starts flush - no stray gap
   left over from the removed kicker label. */
.section-head > .section-title:first-child { margin-top: 0; }
.section-sub {
        color: var(--sa-grey); font-size: 1.04rem; line-height: 1.7;
        max-width: 640px; margin: 18px auto 0;
}
.section-head.on-dark .section-sub { color: rgba(255, 255, 255, 0.72); }

/* ---------- Hero ---------- */
.hero {
        position: relative; overflow: hidden; text-align: center;
        background: radial-gradient(120% 90% at 50% 0%, var(--sa-navy-3) 0%, var(--sa-navy) 58%, #081320 100%);
        padding: 108px 0 96px;
}
.hero-glow {
        position: absolute; inset: 0; pointer-events: none;
        background:
                radial-gradient(420px 260px at 50% 8%, rgba(201, 162, 39, 0.16), transparent 70%),
                repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 120px),
                repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 120px);
}
.hero-in { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero-lede {
        font-family: var(--sa-serif); color: #fff; max-width: 860px;
        font-size: clamp(1.25rem, 2.7vw, 1.95rem); line-height: 1.32; font-weight: 500;
        letter-spacing: -0.01em; margin: 0 auto 34px; text-wrap: balance;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-bottom: 60px; }
.hero-stats {
        display: flex; flex-wrap: wrap; justify-content: center; gap: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 38px; width: min(860px, 100%);
}
.hero-stat { flex: 1 1 200px; text-align: center; padding: 4px 18px; }
.hero-stat strong {
        display: block; font-family: var(--sa-serif); font-size: clamp(1.8rem, 3.4vw, 2.6rem);
        color: var(--sa-gold); line-height: 1.1;
}
.hero-stat span {
        font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
        color: rgba(255, 255, 255, 0.55);
}
.hero-scroll {
        position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
        font-size: 0.62rem; letter-spacing: 0.4em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4);
}
.hero-scroll::after { content: ""; display: block; width: 1px; height: 34px; background: linear-gradient(var(--sa-gold), transparent); margin: 10px auto 0; }

/* ---------- Grids & cards ---------- */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.sa-card, .card {
        background: var(--sa-white); border: 1px solid var(--sa-line); border-radius: var(--sa-radius);
        overflow: hidden; display: flex; flex-direction: column;
        transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.sa-card:hover, .card:hover { transform: translateY(-6px); box-shadow: var(--sa-shadow); border-color: rgba(201, 162, 39, 0.45); }
.card-link { display: flex; flex-direction: column; flex: 1; color: inherit; }
.card-link:hover { color: inherit; }
.card-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sa-paper-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease, filter 0.4s ease; filter: saturate(0.88); }
.sa-card:hover .card-media img, .card:hover .card-media img { transform: scale(1.045); filter: saturate(1); }
.card-banner {
        background: linear-gradient(135deg, var(--sa-navy) 0%, var(--sa-navy-3) 100%);
        padding: 26px 20px; display: flex; justify-content: center;
}
.card-body { padding: 26px 26px 30px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 1; }
.card-body-badge { display: inline-flex; align-items: center; max-width: 100%; }
.card-kicker {
        font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
        color: var(--sa-gold-2);
}
.card-title { font-size: 1.12rem; line-height: 1.3; margin: 0; color: var(--sa-navy); }
.card-title a { color: inherit; }
.card-meta {
        display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px;
        font-size: 0.8rem; color: var(--sa-grey); margin-top: auto; padding-top: 6px;
}

.grid-3--dark .card { background: rgba(255, 255, 255, 0.04); border-color: var(--sa-line-dark); }
.grid-3--dark .card-title { color: #fff; }
.grid-3--dark .card-meta { color: rgba(255, 255, 255, 0.6); }
.grid-3--dark .card:hover { border-color: rgba(201, 162, 39, 0.5); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35); }

/* ---------- Homepage Emerging Opportunities: one desk per category ---------- */
/* Each desk is an editorial head row (category title + View all link) over
   its own grid of up to six cards; desks with no active listings are skipped
   by the template entirely. */
.sa-opp-desk { margin-top: 48px; }
.sa-opp-desk-head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; border-bottom: 1px solid #e2ddd0; padding-bottom: 12px; margin-bottom: 26px; }
.sa-opp-desk-title { margin: 0; font-family: var(--sa-serif); font-size: 1.45rem; color: var(--sa-navy); }
/* The closing action row ("Visit the Opportunity Desk" + "Submit an Opportunity")
   keeps its own air below the last desk's cards instead of touching them. */
.sa-desk-cta { margin-top: 48px; }
@media (max-width: 640px) {
        .sa-opp-desk { margin-top: 36px; }
        .sa-desk-cta { margin-top: 36px; }
        .sa-opp-desk-head { flex-direction: column; align-items: center; gap: 6px; text-align: center; padding-bottom: 10px; margin-bottom: 20px; }
}

/* ---------- Archive hero ---------- */
/* Title-only hero: uniform 44px above and below the headline. The inner head's
   grid gap is switched off here, so the title never carries the padding plus a
   second margin underneath it. */
.archive-hero {
        background:
                radial-gradient(600px 300px at 50% -60px, rgba(201, 162, 39, 0.15), transparent 70%),
                linear-gradient(180deg, var(--sa-navy) 0%, var(--sa-navy-2) 100%);
        padding: 44px 0; text-align: center;
}
.archive-hero .section-head { margin-bottom: 0; }
.archive-hero--short { padding: 40px 0; }
.archive-hero .section-title { color: #fff; }
.archive-hero .kicker { color: var(--sa-gold); }

/* ---------- Entry (single) ---------- */
/* Top spacing is supplied by the layout's shared padding-top, so the headline
   and the sidebar start at the same height; no tall gap below the header. */
.entry-head { text-align: center; padding: 0 0 8px; background: var(--sa-paper); }
.entry-head .kicker { color: var(--sa-gold-2); }
.entry-title {
        font-size: clamp(1.75rem, 3.8vw, 2.7rem); color: var(--sa-navy);
        margin: 18px 0 0; line-height: 1.1; text-wrap: balance;
}
.entry-meta {
        display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
        font-size: 0.85rem; color: var(--sa-grey); margin-top: 20px;
}
/* Default page template title: same centered treatment as singles. Pages have
   no thumbnail/facts row, so the 44px single-entry top padding is dropped and
   only a compact step of air remains before the first paragraph/item. */
.page-head { margin-bottom: 8px; }
.entry-wrap.page { padding-top: 0; }
.entry-thumb { margin-top: 40px; border-radius: var(--sa-radius); overflow: hidden; box-shadow: var(--sa-shadow); }
.entry-thumb img { width: 100%; }

/* Facts row (centered key facts, 3 equal columns) */
.facts-row {
        display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 0; align-items: stretch;
        background: var(--sa-white); border: 1px solid var(--sa-line); border-radius: var(--sa-radius);
        padding: 26px 30px; margin: 40px auto 0; box-shadow: var(--sa-shadow-sm);
}
.fact { text-align: center; padding: 6px 16px; border-right: 1px solid var(--sa-line); }
.fact:nth-child(3n), .fact:last-child { border-right: 0; }
.fact-label { display: block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sa-grey); margin-bottom: 6px; }
.fact strong { font-family: var(--sa-serif); font-weight: 600; font-size: 1.02rem; color: var(--sa-navy); }

/* Four-fact variant (single opportunity): all facts on one row.
   Desktop keeps each value on a single line - dates and long category
   names never wrap - with the four facts spread across the row. */
.facts-row--four { grid-template-columns: repeat(4, 1fr); }
.facts-row--four .fact:nth-child(3n) { border-right: 1px solid var(--sa-line); }
.facts-row--four .fact:nth-child(4n), .facts-row--four .fact:last-child { border-right: 0; }
@media (min-width: 981px) {
        .facts-row--four { grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 12px 28px; }
        .facts-row--four .fact strong { white-space: nowrap; }
}

/* Five-fact variant (single event): Date · Time · Format · Venue · Ticket all
   on one row on desktop, values never wrapping, spread across the full width. */
.facts-row--five { grid-template-columns: repeat(5, 1fr); }
.facts-row--five .fact:nth-child(3n) { border-right: 1px solid var(--sa-line); }
.facts-row--five .fact:nth-child(5n), .facts-row--five .fact:last-child { border-right: 0; }
@media (min-width: 981px) {
        .facts-row--five { grid-template-columns: repeat(5, auto); justify-content: space-between; gap: 12px 28px; }
        .facts-row--five .fact strong { white-space: nowrap; }
}

.note-block {
        background: var(--sa-paper-2); border: 1px solid var(--sa-line);
        border-top: 3px solid var(--sa-navy); border-radius: var(--sa-radius-sm);
        padding: 28px 32px; margin: 36px auto 8px; max-width: 860px;
        text-align: center;
}
.note-block h3 { font-size: 1.12rem; margin-bottom: 0.5em; }
.note-block p:last-child { margin-bottom: 0; }
.note-block--gold { border-top-color: var(--sa-gold); background: var(--sa-gold-soft); border-color: rgba(201, 162, 39, 0.35); }

/* Event date blocks */
.ev-date { text-align: center; margin-bottom: 10px; }
.ev-day { display: block; font-family: var(--sa-serif); font-size: 2.6rem; font-weight: 600; color: var(--sa-gold-2); line-height: 1; }
.ev-month { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--sa-grey); margin-top: 6px; }
.ev-date-inline { font-weight: 700; letter-spacing: 0.14em; }

/* ---------- People & organisations ---------- */
.person-card, .org-card, .partner-card { text-align: center; }
.person-avatar, .org-logo { display: flex; justify-content: center; padding-top: 30px; }
.person-avatar--lg, .org-logo--lg { padding: 44px 0 0; }
.mono-photo { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; border: 3px solid var(--sa-gold-soft); box-shadow: var(--sa-shadow-sm); }
.monogram {
        width: 120px; height: 120px; border-radius: 50%;
        display: inline-flex; align-items: center; justify-content: center;
        background: linear-gradient(135deg, var(--sa-navy) 0%, var(--sa-navy-3) 100%);
        color: var(--sa-gold); font-family: var(--sa-serif); font-size: 2.3rem; font-weight: 600;
        border: 2px solid rgba(201, 162, 39, 0.5);
}
.person-card .card-title, .org-card .card-title, .partner-card .card-title { margin-top: 14px; }
.speaker-card { text-align: center; background: var(--sa-white); border: 1px solid var(--sa-line); border-radius: var(--sa-radius); padding: 34px 24px; }
.speaker-card .monogram { width: 88px; height: 88px; font-size: 1.6rem; margin-bottom: 16px; }
.speaker-card .card-meta { justify-content: center; }

/* ---------- Value / platform / about cards ---------- */
.value-card {
        background: var(--sa-white); border: 1px solid var(--sa-line); border-radius: var(--sa-radius);
        padding: 38px 32px; text-align: center; position: relative;
        transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--sa-shadow-sm); }
.value-index {
        font-family: var(--sa-serif); font-style: italic; font-size: 0.95rem; color: var(--sa-gold-2);
        display: inline-block; margin-bottom: 12px; letter-spacing: 0.1em;
}
.value-card h3 { font-size: 1.3rem; }
.value-card p { color: var(--sa-grey); font-size: 0.96rem; margin: 16px 0 0; }
/* Row variant keeps the shared centered card look (index above the title). */
.value-card--row { text-align: center; }

.platform-card {
        background: rgba(255, 255, 255, 0.04); border: 1px solid var(--sa-line-dark);
        border-radius: var(--sa-radius); padding: 40px 32px; text-align: center;
}
.platform-card--featured { border-color: rgba(201, 162, 39, 0.55); background: rgba(201, 162, 39, 0.07); }
.platform-card h3 { color: #fff; font-size: 1.25rem; }
.platform-role { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sa-gold); }
.platform-card p { color: rgba(255, 255, 255, 0.68); font-size: 0.94rem; margin: 16px 0 0; }

/* ---------- GSC band ---------- */
.gsc-band {
        text-align: center; max-width: 860px; margin: 0 auto;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
        border: 1px solid rgba(201, 162, 39, 0.45); outline: 1px solid rgba(201, 162, 39, 0.2); outline-offset: 6px;
        border-radius: var(--sa-radius); padding: 64px 48px;
}
.gsc-band--lg { padding: 72px 56px; }
.gsc-band .kicker { color: var(--sa-gold); }
.gsc-title { color: #fff; font-size: clamp(1.65rem, 3.3vw, 2.5rem); margin: 16px 0 0; }
/* Kicker retired: the band's title now opens the band flush. */
.gsc-band .gsc-title:first-child { margin-top: 0; }
.gsc-lines {
        font-family: var(--sa-serif); font-style: italic; font-size: 1.15rem;
        color: rgba(255, 255, 255, 0.85); margin: 20px 0 12px;
}
.gsc-blurb { color: rgba(255, 255, 255, 0.66); max-width: 620px; margin: 0 auto 30px; }

/* ---------- Filter bar ---------- */
.filter-bar {
        display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: stretch;
        background: var(--sa-white); border: 1px solid var(--sa-line); border-radius: var(--sa-radius);
        padding: 16px; box-shadow: var(--sa-shadow-sm); max-width: 860px; margin: 0 auto 10px;
}
.filter-search { flex: 2 1 260px; }
.filter-region { flex: 1 1 180px; }
.filter-bar select { height: 100%; }

/* ---------- Contact channels ---------- */
.contact-channels { margin-top: -8px; }

/* ---------- Newsletter band ---------- */
.sa-newsletter {
        background:
                radial-gradient(500px 240px at 50% 0%, rgba(201, 162, 39, 0.14), transparent 70%),
                var(--sa-navy);
        padding: 56px 0; text-align: center;
}
.sa-newsletter .section-title { color: #fff; }
.sa-newsletter .kicker { color: var(--sa-gold); }
.nl-form { max-width: 640px; margin: 36px auto 0; }
.nl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.nl-row--single { grid-template-columns: 1fr; }
.nl-interests {
        display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 22px 0 26px;
}
.nl-check { position: relative; }
.nl-check input { position: absolute; opacity: 0; width: 100%; height: 100%; left: 0; top: 0; margin: 0; cursor: pointer; }
.nl-check span {
        display: inline-block; padding: 9px 16px; border: 1px solid var(--sa-line-dark); border-radius: 999px;
        font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75);
        transition: all 0.2s ease;
}
.nl-check input:checked + span { background: var(--sa-gold); border-color: var(--sa-gold); color: #1A1505; }
.nl-check input:focus-visible + span { outline: 2px solid var(--sa-gold); outline-offset: 2px; }
.sa-newsletter .sa-input { background: rgba(255, 255, 255, 0.06); border-color: var(--sa-line-dark); color: #fff; }
.sa-newsletter .sa-input::placeholder { color: rgba(255, 255, 255, 0.45); }
.sa-newsletter .sa-input:focus { border-color: var(--sa-gold); }
.nl-submit { display: flex; justify-content: center; align-items: center; text-align: center; margin-top: 8px; }
.nl-submit .btn { width: auto; margin-inline: auto; }

/* ---------- Registration / generic centered form zone ---------- */
.sa-form-zone { max-width: 640px; margin: 0 auto; background: var(--sa-white); border: 1px solid var(--sa-line); border-radius: var(--sa-radius); padding: 40px; box-shadow: var(--sa-shadow-sm); }
.sa-form-zone .sa-section-head, .sa-form-zone .section-head { margin-bottom: 34px; }
.reg-form { text-align: left; }

/* ---------- Pagination ---------- */
.sa-pagination { display: flex; justify-content: center; gap: 8px; margin: 52px 0 8px; flex-wrap: wrap; }
.sa-pagination .page-numbers {
        display: inline-flex; align-items: center; justify-content: center;
        min-width: 42px; height: 42px; padding: 0 12px;
        border: 1px solid var(--sa-line); border-radius: var(--sa-radius-sm);
        font-size: 0.85rem; font-weight: 600; color: var(--sa-navy); background: var(--sa-white);
}
.sa-pagination .page-numbers:hover { border-color: var(--sa-gold); color: var(--sa-gold-2); }
.sa-pagination .page-numbers.current { background: var(--sa-navy); border-color: var(--sa-navy); color: #fff; }

/* ---------- Comments ---------- */
.comment-list { list-style: none; padding: 0; margin: 0 0 30px; }
.comment-list .comment { border: 1px solid var(--sa-line); border-radius: var(--sa-radius); background: var(--sa-white); padding: 24px; margin-bottom: 16px; }
.comment-list .children { list-style: none; margin: 18px 0 0 26px; }
.comment-meta { font-size: 0.8rem; color: var(--sa-grey); margin-bottom: 8px; }
.comment-author img { border-radius: 50%; margin-right: 8px; vertical-align: -8px; }
.comments-title { text-align: center; font-size: 1.4rem; }

/* ---------- Responsive grids ---------- */
@media (max-width: 980px) {
        .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
        .hero { padding: 96px 0 90px; }
        .hero-stats { width: 100%; }
        .facts-row--four { grid-template-columns: repeat(2, 1fr); }
        .facts-row--four .fact:nth-child(4n) { border-right: 1px solid var(--sa-line); }
        .facts-row--four .fact:nth-child(2n), .facts-row--four .fact:last-child { border-right: 0; }
        .facts-row--five { grid-template-columns: repeat(2, 1fr); }
        .facts-row--five .fact:nth-child(3n) { border-right: 1px solid var(--sa-line); }
        .facts-row--five .fact:nth-child(2n), .facts-row--five .fact:last-child { border-right: 0; }
}
@media (max-width: 640px) {
        .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 18px; }
        /* Uniform small edge margin on phones: every card, form and block sits 12px from the screen edges,
           with its full border and corners visible (no full-bleed cropping). */
        .sa-container, .sa-container--narrow, .sa-container--wide { width: calc(100% - 24px); }
        /* The footer keeps the desktop edge padding on every breakpoint: the footer
           menu sits the same distance from the left and right screen edges on
           phones as on desktop. */
        .footer .sa-container { width: calc(100% - 48px); }
        .sa-section { padding: 44px 0; }
        .section-head { margin-bottom: 44px; }
        .hero { padding: 76px 0 64px; }
        .hero-lede { font-size: 1.3rem; margin-bottom: 26px; }
        .hero-cta { margin-bottom: 44px; }
        .facts-row { grid-template-columns: 1fr; gap: 0; }
        .fact { border-right: 0; border-bottom: 1px solid var(--sa-line); padding-bottom: 12px; }
        .fact:last-child { border-bottom: 0; padding-bottom: 0; }
        /* Single-column facts: strip every vertical border, including the
           four/five-fact nth-child rules whose (0,3,0) specificity would
           otherwise beat the .fact rule above and leave Country (the third
           fact on opportunity singles) looking boxed on phones. */
        .facts-row .fact:nth-child(n) { border-right: 0; }
        .gsc-band { padding: 44px 26px; }
        .nl-row { grid-template-columns: 1fr; }
        .sa-form-zone { padding: 26px 20px; }
        .hero-scroll { display: none; }
        /* Compact opportunity filter bar: search on its own row, region + button side by side */
        .filter-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 12px; }
        .filter-search { grid-column: 1 / -1; }
        .filter-region { min-width: 0; }
        .filter-bar input[type="search"] { height: 47px; padding: 10px 14px; }
        .filter-bar select { height: 47px; min-height: 0; padding: 10px 30px 10px 12px; font-size: 0.92rem; }
        .filter-bar .btn { height: 47px; padding: 0 20px; }
        .chip-row { gap: 8px; }
        .chip { padding: 8px 13px; font-size: 0.7rem; }
}

/* ---------- Commerce: membership plans, paid postings, payments ---------- */
/* App pages render inside .entry-content, whose generic paragraph left-align
   (base.css) must not beat the centered heads, banners, panels and the plan
   switcher of the commerce pages. Scoped (0,2,1) so it always wins. */
.entry-content .section-head > p,
.entry-content .sa-pass-active > p,
.entry-content .sa-member-banner > p,
.entry-content .pay-panel p,
.entry-content .sa-pass-switch > summary { text-align: center; }

/* The commerce shortcodes render inside the page's own wide container
   (page.php wraps entry content). Their inner .sa-container must not shrink
   the grids a second time - after neutralising it the plan/pkg cards span
   exactly the same width as the homepage cards at every breakpoint. */
.entry-content .sa-membership > .sa-container,
.entry-content .sa-applypass > .sa-container,
.entry-content .sa-posting > .sa-container { width: 100%; }

/* Chromeless plan switcher for active pass holders: no box, no inset - the
   collapsed summary centers and the open state's pass cards run the same
   full width as every other card grid. Canonical rule lives in the Apply
   Pass section below. */

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 0 0 54px; }
.plan-card {
        position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
        background: var(--sa-white); border: 1px solid var(--sa-line); border-radius: var(--sa-radius);
        padding: 40px 26px 32px; box-shadow: var(--sa-shadow-sm);
        transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--sa-shadow); border-color: var(--sa-gold); }
.plan-card--featured { border: 2px solid var(--sa-gold); box-shadow: 0 18px 44px rgba(201, 162, 39, 0.14); }
.plan-flag {
        position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
        background: var(--sa-gold); color: #1A1505; font-size: 0.62rem; font-weight: 800;
        letter-spacing: 0.16em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px;
}
.plan-name { font-family: var(--sa-serif); font-size: 1.35rem; color: var(--sa-navy); margin: 0 0 10px; }
.plan-price { margin: 0 0 20px; color: var(--sa-grey); }
.plan-price strong { font-family: var(--sa-serif); font-size: 2.1rem; color: var(--sa-navy); letter-spacing: -0.01em; }
.plan-price span { font-size: 0.85rem; }
.plan-perks { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.93rem; color: var(--sa-grey); text-align: center; width: 100%; }
.plan-perks li { display: flex; align-items: center; justify-content: center; }
.plan-perks li::before { content: ""; width: 8px; height: 8px; background: var(--sa-gold); transform: rotate(45deg); flex: none; margin-right: 10px; }
.plan-card .btn { margin-top: auto; }

.pay-methods { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; padding: 4px 0 2px; }
.pay-method { display: inline-flex; align-items: center; gap: 8px; font-size: 0.95rem; color: var(--sa-navy); cursor: pointer; }
.pay-method input { accent-color: var(--sa-gold-2); width: 16px; height: 16px; margin: 0; flex: none; }

.pay-panel {
        max-width: 640px; margin: 30px auto 0; background: var(--sa-white); border: 1px solid var(--sa-line);
        border-left: 4px solid var(--sa-gold); border-radius: var(--sa-radius); padding: 30px 32px;
        box-shadow: var(--sa-shadow-sm); text-align: center;
}
.pay-thanks { font-family: var(--sa-serif); font-size: 1.3rem; color: var(--sa-navy); margin: 0 0 8px; }
.pay-thanks-ref { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sa-grey); margin: 0; }
.pay-instructions { font-size: 0.95rem; line-height: 1.7; color: var(--sa-grey); }
.pay-instructions .sa-note { display: inline-block; margin-top: 12px; font-size: 0.82rem; color: var(--sa-grey); }

.sa-hp { display: none; }

@media (max-width: 980px) {
        .plan-grid { grid-template-columns: 1fr; }
}

/* ---------- Apply Pass: pay to apply ---------- */
.pay-methods--center { justify-content: center; }
/* Centered payment-method label and M-Pesa phone field (label + input holder) */
.sa-field--center { text-align: center; }
.sa-field--center .sa-input { text-align: center; }
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 0 0 34px; }
.pkg-grid .plan-card { height: 100%; }
.sa-apply-gate .reg-form { margin-top: 0; }
/* Breathing room between the gate (its Check row included) and the
   archive back-button that follows it on singles. */
.sa-apply-gate { margin-bottom: 30px; }
/* Compact apply zone on singles: much tighter rhythm around the rule
   and the Apply Now button. */
.sa-section--apply { padding: 12px 0 46px; }
.sa-section--apply .sa-rule { margin: 18px auto 14px; }
/* CTA bands (Apply Now + All Opportunities, Register Now + All Events, ...):
   one button per row - never touching - and a tight gap from the content above.
   The buttons are direct children of the band's inner .sa-container, so each
   takes its own centered row; nested gate/form buttons keep their layout. */
.sa-cta-band { padding-top: 14px; padding-bottom: 44px; }
.sa-cta-band .sa-rule { margin: 10px auto 12px; }
.sa-cta-band .sa-container > .btn { display: block; width: fit-content; margin: 14px auto 0; }
.sa-cta-band .sa-container > .sa-note { margin-bottom: 0; }
.sa-apply-unlocked { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 26px 0 10px; }
.sa-apply-unlocked[hidden] { display: none; }
.sa-apply-check { max-width: 560px; margin: 26px auto 0; display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.sa-apply-check-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; width: 100%; }
.sa-apply-check-row .sa-input { flex: 1 1 220px; }
.sa-apply-check .sa-msg { margin: 0; }

/* Active Apply Pass holders: verified state + collapsed plan switcher.
   They never see the payment form again unless they open it themselves. */
.sa-pass-active {
        border: 1.5px solid var(--sa-gold); background: var(--sa-gold-soft);
        border-radius: 14px; padding: 26px 28px; text-align: center; margin-bottom: 24px;
}
.sa-pass-active-head { font-family: var(--sa-serif); font-size: 1.3rem; font-weight: 700; color: var(--sa-navy); margin: 0 0 6px; }
.sa-pass-active .sa-apply-unlocked { margin: 16px 0 2px; }
/* Chromeless plan switcher for active pass holders: no box, no inset - the
   collapsed summary centers and the open state's pass cards run the same
   full width as every other card grid. */
.sa-pass-switch {
        border: 0; background: transparent; padding: 4px 0 8px; margin-bottom: 10px;
}
.sa-pass-switch > summary { cursor: pointer; font-weight: 700; font-size: 0.95rem; color: var(--sa-navy); }
.sa-pass-switch[open] > summary { margin-bottom: 18px; }

/* Active membership status banner (membership page + posting form). */
.sa-member-banner {
        display: flex; flex-direction: column; align-items: center; gap: 6px;
        text-align: center; border: 1.5px solid var(--sa-gold); background: var(--sa-gold-soft);
        border-radius: 14px; padding: 18px 22px; margin: 0 0 30px;
}
.sa-member-banner strong { color: var(--sa-navy); font-size: 1.02rem; }
.sa-member-banner span { font-size: 0.92rem; color: var(--sa-grey); max-width: 760px; }

/* Current plan marker on the membership pricing cards. */
.plan-current {
        display: inline-block; padding: 12px 24px; border-radius: 999px;
        border: 1.5px solid var(--sa-gold); background: var(--sa-gold-soft);
        color: var(--sa-navy); font-weight: 700; font-size: 0.95rem;
}

@media (max-width: 980px) {
        .pkg-grid { grid-template-columns: 1fr; }
}

/* Apply gate: the APPLY NOW button reveals the unlock cards + payments */
.sa-unlock-panel { margin-top: 30px; }
.sa-unlock-panel[hidden] { display: none; }


/* Guests opening a gated opportunity/report: sign-in first, straight back after. */
.sa-pass-login {
        display: flex; flex-direction: column; align-items: center; gap: 6px;
        border: 1.5px solid var(--sa-navy); background: var(--sa-white);
        border-radius: 14px; padding: 26px 28px; text-align: center; margin-bottom: 24px;
}
.sa-pass-login-head { font-family: var(--sa-serif); font-size: 1.3rem; font-weight: 700; color: var(--sa-navy); margin: 0 0 6px; }
.sa-pass-login .sa-note { margin: 0 0 12px; }

/* ==========================================================================
   NEWSROOM (Task 41) - news-first homepage + newspaper single article.
   ========================================================================== */

/* ---------- Breaking strip ---------- */
/* Navy wire under the header: gold BREAKING tag + fresh headlines. The
   template only renders the strip while the Breaking category has stories
   from the last 24 hours, so it disappears when nothing is breaking. */
.news-strip { background: var(--sa-navy); border-bottom: 3px solid var(--sa-gold); }
.news-strip-in { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; min-height: 54px; padding: 9px 0; }
.news-strip-label {
        display: inline-flex; align-items: center; gap: 8px; flex: none;
        background: var(--sa-gold); color: #1A1505;
        font-size: 0.62rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase;
        padding: 6px 13px; border-radius: 3px;
}
.news-strip-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #B3001B; flex: none; }
.news-strip-list { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 30px; margin: 0; padding: 0; }
.news-strip-list a { color: rgba(255, 255, 255, 0.85); font-size: 0.9rem; font-weight: 600; }
.news-strip-list a:hover { color: var(--sa-gold); }

/* ---------- Top Stories ---------- */
/* The lead story carries a large feature image and a serif headline; the
   four secondary stories stack as compact thumb cards beside it. Headlines
   are justified; each thumb fills its card's full height (stretch with a
   square floor), so tall text rows never leave the photo half-told. */
.ts-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.ts-lead-link { display: flex; flex-direction: column; gap: 12px; color: inherit; }
.ts-lead-link:hover { color: inherit; }
.ts-lead-media { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--sa-radius); background: var(--sa-paper-2); box-shadow: var(--sa-shadow-sm); }
.ts-lead-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease, filter 0.4s ease; filter: saturate(0.9); }
.ts-lead-link:hover .ts-lead-media img { transform: scale(1.03); filter: saturate(1); }
.ts-lead .card-kicker { align-self: center; }
.ts-lead-title {
        font-size: clamp(1.6rem, 3vw, 2.35rem); line-height: 1.14; color: var(--sa-navy);
        margin: 0; text-align: justify; transition: color 0.2s ease;
}
.ts-lead-link:hover .ts-lead-title { color: var(--sa-gold-2); }
.ts-lead-excerpt { color: var(--sa-grey); font-size: 1.02rem; line-height: 1.65; margin: 0; }
.ts-lead .card-meta { justify-content: center; }
.ts-side { display: flex; flex-direction: column; gap: 18px; }
.ts-mini {
        background: var(--sa-white); border: 1px solid var(--sa-line); border-radius: var(--sa-radius);
        overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.ts-mini:hover { transform: translateY(-3px); box-shadow: var(--sa-shadow-sm); border-color: rgba(201, 162, 39, 0.45); }
.ts-mini-link { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 0; color: inherit; }
.ts-mini-link:hover { color: inherit; }
.ts-mini-media { display: block; align-self: stretch; min-height: 118px; overflow: hidden; background: var(--sa-paper-2); }
.ts-mini-media img { width: 100%; height: 100%; object-fit: cover; }
.ts-mini-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 18px 14px 16px; min-width: 0; }
.ts-mini-body .card-kicker { letter-spacing: 0.14em; }
.ts-mini-title { font-family: var(--sa-serif); font-weight: 600; font-size: 1.02rem; line-height: 1.32; color: var(--sa-navy); text-align: justify; transition: color 0.2s ease; }
.ts-mini-link:hover .ts-mini-title { color: var(--sa-gold-2); }
.ts-mini-date { font-size: 0.76rem; color: var(--sa-grey); }

/* ---------- Latest News rows ---------- */
/* Chronological newspaper rows: date - headline - section, hairline separated. */
.latest-list { list-style: none; margin: 0 auto; padding: 0; max-width: 940px; }
.latest-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; padding: 17px 4px; border-bottom: 1px solid var(--sa-line); }
.latest-list li:first-child { padding-top: 4px; }
.latest-list li:last-child { border-bottom: 0; }
.latest-date { flex: none; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sa-grey); min-width: 104px; }
.latest-list a { flex: 1 1 320px; font-family: var(--sa-serif); font-weight: 600; font-size: 1.08rem; line-height: 1.4; color: var(--sa-navy); }
.latest-list a:hover { color: var(--sa-gold-2); }
.latest-cat { flex: none; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sa-gold-2); }
/* A quiet section simply shows nothing - desks and bands that render no
   rows collapse before the section wrapper (template-level guard). */

/* News desks reuse the opportunity desk head rhythm with a touch less air. */
.news-desk { margin-top: 40px; }
.news-desk:first-of-type { margin-top: 0; }

/* ---------- Single article: deck, share, reading measure, author ---------- */
.entry-meta a { color: var(--sa-navy); font-weight: 650; border-bottom: 1px solid rgba(12, 27, 42, 0.25); }
.entry-meta a:hover { color: var(--sa-gold-2); border-bottom-color: var(--sa-gold); }
/* Deck: the italic serif standfirst under the headline. */
.entry-deck {
        font-family: var(--sa-serif); font-style: italic;
        font-size: clamp(1.05rem, 2vw, 1.22rem); line-height: 1.6;
        color: var(--sa-grey); text-align: center;
        max-width: 720px; margin: 6px auto 0;
}
.share-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin: 24px auto 0; }
.share-label { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sa-grey); }
.share-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.share-btn {
        display: inline-flex; align-items: center; justify-content: center;
        padding: 9px 18px; border: 1px solid var(--sa-line); border-radius: 999px;
        background: var(--sa-white); color: var(--sa-navy);
        font-family: var(--sa-sans); font-size: 0.7rem; font-weight: 700;
        letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
        transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.share-btn:hover { border-color: var(--sa-gold); color: var(--sa-gold-2); background: var(--sa-gold-soft); transform: translateY(-1px); }
.share-btn.is-done { border-color: var(--sa-gold); background: var(--sa-gold); color: #1A1505; }
/* Comfortable long-form measure: body copy caps at ~72 characters, centered
   in the main column, while the featured image and bands keep the wide run. */
.entry-content--reading { width: min(720px, 100%); margin-inline: auto; font-size: 1.05rem; }
/* Centered author bio box closing the article. */
.author-box {
        margin-top: 44px; padding: 38px 30px 32px;
        background: var(--sa-white); border: 1px solid var(--sa-line); border-radius: var(--sa-radius);
        display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}
.author-box-avatar { width: 88px; height: 88px; border-radius: 50%; border: 3px solid var(--sa-gold-soft); box-shadow: var(--sa-shadow-sm); }
.author-box-name { font-family: var(--sa-serif); font-weight: 600; font-size: 1.25rem; color: var(--sa-navy); }
.author-box-name:hover { color: var(--sa-gold-2); }
.author-box-bio { color: var(--sa-grey); font-size: 0.95rem; line-height: 1.65; max-width: 560px; margin: 0; }
/* Gold reading-progress bar along the very top of the viewport. */
.tsa-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1300; pointer-events: none; }
.tsa-progress span { display: block; height: 100%; width: 0; background: var(--sa-gold); transition: width 0.08s linear; }

/* ---------- Newsroom responsive ---------- */
@media (max-width: 980px) {
        .ts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
        .news-strip-in { padding: 10px 0; gap: 10px 16px; }
        .ts-mini-link { grid-template-columns: 96px minmax(0, 1fr); }
        .ts-mini-media { min-height: 96px; }
        .ts-mini-body { padding: 12px 14px 12px 12px; }
        .latest-date { min-width: 0; }
        .latest-list li { gap: 4px 14px; }
        .share-links { gap: 8px; }
        .share-btn { padding: 8px 14px; font-size: 0.66rem; }
}
