/* Event Site CMS — public front-end stylesheet.
   Hand-written CSS, custom properties on :root, no framework/preprocessor.
   Separate from public/css/admin.css (the admin panel's own stylesheet). */

:root {
    --navy: #0e1228;
    --navy-soft: #1a1f3d;
    --navy-softer: #262b52;
    --gold: #c9a227;
    --gold-light: #e8c96a;
    --bg: #f7f5ef;
    --surface: #ffffff;
    --surface-alt: #efece3;
    --border: #e2ddd0;
    --text: #15182a;
    --text-muted: #5c6280;
    --text-on-dark: #f6f4ec;
    --text-on-dark-muted: #a9adc4;
    --danger: #b3261e;

    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow: 0 22px 50px -28px rgba(14, 18, 40, 0.4);
    --shadow-sm: 0 10px 24px -14px rgba(14, 18, 40, 0.28);
    --shadow-lift: 0 32px 64px -28px rgba(14, 18, 40, 0.45);

    --font-fallback: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font: "Inter", var(--font-fallback);
    --font-heading: "Plus Jakarta Sans", var(--font-fallback);
    --max-width: 1200px;
    --gap: clamp(18px, 2.8vw, 30px);
    --ease: cubic-bezier(0.16, 0.8, 0.24, 1);
}

/* 'modern' page template (config/cms.php "Page Templates") — re-themes
   the whole palette/type in one place by overriding the same custom
   properties every component already reads, so most of the site
   (header, footer, buttons, every section's colors/type) picks this up
   for free with zero per-component CSS. What doesn't come for free —
   genuinely different STRUCTURE per section type (image-overlay cards,
   pill link list, tabbed schedule, etc.) — is each section partial's own
   "modern" branch (see resources/views/home/sections/*.blade.php),
   styled further down this file. Palette/type values match the
   reference template the client supplied (Playfair Display + DM
   Sans/Inter, navy/gold/cream/paper) as closely as this app's existing
   token set allows. */
body.template-modern {
    --navy: #111936;
    --navy-soft: #19234a;
    --navy-softer: #232d54;
    --navy-deep: #23262d;
    --gold: #d7b45b;
    --gold-light: #e6c66d;
    --bg: #fffdf9;
    --surface: #ffffff;
    --surface-alt: #f6f2e9;
    --border: #e6e0d5;
    --text: #202532;
    --text-muted: #697184;
    --radius-sm: 14px;
    --radius: 20px;
    --radius-lg: 24px;
    --font-heading: "Playfair Display", Georgia, serif;
}

body.template-modern h1,
body.template-modern h2,
body.template-modern h3 {
    font-weight: 600;
    letter-spacing: -0.03em;
}

body.template-modern .site-brand,
body.template-modern .schedule-day-title,
body.template-modern .agenda-day-title {
    font-family: var(--font-heading);
}

/* 'conference' page template (config/cms.php "Page Templates") — same
   re-theming-via-custom-properties idea as 'modern' above, but this one
   also changes page STRUCTURE: sections.placement sorts sections into a
   70/30 main/sidebar layout (see resources/views/home/index.blade.php,
   .conference-layout below) instead of one stacked column. Body and
   headings both use Manrope so the whole template shares one family. */
body.template-conference {
    --navy: #0f1430;
    --navy-soft: #171d40;
    --navy-softer: #222a55;
    --navy-deep: #171d40;
    --gold: #d1aa4e;
    --gold-light: #f0d787;
    --bg: #f4f2ec;
    --surface: #ffffff;
    --surface-alt: #f3efe5;
    --border: #e3ded2;
    --text: #1d2233;
    --text-muted: #70798e;
    --radius-sm: 10px;
    --radius: 20px;
    --radius-lg: 24px;
    --max-width: 1240px;
    --font: "Manrope", var(--font-fallback);
    --font-heading: "Manrope", var(--font-fallback);
}

body.template-conference h1,
body.template-conference h2,
body.template-conference h3 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background:
        radial-gradient(ellipse 90% 45% at 50% -8%, rgba(201, 162, 75, 0.09), transparent 55%),
        var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, p {
    margin: 0;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text);
}

p {
    color: inherit;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

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

.site-container {
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: clamp(20px, 4vw, 40px);
}

/* Header ------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: linear-gradient(180deg, rgba(14, 18, 40, 0.98), rgba(14, 18, 40, 0.94));
    border-bottom: 1px solid transparent;
    transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.site-header.is-scrolled {
    background: rgba(14, 18, 40, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.55);
}

.site-header-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 16px;
}

.site-brand {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-on-dark);
}

.site-brand-logo {
    display: block;
    height: 42px;
    width: auto;
    max-width: min(220px, 50vw);
    object-fit: contain;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.4vw, 22px);
    flex-wrap: nowrap;
    flex: 0 1 auto;
    margin-left: auto;
    min-width: 0;
    /* Must stay visible — overflow-x:auto creates a scrollport that also
       clips overflow-y, which hid every .site-nav-dropdown-menu (Past years
       included) under the nav row. */
    overflow: visible;
}

.site-nav a {
    position: relative;
    padding-block: 6px;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--text-on-dark-muted);
    white-space: nowrap;
    transition: color 0.15s ease;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
    transition: right 0.2s var(--ease);
}

.site-nav a:hover {
    color: var(--text-on-dark);
}

.site-nav a:hover::after {
    right: 0;
}

/* Dropdown nav items (a menu item with children — see App\Models\MenuItem
   and "Menu Settings" in the admin). Desktop: hover/focus reveals the
   submenu, CSS-only. Mobile: initNavDropdowns() in site.js toggles
   .is-open on tap instead, since there's no hover on touch — see the
   @media block below. */

.site-nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 2px;
}

.site-nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    background: none;
    color: var(--text-on-dark-muted);
    cursor: pointer;
}

.site-nav-dropdown-toggle svg {
    width: 10px;
    height: 10px;
    transition: transform 0.2s ease;
}

.site-nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 50;
    min-width: 200px;
    margin-top: 12px;
    padding: 10px;
    background: linear-gradient(180deg, var(--navy-soft), var(--navy));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lift);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s var(--ease), visibility 0.2s;
}

.site-nav-dropdown-menu a {
    display: block;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 600;
    white-space: normal;
}

.site-nav-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.06);
}

.site-nav-dropdown-menu a::after {
    display: none;
}

.site-nav-dropdown:hover .site-nav-dropdown-menu,
.site-nav-dropdown:focus-within .site-nav-dropdown-menu,
.site-nav-dropdown.is-open .site-nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-nav-dropdown:hover .site-nav-dropdown-toggle svg,
.site-nav-dropdown:focus-within .site-nav-dropdown-toggle svg,
.site-nav-dropdown.is-open .site-nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

/* Past sits near the end of the nav — open leftward so the list isn't
   clipped by the viewport edge. */
.site-years .site-nav-dropdown-menu {
    left: auto;
    right: 0;
    z-index: 60;
    min-width: 140px;
}

.site-lang {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin-inline-start: 4px;
}

.site-lang-select {
    appearance: none;
    -webkit-appearance: none;
    min-width: 7.5rem;
    padding: 7px 32px 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.06);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a7abc4' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    color: var(--text-on-dark);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.site-lang-select:hover,
.site-lang-select:focus {
    border-color: rgba(255, 255, 255, 0.4);
    outline: none;
}

.site-lang-select option {
    color: var(--text);
    background: var(--surface);
}

/* Event year switcher — label is "Past" (button, no navigation); years
   open on hover/click. */
.site-years {
    margin-inline-start: 2px;
}

.site-years-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-block: 4px;
    border: none;
    background: none;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text-on-dark-muted);
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.15s ease;
}

.site-years-label:hover,
.site-years:hover .site-years-label,
.site-years.is-open .site-years-label,
.site-years:focus-within .site-years-label {
    color: var(--text-on-dark);
}

.site-years-label svg {
    width: 10px;
    height: 10px;
    transition: transform 0.2s ease;
}

.site-years:hover .site-years-label svg,
.site-years.is-open .site-years-label svg,
.site-years:focus-within .site-years-label svg {
    transform: rotate(180deg);
}

.site-years-menu a.is-active {
    font-weight: 700;
    color: var(--gold, var(--navy));
}

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

.site-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
}

.site-nav-toggle span {
    display: block;
    height: 2px;
    background: var(--text-on-dark);
    border-radius: 1px;
}

/* Hero ----------------------------------------------------------------- */

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: min(720px, 92vh);
    background: radial-gradient(ellipse at top right, var(--navy-softer), var(--navy) 60%);
    color: var(--text-on-dark);
    overflow: hidden;
}

/* Background media (image/video/youtube) — whichever one the admin picked
   via background_type. Absolutely positioned behind .hero-overlay. */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

img.hero-bg,
video.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    animation: hero-ken-burns 28s ease-in-out infinite alternate;
}

@keyframes hero-ken-burns {
    from { transform: scale(1.02) translate3d(0, 0, 0); }
    to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

@media (prefers-reduced-motion: reduce) {
    img.hero-bg,
    video.hero-bg {
        animation: none;
        transform: none;
    }
}

/* Image hero: section height follows the image's full natural height
   (no crop). Overlay + content sit on top of the in-flow image. */
.hero--natural {
    min-height: 0;
}

.hero--natural .hero-bg-image {
    position: relative;
    z-index: 0;
    display: block;
    width: 100%;
    height: auto;
    object-fit: unset;
    animation: none;
    transform: none;
}

.hero--natural .hero-content {
    position: absolute;
    inset: 0;
    flex: none;
    width: 100%;
    box-sizing: border-box;
}

.hero-bg-youtube {
    overflow: hidden;
    pointer-events: none;
}

.hero-bg-youtube iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 */
    min-height: 100%;
    min-width: 177.78vh; /* 16:9 */
    transform: translate(-50%, -50%);
    border: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(18, 21, 42, 0.25) 0%, rgba(18, 21, 42, 0.45) 40%, rgba(18, 21, 42, 0.88) 100%),
        linear-gradient(115deg, rgba(18, 21, 42, 0.55), transparent 58%),
        radial-gradient(ellipse at 70% 20%, rgba(201, 162, 75, 0.18), transparent 50%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.35;
    pointer-events: none;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 75%);
}

/* Flex:1 so it fills whatever space .hero's min-height leaves above the
   countdown band, and centers whatever it contains — title/subtitle
   when background_type = image, or just the scroll cue otherwise. */
.hero-content {
    position: relative;
    z-index: 3;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding-block: clamp(48px, 8vh, 80px) 48px;
}

.hero-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(38px, 7vw, 76px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
    max-width: 16ch;
    text-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
    animation: hero-rise 0.9s var(--ease) both;
}

.hero-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin: 18px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    animation: hero-rise 0.9s 0.12s var(--ease) both;
}

.hero-subtitle {
    max-width: 42ch;
    font-size: clamp(16px, 2.1vw, 20px);
    line-height: 1.55;
    color: rgba(243, 242, 236, 0.88);
    animation: hero-rise 0.9s 0.18s var(--ease) both;
}

.hero-scroll-cue {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-top: auto;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    color: var(--text-on-dark);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    animation: hero-bounce 2.2s ease-in-out infinite;
}

.hero-scroll-cue-icon {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
}

.hero-scroll-cue:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
    animation: none;
    transform: translateY(2px);
}

@keyframes hero-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: min(580px, 92vh);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-title,
    .hero-title::after,
    .hero-subtitle,
    .hero-scroll-cue {
        animation: none;
    }
}

/* Hero — 'modern' template: left-aligned instead of centered, a side
   (not top/bottom) overlay gradient, serif title — matching the
   client's reference template's hero. See config/cms.php
   "Page Templates". */

.hero--modern .hero-content {
    align-items: flex-start;
}

.hero--modern .hero-inner {
    align-items: flex-start;
    text-align: left;
}

.hero--modern .hero-overlay {
    background:
        linear-gradient(90deg, rgba(8, 13, 34, .87), rgba(8, 13, 34, .35) 60%, rgba(8, 13, 34, .08)),
        linear-gradient(180deg, rgba(18, 21, 42, .2) 0%, rgba(18, 21, 42, .45) 100%);
}

.hero--modern .hero-title {
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: -0.03em;
    text-shadow: none;
}

.hero--modern .hero-title::after {
    margin-left: 0;
    margin-right: auto;
}

.hero--modern .hero-subtitle {
    text-align: left;
}

/* Hero — 'conference' template: bottom-anchored content (not centered)
   and a serif title over a side-lit overlay — matching the client's
   conference reference template's hero-banner. See config/cms.php
   "Page Templates". */

.hero--conference {
    align-items: flex-end;
}

.hero--conference .hero-content {
    align-items: flex-start;
    justify-content: flex-end;
    padding-bottom: 54px;
}

.hero--conference .hero-inner {
    align-items: flex-start;
    text-align: left;
}

.hero--conference .hero-overlay {
    background:
        linear-gradient(90deg, rgba(7, 11, 29, .92) 0%, rgba(7, 11, 29, .63) 48%, rgba(7, 11, 29, .22) 100%),
        radial-gradient(circle at 78% 18%, rgba(209, 170, 78, .25), transparent 25%);
}

.hero--conference .hero-title {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.03em;
    text-shadow: none;
}

.hero--conference .hero-title::after {
    margin-left: 0;
    margin-right: auto;
}

.hero--conference .hero-subtitle {
    text-align: left;
}

@keyframes hero-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* Countdown ------------------------------------------------------------- */

.countdown-band {
    position: relative;
    z-index: 3;
    background: linear-gradient(118deg, var(--gold) 0%, var(--gold-light) 55%, #f0dfa0 100%);
    color: var(--navy);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.countdown-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block: 26px;
}

.countdown-label {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(15px, 1.8vw, 18px);
    letter-spacing: -0.02em;
}

.countdown-clock {
    display: flex;
    gap: clamp(10px, 2vw, 22px);
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 56px;
}

.countdown-unit span {
    font-size: clamp(22px, 3.2vw, 32px);
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.countdown-unit small {
    margin-top: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    opacity: 0.75;
}

/* Countdown — 'modern' template: serif values instead of bold sans —
   see config/cms.php "Page Templates". Layout is already
   label-left/values-right, matching the client's reference template as-is. */

.countdown-band--modern .countdown-unit span {
    font-family: var(--font-heading);
    font-weight: 500;
}

/* Countdown — 'conference' template: Manrope values (cascades from
   --font-heading), plus the dark "ticket box" sidebar-placement variant
   — see config/cms.php "Page Templates" and
   home/sections/countdown.blade.php. */

.countdown-band--conference .countdown-unit span {
    font-family: var(--font-heading);
}

.countdown-ticket {
    background:
        radial-gradient(circle at 15% 20%, rgba(209, 170, 78, .19), transparent 22%),
        linear-gradient(150deg, var(--navy), var(--navy-softer));
    color: #fff;
    border-color: transparent;
}

.countdown-ticket-label {
    color: var(--gold-light);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.countdown-ticket-title {
    margin-top: 7px;
    font-family: var(--font-heading);
    font-size: 21px;
    line-height: 1.15;
    font-weight: 800;
    color: #fff;
}

.countdown-clock--ticket {
    margin-top: 14px;
    justify-content: space-between;
    gap: 6px;
}

.countdown-clock--ticket .countdown-unit {
    flex: 1;
    min-width: 0;
    padding: 9px 4px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
}

.countdown-clock--ticket .countdown-unit span {
    color: #fff;
    font-size: 17px;
}

.countdown-clock--ticket .countdown-unit small {
    color: #cbd0dd;
    opacity: 1;
}

/* Section header --------------------------------------------------------- */

.section {
    padding-block: clamp(64px, 9vw, 112px);
    position: relative;
}

.section:nth-of-type(even) {
    background:
        linear-gradient(180deg, rgba(243, 241, 234, 0.92), rgba(243, 241, 234, 0.92)),
        var(--surface-alt);
}

.section-header {
    max-width: 720px;
    margin: 0 auto clamp(36px, 5vw, 56px);
    text-align: center;
}

.section.is-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.section.is-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 11px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 14px;
}

.section-eyebrow::before,
.section-eyebrow::after {
    content: "";
    width: 28px;
    height: 1.5px;
    background: currentColor;
    border-radius: 1px;
    opacity: 0.7;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(30px, 4.2vw, 44px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.section-subtitle {
    margin-top: 14px;
    color: var(--text-muted);
    font-size: clamp(15px, 1.6vw, 17px);
    line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
    .section.is-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Conference layout ------------------------------------------------------------------------
   'conference' template only (config/cms.php "Page Templates") — the
   70/30 main/sidebar shell built in resources/views/home/index.blade.php
   from sections.placement, plus the ".panel" card shell every section
   partial's conference branch wraps itself in instead of the standard
   full-bleed section. Each conference section is a compact white card
   (.panel) floating on the page background, not a full-bleed striped
   section, so the standard alternating background/large section padding
   are turned off here rather than relied on. */

body.template-conference .section {
    padding-block: 0;
    background: #fff;
}

body.template-conference .section:nth-of-type(even) {
    background: #fff;
}

/* Full-width conference sections (except bleed hero/countdown) sit in
   .conference-full; column sections sit in .conference-layout. Both are
   opened from home/index.blade.php so sort_order stays intact. */
.conference-full {
    padding-block: 10px 0;
}

.conference-full + .conference-layout,
.conference-layout + .conference-full,
.conference-layout + .conference-layout {
    padding-top: 20px;
}

.conference-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
    gap: 22px;
    align-items: start;
    padding-block: 20px 28px;
}

.conference-layout--single {
    grid-template-columns: 1fr;
}

.conference-main,
.conference-sidebar {
    min-width: 0;
    display: grid;
    gap: 18px;
}

.conference-sidebar {
    position: sticky;
    top: 90px;
    align-self: start;
}

/* Nested .site-container inside a column/full wrapper would double the
   page gutters and re-apply max-width against the already-narrow column
   — neutralize it so sections without a conference branch still fit. */
body.template-conference .conference-main .site-container,
body.template-conference .conference-sidebar .site-container,
body.template-conference .conference-full .site-container {
    max-width: none;
    margin-inline: 0;
    padding-inline: 0;
}

/* Safety net: a section placed in a conference column that never grew
   its own .panel branch still gets the white card shell so it doesn't
   render as a naked full-bleed block in a 30% sidebar. Agenda's summit
   card layout brings its own cards — leave that shell off. */
body.template-conference .conference-main > .section:not(.panel):not(.section-agenda--conference):not(.section-contact--conference):not(.section-locations--conference),
body.template-conference .conference-sidebar > .section:not(.panel):not(.section-contact--conference):not(.section-locations--conference),
body.template-conference .conference-full > .section:not(.panel):not(.section-contact--conference):not(.section-locations--conference) {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    padding: 20px;
}

body.template-conference .conference-main > .section-agenda--conference {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    padding: 22px 24px;
}

@media (max-width: 960px) {
    .conference-layout {
        grid-template-columns: 1fr;
    }

    .conference-sidebar {
        position: static;
    }
}

.panel {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

/* Conference sections are always white cards on the page tint —
   including variants that used a dark fill (countdown ticket, stats).
   Hero stays full-bleed and is excluded. */
body.template-conference .panel,
body.template-conference .conference-main > .section:not(.section-contact--conference):not(.section-locations--conference),
body.template-conference .conference-sidebar > .section:not(.section-contact--conference):not(.section-locations--conference),
body.template-conference .conference-full > .section:not(.section-contact--conference):not(.section-locations--conference),
body.template-conference .countdown-ticket {
    background: #fff;
    background-image: none;
    color: var(--text);
    border-color: var(--border);
}

body.template-conference .countdown-ticket-label {
    color: var(--gold);
}

body.template-conference .countdown-ticket-title {
    color: var(--text);
}

body.template-conference .countdown-clock--ticket .countdown-unit {
    border-color: var(--border);
    background: var(--surface-alt);
}

body.template-conference .countdown-clock--ticket .countdown-unit span {
    color: var(--navy);
}

body.template-conference .countdown-clock--ticket .countdown-unit small {
    color: var(--text-muted);
}

body.template-conference .section-stats.panel {
    background: #fff;
    color: var(--text);
}

.panel-body {
    padding: 20px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.panel-header strong {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.panel-header small {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Conference sections keep the standard .section-header markup, just
   restyled compact + left-aligned to fit the panel — see each type's
   conference branch for the "sidebar" placement's own, smaller
   .panel-header treatment instead of this. */
body.template-conference .panel .section-header,
body.template-conference .section-agenda--conference .section-header {
    max-width: none;
    margin: 0 0 16px;
    text-align: left;
}

body.template-conference .panel .section-eyebrow {
    justify-content: flex-start;
    font-size: 10px;
}

/* One shared section-heading size across every conference block
   (panels, agenda, purpose, etc.) so titles read as equal. */
body.template-conference .section-title,
body.template-conference .panel .section-title,
body.template-conference .section-agenda--conference .agenda-toolbar .section-title {
    margin-top: 8px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

body.template-conference .panel .section-subtitle {
    margin-top: 8px;
    max-width: 540px;
    font-size: 14px;
}

/* Cards -------------------------------------------------------------------- */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--gap);
}

.card-tile {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s ease;
}

.card-tile::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
    z-index: 1;
}

.card-tile:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lift);
    border-color: rgba(201, 162, 75, 0.35);
}

.card-tile:hover::before {
    transform: scaleX(1);
}

.card-tile-media {
    aspect-ratio: 16 / 10;
    background: var(--surface-alt);
    overflow: hidden;
}

.card-tile-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s var(--ease);
}

.card-tile:hover .card-tile-media img {
    transform: scale(1.06);
}

.media-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--navy-softer), var(--gold) 150%);
    opacity: 0.85;
}

.card-tile-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-tile-title {
    font-size: 19px;
    font-weight: 700;
}

.card-tile-text {
    color: var(--text-muted);
    font-size: 15px;
}

.card-tile-text p {
    margin: 0 0 8px;
}

.card-tile-link {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 14px;
    color: var(--navy);
}

.card-tile-link span {
    transition: transform 0.15s ease;
}

.card-tile-link:hover span {
    transform: translateX(3px);
}

.section-cards--zigzag .cards-grid {
    grid-template-columns: 1fr;
    gap: clamp(28px, 5vw, 48px);
}

.section-cards--zigzag .card-tile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

/* Use nth-of-type (not nth-child): modal <template> siblings sit between
   articles in the grid and would break even/odd counting with nth-child. */
.section-cards--zigzag .card-tile:nth-of-type(even) {
    direction: rtl;
}

.section-cards--zigzag .card-tile:nth-of-type(even) .card-tile-body {
    direction: ltr;
}

.section-cards--zigzag .card-tile-media {
    aspect-ratio: auto;
    min-height: 220px;
}

.section-cards--zigzag .card-tile-media img {
    height: 100%;
}

@media (max-width: 720px) {
    .section-cards--zigzag .card-tile {
        grid-template-columns: 1fr;
        direction: ltr !important;
    }
}

/* Cards — 'modern' template — see config/cms.php "Page Templates" and
   the client's reference template's "content-card"/"horizontal-card".
   Two variants, mapped onto the existing layout field (not a new one):
   plain 'grid' -> dark image-overlay card; 'zigzag' -> light horizontal
   editorial card. Same markup/classes as standard either way, just
   these modifier classes. */

.card-tile--modern {
    position: relative;
    display: block;
    border: none;
    box-shadow: var(--shadow);
}

.card-tile--modern::before {
    display: none;
}

.card-tile--modern .card-tile-media {
    aspect-ratio: 3 / 4;
}

.card-tile--modern .card-tile-body {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 1;
    padding: 24px 24px 22px;
    background: linear-gradient(0deg, rgba(11, 16, 38, 0.94) 0%, rgba(11, 16, 38, 0.4) 65%, transparent 100%);
}

.card-tile--modern .card-tile-tag {
    display: block;
    margin-bottom: 6px;
    color: var(--gold-light);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.card-tile--modern .card-tile-title {
    color: var(--text-on-dark);
    font-size: 24px;
}

.card-tile--modern .card-tile-text {
    max-width: 34ch;
    color: #d7dae3;
    font-size: 13px;
}

.card-tile--modern .card-tile-link {
    display: none;
}

.card-tile--modern .card-tile-arrow {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    color: var(--text-on-dark);
    font-size: 15px;
}

/* Horizontal variant ('zigzag' layout + modern) — light card, image one
   side, copy the other, no overlay/scrim. */

.card-tile--modern-horizontal {
    display: grid !important;
    grid-template-columns: 42% 1fr;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.card-tile--modern-horizontal::before {
    display: none;
}

.card-tile--modern-horizontal .card-tile-media {
    aspect-ratio: auto;
    min-height: 0;
}

.card-tile--modern-horizontal .card-tile-body {
    padding: 28px;
    justify-content: center;
}

.card-tile--modern-horizontal .card-tile-tag {
    color: var(--gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.card-tile--modern-horizontal .card-tile-title {
    margin-top: 4px;
    font-size: 24px;
}

.card-tile--modern-horizontal .card-tile-arrow {
    display: none;
}

@media (max-width: 640px) {
    .card-tile--modern-horizontal {
        grid-template-columns: 1fr;
    }
}

/* Cards — 'conference' template: a denser 2-up dark-overlay grid (main
   column) and a compact thumbnail article-list (sidebar) — see
   config/cms.php "Page Templates" and home/sections/cards.blade.php. */

.cards-grid--conference {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.card-tile--conference {
    position: relative;
    display: block;
    border: none;
    border-radius: 13px;
    box-shadow: none;
}

.card-tile--conference::before {
    display: none;
}

.card-tile--conference .card-tile-media {
    aspect-ratio: 4 / 3;
}

.card-tile--conference .card-tile-body {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 1;
    padding: 14px 15px;
    background: linear-gradient(180deg, transparent 20%, rgba(8, 12, 31, .93));
}

.card-tile--conference .card-tile-tag {
    display: block;
    margin-bottom: 0;
    color: var(--gold-light);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.card-tile--conference .card-tile-title {
    margin: 5px 0 4px;
    color: #fff;
    font-size: 17px;
    line-height: 1.08;
}

.card-tile--conference .card-tile-text {
    max-width: 300px;
    color: #d5d8e2;
    font-size: 9px;
}

.card-tile--conference .card-tile-link {
    margin-top: 4px;
    color: var(--gold-light);
    font-size: 9px;
}

@media (max-width: 640px) {
    .cards-grid--conference {
        grid-template-columns: 1fr;
    }
}

.card-row-list {
    display: grid;
    gap: 8px;
}

.card-row {
    display: grid;
    grid-template-columns: 72px 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: inherit;
}

.card-row-media {
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface-alt);
}

.card-row-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-row-tag {
    display: block;
    color: var(--gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.card-row-title {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
}

/* Articles — 'conference' template: bordered row cards (same family
   as person-row / card-row), with a gold accent bar on hover. */

.article-row-list {
    display: grid;
    gap: 10px;
    margin-top: 6px;
}

.article-row {
    position: relative;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 12px 14px 12px 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    transition:
        border-color 0.22s ease,
        box-shadow 0.22s var(--ease),
        transform 0.22s var(--ease);
}

.article-row::before {
    /* content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--gold), var(--gold-light));
    opacity: 0;
    transition: opacity 0.22s ease; */
}

.article-row:hover,
.article-row:focus-visible {
    border-color: rgba(201, 162, 39, 0.45);
    box-shadow: 0 12px 28px -18px rgba(14, 18, 40, 0.35);
    transform: translateY(-1px);
}

.article-row:hover::before,
.article-row:focus-visible::before {
    opacity: 1;
}

.article-row:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.article-row-media {
    width: 112px;
    height: 78px;
    border-radius: 11px;
    overflow: hidden;
    background: var(--surface-alt);
    box-shadow: inset 0 0 0 1px rgba(14, 18, 40, 0.05);
}

.article-row-media img,
.article-row-media .media-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s var(--ease);
}

.article-row:hover .article-row-media img {
    transform: scale(1.06);
}

.article-row-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.article-row-index {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}

.article-row-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.4;
    color: var(--navy);
}

.article-row-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--surface-alt);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition:
        background 0.22s ease,
        color 0.22s ease,
        gap 0.22s ease;
}

.article-row-action svg {
    width: 14px;
    height: 14px;
}

.article-row:hover .article-row-action {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    gap: 8px;
}

@media (max-width: 640px) {
    .article-row {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 12px;
        padding: 10px;
    }

    .article-row-media {
        width: 88px;
        height: 64px;
    }

    .article-row-action {
        display: none;
    }

    .article-row-title {
        font-size: 14px;
    }
}

/* Links ---------------------------------------------------------------------- */

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.link-tile {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}

.link-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lift);
    border-color: rgba(201, 162, 39, 0.35);
}

/* Two visually separate sections per tile: the title area, and a
   distinct footer strip (own background + top border) holding the
   action — not the title/button squeezed into one row. */
.link-tile-title-area {
    flex: 1;
    padding: 22px 22px 16px;
}

.link-tile-title {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

.link-tile-action-area {
    padding: 14px 20px;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.link-tile-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border: 1px solid var(--navy);
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.link-tile-button:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
    transform: translateX(2px);
}

/* Links — 'modern' template: one bordered panel (numbered tag, bold
   title, "Open" pill) instead of a title-area/action-strip split card
   — matching the client's reference template's "Link List" component.
   See config/cms.php "Page Templates". */

.links-grid--modern {
    grid-template-columns: repeat(4, 1fr);
}

.link-tile--modern {
    display: block;
    padding: 24px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: none;
    color: inherit;
}

.link-tile--modern:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.link-tile-tag {
    display: block;
    margin-bottom: 10px;
    color: var(--gold-dark, var(--gold));
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.link-tile--modern .link-tile-title {
    display: block;
    font-size: 14px;
}

.link-tile-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .05em;
}

@media (max-width: 860px) {
    .links-grid--modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .links-grid--modern {
        grid-template-columns: 1fr;
    }
}

/* Links — 'conference' template: a compact bordered row per link inside
   a ".panel" (small numbered label + title + circular arrow), the same
   shape used for both of the reference's Link List instances. See
   config/cms.php "Page Templates" and home/sections/link_list.blade.php.
   Also used directly by that partial's markup (.link-list/.link-item),
   not just as a modifier — no BEM suffix needed since this type has no
   other conference variant to disambiguate from. */

.link-list {
    display: grid;
    gap: 8px;
}

.link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: inherit;
    transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.link-item:hover {
    border-color: var(--gold);
    transform: translateY(-1px);
}

.link-item small {
    display: block;
    color: var(--gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.link-item strong {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

/* Media tiles ------------------------------------------------------------------ */
/* Rows of max 4; each row sizes tiles by how many are in it
   (1 = full, 2 = half, 3 = thirds, 4 = quarters). Poster-friendly
   landscape frames with a soft mat + gold hover accent. */

.media-tiles-grid {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2vw, 20px);
}

.media-tiles-row {
    display: flex;
    gap: clamp(12px, 1.8vw, 18px);
}

.media-tiles-row .media-tile {
    flex: 1 1 0;
    min-width: 0;
}

.media-tile {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid rgba(14, 18, 40, 0.08);
    background: #0f1428;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(14, 18, 40, 0.04),
        0 10px 28px -18px rgba(14, 18, 40, 0.35);
    cursor: pointer;
    text-align: inherit;
    font: inherit;
    color: inherit;
    isolation: isolate;
    transition:
        transform 0.35s var(--ease),
        box-shadow 0.35s var(--ease),
        border-color 0.25s ease;
}

.media-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 55%, rgba(8, 12, 28, 0.35));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.media-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.55s var(--ease);
}

.media-tile:hover,
.media-tile:focus-visible {
    border-color: rgba(201, 162, 39, 0.55);
    transform: translateY(-5px);
    box-shadow:
        0 4px 8px rgba(14, 18, 40, 0.06),
        0 22px 40px -20px rgba(14, 18, 40, 0.45);
}

.media-tile:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.media-tile:hover::before,
.media-tile:focus-visible::before {
    opacity: 1;
}

.media-tile:hover img,
.media-tile:focus-visible img {
    transform: scale(1.045);
}

.media-tile--static {
    cursor: default;
}

.media-tile--static:hover {
    transform: none;
    border-color: rgba(14, 18, 40, 0.08);
    box-shadow:
        0 1px 2px rgba(14, 18, 40, 0.04),
        0 10px 28px -18px rgba(14, 18, 40, 0.35);
}

.media-tile--static:hover img {
    transform: none;
}

.media-tile--static:hover::before {
    opacity: 0;
}

.media-tile-play,
.media-tile-zoom,
.media-tile-download {
    position: absolute;
    z-index: 3;
    display: grid;
    place-items: center;
    color: var(--navy);
    background: linear-gradient(145deg, var(--gold), var(--gold-light));
    box-shadow: 0 8px 20px rgba(14, 18, 40, 0.25);
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.25s ease, transform 0.25s var(--ease);
    pointer-events: none;
}

.media-tile-play {
    inset: 0;
    margin: auto;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    opacity: 0.95;
    transform: none;
}

.media-tile-play svg {
    width: 22px;
    height: 22px;
    margin-left: 2px;
}

.media-tile-zoom,
.media-tile-download {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.media-tile-zoom svg,
.media-tile-download svg {
    width: 18px;
    height: 18px;
}

.media-tile:hover .media-tile-zoom,
.media-tile:focus-visible .media-tile-zoom,
.media-tile:hover .media-tile-play,
.media-tile:focus-visible .media-tile-play,
.media-tile:hover .media-tile-download,
.media-tile:focus-visible .media-tile-download {
    opacity: 1;
    transform: scale(1);
}

.media-tile-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 32px 16px 14px;
    background: linear-gradient(0deg, rgba(12, 16, 40, 0.88), transparent);
    color: #fff;
    text-align: left;
    pointer-events: none;
}

.media-tile-caption-title {
    font-family: var(--font-heading);
    font-size: clamp(14px, 1.6vw, 17px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.media-tile-caption-subtitle {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.82);
}

.section-media-tiles--full_bleed .media-tile {
    aspect-ratio: 21 / 9;
    border-radius: var(--radius-lg);
}

/* Poster lightbox (static media tiles without a link/video) */
.modal:has(.modal-poster) {
    max-width: min(920px, 94vw);
    padding: 18px;
    background: #0c1022;
}

.modal-poster {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-poster img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(78vh, 820px);
    object-fit: contain;
    border-radius: 10px;
    background: #080b18;
}

.modal-poster-meta {
    padding: 0 6px 4px;
}

.modal-poster-meta .modal-title {
    margin: 0;
    color: #fff;
    font-size: 1.15rem;
}

.modal-poster-meta .modal-subtitle {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.7);
}

.modal:has(.modal-poster) .modal-close {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.modal:has(.modal-poster) .modal-close:hover {
    background: var(--gold);
    color: var(--navy);
}

@media (max-width: 720px) {
    .media-tiles-row[data-count="3"] .media-tile,
    .media-tiles-row[data-count="4"] .media-tile {
        flex: 1 1 calc(50% - (var(--gap) / 2));
    }

    .media-tiles-row {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .media-tiles-row {
        flex-direction: column;
    }

    .media-tiles-row .media-tile {
        flex: 1 1 100%;
        aspect-ratio: 16 / 10;
    }
}

/* Text boxes ---------------------------------------------------------------------- */

.text-boxes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--gap);
}

.text-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(24px, 3vw, 32px);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}

.text-box-body {
    color: var(--text-muted);
    font-size: 15.5px;
    line-height: 1.7;
}

.text-box-body p {
    margin: 0 0 10px;
}

.text-box-body p:last-child {
    margin-bottom: 0;
}

/* Link overlays the box; body text always stays visible underneath. */
.text-box--linked {
    position: relative;
    cursor: pointer;
}

.text-box--linked:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(201, 162, 75, 0.4);
}

.text-box-stretch-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    text-decoration: none;
    color: transparent;
}

/* Text boxes — 'modern' template: full-bleed dark navy section with a
   2-column grid of subtly-bordered boxes (numbered label, serif heading,
   muted text) — see config/cms.php "Page Templates" and
   home/sections/text_boxes.blade.php for how heading/text are split out
   of the single 'body' richtext field. */

.section.section-text-boxes--modern {
    background: var(--navy);
    color: #fff;
}

.section-text-boxes--modern .section-eyebrow {
    color: var(--gold-light, var(--gold));
}

.section-text-boxes--modern .section-title {
    color: #fff;
}

.section-text-boxes--modern .section-subtitle {
    color: #adb4c7;
}

.text-boxes-grid--modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.text-box--modern {
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: var(--radius, 20px);
    padding: 28px;
}

.text-box--modern .text-box-label {
    display: block;
    color: var(--gold-light, #e4c676);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.text-box--modern h3 {
    margin: 12px 0 0;
    font-family: var(--font-heading, inherit);
    font-size: 25px;
    font-weight: 500;
    color: #fff;
}

.text-box--modern p {
    margin: 10px 0 0;
    color: #adb4c7;
    font-size: 14px;
    line-height: 1.6;
}

.text-box--modern.text-box--linked:hover {
    border-color: rgba(255, 255, 255, .28);
}

@media (max-width: 640px) {
    .text-boxes-grid--modern {
        grid-template-columns: 1fr;
    }
}

/* Text boxes — 'conference' template: light gradient cards inside a
   ".panel", instead of the 'modern' template's dark full-bleed boxes —
   matching the conference reference template's "Text Boxes" component.
   See config/cms.php "Page Templates". */

.text-boxes-grid--conference {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 15px;
}

.text-box--conference {
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: linear-gradient(145deg, #fff, var(--surface-alt));
}

.text-box--conference .text-box-label {
    display: block;
    color: var(--gold);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.text-box--conference h3 {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: normal;
}

.text-box--conference p {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 9px;
}

@media (max-width: 640px) {
    .text-boxes-grid--conference {
        grid-template-columns: 1fr;
    }
}

/* People ---------------------------------------------------------------------------- */
/* Full-bleed portrait card: photo fills the top, a dark navy footer band
   holds name/role, an optional badge pill sits over the photo's top-left
   corner (people.badge — see config/cms.php, blank hides it). */

.people-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
}

@media (max-width: 860px) {
    .people-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.person-card {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--navy);
    color: inherit;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.person-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lift);
}

.person-card:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.person-photo {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--surface-alt);
}

.person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
}

.person-card:hover .person-photo img {
    transform: scale(1.05);
}

.avatar-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 40px;
    color: #fff;
}

.avatar-initials[data-avatar-tone="0"] { background: linear-gradient(135deg, #c9a24b, #e4c87e); }
.avatar-initials[data-avatar-tone="1"] { background: linear-gradient(135deg, #1d2140, #40477e); }
.avatar-initials[data-avatar-tone="2"] { background: linear-gradient(135deg, #7a5a2e, #c9a24b); }
.avatar-initials[data-avatar-tone="3"] { background: linear-gradient(135deg, #2f3560, #5b63a6); }
.avatar-initials[data-avatar-tone="4"] { background: linear-gradient(135deg, #12152a, #2f3560); }

.person-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.person-photo .person-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.person-badge--inline {
    margin-bottom: 12px;
}

.person-info {
    padding: 16px 18px 20px;
}

.person-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-on-dark);
}

.person-role {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-on-dark-muted);
}

/* People — 'modern' template ---------------------------------------------------------
   Same overlay-card grid as standard, but the name/role block moves from
   a solid panel below the photo to overlaid on top of it behind a dark
   gradient scrim — matching the client's reference template's "People"
   component. See config/cms.php "Page Templates" and
   resources/views/home/sections/people.blade.php. */

.people-grid--modern {
    grid-template-columns: repeat(4, 1fr);
}

.person-card--modern {
    position: relative;
    aspect-ratio: 3 / 4;
    background: var(--navy);
}

.person-card--modern .person-photo {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
}

.person-card--modern::after {
    content: "";
    position: absolute;
    inset: 35% 0 0;
    z-index: 1;
    background: linear-gradient(transparent, rgba(7, 11, 31, .96));
    pointer-events: none;
}

.person-card--modern .person-info {
    position: absolute;
    z-index: 2;
    left: 17px;
    right: 17px;
    bottom: 16px;
    padding: 0;
}

.person-card--modern .person-name {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 500;
    color: #fff;
}

.person-card--modern .person-role {
    margin-top: 2px;
    color: #c9ceda;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

@media (max-width: 860px) {
    .people-grid--modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .people-grid--modern {
        grid-template-columns: 1fr;
    }
}

/* People — 'conference' template: same overlay-card idea as 'modern',
   much denser (auto-fill small tiles, main placement only) — matching
   the conference reference template's main-column "People" component.
   Sidebar placement (home/sections/people.blade.php) uses the compact
   avatar row list below instead of this grid. See config/cms.php
   "Page Templates". */

.people-grid--conference {
    grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
    gap: 9px;
}

.person-card--conference {
    position: relative;
    min-height: 170px;
    aspect-ratio: auto;
    border-radius: 11px;
    background: var(--navy);
}

.person-card--conference .person-photo {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
}

.person-card--conference::after {
    content: "";
    position: absolute;
    inset: 42% 0 0;
    z-index: 1;
    background: linear-gradient(transparent, rgba(8, 12, 31, .96));
    pointer-events: none;
}

.person-card--conference .person-info {
    position: absolute;
    z-index: 2;
    left: 10px;
    right: 10px;
    bottom: 9px;
    padding: 0;
}

.person-card--conference .person-name {
    font-family: var(--font-heading);
    font-size: 12px;
    line-height: 1.05;
    font-weight: 700;
    color: #fff;
}

.person-card--conference .person-role {
    margin-top: 3px;
    color: #c9cdd7;
    font-size: 7px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Compact avatar row list — People's sidebar-placement variant, also
   reused by Link List's sidebar rows (the reference's ".link-arrow"
   circular icon). */

.person-row-list {
    display: grid;
    gap: 8px;
}

.person-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: inherit;
    transition: border-color 0.2s var(--ease);
}

.person-row:hover {
    border-color: var(--gold);
}

.person-row-media {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface-alt);
    flex: none;
}

.person-row-media img {
    display: block;
    width: 48px;
    height: 48px;
    max-width: none;
    object-fit: cover;
    object-position: center center;
}

.person-row-media .avatar-initials {
    width: 48px;
    height: 48px;
    font-size: 15px;
}

.person-row > div {
    min-width: 0;
}

.person-row-badge {
    display: block;
    color: var(--gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.person-row-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.person-row-role {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.3;
}

.link-arrow {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--surface-alt);
    color: var(--navy);
    font-size: 12px;
}

/* Schedule ----------------------------------------------------------------------------- */
/* A vertical timeline: a gold marker per row sits on a rail line, each
   row's own card holds a time/category pill pair, title, description,
   and a footer (location — a link when the item has a map_url — plus
   an optional Register button on the right). */

.schedule-days {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 820px;
    margin: 0 auto;
}

.schedule-day-title {
    font-family: var(--font-heading);
    font-size: clamp(18px, 2.4vw, 22px);
    font-weight: 800;
    margin-bottom: 22px;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.schedule-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(18px, 2.5vw, 26px);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}

.schedule-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(201, 162, 39, 0.35);
}

.schedule-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.schedule-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.schedule-row {
    position: relative;
    padding-left: 44px;
}

.schedule-row:not(:last-child) {
    padding-bottom: 20px;
}

.schedule-row:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 32px;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.schedule-marker {
    position: absolute;
    left: 0;
    top: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border: 3px solid var(--surface);
    box-shadow: 0 0 0 1px var(--border), var(--shadow-sm);
}

.schedule-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.schedule-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
}

.schedule-tag svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.schedule-tag--time {
    background: rgba(201, 162, 75, 0.14);
    color: #8a6d1f;
}

.schedule-tag--category {
    background: var(--surface-alt);
    color: var(--navy);
    border: 1px solid var(--border);
}

.schedule-description {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.6;
}

.schedule-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.schedule-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gold);
    font-weight: 700;
}

.schedule-location svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.schedule-location a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 560px) {
    .schedule-row {
        padding-left: 36px;
    }

    .schedule-marker {
        width: 26px;
        height: 26px;
    }

    .schedule-row:not(:last-child)::before {
        left: 12px;
    }

    .schedule-card {
        padding: 18px;
    }
}

/* Schedule — 'modern' template: a pill-tab day switcher above one
   bordered panel of flat rows (time | title+description | location),
   instead of every day stacked in a rail-and-marker timeline — matching
   the client's reference template's "Schedule" component. JS in
   public/js/site.js (initScheduleTabs) toggles which day panel is
   visible. See config/cms.php "Page Templates". */

.schedule-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.schedule-tab {
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    padding: 9px 16px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.schedule-tab.is-active {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

.schedule-days--modern {
    max-width: none;
    gap: 0;
}

.schedule-days--modern .schedule-day[hidden] {
    display: none;
}

.schedule-list--modern {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.schedule-row--modern {
    display: grid;
    grid-template-columns: 110px 1fr auto auto;
    gap: 20px;
    align-items: center;
    padding: 20px 22px;
    border-bottom: 1px solid var(--border);
    padding-left: 22px;
}

.schedule-row--modern:last-child {
    border-bottom: none;
}

.schedule-row--modern .schedule-time {
    color: var(--gold-dark, var(--gold));
    font-size: 12px;
    font-weight: 700;
}

.schedule-row--modern .schedule-content strong {
    display: block;
    font-size: 15px;
}

.schedule-row--modern .schedule-content span {
    display: block;
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 12.5px;
}

.schedule-location--modern {
    justify-self: end;
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 600;
}

.schedule-location--modern a {
    color: var(--gold-dark, var(--gold));
}

.schedule-register-btn--modern {
    justify-self: end;
}

@media (max-width: 640px) {
    .schedule-row--modern {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .schedule-location--modern,
    .schedule-register-btn--modern {
        justify-self: start;
    }
}

/* Schedule — 'conference' template: same tabbed day switcher as
   'modern', denser rows/type — matching the conference reference
   template's "Schedule" component. See config/cms.php "Page Templates". */

.schedule-tab--conference {
    padding: 7px 10px;
    font-size: 8px;
}

.schedule-list--conference {
    border-radius: 14px;
}

.schedule-row--modern::before,
.schedule-row--conference::before {
    display: none;
}

.schedule-row--conference {
    display: grid;
    grid-template-columns: 68px 1fr 82px auto;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    padding-left: 22px;
}

.schedule-row--conference .schedule-time {
    font-size: 9px;
}

.schedule-row--conference .schedule-content strong {
    font-size: 10px;
}

.schedule-row--conference .schedule-content span {
    font-size: 8px;
}

.schedule-location--conference {
    justify-self: end;
    color: #959cab;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.schedule-location--conference a {
    color: var(--gold);
}

@media (max-width: 640px) {
    .schedule-row--conference {
        grid-template-columns: 55px 1fr;
    }

    .schedule-location--conference {
        grid-column: 2;
        justify-self: start;
    }
}

/* Agenda — side-by-side day columns, distinct from the schedule timeline above. */

.agenda-days {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap);
    align-items: start;
}

@media (max-width: 720px) {
    .agenda-days {
        grid-template-columns: 1fr;
    }
}

.agenda-day {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.agenda-day {
    transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.agenda-day:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
}

.agenda-day-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    padding: 16px 20px;
    background: var(--navy);
    border-top: 4px solid var(--gold);
}

.agenda-day-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold-light);
}

.agenda-day-date {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-on-dark-muted);
}

.agenda-list {
    padding: 4px 20px;
}

.agenda-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.agenda-row:last-child {
    border-bottom: none;
}

.agenda-time {
    flex: 0 0 68px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
}

.agenda-details {
    flex: 1;
    min-width: 0;
}

.agenda-title-line {
    font-weight: 700;
}

.agenda-meta {
    margin-top: 2px;
    font-size: 13px;
    color: var(--text-muted);
}

.agenda-meta strong {
    color: var(--text);
    font-weight: 700;
}

.agenda-description {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.agenda-toggle {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: var(--gold);
    color: var(--navy);
    font-weight: 800;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}

.agenda-toggle:hover {
    background: var(--gold-light);
}

/* Agenda — 'modern' template: centered heading on top (same pattern as
   every other section), then dark navy side-by-side day cards — a
   darker charcoal header band for "Day X" + date, a navy body with a
   gold time column, white title and muted speaker/location line per
   row, divided by hairlines. See config/cms.php "Page Templates". */

.agenda-days--modern .agenda-day {
    background: var(--navy);
    border: none;
    box-shadow: none;
}

.agenda-days--modern .agenda-day:hover {
    transform: none;
    box-shadow: none;
}

.agenda-days--modern .agenda-day-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 20px 24px;
    background: var(--navy-deep);
    border-top: none;
}

.agenda-days--modern .agenda-day-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: var(--gold-light);
}

.agenda-days--modern .agenda-day-date {
    margin-top: 2px;
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-on-dark-muted);
}

.agenda-days--modern .agenda-list {
    padding: 4px 24px;
}

.agenda-days--modern .agenda-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.agenda-days--modern .agenda-row:last-child {
    border-bottom: none;
}

.agenda-days--modern .agenda-time {
    flex: 0 0 76px;
    color: var(--gold-light);
    font-weight: 700;
}

.agenda-days--modern .agenda-title-line {
    color: #fff;
    font-weight: 700;
}

.agenda-days--modern .agenda-meta {
    color: var(--text-on-dark-muted);
}

.agenda-days--modern .agenda-meta strong {
    color: var(--text-on-dark);
}

.agenda-days--modern .agenda-description {
    color: var(--text-on-dark-muted);
}

.agenda-days--modern .agenda-toggle {
    background: var(--gold-light);
}

/* Agenda — conference template (main/first column): Interactive Summit
   Agenda reference — day tabs + session cards with time badge, location,
   category/track, title, description, speaker + photo. */

body.template-conference .section-agenda--conference .agenda-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px 28px;
    margin-bottom: 26px;
}

body.template-conference .section-agenda--conference .agenda-toolbar .section-header {
    margin: 0;
    max-width: none;
    text-align: left;
}

body.template-conference .section-agenda--conference .agenda-toolbar .section-eyebrow,
body.template-conference .section-agenda--conference .agenda-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a68b4c;
}

body.template-conference .section-agenda--conference .agenda-toolbar .section-eyebrow::before,
body.template-conference .section-agenda--conference .agenda-toolbar .section-eyebrow::after {
    display: none;
}

body.template-conference .section-agenda--conference .agenda-kicker-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    display: block;
}

body.template-conference .section-agenda--conference .agenda-toolbar .section-title {
    margin-top: 0;
    color: #14182a;
}

body.template-conference .section-agenda--conference .agenda-toolbar-heading {
    flex: 1 1 240px;
    min-width: 0;
}

body.template-conference .section-agenda--conference .agenda-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    padding: 5px;
    border-radius: 14px;
    background: #e7edf4;
}

body.template-conference .section-agenda--conference .agenda-tab {
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #2a3148;
    padding: 11px 18px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

body.template-conference .section-agenda--conference .agenda-tab:hover {
    color: var(--navy);
}

body.template-conference .section-agenda--conference .agenda-tab.is-active {
    background: #14182a;
    color: #fff;
}

body.template-conference .section-agenda--conference .agenda-panels {
    display: grid;
    gap: 14px;
}

body.template-conference .section-agenda--conference .agenda-panel {
    display: grid;
    gap: 14px;
}

body.template-conference .section-agenda--conference .agenda-panel[hidden] {
    display: none;
}

body.template-conference .section-agenda--conference .agenda-card {
    display: grid;
    grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
    gap: 18px 26px;
    align-items: start;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid #e6e2d8;
    border-radius: 18px;
    box-shadow: 0 10px 28px -22px rgba(20, 24, 42, 0.45);
}

body.template-conference .section-agenda--conference .agenda-card-aside {
    display: grid;
    gap: 10px;
    justify-items: start;
    padding-top: 2px;
}

body.template-conference .section-agenda--conference .agenda-card-time {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 12px;
    background: #f4ecdf;
    color: #b08a3e;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

body.template-conference .section-agenda--conference .agenda-card-location {
    margin: 0;
    padding-inline: 2px;
    font-size: 13px;
    font-weight: 500;
    color: #7a8196;
}

body.template-conference .section-agenda--conference .agenda-card-body {
    min-width: 0;
}

body.template-conference .section-agenda--conference .agenda-card-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 10px;
}

body.template-conference .section-agenda--conference .agenda-card-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #fff;
}

body.template-conference .section-agenda--conference .agenda-card-badge--navy {
    background: #14182a;
}

body.template-conference .section-agenda--conference .agenda-card-badge--green {
    background: #1f6b4a;
}

body.template-conference .section-agenda--conference .agenda-card-track {
    font-size: 12.5px;
    font-weight: 500;
    color: #8a91a5;
}

body.template-conference .section-agenda--conference .agenda-card-title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 1.7vw, 1.4rem);
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -0.02em;
    color: #14182a;
}

body.template-conference .section-agenda--conference .agenda-card-title mark {
    background: #e8c96a;
    color: inherit;
    padding: 0 0.12em;
    border-radius: 2px;
}

body.template-conference .section-agenda--conference .agenda-card-description {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.55;
    color: #6b7288;
}

body.template-conference .section-agenda--conference .agenda-card-description p {
    margin: 0 0 0.4em;
}

body.template-conference .section-agenda--conference .agenda-card-description p:last-child {
    margin-bottom: 0;
}

body.template-conference .section-agenda--conference .agenda-card-speaker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: #3d455c;
}

body.template-conference .section-agenda--conference .agenda-card-speaker-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 32px;
    background: #e8eef5;
}

@media (max-width: 720px) {
    body.template-conference .section-agenda--conference .agenda-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    body.template-conference .section-agenda--conference .agenda-tabs {
        width: 100%;
    }

    body.template-conference .section-agenda--conference .agenda-tab {
        flex: 1 1 auto;
        text-align: center;
        padding: 10px 12px;
        font-size: 12px;
    }

    body.template-conference .section-agenda--conference .agenda-card {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 18px;
    }

    body.template-conference .section-agenda--conference .agenda-card-time {
        white-space: normal;
    }
}

/* Shared compact sidebar primitives (conference template) — a plain
   bottom-divided stack of rows, used by Agenda/People/Link List/
   Countdown's sidebar-placement variants. */

.info-stack {
    display: grid;
    gap: 12px;
}

.info-row {
    display: block;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    color: inherit;
}

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

.info-row small {
    display: block;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.info-row strong {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.info-row-meta {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.4;
}

.accent-link {
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
}

/* Logos ------------------------------------------------------------------------------------
   Deliberately full-color, not the grayscale-until-hover treatment a lot of
   sponsor strips use — this registry's logo uploads are never guaranteed to
   be clean transparent-background marks (staff-uploaded, any image type),
   so desaturating+fading an arbitrary photo just reads as a broken/faded
   image rather than a restrained design choice. A plain, generously-sized
   white card with object-fit: contain stays legible no matter what gets
   uploaded, and still reads as a cohesive "trusted by" strip as a set. */

.logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: var(--gap);
}

.logo-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    padding: 20px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s ease;
}

.logo-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
    border-color: var(--gold);
}

.logo-tile img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.logo-tile-text {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--navy);
    text-align: center;
    font-size: 15px;
    letter-spacing: -0.01em;
}

/* Logos — 'modern' template: white pill-shaped tiles in a wrapping row
   instead of the standard grid of bordered rectangular cards — matching
   the client's reference template's "Logos" component. See
   config/cms.php "Page Templates". Still full-color, not
   grayscale-until-hover, same reasoning as the standard .logo-tile above
   (arbitrary uploaded images, not guaranteed clean transparent-background
   marks). */

.logos-grid--modern {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 11px;
}

.logo-tile--modern {
    flex: 0 0 auto;
    aspect-ratio: auto;
    min-height: 56px;
    padding: 14px 23px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: none;
}

.logo-tile--modern:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--gold);
}

.logo-tile--modern img {
    width: auto;
    max-width: 115px;
    max-height: 24px;
}

.logo-tile--modern .logo-tile-text {
    font-size: 12px;
}

/* Logos — 'conference' template: a dense 3-col grid of small bordered
   boxes inside a ".panel" — matching the conference reference
   template's "Logos" component. See config/cms.php "Page Templates". */

.logos-grid--conference {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.logo-tile--conference {
    min-height: 42px;
    aspect-ratio: auto;
    padding: 7px;
    border-radius: 9px;
    box-shadow: none;
}

.logo-tile--conference img {
    max-width: 85px;
    max-height: 19px;
}

.logo-tile--conference .logo-tile-text {
    font-size: 8px;
}

@media (max-width: 480px) {
    .logos-grid--conference {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Stats ------------------------------------------------------------------------------------ */

.section.section-stats {
    background:
        radial-gradient(ellipse 70% 60% at 80% 0%, rgba(201, 162, 39, 0.16), transparent 55%),
        linear-gradient(160deg, var(--navy-soft), var(--navy) 55%);
    color: var(--text-on-dark);
}

.section-stats .section-title,
.section-stats .section-eyebrow {
    color: var(--text-on-dark);
}

.section-stats .section-eyebrow {
    color: var(--gold-light);
}

.section-stats .section-subtitle {
    color: var(--text-on-dark-muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--gap);
    text-align: center;
}

.stat-tile {
    position: relative;
    padding: 12px 16px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-tile:not(:first-child)::before {
    display: none;
}

@media (max-width: 640px) {
    .stat-tile:not(:first-child)::before {
        display: none;
    }
}

.stat-tile-number {
    font-family: var(--font-heading);
    font-size: clamp(34px, 5.4vw, 52px);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-tile-label {
    margin-top: 6px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-on-dark-muted);
    font-weight: 700;
}

/* Stats — 'modern' template: left-aligned cells inside a rule-bordered
   grid (top/bottom + internal vertical dividers via border-right)
   instead of centered tiles with a short ::before divider — matching
   the client's reference template's "Stats" component. See
   config/cms.php "Page Templates". */

.stats-grid--modern {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, .13);
    border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.stat-tile--modern {
    padding: 28px 22px;
    border-right: 1px solid rgba(255, 255, 255, .13);
}

.stat-tile--modern:last-child {
    border-right: none;
}

.stat-tile--modern .stat-tile-number {
    font-size: 39px;
    font-weight: 500;
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--gold-light);
}

@media (max-width: 640px) {
    .stats-grid--modern {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-tile--modern:nth-child(2n) {
        border-right: none;
    }
}

/* Stats — 'conference' template: a compact white panel (not the
   standard/modern dark full-bleed section) with a 2-col divided grid —
   matching the conference reference template's sidebar "Stats"
   component. See config/cms.php "Page Templates". */

.section-stats.panel {
    background: var(--surface);
    color: var(--text);
}

.stats-grid--conference {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-tile--conference {
    padding: 14px;
    border-bottom: 1px solid var(--border);
}

.stat-tile--conference:nth-child(odd) {
    border-right: 1px solid var(--border);
}

.stat-tile--conference:nth-last-child(-n+2) {
    border-bottom: none;
}

.stat-tile--conference .stat-tile-number {
    color: var(--navy);
    font-size: 26px;
    font-weight: 800;
    background: none;
    -webkit-text-fill-color: initial;
}

.stat-tile--conference .stat-tile-label {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 7px;
    font-weight: 700;
}

/* Videos ------------------------------------------------------------------------------------ */

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--gap);
}

.video-tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.video-tile:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
}

.video-tile-media {
    aspect-ratio: 16 / 9;
    background: var(--surface-alt);
}

.video-tile-media iframe,
.video-tile-media video {
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.video-tile-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.video-tile-title {
    font-size: 18px;
    font-weight: 700;
}

.video-tile-caption {
    color: var(--text-muted);
    font-size: 15px;
}

.video-tile-link {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 14px;
    color: var(--navy);
}

.section-videos--full_bleed .videos-grid {
    grid-template-columns: 1fr;
}

.section-videos--full_bleed .video-tile-media {
    aspect-ratio: 21 / 9;
}

/* Page intro (subpage logo/about header) --------------------------------------------------------- */

.page-intro {
    background: var(--surface-alt);
    border-bottom: 1px solid var(--border);
    padding-block: clamp(32px, 5vw, 56px);
}

.page-intro-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.page-intro-logo {
    max-height: 72px;
    width: auto;
}

.page-intro-about {
    max-width: 640px;
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.6;
}

.page-intro-about p {
    margin: 0 0 10px;
}

/* Description ---------------------------------------------------------------------------------
   Full-width block of long-form content with a "Show more/less" toggle
   — see initCollapsibleBlocks() in site.js. Unclipped by default (CSS
   alone never hides content); JS adds .is-collapsed + a max-height only
   once it confirms the content actually overflows. */

.description-block {
    max-width: 860px;
    margin: 0 auto;
}

.description-body {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.75;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
}

.description-body p {
    margin: 0 0 14px;
}

.description-block.is-collapsed .description-body {
    position: relative;
    mask-image: linear-gradient(180deg, #000 75%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent 100%);
}

.description-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--navy);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.description-toggle:hover {
    background: var(--surface-alt);
    border-color: var(--gold);
}

.description-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}

.description-block:not(.is-collapsed) .description-toggle svg {
    transform: rotate(180deg);
}

/* Purpose -------------------------------------------------------------------------------------
   Singleton event-purpose block: title, date/time/location meta, rich
   description, optional Register (modal) + Ticket (external link) CTAs. */

.section-purpose .section-header {
    margin-bottom: 20px;
}

.purpose-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    color: var(--text-muted);
    font-size: 15px;
}

.purpose-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.purpose-meta-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--gold);
}

.purpose-body {
    max-width: 860px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.75;
}

.purpose-body p {
    margin: 0 0 14px;
}

.purpose-body p:last-child {
    margin-bottom: 0;
}

.registration-body {
    max-width: 860px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.75;
}

.registration-body p {
    margin: 0 0 14px;
}

.registration-body p:last-child {
    margin-bottom: 0;
}

.registration-actions {
    margin-top: 28px;
}

.top-title-body {
    max-width: 860px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.75;
}

.top-title-body p {
    margin: 0 0 14px;
}

.top-title-body p:last-child {
    margin-bottom: 0;
}

.participation-body {
    max-width: 860px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.75;
}

.participation-body p {
    margin: 0 0 14px;
}

.participation-body p:last-child {
    margin-bottom: 0;
}

.contact-body {
    max-width: 860px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 24px;
}

.contact-body p {
    margin: 0 0 14px;
}

.contact-body p:last-child {
    margin-bottom: 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.contact-detail-item {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 15px;
}

.contact-detail-label {
    font-weight: 700;
    color: var(--navy);
    min-width: 70px;
}

.contact-socials {
    display: flex;
    gap: 12px;
}

/* Conference contact — dark navy "Reach Out" card in the sidebar. */
body.template-conference .section-contact--conference {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: visible;
}

body.template-conference .section-contact--conference .contact-card {
    padding: 26px 28px 28px;
    border-radius: 24px;
    background: #05080f;
    color: #fff;
    box-shadow: 0 18px 40px -28px rgba(8, 12, 24, 0.7);
}

body.template-conference .section-contact--conference .contact-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #dbc59a;
}

body.template-conference .section-contact--conference .contact-kicker-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    display: block;
}

body.template-conference .section-contact--conference .contact-card-title {
    margin: 0 0 22px;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #fff;
}

body.template-conference .section-contact--conference .contact-card-list {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.template-conference .section-contact--conference .contact-card-row {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.4;
    word-break: break-word;
}

body.template-conference .section-contact--conference .contact-card-row:hover {
    color: #dbc59a;
}

body.template-conference .section-contact--conference .contact-card-row svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: #dbc59a;
}

.purpose-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.purpose-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.purpose-btn--register {
    border: 1px solid var(--navy);
    background: var(--navy);
    color: #fff;
}

.purpose-btn--register:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
    box-shadow: var(--shadow-sm);
}

.purpose-btn--ticket {
    border: 1px solid var(--navy);
    background: transparent;
    color: var(--navy);
}

.purpose-btn--ticket:hover {
    background: var(--navy);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 600px) {
    .purpose-actions {
        flex-direction: column;
    }

    .purpose-btn {
        width: 100%;
    }
}

/* Articles -------------------------------------------------------------------------------------- */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--gap);
}

.article-tile {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.article-tile:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
}

.article-tile-media {
    aspect-ratio: 16 / 10;
    background: var(--surface-alt);
    overflow: hidden;
}

.article-tile-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
}

.article-tile:hover .article-tile-media img {
    transform: scale(1.05);
}

.article-tile-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.article-tile-title {
    font-size: 17px;
    font-weight: 700;
}

.article-tile-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 14px;
    color: var(--navy);
}

.article-tile-link span {
    transition: transform 0.15s ease;
}

.article-tile:hover .article-tile-link span {
    transform: translateX(3px);
}

/* Tickets ----------------------------------------------------------------------------------------- */

.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--gap);
}

.ticket-tile {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.ticket-tile:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
}

.ticket-tile-media {
    aspect-ratio: 16 / 10;
    background: var(--surface-alt);
    overflow: hidden;
}

.ticket-tile-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ticket-tile-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ticket-tile-title {
    font-size: 17px;
    font-weight: 700;
}

.ticket-tile-description {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.ticket-tile-description p {
    margin: 0 0 10px;
}

.ticket-tile-description p:last-child {
    margin-bottom: 0;
}

.ticket-tile-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 14px;
    color: var(--navy);
}

/* Ongoing Projects ---------------------------------------------------------------------------------- */

.ongoing-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--gap);
}

.ongoing-project-tile {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.ongoing-project-tile:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
}

.ongoing-project-tile-media {
    aspect-ratio: 16 / 10;
    background: var(--surface-alt);
    overflow: hidden;
}

.ongoing-project-tile-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ongoing-project-tile-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ongoing-project-tile-title {
    font-size: 17px;
    font-weight: 700;
}

.ongoing-project-tile-description {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.ongoing-project-tile-description p {
    margin: 0 0 10px;
}

.ongoing-project-tile-description p:last-child {
    margin-bottom: 0;
}

/* Locations ------------------------------------------------------------------------------------- */

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--gap);
}

.location-tile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 22px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.location-tile-title {
    font-size: 17px;
    font-weight: 700;
}

.location-tile-address {
    color: var(--navy);
    font-weight: 600;
    font-size: 14px;
}

.location-tile-details {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.location-tile-details p {
    margin: 0 0 10px;
}

.location-tile-details p:last-child {
    margin-bottom: 0;
}

/* Conference locations — white "Venue Details" card (sidebar). */
body.template-conference .section-locations--conference {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: visible;
}

body.template-conference .section-locations--conference .venue-card {
    padding: 24px 24px 22px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #e6e2d8;
    box-shadow: 0 12px 32px -24px rgba(20, 24, 42, 0.4);
}

body.template-conference .section-locations--conference .venue-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #b08d45;
}

body.template-conference .section-locations--conference .venue-kicker-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    display: block;
}

body.template-conference .section-locations--conference .venue-card-title {
    margin: 0 0 18px;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #14182a;
}

body.template-conference .section-locations--conference .venue-address-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    border: 1px solid #e6e2d8;
    border-radius: 14px;
    background: #f7f6f2;
}

body.template-conference .section-locations--conference .venue-address-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    margin-top: 2px;
    color: #b08d45;
}

body.template-conference .section-locations--conference .venue-address-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

body.template-conference .section-locations--conference .venue-address-copy strong {
    font-size: 14.5px;
    font-weight: 700;
    color: #14182a;
}

body.template-conference .section-locations--conference .venue-address-copy span {
    font-size: 13px;
    line-height: 1.45;
    color: #6b7288;
}

body.template-conference .section-locations--conference .venue-map {
    position: relative;
    margin-bottom: 16px;
    border-radius: 16px;
    overflow: hidden;
    min-height: 140px;
    background:
        linear-gradient(145deg, #c9a66a 0%, #8b6a3a 45%, #5c4324 100%);
}

body.template-conference .section-locations--conference .venue-map-image {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
}

body.template-conference .section-locations--conference .venue-map--plain {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

body.template-conference .section-locations--conference .venue-directions {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 12px;
    background: #14182a;
    color: #dbc59a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.55);
}

body.template-conference .section-locations--conference .venue-map--plain .venue-directions {
    position: static;
    transform: none;
}

body.template-conference .section-locations--conference .venue-directions:hover {
    color: #f0d787;
}

body.template-conference .section-locations--conference .venue-directions svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

body.template-conference .section-locations--conference .venue-details {
    padding-top: 14px;
    border-top: 1px solid #e6e2d8;
    color: var(--text);
    font-size: 13.5px;
    line-height: 1.5;
}

body.template-conference .section-locations--conference .venue-details p {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 16px;
    margin: 0 0 10px;
}

body.template-conference .section-locations--conference .venue-details p:last-child {
    margin-bottom: 0;
}

body.template-conference .section-locations--conference .venue-details strong {
    color: #14182a;
    font-weight: 700;
}

/* Files (Download) ------------------------------------------------------------------------------ */

.files-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.file-item-title {
    display: block;
    font-weight: 700;
    font-size: 15px;
}

.file-item-description {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.file-item-description p {
    margin: 4px 0 0;
}

.file-item-download {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 14px;
    color: var(--navy);
    white-space: nowrap;
}

/* Participate Numbers ---------------------------------------------------------------------------- */

.participate-numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--gap);
}

.participate-number-tile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 22px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.participate-number-value {
    font-family: var(--font-heading);
    font-size: clamp(30px, 4.5vw, 44px);
    font-weight: 800;
    color: var(--navy);
}

.participate-number-title {
    font-weight: 700;
    font-size: 15px;
}

.participate-number-description {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.participate-number-description p {
    margin: 4px 0 0;
}

.participate-number-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 700;
    font-size: 14px;
    color: var(--navy);
}

/* Participate Numbers — 'conference' template: 2-col divided cells
   inside a ".panel", same idea as stats--conference. */

.participate-numbers-grid--conference {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
}

.participate-number-tile--conference {
    gap: 4px;
    padding: 16px;
    text-align: left;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: none;
    background: transparent;
}

.participate-number-tile--conference:nth-child(odd) {
    border-right: 1px solid var(--border);
}

.participate-number-tile--conference:nth-last-child(-n+2) {
    border-bottom: none;
}

.participate-number-tile--conference .participate-number-value {
    font-size: 26px;
}

.participate-number-tile--conference .participate-number-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.participate-number-tile--conference .participate-number-description {
    font-size: 12px;
}

.participate-number-tile--conference .participate-number-download {
    font-size: 12px;
    justify-content: flex-start;
}

body.template-conference .description-block--conference {
    max-width: none;
    margin: 0;
}

body.template-conference .description-block--conference .description-body {
    font-size: 13px;
    line-height: 1.55;
}

/* Carousel -------------------------------------------------------------------------------------- */

.carousel {
    position: relative;
}

.carousel-viewport {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.carousel-track {
    display: flex;
    transition: transform 0.45s var(--ease);
}

.carousel-slide {
    position: relative;
    flex: 0 0 100%;
    aspect-ratio: 21 / 9;
    background: var(--surface-alt);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-slide-link {
    display: block;
    width: 100%;
    height: 100%;
}

.carousel-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 32px clamp(20px, 4vw, 40px) 20px;
    background: linear-gradient(0deg, rgba(18, 21, 42, 0.75), transparent);
    color: var(--text-on-dark);
    font-weight: 700;
    font-size: clamp(16px, 2.4vw, 22px);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--navy);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-arrow svg {
    width: 18px;
    height: 18px;
}

.carousel-arrow:hover {
    background: var(--gold);
    color: var(--navy);
}

.carousel-arrow--prev {
    left: 16px;
}

.carousel-arrow--next {
    right: 16px;
}

.carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.carousel-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: var(--border);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot.is-active {
    background: var(--gold);
    transform: scale(1.3);
}

@media (max-width: 640px) {
    .carousel-arrow {
        width: 36px;
        height: 36px;
    }

    .carousel-arrow--prev {
        left: 8px;
    }

    .carousel-arrow--next {
        right: 8px;
    }
}

/* Footer -------------------------------------------------------------------------------------- */

.site-footer {
    position: relative;
    background:
        radial-gradient(ellipse 60% 80% at 10% 0%, rgba(201, 162, 39, 0.12), transparent 50%),
        linear-gradient(180deg, var(--navy-soft), var(--navy));
    color: var(--text-on-dark-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
}

.site-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: clamp(36px, 6vw, 56px);
}

.site-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.site-footer-logo {
    display: block;
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    margin-bottom: 8px;
}

.site-footer-name {
    color: var(--text-on-dark);
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.site-footer-brand a {
    font-size: 14px;
    transition: color 0.15s ease;
}

.site-footer-brand a:hover {
    color: var(--gold-light);
}

.site-footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-on-dark-muted);
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.site-social-link:hover {
    color: var(--navy);
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.site-social-icon {
    display: block;
}

.site-footer-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    font-size: 13px;
}

.site-footer-meta a {
    text-decoration: none;
    color: var(--text-on-dark-muted);
    transition: color 0.15s ease;
}

.site-footer-meta a:hover {
    color: var(--gold-light);
}

/* Detail popups — person card, card "Learn more", event "Register" all
   share one modal (resources/views/layouts/site.blade.php) opened via
   initModals() in site.js. .card-tile-link is sometimes an <a> (external
   link) and sometimes a <button> (modal trigger) — the button reset
   below makes both look identical. */

button.card-tile-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(18, 21, 42, 0.6);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s var(--ease), visibility 0.28s var(--ease);
}

.modal-overlay[hidden] {
    display: none;
}

.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

body.modal-open {
    overflow: hidden;
}

.modal {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lift);
    padding: 32px;
    transform: translateY(16px) scale(0.96);
    opacity: 0;
    transition: transform 0.32s var(--ease), opacity 0.32s var(--ease);
}

.modal-overlay.is-open .modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

@media (max-width: 480px) {
    .modal {
        padding: 24px 20px;
        border-radius: var(--radius-sm);
    }

    .modal:has(.modal-person) {
        padding: 32px 20px 24px;
    }
}

.modal:has(.modal-person) {
    max-width: 380px;
    text-align: center;
    padding: 36px 28px 28px;
}

.modal:has(.modal-video) {
    max-width: 880px;
    padding: 16px;
}

.modal-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.modal-video iframe,
.modal-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--surface-alt);
    color: var(--text);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.modal-photo {
    width: 96px;
    height: 96px;
    margin-bottom: 16px;
    border-radius: 50%;
    overflow: hidden;
}

.modal-person .modal-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
}

.modal-photo--wide {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-sm);
}

.modal-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
    padding-right: 24px;
}

.modal-person .modal-title {
    padding-right: 0;
}

.modal-person .modal-text {
    text-align: left;
    margin-top: 12px;
}

.modal-person .modal-link {
    justify-content: center;
}

.modal-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.modal-text {
    color: var(--text-muted);
}

.modal-text p {
    margin: 0 0 10px;
}

.modal-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-weight: 700;
    color: var(--gold);
}

/* Registration form inside the modal */

.modal-register .field {
    margin-bottom: 14px;
}

.modal-register label {
    display: block;
    margin-bottom: 4px;
    font-weight: 700;
    font-size: 13px;
}

.modal-register input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

.modal-form-message {
    margin-top: 8px;
    color: var(--danger);
    font-size: 13px;
}

.modal-form-success {
    font-weight: 700;
    color: var(--gold);
}

.modal-register-submit {
    margin-top: 4px;
    padding: 12px 26px;
    border: none;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.modal-register-submit:hover {
    background: var(--gold);
    color: var(--navy);
    box-shadow: var(--shadow-sm);
}

.modal-register-submit:disabled {
    opacity: 0.6;
    cursor: default;
}

/* "Register as?" popup — role cards with icons (purpose + registration) */

.modal:has(.modal-register-as) {
    max-width: 520px;
    padding: 36px 32px 28px;
    background:
        radial-gradient(ellipse 120% 80% at 100% -20%, rgba(201, 162, 39, 0.14), transparent 55%),
        radial-gradient(ellipse 90% 60% at -10% 110%, rgba(14, 18, 40, 0.06), transparent 50%),
        var(--surface);
}

.modal-register-as .modal-title {
    margin: 0 0 6px;
    font-family: var(--font-heading);
    font-size: clamp(1.45rem, 2.5vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--navy);
}

.register-as-eyebrow {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}

.register-as-lead {
    margin: 0 0 4px;
    max-width: 36ch;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
}

.register-as-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 22px;
}

.register-as-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px 14px 12px;
    border: 1px solid rgba(14, 18, 40, 0.1);
    border-radius: 14px;
    background: #fff;
    color: var(--navy);
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(14, 18, 40, 0.04);
    transition:
        border-color 0.2s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease,
        background 0.2s ease;
}

.register-as-btn:hover {
    border-color: rgba(201, 162, 39, 0.55);
    background: linear-gradient(135deg, #fffef8, #fff9e8);
    box-shadow: 0 8px 22px rgba(14, 18, 40, 0.1);
    transform: translateY(-2px);
}

.register-as-btn:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.register-as-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--gold), var(--gold-light));
    color: var(--navy);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.register-as-icon svg {
    width: 22px;
    height: 22px;
}

.register-as-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.register-as-copy strong {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.register-as-copy small {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.85;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.register-as-btn:hover .register-as-copy small {
    color: var(--gold);
    opacity: 1;
}

.register-as-arrow {
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
    opacity: 0.25;
    transition: opacity 0.2s ease, transform 0.22s ease, color 0.2s ease;
}

.register-as-btn:hover .register-as-arrow {
    opacity: 1;
    color: var(--gold);
    transform: translateX(3px);
}

.register-as-grid > .register-as-btn:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

@media (max-width: 480px) {
    .modal:has(.modal-register-as) {
        padding: 28px 20px 22px;
    }

    .register-as-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .register-as-grid > .register-as-btn:last-child:nth-child(odd) {
        grid-column: auto;
    }
}

.schedule-register-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    padding: 9px 20px;
    border: 1px solid var(--navy);
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.schedule-register-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
    box-shadow: var(--shadow-sm);
}

/* Responsive ------------------------------------------------------------------------------------- */

/* Narrow desktop, above the 860px mobile-nav breakpoint: the full-width
   nav row (logo + every link + the language select, all in one row —
   see .site-header-inner/.site-nav) is tight, so shrink gaps/type/the
   language select rather than let it silently scroll off-screen with no
   visible scrollbar. */
@media (max-width: 1100px) and (min-width: 861px) {
    .site-nav {
        gap: 8px;
    }

    .site-nav a {
        font-size: 13px;
    }

    .site-lang-select {
        min-width: 0;
        padding: 6px 24px 6px 8px;
        font-size: 12px;
        background-position: right 8px center;
    }
}

@media (max-width: 960px) and (min-width: 861px) {
    .site-nav {
        gap: 6px;
    }

    .site-nav a {
        font-size: 12px;
    }
}

@media (max-width: 860px) {
    .site-nav-toggle {
        display: flex;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        background: var(--navy);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 20px 32px -20px rgba(0, 0, 0, 0.5);
        padding: 12px clamp(20px, 4vw, 40px) 20px;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        transition: max-height 0.28s var(--ease), opacity 0.2s ease;
    }

    .site-nav.is-open {
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        opacity: 1;
        pointer-events: auto;
    }

    .site-nav a::after {
        display: none;
    }

    .site-lang {
        margin: 8px 0;
    }

    .site-nav a {
        padding: 10px 0;
        width: 100%;
    }

    .site-nav-dropdown {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .site-nav-dropdown > a {
        flex: 1;
    }

    .site-years-label {
        width: 100%;
        justify-content: space-between;
        padding: 10px 0;
        font-size: inherit;
    }

    .site-nav-dropdown-toggle {
        position: absolute;
        top: 4px;
        right: 0;
        width: 36px;
        height: 36px;
    }

    .site-nav-dropdown-menu {
        position: static;
        min-width: 0;
        margin: 0 0 0 16px;
        padding: 0;
        border: none;
        background: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s var(--ease);
    }

    .site-nav-dropdown.is-open .site-nav-dropdown-menu {
        max-height: 320px;
    }

    .site-nav-dropdown.is-open .site-nav-dropdown-toggle svg {
        transform: rotate(180deg);
    }

    .site-nav-dropdown-menu a {
        padding: 8px 0;
        color: var(--text-on-dark-muted);
    }

    .site-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .site-footer-meta {
        align-items: flex-start;
    }

    /* —— Overall mobile / tablet polish —— */

    .site-header-inner {
        padding-block: 14px;
        gap: 12px;
    }

    .site-brand {
        font-size: 17px;
    }

    .site-brand-logo {
        height: 34px;
        max-width: min(160px, 48vw);
    }

    .site-container {
        padding-inline: clamp(16px, 4vw, 28px);
    }

    .hero {
        min-height: min(560px, 88vh);
    }

    .hero-content {
        padding-block: 36px 32px;
        gap: 22px;
    }

    .hero-title {
        font-size: clamp(30px, 9vw, 48px);
        max-width: 14ch;
    }

    .hero-title::after {
        width: 40px;
        margin-top: 14px;
    }

    .hero-subtitle {
        font-size: 15px;
        max-width: 34ch;
    }

    .section {
        padding-block: clamp(48px, 10vw, 80px);
    }

    .section-header {
        margin-bottom: clamp(24px, 5vw, 40px);
    }

    .section-title {
        font-size: clamp(26px, 7vw, 36px);
    }

    .countdown-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        padding-block: 22px;
    }

    .countdown-clock {
        justify-content: center;
        gap: 14px;
    }

    .countdown-unit {
        min-width: 48px;
    }

    .cards-grid,
    .text-boxes-grid,
    .videos-grid,
    .logos-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .people-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 12px;
    }

    .agenda-days,
    .text-boxes-grid--modern,
    .text-boxes-grid--conference,
    .people-grid--modern,
    .people-grid--conference {
        grid-template-columns: 1fr;
    }

    .card-tile-body {
        padding: 18px;
    }

    .text-box {
        padding: 20px;
    }

    .section-cards--zigzag .card-tile,
    .section-cards--zigzag .card-tile:nth-of-type(even) {
        display: flex;
        flex-direction: column;
    }

    .section-cards--zigzag .card-tile-media {
        width: 100%;
        max-width: none;
    }

    .site-years .site-nav-dropdown-menu {
        left: 0;
        right: auto;
    }

    .modal {
        width: calc(100% - 24px);
        max-height: calc(100vh - 32px);
        margin: 16px auto;
    }

    .page-intro {
        padding-block: 28px;
    }

    .page-intro-logo {
        max-height: 72px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    html {
        scroll-padding-top: 72px;
    }

    .site-brand-logo {
        height: 30px;
        max-width: min(140px, 46vw);
    }

    .hero {
        min-height: min(520px, 90vh);
    }

    .hero-scroll-cue {
        width: 40px;
        height: 40px;
    }

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

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

    .countdown-unit span {
        font-size: 20px;
    }

    .countdown-unit small {
        font-size: 10px;
    }

    .person-card:hover,
    .card-tile:hover,
    .text-box--linked:hover,
    .agenda-day:hover {
        transform: none;
    }
}

/* Tablet landscape / small laptop */
@media (min-width: 481px) and (max-width: 860px) {
    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .text-boxes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .videos-grid,
    .logos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Touch: keep hover lifts for fine pointers only */
@media (hover: none) {
    .card-tile:hover,
    .person-card:hover,
    .text-box--linked:hover,
    .agenda-day:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }

    .card-tile:hover .card-tile-media img {
        transform: none;
    }
}

/* ── Organization profiles ── */
.org-cover{height:clamp(120px,22vw,220px);background:linear-gradient(135deg,#4a1d3d,#a8416b);background-size:cover;background-position:center;border-radius:var(--radius-lg,18px)}
.org-head{display:flex;gap:18px;align-items:flex-end;margin:-44px 20px 0;position:relative;flex-wrap:wrap}
.org-logo{width:96px;height:96px;border-radius:20px;background:#fff;border:3px solid #fff;box-shadow:0 2px 10px rgba(0,0,0,.15);object-fit:contain;flex:none}
.org-logo-initial{display:flex;align-items:center;justify-content:center;font-size:36px;font-weight:700;color:#7a2b55;background:#f4e9ef}
.org-title{flex:1;min-width:220px;padding-top:48px}
.org-title h1{margin:6px 0 2px}
.org-tagline{margin:0 0 4px;font-size:16px}
.org-meta{margin:0;color:var(--muted,#6b6178);font-size:14px}
.org-verified{display:inline-block;font-size:12px;font-weight:600;color:#1f6b45;background:#e4f4ea;border-radius:999px;padding:2px 10px;margin-left:6px}
.org-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(240px,1fr);gap:18px;margin-top:22px}
@media (max-width:760px){.org-grid{grid-template-columns:1fr}}
.org-list{list-style:none;margin:0;padding:0;font-size:14px;line-height:2}
.org-socials{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.org-socials a{font-size:13px;border:1px solid var(--border,#e2dde6);border-radius:999px;padding:4px 12px;text-decoration:none}
.org-event{display:block;padding:10px 0;border-top:1px solid var(--border,#e2dde6);text-decoration:none;color:inherit}
.org-event:first-of-type{border-top:0}
.org-card-logo{width:44px;height:44px;border-radius:10px;object-fit:contain;background:#fff;border:1px solid var(--border,#e2dde6);float:right;margin-left:10px}

/* Shared pill buttons. One look for every plain form/action button on the public site:
   gold, fully rounded, bold. Written with :where() so it has zero specificity - any button that
   already has its own styling (hero CTAs, nav, purpose-btn, etc.) keeps it. */
:where(.btn, .button, button[type=submit], input[type=submit], input[type=button].button){
  display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 24px;border-radius:999px;
  border:1.5px solid #AC7C44;background:#AC7C44;color:#fff;font:inherit;font-weight:700;font-size:15px;letter-spacing:.02em;
  line-height:1.2;text-decoration:none;cursor:pointer;box-shadow:0 4px 14px rgba(172,124,68,.28);
  transition:transform .2s,background .2s,box-shadow .2s}
:where(.btn, .button, button[type=submit], input[type=submit], input[type=button].button):hover{transform:translateY(-2px);background:#c08d52;border-color:#c08d52;color:#fff}
:where(.btn, .button, button[type=submit], input[type=submit]):focus-visible{outline:3px solid rgba(172,124,68,.45);outline-offset:2px}
:where(.btn-secondary, .button-secondary){background:transparent;color:#AC7C44;box-shadow:none}
:where(.btn-secondary, .button-secondary):hover{background:rgba(172,124,68,.1);color:#AC7C44}
/* submit buttons that are deliberately plain text links keep looking like links */
:where(.link-button, .gww-report-link, .gww-report-close, .modal-close){box-shadow:none}
.link-button,.gww-report-link{background:none;border:0;padding:0;border-radius:0;color:inherit;font:inherit;font-weight:inherit;text-decoration:underline;cursor:pointer;display:inline}
.org-grid textarea,.org-grid input[type=text],.org-grid input[type=url],.org-grid input[type=email]{font:inherit;font-size:15px;border-radius:14px;border:1px solid var(--border,#e2dde6);padding:10px 14px}

/* Public pagination (resources/views/pagination/gww.blade.php) */
.gww-pager{display:flex;align-items:center;justify-content:center;gap:16px;margin:32px 0;flex-wrap:wrap}
.gww-pager-info{font-size:14px;opacity:.75}
.gww-pager-btn{display:inline-flex;align-items:center;padding:10px 22px;border-radius:999px;border:1.5px solid #AC7C44;background:#AC7C44;color:#fff;font-weight:700;font-size:15px;text-decoration:none;transition:transform .15s,background .15s}
.gww-pager-btn:hover{background:#c08d52;transform:translateY(-2px)}
.gww-pager-btn.is-disabled{background:transparent;color:#AC7C44;opacity:.4;pointer-events:none}
/* safety net: never let a stray pagination icon blow up */
.pagination svg,.mc-pages svg,nav[role=navigation] svg{width:20px;height:20px;max-width:20px;max-height:20px}

/* ── File upload buttons ("Choose file") match the rounded outline buttons ── */
input[type="file"] {
    font-family: inherit;
    font-size: 14px;
    color: var(--navy);
}

input[type="file"]::file-selector-button {
    margin-right: 14px;
    padding: 10px 22px;
    border: 1px solid var(--navy);
    border-radius: 999px;
    background: transparent;
    color: var(--navy);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

input[type="file"]::file-selector-button:hover {
    background: var(--navy);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

/* Events: season split (Global Women's Week vs year-round) */
.ev-season{margin-bottom:10px}
.ev-group-title{margin:34px 0 4px}
.ev-badge--season{top:auto;bottom:12px;right:auto;left:12px}
.ev-badge--season.is-week{background:var(--gold,#AC7C44);color:#fff}
.ev-badge--season.is-year{background:#fff;color:var(--navy,#3A2150)}

/* Women's Works */
.section-works .ev-grid { margin-top: 8px; }
.section-works .purpose-btn + .purpose-btn { margin-left: 10px; }

/* Works detail: gallery, lightbox, shared-by cards */
.work-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px;margin:12px 0 20px}
.work-gallery__item{margin:0}
.work-gallery__item a{display:block;overflow:hidden;border-radius:14px;cursor:zoom-in}
.work-gallery__item img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;transition:transform .25s}
.work-gallery__item a:hover img{transform:scale(1.04)}
.work-gallery__item figcaption{font-size:.9rem;color:#555;margin-top:6px;line-height:1.35}
.work-by{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:8px}
.work-by__card{display:flex;align-items:center;gap:12px;padding:12px 16px;border:1px solid rgba(0,0,0,.12);border-radius:14px;text-decoration:none;color:inherit;background:#fff}
a.work-by__card:hover{box-shadow:0 4px 14px rgba(0,0,0,.1)}
.work-by__card img{width:52px;height:52px;border-radius:50%;object-fit:cover;background:#eee}
.work-by__card strong{display:block}
.work-by__card small{color:#777}
.lb{position:fixed;inset:0;z-index:9999;background:rgba(0,0,0,.9);display:flex;align-items:center;justify-content:center}
.lb[hidden]{display:none}
.lb__f{margin:0;max-width:86vw;max-height:90vh;text-align:center;color:#fff}
.lb__f img{max-width:86vw;max-height:78vh;object-fit:contain;border-radius:8px;animation:lbin .2s ease}
@keyframes lbin{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}
.lb__f figcaption{margin-top:10px;font-size:1rem;line-height:1.4}
.lb__x,.lb__n{position:absolute;background:rgba(255,255,255,.15);color:#fff;border:0;border-radius:50%;width:46px;height:46px;font-size:28px;cursor:pointer;line-height:1}
.lb__x{top:16px;right:16px}
.lb__n{top:50%;transform:translateY(-50%)}
.lb__n--p{left:14px}.lb__n--n{right:14px}

/* Mega menu (Get Involved etc.) */
.site-nav-dropdown-menu--mega {
    display: grid;
    grid-template-columns: repeat(2, minmax(230px, 1fr));
    gap: 4px;
    min-width: 520px;
    padding: 14px;
}
.site-nav-dropdown--mega:nth-last-of-type(n+1) .site-nav-dropdown-menu--mega { left: -80px; }
.site-nav-dropdown-menu .mega-title { display: block; font-weight: 700; }
.site-nav-dropdown-menu .mega-desc {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--text-on-dark-muted);
}
.site-nav .nav-help { font-size: 13px; opacity: 0.85; }
.site-lang-select { min-width: 0; padding: 5px 24px 5px 10px; font-size: 12px; background-position: right 8px center; }
@media (max-width: 860px) {
    .site-nav-dropdown-menu--mega { display: block; min-width: 0; padding: 0; }
    .site-nav-dropdown--mega.is-open .site-nav-dropdown-menu { max-height: 1200px; }
    .site-nav-dropdown-menu .mega-desc { display: none; }
}

.gf-field[hidden], .gf-sep[hidden] { display: none !important; }

/* Header fit: wider bar on big screens, tighter spacing, compact colour dots so nothing runs off the right edge */
@media (min-width: 1024px) {
    .site-header .site-header-inner.site-container, .site-header-inner.site-container { max-width: min(1560px, 96vw); }
    .site-header-inner { gap: 12px; }
    .site-nav { gap: clamp(8px, 0.9vw, 16px); }
    .site-nav .look-switch { margin-left: 0; gap: 4px; }
    .site-nav .look-switch button { width: 20px; height: 20px; padding: 1.5px; }
    .site-nav .gt-btn { width: 28px; height: 28px; }
}
@media (min-width: 1024px) and (max-width: 1360px) {
    .site-nav a { font-size: 13px; }
    .site-nav .nav-account span { display: none; }
}
@media (min-width: 1024px) and (max-width: 1400px) {
    .site-brand-logo { height: 34px; }
    .site-header-inner, .site-nav { gap: 8px; }
    .site-nav a { font-size: 12.5px; }
    .site-nav .site-years-label { padding: 4px 8px; }
}
@media (min-width: 1024px) and (max-width: 1320px) {
    .site-nav .nav-help { display: none; }
}

/* Long-form letters (e.g. A Message from the Chair): banner image + readable text, never clipped */
.description-body img { display: block; max-width: 100%; height: auto; border-radius: 16px; margin: 0 auto 28px; }
.description-block:not([data-collapsible]) .description-body { max-height: none !important; overflow: visible; mask-image: none; -webkit-mask-image: none; }
.description-body .letter-sign { margin-top: 24px; font-family: var(--font-heading, Georgia, serif); font-size: 18px; color: var(--text, inherit); }
.description-body .letter-sign small { display: block; font-size: 14px; color: var(--text-muted); font-family: inherit; line-height: 1.5; }

/* Program track + coordinator pages: lists, sub-headings and buttons inside description bodies */
.description-body h3 { font-family: var(--font-heading, Georgia, serif); font-size: 22px; color: var(--text, inherit); margin: 28px 0 10px; }
.description-body h4 { font-size: 16px; color: var(--text, inherit); margin: 20px 0 6px; }
.description-body ul, .description-body ol { margin: 0 0 14px; padding-left: 22px; }
.description-body li { margin: 0 0 6px; }
.description-body .purpose-btn { display: inline-block; margin: 6px 0 14px; }
