/* ============================================================
   Nexus – Congress
   archive-annual_congress.php  →  nxca-* classes
   single-annual_congress.php   →  nxcs-* classes
   [nexus_congress] shortcode   →  (legacy nxc-* classes kept below)
   ============================================================

   ARCHIVE CLASS REFERENCE
   ─────────────────────────────────────────────────────────
   PAGE
     .nxca-page                  outer wrapper

   ARCHIVE HERO
     .nxca-hero                  full-width purple/dark banner
     .nxca-hero-overlay          gradient overlay
     .nxca-hero-inner            centered inner content
     .nxca-hero-eyebrow          small label above title
     .nxca-hero-title            H1 page title
     .nxca-hero-desc             sub-description

   GRID
     .nxca-grid                  auto-fill card grid
     .nxca-empty                 "no congresses" fallback
     .nxca-pagination            pagination row

   CARD
     .nxca-card                  individual congress card
     .nxca-card--past            muted past variant
     .nxca-card--current         highlighted current-year variant

   CARD HEADER (image + badge band)
     .nxca-card-header           image/colour header area
     .nxca-card-header-overlay   dark gradient over image
     .nxca-card-header-content   content inside header
     .nxca-year-badge            large year number
     .nxca-card-badge-row        flex row of status pills

   STATUS PILLS
     .nxca-status-badge          shared pill base
     .nxca-status-badge--past    grey pill
     .nxca-status-badge--current green pill
     .nxca-status-badge--upcoming purple tint pill
     .nxca-status-badge--reg-open    green "Registration Open"
     .nxca-status-badge--reg-closed  red "Registration Closed"

   CARD BODY
     .nxca-card-body             padding content area
     .nxca-card-title            H2 congress title
     .nxca-card-title-link       anchor inside title
     .nxca-card-theme            italic theme line
     .nxca-card-meta             <ul> meta list
     .nxca-card-meta-item        shared meta row (icon + text)
     .nxca-card-venue            pin icon + venue
     .nxca-card-chair            person icon + chairperson
     .nxca-card-deadline         clock icon + deadline date
     .nxca-card-deadline--closed red tinted deadline

   CARD FOOTER
     .nxca-card-footer           bottom action bar
     .nxca-card-link             "View Details" text link
     .nxca-card-reg-btn          "Register" filled button
   ─────────────────────────────────────────────────────────

   SINGLE CLASS REFERENCE
   ─────────────────────────────────────────────────────────
   PAGE
     .nxcs-page                  outer wrapper

   BACK BAR
     .nxcs-back-bar              thin bar above hero
     .nxcs-back-bar-inner        max-width centred inner
     .nxcs-back-link             ← All Congresses link

   HERO
     .nxcs-hero                  full-width hero section
     .nxcs-hero--has-image       modifier when thumbnail exists
     .nxcs-hero-bg               blurred background image
     .nxcs-hero-overlay          dark gradient overlay
     .nxcs-hero-inner            two-col grid (stacks mobile)
     .nxcs-hero-content          left/text side
     .nxcs-hero-top-row          year pill + status pill row
     .nxcs-year-pill             year number pill
     .nxcs-status-pill           status label pill
     .nxcs-status-pill--past     grey past
     .nxcs-status-pill--current  green current
     .nxcs-status-pill--upcoming purple upcoming
     .nxcs-hero-title            H1 congress name
     .nxcs-hero-theme            italic theme quote
     .nxcs-hero-meta             flex row of info badges
     .nxcs-hero-badge            individual info badge (venue, chair…)
     .nxcs-hero-cta-row          CTA buttons row
     .nxcs-hero-cta-btn          primary white "Register" button
     .nxcs-hero-secondary-btn    ghost "Submit Abstract" button
     .nxcs-hero-image            right image panel

   INFO STRIP (overlaps hero bottom edge)
     .nxcs-info-strip-wrap       full-width positioning wrapper
     .nxcs-info-strip            card with 4 info items
     .nxcs-info-item             single info item
     .nxcs-info-icon             coloured icon square
     .nxcs-info-icon--year       calendar variant
     .nxcs-info-icon--venue      pin variant
     .nxcs-info-icon--chair      person variant
     .nxcs-info-icon--reg        checkmark variant
     .nxcs-info-text             label + value wrapper
     .nxcs-info-label            small uppercase label
     .nxcs-info-value            readable value
     .nxcs-reg-status--open      green value text
     .nxcs-reg-status--closed    red value text

   LAYOUT (two-column)
     .nxcs-layout                outer padding wrapper
     .nxcs-layout-inner          grid: main + sidebar
     .nxcs-main                  left main content column
     .nxcs-sidebar               right sidebar column
     .nxcs-sidebar-sticky        sticky inner wrapper

   SECTIONS (main column)
     .nxcs-section               each content section
     .nxcs-section-title         H2 with icon + underline
     .nxcs-section-title-icon    icon square left of title
     .nxcs-content               <div> for WP content/editor output

   SCIENTIFIC COMMITTEE
     .nxcs-committee-grid        responsive card grid
     .nxcs-committee-card        individual member card
     .nxcs-committee-avatar      initial avatar circle
     .nxcs-committee-name        member name

   VIDEO
     .nxcs-video-wrap            rounded container
     .nxcs-video-embed           16:9 responsive iframe wrapper
     .nxcs-video-player          <video> element

   SIDEBAR – REGISTRATION CARD
     .nxcs-reg-card              registration action card
     .nxcs-reg-card--open        green accent variant
     .nxcs-reg-card--closed      red/muted variant
     .nxcs-reg-card--past        grey past variant
     .nxcs-reg-card--upcoming    purple upcoming variant
     .nxcs-reg-card-header       title + pill row
     .nxcs-reg-card-title        H3 "Registration"
     .nxcs-reg-pill              small status pill
     .nxcs-reg-pill--open        green
     .nxcs-reg-pill--closed      red
     .nxcs-reg-pill--past        grey
     .nxcs-reg-pill--upcoming    purple
     .nxcs-reg-deadline          deadline date row (icon + text)
     .nxcs-reg-card-actions      button column
     .nxcs-reg-btn               shared button base
     .nxcs-reg-btn--primary      filled purple CTA
     .nxcs-reg-btn--outline      outline secondary button
     .nxcs-reg-closed-notice     closed message text

   SIDEBAR – QUICK INFO
     .nxcs-quick-info            info list card
     .nxcs-quick-info-title      H3 heading
     .nxcs-quick-info-list       <ul> rows
     .nxcs-quick-info-row        key : value row
     .nxcs-quick-info-key        left label
     .nxcs-quick-info-val        right value
   ─────────────────────────────────────────────────────────

   SHORTCODE (legacy nxc-* classes – [nexus_congress])
   ─────────────────────────────────────────────────────────
     .nxc-wrap  .nxc-notice  .nxc-hero  .nxc-hero-bg
     .nxc-hero-overlay  .nxc-hero-inner  .nxc-hero-content
     .nxc-hero-year  .nxc-hero-title  .nxc-hero-theme
     .nxc-hero-meta  .nxc-hero-badge  .nxc-hero-cta
     .nxc-hero-image  .nxc-body  .nxc-info-grid  .nxc-info-card
     .nxc-info-icon  .nxc-info-label  .nxc-info-value
     .nxc-section  .nxc-section-title  .nxc-content
     .nxc-committee-list  .nxc-committee-tag
     .nxc-video-wrap  .nxc-video-embed  .nxc-video-player
     .nxc-actions  .nxc-btn  .nxc-btn-primary  .nxc-btn-outline
   ============================================================ */

/* ── Design tokens ──────────────────────────────────────── */
:root {
    --nxc-purple:      #4a1060;
    --nxc-purple-lt:   #f0e6f6;
    --nxc-purple-md:   #7b2d96;
    --nxc-blue:        #0A4D92;
    --nxc-blue-lt:     #e8eef8;
    --nxc-green:       #065f46;
    --nxc-green-bg:    #d1fae5;
    --nxc-red:         #991b1b;
    --nxc-red-bg:      #fee2e2;
    --nxc-text:        #0f172a;
    --nxc-muted:       #475569;
    --nxc-light:       #94a3b8;
    --nxc-border:      #e2e8f0;
    --nxc-surface:     #ffffff;
    --nxc-bg:          #f8fafc;
    --nxc-radius:      12px;
    --nxc-radius-sm:   6px;
    --nxc-shadow:      0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.08);
    --nxc-shadow-hv:   0 8px 28px rgba(0,0,0,.14);
    --nxc-trans:       .22s ease;
}

/* ════════════════════════════════════════════════════════
   ARCHIVE PAGE  (nxca-*)
   ════════════════════════════════════════════════════════ */

.nxca-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--nxc-text);
}

/* ── Archive hero ─────────────────────────────────────── */
.nxca-hero {
    position: relative;
    background: var(--nxc-purple);
    padding: 80px 24px 100px;
    overflow: hidden;
    text-align: center;
}

.nxca-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 40%, rgba(123,45,150,.6) 0%, transparent 70%),
                radial-gradient(ellipse at 20% 80%, rgba(74,16,96,.8) 0%, transparent 60%);
    pointer-events: none;
}

.nxca-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(74,16,96,.95) 0%, rgba(10,77,146,.75) 100%);
    pointer-events: none;
}

.nxca-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
}

.nxca-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.9);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.nxca-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 16px;
    letter-spacing: -.03em;
    line-height: 1.1;
}

.nxca-hero-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,.8);
    line-height: 1.65;
    margin: 0;
    max-width: 560px;
    margin-inline: auto;
}

/* ── Archive body ─────────────────────────────────────── */
.nxca-body {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

.nxca-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.nxca-empty {
    text-align: center;
    padding: 64px 24px;
    color: var(--nxc-light);
    font-size: 1rem;
}

/* ── Archive card ─────────────────────────────────────── */
.nxca-card {
    display: flex;
    flex-direction: column;
    background: var(--nxc-surface);
    border: 1px solid var(--nxc-border);
    border-radius: var(--nxc-radius);
    box-shadow: var(--nxc-shadow);
    overflow: hidden;
    transition: transform var(--nxc-trans), box-shadow var(--nxc-trans);
}

.nxca-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--nxc-shadow-hv);
}

.nxca-card--past {
    opacity: .8;
}

.nxca-card--current {
    border-color: var(--nxc-purple);
    box-shadow: 0 0 0 2px rgba(74,16,96,.15), var(--nxc-shadow);
}

/* ── Card header ──────────────────────────────────────── */
.nxca-card-header {
    position: relative;
    height: 160px;
    background: var(--nxc-purple);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 16px;
}

.nxca-card-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(74,16,96,.3) 0%, rgba(74,16,96,.85) 100%);
}

.nxca-card-header-content {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
}

.nxca-year-badge {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -.04em;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.nxca-card-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
}

/* Status badge pills */
.nxca-status-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 3px 9px;
    border-radius: 100px;
    white-space: nowrap;
    line-height: 1.5;
}

.nxca-status-badge--past     { background: rgba(255,255,255,.18); color: rgba(255,255,255,.75); }
.nxca-status-badge--current  { background: #d1fae5; color: #065f46; }
.nxca-status-badge--upcoming { background: rgba(255,255,255,.22); color: #fff; }
.nxca-status-badge--reg-open   { background: #d1fae5; color: #065f46; }
.nxca-status-badge--reg-closed { background: rgba(255,255,255,.15); color: rgba(255,255,255,.7); }

/* ── Card body ────────────────────────────────────────── */
.nxca-card-body {
    flex: 1;
    padding: 20px 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nxca-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--nxc-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nxca-card-title-link {
    color: inherit;
    text-decoration: none;
    transition: color var(--nxc-trans);
}

.nxca-card-title-link:hover {
    color: var(--nxc-purple);
}

.nxca-card-theme {
    margin: 0;
    font-size: 13px;
    font-style: italic;
    color: var(--nxc-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nxca-card-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nxca-card-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    color: var(--nxc-muted);
    line-height: 1.4;
}

.nxca-card-meta-item svg {
    flex-shrink: 0;
    margin-top: 1px;
    opacity: .6;
}

.nxca-card-meta-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nxca-card-deadline--closed { color: var(--nxc-red); }
.nxca-card-deadline--closed svg { opacity: 1; color: var(--nxc-red); }

/* ── Card footer ──────────────────────────────────────── */
.nxca-card-footer {
    padding: 12px 20px 16px;
    border-top: 1px solid var(--nxc-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.nxca-card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: var(--nxc-purple);
    text-decoration: none;
    transition: gap var(--nxc-trans);
}

.nxca-card-link:hover {
    gap: 8px;
    color: var(--nxc-purple-md);
}

.nxca-card-reg-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    background: var(--nxc-purple);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--nxc-radius-sm);
    text-decoration: none;
    transition: background var(--nxc-trans);
    white-space: nowrap;
}

.nxca-card-reg-btn:hover {
    background: var(--nxc-purple-md);
    color: #fff;
}

/* ── Pagination ───────────────────────────────────────── */
.nxca-pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

.nxca-pagination .nav-links {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.nxca-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: var(--nxc-radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--nxc-muted);
    text-decoration: none;
    border: 1px solid var(--nxc-border);
    background: var(--nxc-surface);
    transition: background var(--nxc-trans), color var(--nxc-trans), border-color var(--nxc-trans);
}

.nxca-pagination .page-numbers:hover,
.nxca-pagination .page-numbers.current {
    background: var(--nxc-purple);
    color: #fff;
    border-color: var(--nxc-purple);
}

/* ════════════════════════════════════════════════════════
   SINGLE PAGE  (nxcs-*)
   ════════════════════════════════════════════════════════ */

.nxcs-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--nxc-text);
}

/* ── Back bar ─────────────────────────────────────────── */
.nxcs-back-bar {
    background: var(--nxc-bg);
    border-bottom: 1px solid var(--nxc-border);
    padding: 12px 24px;
}

.nxcs-back-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.nxcs-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--nxc-muted);
    text-decoration: none;
    transition: color var(--nxc-trans), gap var(--nxc-trans);
}

.nxcs-back-link:hover {
    color: var(--nxc-purple);
    gap: 8px;
}

/* ── Hero ─────────────────────────────────────────────── */
.nxcs-hero {
    position: relative;
    background: var(--nxc-purple);
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
}

.nxcs-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(18px) brightness(.45);
    transform: scale(1.1);
}

.nxcs-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(74,16,96,.92) 0%, rgba(10,77,146,.7) 100%);
}

.nxcs-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 56px;
    align-items: center;
}

.nxcs-hero-content {
    color: #fff;
}

.nxcs-hero-top-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.nxcs-year-pill {
    display: inline-block;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .1em;
    padding: 5px 16px;
    border-radius: 100px;
}

.nxcs-status-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 5px 14px;
    border-radius: 100px;
}

.nxcs-status-pill--past     { background: rgba(255,255,255,.14); color: rgba(255,255,255,.7); }
.nxcs-status-pill--current  { background: #d1fae5; color: #065f46; }
.nxcs-status-pill--upcoming { background: rgba(255,255,255,.2); color: #fff; }

.nxcs-hero-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -.03em;
    margin: 0 0 16px;
}

.nxcs-hero-theme {
    font-size: 1.05rem;
    font-style: italic;
    color: rgba(255,255,255,.85);
    line-height: 1.55;
    margin: 0 0 24px;
}

.nxcs-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.nxcs-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.2);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,.95);
}

.nxcs-hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.nxcs-hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: #fff;
    color: var(--nxc-purple);
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--nxc-radius-sm);
    text-decoration: none;
    transition: transform var(--nxc-trans), box-shadow var(--nxc-trans);
}

.nxcs-hero-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    color: var(--nxc-purple);
}

.nxcs-hero-secondary-btn {
    display: inline-flex;
    align-items: center;
    padding: 13px 24px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--nxc-radius-sm);
    text-decoration: none;
    transition: background var(--nxc-trans);
}

.nxcs-hero-secondary-btn:hover {
    background: rgba(255,255,255,.22);
    color: #fff;
}

.nxcs-hero-image {
    border-radius: var(--nxc-radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    aspect-ratio: 4/3;
}

.nxcs-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Info strip ───────────────────────────────────────── */
.nxcs-info-strip-wrap {
    background: var(--nxc-bg);
    padding: 0 24px;
}

.nxcs-info-strip {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--nxc-surface);
    border: 1px solid var(--nxc-border);
    border-radius: var(--nxc-radius);
    box-shadow: var(--nxc-shadow);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0;
    transform: translateY(-32px);
    position: relative;
    z-index: 2;
}

.nxcs-info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-right: 1px solid var(--nxc-border);
}

.nxcs-info-item:last-child {
    border-right: none;
}

.nxcs-info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--nxc-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nxcs-info-icon--year  { background: var(--nxc-purple-lt); color: var(--nxc-purple); }
.nxcs-info-icon--venue { background: #fef3c7; color: #92400e; }
.nxcs-info-icon--chair { background: var(--nxc-blue-lt); color: var(--nxc-blue); }
.nxcs-info-icon--reg   { background: var(--nxc-green-bg); color: var(--nxc-green); }

.nxcs-info-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.nxcs-info-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--nxc-light);
}

.nxcs-info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--nxc-text);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nxcs-reg-status--open   { color: var(--nxc-green); }
.nxcs-reg-status--closed { color: var(--nxc-red); }

/* ── Layout ───────────────────────────────────────────── */
.nxcs-layout {
    background: var(--nxc-bg);
    padding: 0 24px 80px;
}

.nxcs-layout-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

.nxcs-main {
    min-width: 0;
}

/* ── Sections ─────────────────────────────────────────── */
.nxcs-section {
    background: var(--nxc-surface);
    border: 1px solid var(--nxc-border);
    border-radius: var(--nxc-radius);
    padding: 32px;
    margin-bottom: 20px;
    box-shadow: var(--nxc-shadow);
}

.nxcs-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--nxc-text);
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--nxc-border);
    letter-spacing: -.01em;
}

.nxcs-section-title-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: var(--nxc-radius-sm);
    background: var(--nxc-purple-lt);
    color: var(--nxc-purple);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nxcs-content {
    font-size: 15px;
    line-height: 1.75;
    color: var(--nxc-muted);
}

.nxcs-content p:first-child { margin-top: 0; }
.nxcs-content p:last-child  { margin-bottom: 0; }

/* ── Committee ────────────────────────────────────────── */
.nxcs-committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.nxcs-committee-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--nxc-bg);
    border: 1px solid var(--nxc-border);
    border-radius: var(--nxc-radius-sm);
    transition: border-color var(--nxc-trans), background var(--nxc-trans);
}

.nxcs-committee-card:hover {
    border-color: var(--nxc-purple);
    background: var(--nxc-purple-lt);
}

.nxcs-committee-avatar {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--nxc-purple);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.nxcs-committee-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--nxc-text);
    line-height: 1.4;
}

/* ── Video ────────────────────────────────────────────── */
.nxcs-video-wrap {
    border-radius: var(--nxc-radius-sm);
    overflow: hidden;
    background: #000;
}

.nxcs-video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.nxcs-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.nxcs-video-player {
    width: 100%;
    display: block;
    border: none;
}

/* ── Sidebar ──────────────────────────────────────────── */
.nxcs-sidebar-sticky {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Registration card */
.nxcs-reg-card {
    background: var(--nxc-surface);
    border: 1px solid var(--nxc-border);
    border-radius: var(--nxc-radius);
    padding: 24px;
    box-shadow: var(--nxc-shadow);
}

.nxcs-reg-card--open   { border-top: 3px solid #059669; }
.nxcs-reg-card--closed { border-top: 3px solid #dc2626; }
.nxcs-reg-card--past   { border-top: 3px solid var(--nxc-light); }
.nxcs-reg-card--upcoming { border-top: 3px solid var(--nxc-purple); }

.nxcs-reg-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.nxcs-reg-card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--nxc-text);
}

.nxcs-reg-pill {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 3px 10px;
    border-radius: 100px;
    white-space: nowrap;
}

.nxcs-reg-pill--open     { background: var(--nxc-green-bg); color: var(--nxc-green); }
.nxcs-reg-pill--closed   { background: var(--nxc-red-bg); color: var(--nxc-red); }
.nxcs-reg-pill--past     { background: var(--nxc-bg); color: var(--nxc-light); border: 1px solid var(--nxc-border); }
.nxcs-reg-pill--upcoming { background: var(--nxc-purple-lt); color: var(--nxc-purple); }

.nxcs-reg-deadline {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--nxc-muted);
    margin-bottom: 18px;
    padding: 10px 14px;
    background: var(--nxc-bg);
    border-radius: var(--nxc-radius-sm);
    border: 1px solid var(--nxc-border);
}

.nxcs-reg-deadline svg {
    flex-shrink: 0;
    color: var(--nxc-purple);
}

.nxcs-reg-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nxcs-reg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 12px 20px;
    border-radius: var(--nxc-radius-sm);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background var(--nxc-trans), box-shadow var(--nxc-trans);
    text-align: center;
}

.nxcs-reg-btn--primary {
    background: var(--nxc-purple);
    color: #fff;
}

.nxcs-reg-btn--primary:hover {
    background: var(--nxc-purple-md);
    color: #fff;
    box-shadow: 0 4px 16px rgba(74,16,96,.3);
}

.nxcs-reg-btn--outline {
    background: transparent;
    color: var(--nxc-text);
    border: 1px solid var(--nxc-border);
}

.nxcs-reg-btn--outline:hover {
    border-color: var(--nxc-purple);
    color: var(--nxc-purple);
    background: var(--nxc-purple-lt);
}

.nxcs-reg-closed-notice {
    margin: 0;
    font-size: 13px;
    color: var(--nxc-muted);
    text-align: center;
    padding: 12px;
    background: var(--nxc-bg);
    border-radius: var(--nxc-radius-sm);
}

/* Quick info card */
.nxcs-quick-info {
    background: var(--nxc-surface);
    border: 1px solid var(--nxc-border);
    border-radius: var(--nxc-radius);
    padding: 20px 24px;
    box-shadow: var(--nxc-shadow);
}

.nxcs-quick-info-title {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--nxc-text);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.nxcs-quick-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nxcs-quick-info-row {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--nxc-border);
    font-size: 13px;
    line-height: 1.4;
}

.nxcs-quick-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.nxcs-quick-info-key {
    flex: 0 0 90px;
    font-weight: 600;
    color: var(--nxc-light);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: 10px;
    padding-top: 2px;
}

.nxcs-quick-info-val {
    flex: 1;
    color: var(--nxc-text);
    font-weight: 500;
    word-break: break-word;
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .nxcs-hero-inner {
        grid-template-columns: 1fr 340px;
        gap: 40px;
    }
}

@media (max-width: 900px) {
    /* Archive */
    .nxca-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Single hero */
    .nxcs-hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 60px;
    }

    .nxcs-hero-image {
        max-width: 480px;
        margin-inline: auto;
    }

    /* Info strip */
    .nxcs-info-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .nxcs-info-item:nth-child(2n) {
        border-right: none;
    }

    .nxcs-info-item:nth-child(n+3) {
        border-top: 1px solid var(--nxc-border);
    }

    /* Layout */
    .nxcs-layout-inner {
        grid-template-columns: 1fr;
    }

    .nxcs-sidebar-sticky {
        position: static;
    }

    .nxcs-sidebar {
        order: -1;
    }
}

@media (max-width: 600px) {
    /* Archive hero */
    .nxca-hero {
        padding: 56px 20px 72px;
    }

    .nxca-body {
        padding: 40px 16px 56px;
    }

    .nxca-grid {
        grid-template-columns: 1fr;
    }

    /* Single */
    .nxcs-hero-inner {
        padding: 40px 20px 56px;
    }

    .nxcs-hero-title {
        font-size: 1.75rem;
    }

    .nxcs-info-strip {
        grid-template-columns: 1fr;
        transform: translateY(-16px);
    }

    .nxcs-info-item {
        border-right: none;
        border-bottom: 1px solid var(--nxc-border);
    }

    .nxcs-info-item:last-child {
        border-bottom: none;
    }

    .nxcs-info-item:nth-child(2n) { border-right: none; }
    .nxcs-info-item:nth-child(n+3) { border-top: none; }

    .nxcs-layout {
        padding: 0 16px 56px;
    }

    .nxcs-section {
        padding: 24px 18px;
    }

    .nxcs-committee-grid {
        grid-template-columns: 1fr;
    }

    .nxcs-hero-cta-row {
        flex-direction: column;
    }

    .nxcs-hero-cta-btn,
    .nxcs-hero-secondary-btn {
        justify-content: center;
    }
}

/* ════════════════════════════════════════════════════════
   LEGACY SHORTCODE  [nexus_congress]  (nxc-*)
   ════════════════════════════════════════════════════════ */

.nxc-wrap {
    margin-bottom: 0;
    padding-bottom: 64px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.nxc-notice {
    text-align: center;
    padding: 48px 24px;
    color: var(--nxc-muted);
    font-size: 1rem;
}

.nxc-hero {
    position: relative;
    min-height: 480px;
    overflow: hidden;
}

.nxc-hero-bg {
    position: absolute;
    inset: 0;
    background: var(--nxc-purple);
    background-size: cover;
    background-position: center;
    filter: blur(16px) brightness(0.5);
    transform: scale(1.15);
}

.nxc-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(74,16,96,.92) 0%, rgba(10,77,146,.70) 100%);
}

.nxc-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1140px;
    margin: 0 auto;
    padding: 56px 24px 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.nxc-hero-content { color: #fff; }

.nxc-hero-year {
    display: inline-block;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 100px;
    margin-bottom: 18px;
}

.nxc-hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.03em;
    margin: 0 0 18px;
    color: #fff;
}

.nxc-hero-theme {
    font-size: 1.1rem;
    font-style: italic;
    color: rgba(255,255,255,.9);
    line-height: 1.5;
    margin: 0 0 28px;
}

.nxc-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.nxc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.2);
    padding: 7px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
}

.nxc-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 32px;
    background: #fff;
    color: var(--nxc-purple);
    font-weight: 700;
    font-size: 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}

.nxc-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    color: var(--nxc-purple);
}

.nxc-hero-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    aspect-ratio: 4/3;
}

.nxc-hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.nxc-body {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.nxc-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    background: var(--nxc-surface);
    border: 1px solid var(--nxc-border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--nxc-shadow);
    margin-top: -36px;
    position: relative;
    z-index: 2;
    margin-bottom: 48px;
}

.nxc-info-card { display: flex; align-items: flex-start; gap: 14px; }

.nxc-info-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--nxc-purple-lt);
    color: var(--nxc-purple);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nxc-info-card > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.nxc-info-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--nxc-light);
}

.nxc-info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--nxc-text);
    line-height: 1.35;
}

.nxc-section { margin-bottom: 56px; }

.nxc-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--nxc-text);
    margin: 0 0 24px;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--nxc-purple);
    letter-spacing: -.01em;
}

.nxc-content { font-size: 15px; line-height: 1.7; color: var(--nxc-text); }
.nxc-content p { margin-top: 0; }

.nxc-committee-list { display: flex; flex-wrap: wrap; gap: 10px; }

.nxc-committee-tag {
    display: inline-block;
    padding: 9px 18px;
    background: var(--nxc-bg);
    border: 1px solid var(--nxc-border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--nxc-text);
    transition: background .15s, border-color .15s;
}

.nxc-committee-tag:hover {
    background: var(--nxc-purple-lt);
    border-color: var(--nxc-purple);
}

.nxc-video-wrap {
    border-radius: 12px;
    overflow: hidden;
    background: var(--nxc-bg);
    box-shadow: var(--nxc-shadow);
}

.nxc-video-embed { position: relative; padding-bottom: 56.25%; height: 0; }
.nxc-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.nxc-video-player { width: 100%; display: block; border: none; }

.nxc-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px solid var(--nxc-border);
    margin-top: 48px;
}

.nxc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, box-shadow .15s, transform .1s;
    cursor: pointer;
    border: none;
    line-height: 1.4;
}

.nxc-btn:active { transform: scale(.98); }

.nxc-btn-primary { background: var(--nxc-purple); color: #fff; }
.nxc-btn-primary:hover { background: var(--nxc-purple-md); box-shadow: 0 2px 10px rgba(74,16,96,.3); color: #fff; }

.nxc-btn-outline { background: transparent; color: var(--nxc-text); border: 1px solid var(--nxc-border); }
.nxc-btn-outline:hover { border-color: var(--nxc-purple); color: var(--nxc-purple); background: var(--nxc-purple-lt); }

@media (max-width: 900px) {
    .nxc-hero-inner { grid-template-columns: 1fr; gap: 32px; }
    .nxc-hero-title { font-size: 2rem; }
    .nxc-hero-image { max-width: 480px; margin: 0 auto; }
}

@media (max-width: 600px) {
    .nxc-hero { min-height: 0; }
    .nxc-hero-inner { padding: 40px 20px 48px; }
    .nxc-hero-title { font-size: 1.7rem; }
    .nxc-info-grid { grid-template-columns: 1fr; margin-top: -24px; }
    .nxc-body { padding: 0 16px; }
    .nxc-section-title { font-size: 1.25rem; }
    .nxc-actions { flex-direction: column; }
    .nxc-btn { justify-content: center; }
}
