:root {
    --bg: #06101f;
    --bg-2: #0a1728;
    --card: rgba(255,255,255,.055);
    --card-strong: rgba(255,255,255,.09);
    --text: #f6f3eb;
    --muted: rgba(246,243,235,.68);
    --line: rgba(255,255,255,.12);
    --primary: #31d6df;
    --primary-dark: #082530;
    --coral: #ff875f;
    --sand: #e9d9b8;
    --shadow: 0 24px 70px rgba(0,0,0,.38);
    --font: 'Inter', system-ui, sans-serif;
    --display: 'Oswald', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(49,214,223,.12), transparent 32rem),
        radial-gradient(circle at 88% 18%, rgba(255,135,95,.08), transparent 26rem),
        var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(18px, 5vw, 54px);
    transition: background .25s ease, border-color .25s ease, height .25s ease;
}
.site-header.is-scrolled {
    height: 72px;
    background: rgba(6,16,31,.9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; }
.brand-logo { width: 118px; height: auto; filter: drop-shadow(0 10px 20px rgba(0,0,0,.45)); }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); }
.site-nav a { color: var(--muted); font-size: 14px; font-weight: 700; transition: color .2s ease; }
.site-nav a:hover, .site-nav a.is-active { color: var(--primary); }
.nav-cta, .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    border-radius: 999px;
    background: var(--primary);
    color: #04111c !important;
    font-weight: 800;
    box-shadow: 0 12px 40px rgba(49,214,223,.25);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.08);
    color: var(--text);
    font-weight: 800;
    backdrop-filter: blur(14px);
}
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 0; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 6px auto; background: var(--text); }

.hero, .page-hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    align-items: center;
    overflow: hidden;
    background-image: linear-gradient(180deg, rgba(6,16,31,.38), rgba(6,16,31,.94)), var(--hero-image);
    background-size: cover;
    background-position: center;
}
.page-hero { min-height: 58svh; padding-top: 90px; }
.hero-video, .hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.hero::before, .page-hero-overlay {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6,16,31,.82), rgba(6,16,31,.35) 52%, rgba(6,16,31,.68));
}
.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 180px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 220'%3E%3Cpath fill='%2306101f' d='M0,120 C260,210 470,20 760,110 C1020,190 1180,70 1440,130 L1440,220 L0,220 Z'/%3E%3Cpath fill='%2331d6df' fill-opacity='.13' d='M0,150 C300,70 480,190 760,130 C1020,75 1200,160 1440,95 L1440,220 L0,220 Z'/%3E%3C/svg%3E") center bottom / cover no-repeat;
}
.hero-content, .page-hero-content { position: relative; z-index: 2; padding: 150px 0 90px; }
.eyebrow { color: var(--primary); text-transform: uppercase; letter-spacing: .22em; font-weight: 800; font-size: 13px; }
h1, h2, h3 { font-family: var(--display); line-height: .98; letter-spacing: -.02em; }
h1 { font-size: clamp(48px, 10vw, 132px); margin: 18px 0 24px; max-width: 930px; }
.page-hero h1 { font-size: clamp(42px, 7vw, 82px); }
.hero-lead, .page-hero p:last-child { max-width: 720px; font-size: clamp(18px, 2vw, 26px); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.stat-badge { display: inline-flex; align-items: center; gap: 12px; border: 1px solid rgba(49,214,223,.35); background: rgba(49,214,223,.12); padding: 9px 16px; border-radius: 999px; backdrop-filter: blur(10px); }
.stat-badge strong { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: #06101f; }

.section { padding: clamp(72px, 9vw, 130px) 0; position: relative; }
.section.alt { background: rgba(255,255,255,.025); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 42px; }
.section-head h2 { font-size: clamp(34px, 5vw, 64px); margin: 0; }
.section-head p { max-width: 620px; color: var(--muted); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card, .glass-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 26px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}
.card-hover, .story-card, .gallery-card { transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease; }
.card-hover:hover, .story-card:hover, .gallery-card:hover { transform: translateY(-6px); border-color: rgba(49,214,223,.35); }
.metric { text-align: center; }
.metric strong { display: block; font-family: var(--display); font-size: clamp(38px, 5vw, 66px); color: var(--primary); line-height: 1; }
.metric span { color: var(--muted); font-weight: 700; }

.story-card { overflow: hidden; padding: 0; }
.story-card img, .gallery-card img { width: 100%; height: 250px; object-fit: cover; }
.story-card.featured { grid-column: span 2; display: grid; grid-template-columns: 1.1fr .9fr; }
.story-card.featured img { height: 100%; min-height: 390px; }
.card-body { padding: 24px; }
.meta { color: var(--primary); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.card h3 { font-size: 26px; margin: 12px 0; }
.card p { color: var(--muted); }

.filter-bar, .search-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; }
.filter-btn { border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--muted); border-radius: 999px; padding: 7px 12px; cursor: pointer; font-weight: 800; font-size: 12px; line-height: 1; white-space: nowrap; }
.filter-btn.is-active { background: var(--primary); color: #06101f; }
.search-input, input, textarea, select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,.06);
    color: var(--text);
    padding: 14px 15px;
    font: inherit;
}
textarea { min-height: 150px; resize: vertical; }
label { display: block; margin-bottom: 8px; color: var(--text); font-weight: 800; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-field { margin-bottom: 18px; }
.field-help { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.alert { padding: 16px 18px; border-radius: 16px; margin: 0 0 22px; }
.alert.success { background: rgba(49,214,223,.13); border: 1px solid rgba(49,214,223,.35); }
.alert.error { background: rgba(255,135,95,.13); border: 1px solid rgba(255,135,95,.35); }

.timeline { max-width: 860px; margin: 0 auto; border-left: 1px solid var(--line); padding-left: 30px; }
.timeline-item { margin: 0 0 28px; position: relative; }
.timeline-item::before { content: ''; position: absolute; left: -39px; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: var(--primary); border: 4px solid var(--bg); }
.title-year { margin: 46px 0 18px; display: flex; align-items: center; gap: 20px; }
.title-year::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.gallery-grid { columns: 3 260px; column-gap: 18px; }
.gallery-card { break-inside: avoid; margin: 0 0 18px; overflow: hidden; cursor: pointer; padding: 0; }
.gallery-card img { height: auto; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 82vh; border-radius: 18px; box-shadow: var(--shadow); }
.lightbox button { position: absolute; top: 18px; right: 18px; }

.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 36px; }
.pagination a, .pagination span { padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; }
.pagination .current { background: var(--primary); color: #06101f; }
.prose { max-width: 900px; margin: 0; font-size: 18px; color: var(--muted); }
.prose p { margin: 0 0 22px; }
.prose h2 { color: var(--text); font-size: clamp(30px, 4vw, 52px); margin: 0 0 18px; }
.prose img { width: 100%; height: auto; max-height: 76vh; object-fit: contain; border-radius: 24px; margin: 36px auto; }
.prose figure, .prose .wp-caption { width: 100%; max-width: 100%; margin: 42px auto; text-align: center; }
.prose .wp-caption img { display: block; width: 100%; max-width: 100%; height: auto; object-fit: contain; }
.prose figcaption, .prose .wp-caption-text { color: var(--muted); font-size: 14px; margin-top: 10px; text-align: center; }
.prose figure[data-size="small"] { width: 30%; max-width: 30%; }
.prose figure[data-size="medium"] { width: 55%; max-width: 55%; }
.prose figure[data-size="large"] { width: 80%; max-width: 80%; }
.prose figure[data-size="full"] { width: 100%; max-width: 100%; }
.prose figure[data-align="left"] { float: left; margin: 6px 26px 18px 0; }
.prose figure[data-align="right"] { float: right; margin: 6px 0 18px 26px; }
.prose figure[data-align="center"] { float: none; margin-left: auto; margin-right: auto; }
.prose figure img { display: block; width: 100%; max-width: 100%; height: auto; margin: 0 auto; border-radius: 18px; }
.prose::after { content: ''; display: block; clear: both; }
.story-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 42px; align-items: start; }
.story-side-media { position: sticky; top: 96px; display: grid; gap: 18px; }
.story-main-video { margin: 0 0 42px; padding: 18px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(135deg, rgba(49,214,223,.11), rgba(255,255,255,.035)); box-shadow: var(--shadow); }
.story-embed { position: relative; overflow: hidden; width: 100%; aspect-ratio: 16 / 9; border-radius: 22px; background: #020811; box-shadow: var(--shadow); }
.story-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.story-location { position: relative; overflow: hidden; margin: 20px 0 14px; border: 1px solid var(--line); border-radius: 20px; aspect-ratio: 16 / 10; background: radial-gradient(circle at 18% 28%, rgba(49,214,223,.22), transparent 9rem), linear-gradient(135deg, #0b2539, #071524); }
.story-location img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.04); }
.map-pin { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; border-radius: 50% 50% 50% 0; background: var(--coral); transform: translate(-50%, -80%) rotate(-45deg); box-shadow: 0 8px 24px rgba(255,135,95,.45); }
.map-pin::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.location-label { margin-bottom: 8px !important; color: var(--text) !important; font-weight: 800; }
.map-link { display: inline-flex; color: var(--primary); font-size: 13px; font-weight: 800; }
.video-feature { padding: 16px; }
.video-card-content { position: absolute; inset: auto 18px 18px; z-index: 3; display: grid; gap: 12px; }
.video-card-content .btn-primary { width: max-content; }
.video-card-content span, .video-card-content strong { position: static; left: auto; right: auto; bottom: auto; }
.video-modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.92); }
.video-modal .story-embed { width: min(1100px, 92vw); }
.video-modal > button { position: absolute; top: 18px; right: 18px; }

.stories-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; }
.archive-panel { position: sticky; top: 96px; background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.025)); border: 1px solid var(--line); border-radius: 24px; padding: 22px; }
.archive-panel h2 { margin-top: 0; font-size: 30px; }
.archive-year { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.archive-year strong { color: var(--text); font-family: var(--display); font-size: 24px; }
.archive-year span { font-size: 13px; }
.archive-story { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; margin-bottom: 18px; padding: 18px; }
.archive-thumb img { width: 100%; height: 150px; object-fit: cover; border-radius: 18px; }
.media-carousel { position: relative; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 36px) / 3); gap: 18px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; padding: 4px 4px 6px; scrollbar-width: auto; }

.carousel-card { scroll-snap-align: start; position: relative; min-height: 330px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.06); box-shadow: var(--shadow); cursor: pointer; }
.carousel-card img { width: 100%; height: 330px; object-fit: cover; transition: transform .35s ease; }
.carousel-card:hover img { transform: scale(1.04); }
.carousel-card span, .carousel-card strong { position: absolute; left: 18px; right: 18px; z-index: 2; text-shadow: 0 4px 18px rgba(0,0,0,.65); }
.carousel-card span { bottom: 62px; color: var(--primary); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.carousel-card strong { bottom: 20px; font-family: var(--display); font-size: 28px; line-height: 1; }
.carousel-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.78)); }
.carousel-btn { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: rgba(6,16,31,.78); color: var(--text); font-size: 32px; cursor: pointer; backdrop-filter: blur(12px); }
.carousel-btn.prev { left: -12px; }
.carousel-btn.next { right: -12px; }
.story-feature-strip { padding-bottom: 40px; }
.world-map-page { display: block; padding-top: 82px; }
.world-map-screen { position: relative; width: 100%; height: calc(100svh - 82px); overflow: hidden; background: #06101f; }
.world-map-leaflet { position: absolute; inset: 0; width: 100%; height: 100%; }
.world-map-heading { position: absolute; top: 24px; left: 24px; z-index: 400; max-width: 460px; padding: 18px 24px; border-radius: 22px; background: linear-gradient(135deg, rgba(6,16,31,.85), rgba(6,16,31,.55)); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow); pointer-events: none; }
.world-map-heading .eyebrow { margin: 0 0 4px; }
.world-map-heading h1 { margin: 0 0 6px; font-size: clamp(28px, 4vw, 44px); }
.world-map-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.world-map-marker { display: block; }
.world-map-marker .world-map-marker-dot { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--coral); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(255,135,95,.18), 0 8px 20px rgba(0,0,0,.45); cursor: pointer; transition: transform .15s ease; }
.world-map-marker:hover .world-map-marker-dot { transform: scale(1.18); }
.world-map-marker.is-active { position: relative; }
.world-map-marker.is-active .world-map-marker-dot { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; transform: translate(-50%, -50%); background: var(--primary); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(49,214,223,.32), 0 0 32px rgba(49,214,223,.7); z-index: 2; }
.world-map-marker-pulse { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: rgba(49,214,223,.45); pointer-events: none; animation: worldMapPulse 1.8s ease-out infinite; }
.world-map-marker-pulse.delay { animation-delay: .9s; }
@keyframes worldMapPulse { 0% { transform: scale(.6); opacity: .9; } 80% { transform: scale(3.2); opacity: 0; } 100% { transform: scale(3.2); opacity: 0; } }
.story-location .leaflet-container { width: 100%; height: 100%; border-radius: 20px; background: #06101f; }
.world-map-cluster { display: grid !important; place-items: center; background: transparent !important; border: 0 !important; }
.world-map-cluster span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgba(49,214,223,.95), rgba(255,135,95,.85)); color: #06101f; font-family: var(--display); font-size: 16px; font-weight: 800; box-shadow: 0 0 0 6px rgba(49,214,223,.18), 0 12px 28px rgba(0,0,0,.45); transition: transform .15s ease; }
.world-map-cluster.md span { font-size: 18px; }
.world-map-cluster.lg span { font-size: 20px; }
.world-map-cluster:hover span { transform: scale(1.08); }
.leaflet-marker-icon.marker-cluster div { background: transparent; }
.map-story-date { margin: 4px 0 12px; color: var(--muted); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; font-weight: 700; }
.admin-map-picker { width: 100%; height: 360px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.admin-map-marker span { display: block; width: 100%; height: 100%; border-radius: 50% 50% 50% 0; background: var(--coral); border: 3px solid #fff; transform: rotate(-45deg); box-shadow: 0 8px 18px rgba(0,0,0,.5); }
.leaflet-container a.leaflet-popup-close-button { color: var(--text); }
.map-story-panel { position: absolute; top: 24px; right: 24px; bottom: 24px; z-index: 400; width: 380px; max-width: calc(100% - 48px); margin: 0; display: flex; flex-direction: column; padding: 0; border: 1px solid rgba(255,255,255,.08); border-radius: 24px; backdrop-filter: blur(14px); background: linear-gradient(135deg, rgba(6,16,31,.92), rgba(10,29,51,.78)); box-shadow: var(--shadow); overflow: hidden; }
.map-story-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 22px 14px; border-bottom: 1px solid rgba(255,255,255,.06); }
.map-story-panel-header h2 { margin: 0; font-size: 24px; }
.map-search-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; background: rgba(49,214,223,.08); color: var(--primary); cursor: pointer; transition: background .15s ease, transform .15s ease, border-color .15s ease; flex-shrink: 0; }
.map-search-btn:hover { background: rgba(49,214,223,.18); border-color: rgba(49,214,223,.4); transform: scale(1.05); }
.map-search-modal { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: flex-start; justify-content: center; padding: 88px 16px 24px; }
.map-search-modal[hidden] { display: none; }
.map-search-backdrop { position: absolute; inset: 0; background: rgba(2,8,17,.78); backdrop-filter: blur(8px); }
.map-search-dialog { position: relative; width: min(640px, 100%); max-height: calc(100svh - 120px); display: flex; flex-direction: column; border-radius: 22px; border: 1px solid rgba(255,255,255,.1); background: linear-gradient(135deg, rgba(10,29,51,.96), rgba(6,16,31,.96)); box-shadow: 0 30px 60px rgba(0,0,0,.5); overflow: hidden; }
.map-search-input-row { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,.08); color: var(--muted); }
.map-search-input-row input { flex: 1; min-width: 0; padding: 8px 0; border: 0; background: transparent; color: var(--text); font-size: 17px; outline: none; }
.map-search-input-row input::placeholder { color: var(--muted); }
.map-search-close { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.06); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.map-search-close:hover { background: rgba(255,255,255,.12); }
.map-search-results { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.map-search-result { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 8px; border: 1px solid transparent; border-radius: 14px; background: rgba(255,255,255,.03); color: inherit; text-align: left; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.map-search-result:hover { background: rgba(49,214,223,.08); border-color: rgba(49,214,223,.25); }
.map-search-result .map-story-card-thumb img { aspect-ratio: 1 / 1; }
.map-search-result h3 { margin: 0; font-size: 15px; line-height: 1.3; color: var(--text); }
body.map-search-open { overflow: hidden; }
.map-story-list { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.map-story-list::-webkit-scrollbar { width: 8px; }
.map-story-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 4px; }
.map-story-empty { color: var(--muted); font-size: 14px; text-align: center; padding: 24px 12px; }
.map-story-card { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 12px; padding: 10px; border-radius: 16px; border: 1px solid transparent; background: rgba(255,255,255,.03); cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.map-story-card:hover { background: rgba(49,214,223,.06); border-color: rgba(49,214,223,.18); }
.map-story-card.is-active { grid-template-columns: 1fr; padding: 0; border-color: rgba(49,214,223,.4); background: rgba(49,214,223,.08); box-shadow: 0 0 0 3px rgba(49,214,223,.12); cursor: default; }
.map-story-card-thumb { overflow: hidden; border-radius: 12px; }
.map-story-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 1 / 1; }
.map-story-card.is-active .map-story-card-thumb { border-radius: 16px 16px 0 0; }
.map-story-card.is-active .map-story-card-thumb img { aspect-ratio: 16 / 9; }
.map-story-card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 4px 4px 4px 0; }
.map-story-card.is-active .map-story-card-body { padding: 14px 18px 18px; gap: 8px; }
.map-story-card-body .eyebrow { margin: 0; font-size: 10px; }
.map-story-card-body h3 { margin: 0; font-size: 15px; line-height: 1.3; color: var(--text); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.map-story-card.is-active .map-story-card-body h3 { font-size: 22px; -webkit-line-clamp: unset; line-clamp: unset; }
.map-story-card-date { display: block; font-size: 11px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; font-weight: 700; }
.map-story-card-excerpt { margin: 4px 0 8px; color: var(--muted); font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.btn-compact { padding: 8px 16px; font-size: 13px; }
.cta-band { background: linear-gradient(135deg, rgba(49,214,223,.16), rgba(255,135,95,.09)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.site-footer { position: relative; background: #08111f; border-top: 1px solid var(--line); padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 34px; padding-bottom: 44px; }
.footer-logo { width: 130px; margin-bottom: 18px; }
.site-footer h2 { font-size: 20px; margin: 0 0 14px; }
.site-footer a { display: block; color: var(--muted); margin: 8px 0; }
.site-footer p, .footer-location { color: var(--muted); }
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 14px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.admin-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100svh; background: var(--bg); }
.admin-sidebar { background: rgba(0,0,0,.22); border-right: 1px solid var(--line); padding: 24px; }
.admin-sidebar a { display: block; padding: 11px 12px; color: var(--muted); border-radius: 12px; }
.admin-sidebar a:hover, .admin-sidebar a.is-active { background: rgba(49,214,223,.12); color: var(--primary); }
.admin-main { padding: 32px; }
.admin-table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 18px; }
.admin-table th, .admin-table td { border-bottom: 1px solid var(--line); padding: 14px; text-align: left; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.badge { display: inline-flex; border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 800; background: rgba(49,214,223,.13); color: var(--primary); }
.wysiwyg { position: relative; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.04); overflow: hidden; }
.wysiwyg-toolbar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; background: rgba(10,20,38,.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.wysiwyg-toolbar-group { display: inline-flex; flex-wrap: wrap; gap: 4px; padding-right: 8px; margin-right: 4px; border-right: 1px solid var(--line); }
.wysiwyg-toolbar-group:last-child { border-right: 0; padding-right: 0; margin-right: 0; }
.wysiwyg-toolbar button { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px; background: rgba(255,255,255,.05); color: var(--text); cursor: pointer; font-size: 13px; font-weight: 700; line-height: 1; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.wysiwyg-toolbar button:hover { background: rgba(49,214,223,.16); border-color: rgba(49,214,223,.35); color: var(--primary); }
.wysiwyg-toolbar button:active { transform: translateY(1px); }
.wysiwyg-editor { min-height: 360px; max-height: 70vh; overflow-x: hidden; overflow-y: auto; padding: 22px 24px; color: var(--text); outline: none; line-height: 1.65; box-sizing: border-box; word-wrap: break-word; overflow-wrap: break-word; }
.wysiwyg-editor::after { content: ''; display: block; clear: both; }
.wysiwyg-editor:focus { box-shadow: inset 0 0 0 2px rgba(49,214,223,.35); }
.wysiwyg-editor h2 { font-size: 26px; margin: 22px 0 12px; }
.wysiwyg-editor h3 { font-size: 20px; margin: 18px 0 10px; }
.wysiwyg-editor p { margin: 0 0 14px; }
.wysiwyg-editor blockquote { margin: 18px 0; padding: 10px 18px; border-left: 3px solid var(--primary); background: rgba(49,214,223,.07); color: var(--muted); font-style: italic; border-radius: 0 12px 12px 0; }
.wysiwyg-editor ul, .wysiwyg-editor ol { padding-left: 22px; margin: 0 0 14px; }
.wysiwyg-editor a { color: var(--primary); }
.wysiwyg-editor img { max-width: 100% !important; width: auto !important; height: auto !important; display: block; margin: 14px 0; border-radius: 14px; }
.wysiwyg-editor figure { max-width: 100%; margin: 18px auto; padding: 0; box-sizing: border-box; }
.wysiwyg-editor figure img { width: 100% !important; max-width: 100% !important; margin: 0; }
.wysiwyg-editor figure figcaption { color: var(--muted); font-size: 13px; text-align: center; margin-top: 8px; }
.wysiwyg-editor figure.editor-figure { display: block; cursor: pointer; position: relative; transition: box-shadow .15s ease; }
.wysiwyg-editor figure.editor-figure:hover { box-shadow: 0 0 0 2px rgba(49,214,223,.4); border-radius: 14px; }
.wysiwyg-editor figure.editor-figure.is-selected { box-shadow: 0 0 0 3px rgba(49,214,223,.7); border-radius: 14px; }
.wysiwyg-editor figure[data-size="small"] { max-width: 30%; }
.wysiwyg-editor figure[data-size="medium"] { max-width: 55%; }
.wysiwyg-editor figure[data-size="large"] { max-width: 80%; }
.wysiwyg-editor figure[data-size="full"] { max-width: 100%; }
.wysiwyg-editor figure[data-align="left"] { float: left; margin: 6px 22px 14px 0; }
.wysiwyg-editor figure[data-align="right"] { float: right; margin: 6px 0 14px 22px; }
.wysiwyg-editor figure[data-align="center"] { float: none; margin-left: auto; margin-right: auto; }
.wysiwyg-editor figure.video-embed { position: relative; margin: 18px 0; max-width: 100%; cursor: pointer; border-radius: 14px; transition: box-shadow .15s ease; }
.wysiwyg-editor figure.video-embed:hover { box-shadow: 0 0 0 2px rgba(49,214,223,.4); }
.wysiwyg-editor figure.video-embed.is-selected { box-shadow: 0 0 0 3px rgba(49,214,223,.7); }
.wysiwyg-editor figure.video-embed .video-shield { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: linear-gradient(180deg, rgba(6,16,31,0) 55%, rgba(6,16,31,.55) 100%); cursor: pointer; transition: background .15s ease; }
.wysiwyg-editor figure.video-embed:hover .video-shield { background: linear-gradient(180deg, rgba(6,16,31,.15) 0%, rgba(6,16,31,.55) 100%); }
.wysiwyg-editor figure.video-embed.is-playing .video-shield { display: none; }
.wysiwyg-editor figure.video-embed .video-play { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border: 0; border-radius: 50%; background: rgba(10,20,38,.85); color: var(--primary); font-size: 22px; cursor: pointer; box-shadow: 0 10px 28px rgba(0,0,0,.5); transition: transform .15s ease, background .15s ease; }
.wysiwyg-editor figure.video-embed .video-play:hover { transform: scale(1.08); background: var(--primary); color: #06101f; }
.wysiwyg-editor .story-embed { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: #020811; }
.wysiwyg-editor .story-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wysiwyg-editor hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.image-popover { position: absolute; z-index: 1200; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px; border-radius: 12px; background: rgba(10,20,38,.98); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 16px 32px rgba(0,0,0,.5); backdrop-filter: blur(12px); }
.image-popover[hidden] { display: none; }
.image-popover .group { display: inline-flex; align-items: center; gap: 2px; padding-right: 6px; margin-right: 4px; border-right: 1px solid rgba(255,255,255,.1); }
.image-popover .group:last-child { border-right: 0; padding-right: 0; margin-right: 0; }
.image-popover button { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: var(--text); font-size: 12px; font-weight: 700; cursor: pointer; transition: background .15s ease, color .15s ease; }
.image-popover button:hover { background: rgba(49,214,223,.18); color: var(--primary); }
.image-popover button.is-active { background: rgba(49,214,223,.22); color: var(--primary); }
.image-popover button.danger:hover { background: rgba(255,135,95,.22); color: var(--coral); }

/* Media library modal */
.media-modal { position: fixed; inset: 0; z-index: 1500; display: flex; align-items: center; justify-content: center; }
.media-modal[hidden] { display: none; }
.media-backdrop { position: absolute; inset: 0; background: rgba(3,8,17,.72); backdrop-filter: blur(6px); }
.media-dialog { position: relative; display: flex; flex-direction: column; width: min(1100px, 92vw); max-height: 86vh; background: #0a1528; border: 1px solid rgba(255,255,255,.08); border-radius: 20px; box-shadow: 0 32px 80px rgba(0,0,0,.6); overflow: hidden; }
.media-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.02); }
.media-head h3 { margin: 0; font-size: 18px; color: var(--text); flex-shrink: 0; }
.media-search { flex: 1; min-width: 160px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(255,255,255,.04); color: var(--text); font-size: 14px; outline: none; }
.media-search:focus { border-color: var(--primary); background: rgba(49,214,223,.06); }
.media-upload-btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.media-close { width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(255,255,255,.05); color: var(--text); font-size: 16px; cursor: pointer; }
.media-close:hover { background: rgba(255,135,95,.2); color: var(--coral); }
.media-status { padding: 10px 22px; background: rgba(49,214,223,.08); color: var(--primary); font-size: 13px; }
.media-grid { flex: 1; overflow-y: auto; padding: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.media-empty { grid-column: 1 / -1; padding: 60px 20px; text-align: center; color: var(--muted); font-size: 14px; }
.media-tile { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 2px solid transparent; border-radius: 12px; background: rgba(255,255,255,.03); cursor: pointer; overflow: hidden; transition: border-color .15s ease, transform .15s ease; text-align: left; color: var(--text); }
.media-tile:hover { border-color: rgba(49,214,223,.4); transform: translateY(-2px); }
.media-tile.is-selected { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(49,214,223,.25); }
.media-thumb { display: block; width: 100%; aspect-ratio: 4 / 3; background-size: cover; background-position: center; background-color: #06101f; }
.media-meta { display: block; padding: 8px 10px 10px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.02); }
.media-foot .btn-primary:disabled { opacity: .4; cursor: not-allowed; }
body.media-modal-open { overflow: hidden; }
@media (max-width: 640px) {
    .media-head { flex-wrap: wrap; }
    .media-head h3 { width: 100%; }
    .media-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

.wysiwyg-source { display: none; width: 100%; min-height: 360px; max-height: 70vh; padding: 18px 22px; border: 0; background: #06101f; color: #b6e6f5; font-family: ui-monospace, Menlo, Monaco, Consolas, monospace; font-size: 13px; line-height: 1.55; outline: none; resize: vertical; }
.wysiwyg-editor.is-source-view + .wysiwyg-source { display: block; }

@media (max-width: 980px) {
    .site-nav { position: fixed; inset: 72px 0 0 0; padding: 32px; background: rgba(6,16,31,.97); backdrop-filter: blur(18px); flex-direction: column; align-items: start; transform: translateX(100%); transition: transform .25s ease; }
    .site-nav.is-open { transform: translateX(0); }
    .site-nav a { font-family: var(--display); font-size: 30px; color: var(--text); }
    .nav-toggle { display: block; }
    .grid-2, .grid-3, .grid-4, .story-card.featured, .footer-grid, .admin-shell, .stories-layout, .story-detail-layout, .archive-story { grid-template-columns: 1fr; }
    .story-card.featured { display: block; }
    .story-side-media, .archive-panel { position: static; }
    .world-map-page { padding-top: 72px; }
    .world-map-screen { height: calc(100svh - 72px); }
    .world-map-leaflet { position: absolute; inset: 0; }
    .world-map-heading { top: 12px; left: 12px; right: 12px; max-width: none; padding: 12px 16px; }
    .world-map-heading h1 { font-size: 22px; }
    .world-map-heading p { display: none; }
    .map-story-panel { top: auto; right: 12px; left: 12px; bottom: 12px; width: auto; max-height: 52svh; border-radius: 22px; }
    .map-story-panel-header { padding: 14px 18px 10px; }
    .map-story-panel-header h2 { font-size: 18px; }
    .map-story-list { padding: 10px; gap: 8px; }
    .map-story-card { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 8px; }
    .map-story-card.is-active .map-story-card-thumb img { aspect-ratio: 21 / 9; }
    .map-story-card.is-active .map-story-card-body { padding: 10px 14px 14px; }
    .map-story-card.is-active .map-story-card-body h3 { font-size: 18px; }
    .carousel-btn { display: none; }
    .carousel-track { grid-auto-columns: minmax(260px, 78vw); }
    .form-row { grid-template-columns: 1fr; }
    .section-head { display: block; }
    .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* Public athlete identity: ocean photography, sail-number typography, quiet framing. */
:root {
    --scroll-thumb: #5b8090;
    --scroll-track: #06101f;
    --scroll-hover: #31d6df;
    --scroll-active: #ff875f;
    --radius-public: 8px;
}
html { scrollbar-gutter: stable; scroll-padding-top: 100px; }
* { scrollbar-color: var(--scroll-thumb) var(--scroll-track); scrollbar-width: auto; }
*::-webkit-scrollbar { width: 12px; height: 12px; }
*::-webkit-scrollbar-track { background: var(--scroll-track); }
*::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border: 3px solid var(--scroll-track); border-radius: 12px; }
*::-webkit-scrollbar-thumb:hover { background: var(--scroll-hover); }
*::-webkit-scrollbar-thumb:active { background: var(--scroll-active); }
.public-site { background: var(--bg); }
.public-site a, .public-site button { cursor: pointer; }
.public-site :is(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--primary); outline-offset: 5px; }
.public-site button:disabled { cursor: not-allowed; opacity: .5; }
.public-site .skip-link { position: fixed; top: 12px; left: 16px; z-index: 2000; transform: translateY(-180%); background: var(--primary); color: var(--bg); padding: 12px 18px; border-radius: var(--radius-public); font-weight: 700; }
.public-site .skip-link:focus { transform: none; }
.public-site .site-header { height: 92px; background: linear-gradient(rgba(6,16,31,.7), transparent); }
.public-site .site-header.is-scrolled { height: 76px; background: rgba(6,16,31,.97); }
.public-site .brand-logo { width: 100px; height: 76px; object-fit: contain; }
.public-site .site-nav { gap: clamp(12px, 1.7vw, 26px); }
.public-site .site-nav a { font-weight: 600; color: var(--text); }
.public-site .site-nav a:hover { color: var(--primary); }
.public-site .site-nav a.is-active { color: var(--primary); text-decoration: underline; text-underline-offset: 8px; }
.public-site :is(.btn-primary, .btn-secondary, .nav-cta) { min-height: 48px; border-radius: var(--radius-public); box-shadow: none; font-size: 14px; transition: background .2s, transform .2s; }
.public-site .btn-primary { border: 1px solid transparent; }
.public-site :is(.btn-primary, .nav-cta):hover { background: var(--text); transform: translateY(-2px); }
.public-site .btn-secondary:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }
.public-site :is(.btn-primary, .btn-secondary, .nav-cta):active { transform: translateY(1px); }
.public-site .card { border-radius: var(--radius-public); background: var(--bg-2); box-shadow: none; backdrop-filter: none; }
.public-site .card-hover:hover, .public-site .story-card:hover { transform: translateY(-3px); }
.public-site .section-head > a { display: inline-flex; align-items: center; min-height: 44px; color: var(--primary); border-bottom: 1px solid var(--primary); font-size: 14px; font-weight: 600; }
.public-site .section-head > a:hover { color: var(--text); border-color: var(--text); }
.public-site .section-head h2 { line-height: 1.08; }
.public-site h3 { line-height: 1.18; }
.public-site p { color: var(--muted); }
.public-site .reveal { opacity: 1; transform: none; }
.athlete-home .hero { min-height: min(900px, 100svh); background-image: var(--hero-image); background-position: 65% center; }
.athlete-home .hero::before { background: linear-gradient(90deg, rgba(6,16,31,.93), rgba(6,16,31,.65) 34%, rgba(6,16,31,.08) 72%), linear-gradient(0deg, rgba(6,16,31,.78), transparent 35%); z-index: 1; }
.athlete-home .hero::after { display: none; }
.athlete-home .hero-content { padding: 160px 0 130px; }
.athlete-home .hero-kicker { display: flex; align-items: center; gap: 16px; color: var(--text); text-transform: uppercase; font-size: 11px; letter-spacing: .16em; font-weight: 600; }
.hero-kicker > span { padding: 6px 10px; border: 1px solid var(--primary); color: var(--primary); letter-spacing: .08em; font-size: 13px; }
.athlete-home h1 { font-size: clamp(58px, 7.9vw, 118px); letter-spacing: -.035em; line-height: 1.02; margin: 24px 0; }
.hero-dot { color: var(--primary); }
.athlete-home .hero-lead { max-width: 480px; color: var(--text); font-size: clamp(17px, 1.55vw, 22px); line-height: 1.5; }
.athlete-home .hero-description { max-width: 430px; font-size: 14px; }
.hero-bottom { position: absolute; bottom: 32px; left: 0; right: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.3); color: var(--text); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.hero-bottom a { display: flex; gap: 20px; align-items: center; min-height: 44px; }
.hero-bottom a:hover { color: var(--primary); }
.athlete-home .record-strip { padding: 36px 0; background: var(--bg-2); }
.record-strip .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.record-strip .metric { background: none; border: 0; border-right: 1px solid var(--line); border-radius: 0; padding: 12px 24px; text-align: left; }
.record-strip .metric:last-child { border-right: 0; }
.record-strip .metric strong { font-size: clamp(38px, 4vw, 58px); color: var(--text); }
.record-strip .metric span { display: block; font-size: 12px; font-weight: 500; margin-top: 10px; }
.athlete-home .island-section { background: var(--text); color: var(--bg); }
.island-section .grid { align-items: center; gap: clamp(32px, 6vw, 90px); }
.island-section h2 { font-size: clamp(42px, 5vw, 70px); line-height: 1.06; max-width: 450px; margin: 18px 0 28px; }
.island-section p { color: var(--primary-dark); max-width: 450px; }
.island-section .eyebrow { color: var(--primary-dark); }
.island-section .btn-secondary { color: var(--bg); border-color: var(--primary-dark); margin-top: 16px; background: transparent; }
.island-section .btn-secondary:hover { background: var(--sand); }
.island-section :is(a, button):focus-visible { outline-color: var(--primary-dark); }
.portrait-frame { position: relative; }
.portrait-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 55% center; border-radius: var(--radius-public); }
.discipline-card { overflow: hidden; padding: 0 !important; }
.discipline-card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.discipline-card .card-body { padding: 28px; }
.discipline-card h3 { font-size: 36px; }
.athlete-home .story-card img { height: auto; aspect-ratio: 4 / 3; }
.athlete-home .story-card .card-body { display: flex; flex-direction: column; align-items: start; }
.athlete-home .story-card .card-body > a { color: var(--primary); display: inline-flex; gap: 16px; min-height: 44px; align-items: center; font-size: 14px; font-weight: 600; }
.athlete-home .story-card .card-body > a:hover { color: var(--text); }
.partner-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid var(--line); }
.partner-name { display: grid; place-items: center; min-height: 108px; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: clamp(24px, 3vw, 38px); }
.partner-name:hover { color: var(--primary); background: var(--bg-2); }
.athlete-home .cta-band { background: var(--primary-dark); text-align: left; }
.athlete-home .cta-band h2 { font-size: clamp(44px, 6vw, 82px); line-height: 1.08; margin: 20px 0; }
.public-site .footer-wave { display: none; }
.public-site .site-footer { border-top: 1px solid var(--line); }
.gallery-trigger { display: block; width: 100%; border: 0; padding: 0; color: inherit; background: transparent; }
.gallery-trigger:hover img { filter: brightness(1.08); }
.public-site .gallery-card { margin: 0 0 18px; }
.public-site .gallery-trigger:focus-visible { outline-offset: -5px; }
.public-site dialog.lightbox { inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; border: 0; margin: 0; padding: 70px 20px 20px; z-index: 1600; background: rgba(6,16,31,.96); }
.public-site dialog.lightbox[open] { display: flex; }
.public-site dialog::backdrop { background: rgba(0,0,0,.8); }
.public-site .lightbox img { max-width: 100%; max-height: calc(100svh - 110px); object-fit: contain; }
.public-site .video-modal { z-index: 1600; border: 0; margin: auto; width: min(1100px, 95vw); max-height: 90svh; background: var(--bg); color: var(--text); padding: 64px 16px 16px; }
.public-site .video-modal:not([open]) { display: none; }
.public-site .video-modal .story-embed { width: 100%; }
@media (min-width: 981px) and (max-width: 1150px) {
    .public-site .site-header { padding-inline: 24px; }
    .public-site .site-nav { gap: 15px; }
    .public-site .site-nav a { font-size: 12px; }
}
@media (max-width: 980px) {
    /* Keep fixed mobile navigation relative to the viewport after scrolling.
       A backdrop-filter on its header creates a containing block and clips it. */
    .public-site .site-header, .public-site .site-header.is-scrolled { height: 76px; backdrop-filter: none; }
    .public-site .site-nav { inset: 76px 0 0; gap: 8px; overflow-y: auto; visibility: hidden; pointer-events: none; padding: 24px 32px 40px; transition: transform .2s, visibility .2s; }
    .public-site .site-nav.is-open { visibility: visible; pointer-events: auto; }
    .public-site .site-nav a { font-size: 26px; min-height: 48px; }
    .public-site .site-nav .nav-cta { font-family: var(--font); font-size: 15px; margin-top: 14px; }
    .public-site.menu-open { overflow: hidden; }
    .athlete-home .hero { min-height: 790px; background-position: 65% center; }
    .athlete-home .hero::before { background: linear-gradient(90deg, rgba(6,16,31,.9), rgba(6,16,31,.38)), linear-gradient(0deg, rgba(6,16,31,.8), transparent 70%); }
    .athlete-home .hero-content { padding: 130px 0 140px; }
    .athlete-home h1 { font-size: clamp(58px, 11vw, 90px); }
    .athlete-home .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .athlete-home .grid-3 > :last-child:nth-child(3) { grid-column: 1 / -1; }
    .athlete-home .island-section .grid-2 { grid-template-columns: 1fr 1fr; gap: 32px; }
    .public-site .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .athlete-home .hero { min-height: 780px; background-position: 62% top; background-size: auto 65%; background-repeat: no-repeat; background-color: var(--bg); align-items: end; }
    .athlete-home .hero::before { background: linear-gradient(0deg, var(--bg) 32%, rgba(6,16,31,.45) 65%, rgba(6,16,31,.04)); }
    .athlete-home .hero-content { padding: 300px 0 105px; }
    .athlete-home .hero-kicker { font-size: 9px; gap: 10px; }
    .athlete-home h1 { font-size: clamp(52px, 15vw, 82px); margin: 16px 0; }
    .athlete-home .hero-lead { font-size: 17px; }
    .athlete-home .hero-description { font-size: 13px; }
    .athlete-home .hero-actions { margin-top: 24px; gap: 10px; }
    .athlete-home .hero-actions a { padding: 13px 15px; font-size: 12px; }
    .hero-bottom { bottom: 12px; font-size: 9px; letter-spacing: .04em; gap: 10px; }
    .hero-bottom a { gap: 8px; }
    .record-strip .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .record-strip .metric { padding: 18px; }
    .record-strip .metric:nth-child(2) { border-right: 0; }
    .record-strip .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .athlete-home .grid-3, .athlete-home .island-section .grid-2 { grid-template-columns: 1fr; }
    .athlete-home .grid-3 > :last-child:nth-child(3) { grid-column: auto; }
    .portrait-frame img { aspect-ratio: 4 / 3; object-position: center 35%; }
    .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .partner-name { min-height: 90px; }
    .public-site .section-head > a { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .public-site *, .public-site *::before, .public-site *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
    * { scrollbar-color: auto; }
    .public-site :is(a, button, input, select, textarea):focus-visible { outline-color: Highlight; }
}

.public-site .eyebrow { color: var(--primary); }
.public-site .island-section .eyebrow { color: var(--primary-dark); }
.public-site .gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.public-site .video-card-content :is(span, strong) { position: static; }
.public-site .carousel-card::after { pointer-events: none; }
.public-site .carousel-card { cursor: auto; }
.public-site .carousel-btn:hover { background: var(--primary); color: var(--bg); }
.public-site .carousel-btn:disabled { opacity: .35; cursor: not-allowed; }

/* Secure account flows share one responsive shell and visible keyboard focus. */
.auth-card { max-width: 620px; }
.auth-card h1 { font-size: clamp(2rem, 7vw, 3.5rem); }
.auth-card .setup-key { display: block; overflow-wrap: anywhere; padding: 1rem; border: 1px solid var(--primary); margin-bottom: 1.5rem; }
.auth-cancel { margin-top: 1rem; }
.recovery-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; padding-left: 1rem; overflow-wrap: anywhere; }
.spam-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.secret-toggle { display: inline-block; margin-top: .5rem; padding: .35rem .6rem; color: var(--primary); background: transparent; border: 1px solid var(--primary); border-radius: var(--radius-public); cursor: pointer; }
.field-error { color: var(--coral); margin-top: .5rem; }
[aria-invalid="true"] { border-color: var(--coral); }
textarea { resize: none; min-height: 160px; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }

.editor-input-dialog { background: var(--bg-2); color: var(--text); width: min(600px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; border: 1px solid var(--primary); border-radius: var(--radius-public); padding: 24px; }
.editor-input-dialog::backdrop { background: rgb(0 0 0 / .7); }
.editor-input-dialog h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.editor-input-dialog button { margin-top: 1rem; margin-right: .5rem; }

/* Shared CMS editor: the reference's quiet workbench in the site's ocean palette. */
.cms-editor { border: 1px solid var(--line); border-radius: var(--radius-public); background: var(--bg); width: 100%; min-width: 0; }
.cms-editor .wysiwyg-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px; background: var(--bg-2); border: 0; border-bottom: 1px solid var(--line); border-radius: var(--radius-public) var(--radius-public) 0 0; }
.cms-editor .wysiwyg-toolbar-group { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 0 8px 0 0; margin: 0; border: 0; border-right: 1px solid var(--line); }
.cms-editor .wysiwyg-toolbar-group:last-child { border: 0; }
.cms-editor .wysiwyg-toolbar button, .editor-more summary { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 42px; padding: 8px; margin: 0; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--text); font: 500 14px var(--font); cursor: pointer; }
.cms-editor .editor-blocks button { padding-inline: 12px; }
.cms-editor .wysiwyg-toolbar button svg { width: 22px; height: 22px; flex-shrink: 0; }
.cms-editor .wysiwyg-toolbar button:hover, .editor-more summary:hover { background: var(--primary-dark); border-color: var(--primary); }
.cms-editor .wysiwyg-toolbar button.is-active, .cms-editor .wysiwyg-toolbar button[aria-pressed="true"] { color: var(--bg); background: var(--primary); border-color: var(--primary); }
.cms-editor .wysiwyg-toolbar button:disabled { opacity: .35; cursor: not-allowed; background: transparent; border-color: transparent; }
.cms-editor .wysiwyg-editor { min-height: 320px; padding: 24px; border: 0; border-radius: 0; background: var(--bg); color: var(--text); font: 400 17px/1.75 var(--font); overflow-wrap: anywhere; outline: 0; }
.cms-editor .wysiwyg-editor:focus-visible, .cms-editor .wysiwyg-source:focus-visible { box-shadow: inset 0 0 0 2px var(--primary); }
.cms-editor .wysiwyg-editor h2 { font: 650 28px/1.35 var(--font); margin: 20px 0 12px; }
.cms-editor .wysiwyg-editor h3 { font: 600 22px/1.4 var(--font); margin: 18px 0 10px; }
.cms-editor .wysiwyg-editor p { margin: 0 0 16px; }
.cms-editor .wysiwyg-editor blockquote { padding: 8px 18px; margin: 16px 0; border-left: 3px solid var(--primary); color: var(--muted); }
.cms-editor .wysiwyg-source { display: block; min-height: 180px; padding: 24px; border: 0; border-radius: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--font); }
.cms-editor[data-editor-mode="code"] .wysiwyg-source { font-family: ui-monospace, SFMono-Regular, monospace; }
.cms-editor .wysiwyg-source[hidden] { display: none; }
.cms-editor .editor-history { margin-left: auto; }
.editor-plain-label { font-size: 13px; color: var(--muted); }
.editor-status { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.editor-feedback { padding: 12px 16px; color: var(--coral); }
.editor-more { position: relative; }
.editor-more summary { list-style: none; }
.editor-more-panel { position: absolute; top: 100%; right: 0; z-index: 40; display: flex; flex-wrap: wrap; gap: 4px; padding: 12px; width: min(300px, calc(100vw - 64px)); border: 1px solid var(--line); border-radius: var(--radius-public); background: var(--bg-2); box-shadow: 0 8px 24px rgb(0 0 0 / .3); }
.cms-preview { color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-public); padding: 24px; width: min(900px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; }
.cms-preview::backdrop, dialog.media-modal::backdrop { background: rgb(0 0 0 / .75); }
.cms-preview h2 { font-size: 28px; }
.cms-preview-body { margin-top: 24px; }
.cms-preview-body.is-plain { white-space: pre-wrap; overflow-wrap: anywhere; }
.image-popover { display: flex; flex-wrap: wrap; max-width: calc(100vw - 24px); gap: 6px; }
.image-popover[hidden] { display: none; }
dialog.media-modal { position: fixed; inset: 0; margin: auto; padding: 0; width: min(1100px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border: 1px solid var(--line); border-radius: var(--radius-public); color: var(--text); background: var(--bg-2); z-index: 1000; }
dialog.media-modal:not([open]) { display: none; }
dialog.media-modal[open] { display: block; }
dialog.media-modal .media-backdrop { display: none; }
dialog.media-modal .media-dialog { position: static; width: 100%; max-height: calc(100dvh - 34px); margin: 0; border: 0; }
dialog.media-modal .media-head { flex-wrap: wrap; }
dialog.media-modal .media-search { min-width: 140px; }
dialog.media-modal .media-upload-btn input { max-width: 200px; font-size: 12px; padding: 4px; }
[data-text-align="left"] { text-align: left; }
[data-text-align="center"] { text-align: center; }
[data-text-align="right"] { text-align: right; }
.cms-editor figure:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
@media (max-width: 600px) {
    .admin-main { padding: 16px; }
    .cms-editor .wysiwyg-toolbar { gap: 6px; padding: 8px; }
    .cms-editor .wysiwyg-toolbar-group { border: 0; padding-right: 0; }
    .cms-editor .editor-blocks { width: 100%; }
    .cms-editor .editor-history { margin-left: 0; }
    .cms-editor .wysiwyg-editor, .cms-editor .wysiwyg-source { padding: 16px; }
    .cms-editor .wysiwyg-editor { min-height: 260px; }
    .editor-status span:last-child { max-width: 100%; }
}
.cms-editor .wysiwyg-source { resize: none; }
.cms-editor[data-editor-mode="plain"] .wysiwyg-source { min-height: 120px; }
.image-popover button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.media-guidance { margin: 0; padding: 8px 20px; color: var(--muted); font-size: 12px; }

/* Final responsive review: document owns scrolling; tables/carousels own wide content. */
.stories-layout > *, .admin-main, .grid > * { min-width: 0; }
.pagination { flex-wrap: wrap; }
.admin-table { overflow-wrap: anywhere; }
.admin-table-wrap { overflow-x: auto; scrollbar-gutter: stable; }
.admin-table-wrap .admin-table { min-width: 580px; }
.admin-menu-toggle { display: none; }
.admin-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
@media (max-width: 980px) {
 .stories-layout, .admin-shell { grid-template-columns: minmax(0, 1fr); }
 .admin-sidebar { padding: 16px; border-right: 0; border-bottom: 1px solid var(--line); }
 .admin-sidebar .footer-logo { width: 80px; margin: 0; }
 .has-admin-nav .admin-menu-toggle { display: inline-flex; }
 .has-admin-nav .admin-navigation { display: none; }
 .has-admin-nav .admin-navigation.is-open { display: block; padding-top: 16px; }
 .admin-main { padding: 20px 16px; }
}

.page-error { padding-top: 150px; min-height: 65svh; }

.world-map-leaflet .leaflet-tile-pane, .story-location .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) saturate(.65); }

.world-map-screen, .story-location, .admin-map-picker { isolation: isolate; }
.world-map-leaflet .leaflet-top.leaflet-left { top: 190px; }
.world-map-leaflet.leaflet-container { background: var(--bg); }
button.map-story-card { color: var(--text); font: inherit; text-align: left; width: 100%; }
dialog.map-search-modal { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; border: 0; background: transparent; color: var(--text); }
dialog.map-search-modal:not([open]) { display: none; }
.map-search-modal::backdrop { background: rgba(2,8,17,.78); }
@media (max-width: 980px) { .world-map-leaflet .leaflet-top.leaflet-left { top: 110px; } }
@media (max-width: 480px) { .map-search-input-row { flex-wrap: wrap; gap: 8px; padding: 12px; } .map-search-input-row input { flex-basis: calc(100% - 36px); } }

/* The original action film fills the home hero behind the existing text overlay. */
.athlete-home .hero-video { opacity: 1; object-position: 65% center; }
.hero-video-toggle { position: absolute; right: 24px; top: 110px; z-index: 3; min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--text); font: inherit; font-size: 12px; cursor: pointer; }
.hero-video-toggle:hover { border-color: var(--primary); color: var(--primary); }
.hero-video-toggle[hidden] { display: none; }
@media (max-width: 600px) { .athlete-home .hero-video { object-position: center; } .hero-video-toggle { top: 92px; right: 16px; } }

.hero-video-frame { position: absolute; inset: 0; overflow: hidden; pointer-events: none; container-type: size; }
.hero-video-frame iframe { position: absolute; top: 50%; left: 50%; width: max(100cqw, 177.778cqh); height: max(100cqh, 56.25cqw); transform: translate(-50%, -50%); border: 0; max-width: none; }

/* Championship record: the scale belongs to the achievement. */
.championship-hero { position: relative; isolation: isolate; min-height: 820px; overflow: hidden; background: var(--bg); }
.championship-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 64% center; z-index: -2; }
.championship-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bg) 3%, rgba(6,16,31,.92) 29%, rgba(6,16,31,.12) 80%), linear-gradient(0deg, var(--bg), transparent 30%); }
.championship-intro { padding-top: 145px; padding-bottom: 120px; }
.championship-total { display: flex; gap: 28px; align-items: center; margin: 16px 0 24px; }
.championship-total > span:first-child { font-family: var(--display); font-size: clamp(140px, 18vw, 250px); line-height: .95; letter-spacing: -.06em; color: var(--primary); }
.championship-total-label { font-family: var(--display); font-size: clamp(26px, 3.5vw, 48px); line-height: 1.05; }
.championship-intro h1 { font-size: clamp(32px, 4vw, 54px); line-height: 1.08; margin: 0 0 24px; max-width: 600px; }
.championship-intro h1 span { color: var(--text); }
.championship-lead { max-width: 490px; font-size: 15px; line-height: 1.8; margin-bottom: 28px; color: var(--text); }
.championship-caption { position: absolute; right: max(32px, calc((100vw - 1180px)/2)); bottom: 32px; border-left: 2px solid var(--primary); padding-left: 16px; font-size: 13px; font-weight: 700; }
.championship-caption span { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; font-weight: 400; }
.championship-disciplines { background: var(--primary); color: var(--bg); }
.championship-disciplines > .container { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
.championship-discipline { display: flex; gap: 24px; align-items: center; padding: 36px 28px; border-right: 1px solid rgba(6,16,31,.2); }
.championship-discipline:last-child { border: 0; }
.championship-discipline strong { font-family: var(--display); font-size: 72px; line-height: 1; }
.championship-discipline h2 { font-size: 24px; margin: 0; }
.championship-discipline p { margin: 7px 0 0; font-size: 12px; }
.championship-record { scroll-margin-top: 95px; }
.championship-record-heading h2 { font-size: clamp(36px, 5vw, 62px); margin: 12px 0; }
.championship-record-heading > p:last-child { color: var(--muted); margin-bottom: 28px; }
.championship-record .filter-bar { flex-wrap: wrap; margin: 30px 0 46px; }
.championship-season { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 36px; border-top: 1px solid var(--line); padding: 32px 0; }
.championship-season .title-year { display: block; margin: 0; font-size: 48px; color: var(--primary); }
.championship-season .title-year::after { display: none; }
.championship-season .title-year span { display: block; margin-top: 8px; color: var(--muted); font: 12px var(--font); }
.championship-awards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.championship-award { position: relative; border: 1px solid var(--line); border-left: 3px solid var(--primary); padding: 24px; min-width: 0; }
.championship-award .meta { padding-right: 28px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.championship-award h3 { font-size: 25px; margin: 12px 0 16px; overflow-wrap: anywhere; }
.championship-award .prose { font-size: 13px; }
.championship-medal { position: absolute; top: 22px; right: 20px; color: var(--sand); font-size: 24px; }
@media (max-width: 980px) {
    .championship-hero { min-height: 780px; }
    .championship-discipline { gap: 15px; padding: 28px 16px; }
    .championship-discipline strong { font-size: 56px; }
    .championship-discipline h2 { font-size: 20px; }
}
@media (max-width: 600px) {
    .championship-hero { min-height: 850px; }
    .championship-photo { height: 400px; object-position: 65% center; }
    .championship-hero::before { background: linear-gradient(0deg,var(--bg) 50%,rgba(6,16,31,.08) 80%); }
    .championship-intro { padding-top: 300px; padding-bottom: 110px; }
    .championship-total { gap: 24px; }
    .championship-total > span:first-child { font-size: 150px; }
    .championship-total-label { font-size: 32px; }
    .championship-intro h1 { font-size: 36px; }
    .championship-lead { font-size: 14px; }
    .championship-caption { left: 16px; right: 16px; bottom: 28px; }
    .championship-disciplines > .container { grid-template-columns: 1fr; }
    .championship-discipline { padding: 24px 16px; border: 0; border-bottom: 1px solid rgba(6,16,31,.2); }
    .championship-discipline strong { min-width: 65px; }
    .championship-season { grid-template-columns: 1fr; gap: 20px; }
    .championship-season .title-year { display: flex; gap: 20px; align-items: center; }
    .championship-awards { grid-template-columns: 1fr; }
}

/* An editorial photo wall: action leads, captions sit on the imagery. */
.gallery-intro { padding-top: 125px; }
.gallery-intro h1 { font-size: clamp(64px, 7vw, 104px); line-height: .98; margin: 16px 0 24px; letter-spacing: -.025em; }
.gallery-intro h1 span { color: var(--primary); }
.gallery-intro-bottom { display: flex; justify-content: space-between; align-items: end; gap: 24px; border-bottom: 1px solid var(--line); padding-bottom: 32px; }
.gallery-intro-bottom p { color: var(--muted); font-size: 16px; line-height: 1.7; margin: 0; }
.gallery-intro-bottom a { font-size: 13px; font-weight: 700; padding: 12px 0; }
.gallery-intro-bottom a span { color: var(--primary); font-size: 24px; margin-left: 12px; }
.gallery-wall { padding-top: 32px; scroll-margin-top: 95px; }
.gallery-wall .filter-bar { flex-wrap: wrap; margin-bottom: 32px; }
.gallery-editorial .gallery-photo-wall { columns: auto; display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 16px; }
.gallery-editorial .gallery-card { position: relative; grid-column: span 6; min-width: 0; margin: 0; border-radius: var(--radius-public); background: var(--bg-2); aspect-ratio: 4/3; }
.gallery-editorial .gallery-card:nth-child(4n+1) { grid-column: span 8; aspect-ratio: 16/10; }
.gallery-editorial .gallery-card:nth-child(4n+2) { grid-column: span 4; aspect-ratio: auto; }
.gallery-editorial .gallery-trigger { width: 100%; height: 100%; display: block; overflow: hidden; }
.public-site .gallery-editorial .gallery-card img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; transition: transform .45s ease; }
.gallery-editorial .gallery-trigger:hover img { transform: scale(1.035); }
.gallery-photo-caption { position: absolute; inset: auto 0 0; padding: 70px 24px 24px; background: linear-gradient(transparent,rgba(6,16,31,.94)); pointer-events: none; }
.gallery-photo-category { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--primary); }
.gallery-photo-caption h2 { font-size: clamp(20px,2.2vw,30px); line-height: 1.2; margin: 8px 24px 0 0; }
.gallery-expand { position: absolute; right: 24px; bottom: 24px; font-size: 24px; }
.lightbox .gallery-viewer-prev, .lightbox .gallery-viewer-next { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.lightbox .gallery-viewer-prev { left: 18px; right: auto; }
.lightbox .gallery-viewer-next { right: 18px; }
.gallery-viewer-caption { position: absolute; bottom: 16px; left: 72px; right: 72px; text-align: center; font-size: 13px; color: var(--text); }
@media (max-width: 600px) {
    .gallery-intro { padding-top: 115px; }
    .gallery-intro h1 { font-size: 68px; }
    .gallery-intro-bottom { display: block; }
    .gallery-intro-bottom p { font-size: 14px; }
    .gallery-intro-bottom a { display: inline-block; margin-top: 12px; }
    .gallery-editorial .gallery-photo-wall { grid-template-columns: 1fr; gap: 16px; }
    .gallery-editorial .gallery-card, .gallery-editorial .gallery-card:nth-child(n) { grid-column: auto; aspect-ratio: 4/3; }
    .gallery-editorial .gallery-card:nth-child(3n+2) { aspect-ratio: 4/5; }
    .gallery-photo-caption { padding: 60px 18px 18px; }
    .lightbox .gallery-viewer-prev, .lightbox .gallery-viewer-next { top: auto; bottom: 62px; transform: none; }
    .gallery-viewer-caption { left: 16px; right: 16px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .gallery-editorial .gallery-trigger:hover img { transform: none; } }

/* Consistent horizontal award rows, with one shared left-hand visual size. */
.championship-awards { grid-template-columns: 1fr; }
.championship-award { display: grid; grid-template-columns: 166px minmax(0,1fr); gap: 28px; padding: 20px; align-items: center; min-height: 260px; }
.championship-award-visual { width: 166px; height: 220px; display: grid; place-items: center; overflow: hidden; background: var(--bg); border-radius: var(--radius-public); }
.championship-award-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.championship-award-emblem { color: var(--sand); font-size: 58px; text-align: center; }
.championship-award-emblem small { display: block; margin-top: 12px; font: 20px var(--display); color: var(--primary); letter-spacing: .08em; }
.championship-award-copy { min-width: 0; }
.championship-award-copy .meta { padding: 0; }
.championship-award-caption { margin: 18px 0 0; font-size: 11px; color: var(--muted); }
@media (max-width: 600px) {
    .championship-award { grid-template-columns: 92px minmax(0,1fr); gap: 16px; padding: 16px; min-height: 190px; align-items: start; }
    .championship-award-visual { width: 92px; height: 138px; }
    .championship-award-copy h3 { font-size: 20px; }
    .championship-award-copy .meta { font-size: 9px; letter-spacing: .04em; overflow-wrap: anywhere; }
    .championship-award-copy .prose { font-size: 12px; }
    .championship-award-emblem { font-size: 38px; }
    .championship-award-emblem small { font-size: 16px; }
}
.admin-award-preview { width: min(100%, 360px); max-height: 260px; object-fit: contain; border-radius: 8px; margin: 12px 0; }

/* Scroll choreography: content remains visible without JavaScript. */
.public-site .portrait-frame { overflow: hidden; border-radius: var(--radius-public); }
.public-site .scroll-photo { transform-origin: center; }
@media (prefers-reduced-motion: reduce) {
    .public-site .scroll-photo { transform: none !important; background-position: center !important; }
}

/* About: photographic moments use the championship row geometry. */
.moment-list { display: grid; gap: 20px; }
.moment-year { font: 600 clamp(38px, 5vw, 58px) var(--display); color: var(--primary); }
.values-photo-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.value-photo { position: relative; min-height: 380px; overflow: hidden; border-radius: var(--radius-public); isolation: isolate; }
.value-photo > img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center; z-index: -2; }
.value-photo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg,rgba(6,16,31,.98),rgba(6,16,31,.05) 85%); z-index: -1; }
.value-photo > div { position: absolute; bottom: 0; padding: 26px; }
.value-photo h3 { font-size: 36px; margin: 0 0 12px; color: var(--text); }
.public-site .value-photo p { color: var(--text); font-size: 14px; margin: 0; }
@media (max-width: 980px) { .values-photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 600px) { .value-photo { min-height: 300px; } .value-photo > div { padding: 18px; } .value-photo h3 { font-size: 28px; } .public-site .value-photo p { font-size: 12px; } .moment-year { font-size: 32px; } }
@media (max-width: 380px) { .values-photo-grid { grid-template-columns: 1fr; } }

/* Genuine partner marks retain original color on a white logo surface. */
.public-site .partner-card { padding: 0; overflow: hidden; }
.partner-link { display: block; }
.partner-logo-frame { display: grid; grid-template-rows: minmax(0, 1fr); place-items: center; height: 210px; padding: 24px; margin: 18px 18px 24px; background: #fff; border-radius: var(--radius-public); transition: box-shadow .25s ease; }
.partner-logo { width: 100%; height: 100%; min-height: 0; max-height: 100%; max-width: 220px; object-fit: contain; filter: none; }
.partner-link:hover .partner-logo-frame, .partner-link:focus-visible .partner-logo-frame { box-shadow: 0 0 0 3px var(--primary); }
.partner-link:hover .partner-logo, .partner-link:focus-visible .partner-logo { filter: none; }
.partner-copy { padding: 0 26px 26px; }
.partner-copy h3 { margin-top: 8px; }
.partner-copy .prose { font-size: 16px; }
.partner-visit { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--primary); font-size: 14px; font-weight: 600; }
.public-site .partner-card:focus-within { outline: 2px solid var(--primary); outline-offset: 4px; }
.partner-name.partner-link { padding: 14px; }
.partner-name .partner-logo-frame { height: 150px; width: 100%; margin: 0; }
.partner-name .partner-logo { max-width: 180px; }
@media (max-width: 600px) { .partner-name .partner-logo-frame { height: 130px; padding: 12px; } }

.public-site .site-footer { padding-top: 0; }
.footer-stats { margin-bottom: 60px; }
.site-footer .footer-stats h2 { color: var(--bg); font-size: 24px; margin: 0; }
.site-footer .footer-stats p { color: var(--primary-dark); }
@media (max-width: 980px) { .site-footer .footer-stats h2 { font-size: 20px; } }

.public-site .partner-invitation { display: flex; flex-direction: column; position: relative; min-height: 360px; padding: 32px; background: var(--primary); color: var(--bg); border-color: var(--primary); overflow: hidden; transition: background .2s ease; }
.public-site .partner-invitation .eyebrow { color: var(--bg); font-size: 10px; letter-spacing: .12em; max-width: 180px; }
.partner-invitation-mark { position: absolute; top: 22px; right: 26px; font-size: 54px; line-height: 1; }
.public-site .partner-invitation h3 { font-size: clamp(40px,4vw,58px); line-height: 1.05; margin: 40px 0 18px; }
.public-site .partner-invitation p { color: var(--bg); font-size: 15px; max-width: 260px; }
.partner-invitation-action { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 20px; border-top: 1px solid rgb(6 16 31 / .25); font-weight: 800; }
.partner-invitation-action > span { font-size: 26px; }
.public-site .partner-invitation:hover { background: #73e4e8; }
.public-site .partner-invitation:focus-visible { outline-color: var(--text); }
#contact-form { scroll-margin-top: 110px; }
#partnership-help { margin-bottom: 12px; }

.public-site .metric strong, .public-site .championship-discipline > strong, .public-site .championship-total > span:first-child { font-variant-numeric: tabular-nums; transform-origin: center bottom; }
.public-site .championship-discipline > strong { display: inline-block; }

.footer-sponsor { margin-bottom: 52px; }
.site-footer .footer-sponsor-link { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin: 0; padding: 32px; border: 1px solid var(--primary); border-radius: var(--radius-public); color: var(--text); background: var(--primary-dark); transition: border-color .2s ease, background .2s ease; }
.site-footer .footer-sponsor-link h2 { font-size: clamp(32px, 4vw, 48px); margin: 14px 0 12px; line-height: 1.1; }
.site-footer .footer-sponsor-link p { margin: 0; font-size: 14px; }
.footer-sponsor-action { display: inline-flex; align-items: center; gap: 24px; flex-shrink: 0; padding: 14px 22px; border-radius: var(--radius-public); background: var(--primary); color: var(--bg); font-weight: 800; }
.footer-sponsor-action > span { font-size: 24px; }
.site-footer .footer-sponsor-link:hover { background: #103742; border-color: var(--text); }
@media (max-width: 600px) { .site-footer .footer-sponsor-link { align-items: start; flex-direction: column; padding: 24px; } }

/* Two equal groups create a seamless ocean-side logo train. */
.partner-marquee { overflow: hidden; padding: 6px 0; border-block: 1px solid var(--line); }
.partner-marquee-track { display: flex; width: max-content; animation: partner-train 45s linear infinite; }
.partner-marquee-group { display: flex; flex: 0 0 auto; }
.partner-marquee .partner-name { flex: 0 0 260px; width: 260px; border: 0; }
.partner-marquee:hover .partner-marquee-track, .partner-marquee:focus-within .partner-marquee-track, .partner-marquee.is-paused .partner-marquee-track { animation-play-state: paused; }
.marquee-toggle { display: block; margin: 18px 0 0 auto; padding: 8px 12px; min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius-public); background: transparent; color: var(--muted); font: 12px var(--font); }
.marquee-toggle:hover { color: var(--primary); border-color: var(--primary); }
.marquee-toggle[hidden] { display: none; }
@keyframes partner-train { to { transform: translateX(-50%); } }
@media (max-width: 600px) { .partner-marquee .partner-name { flex-basis: 210px; width: 210px; } }
@media (prefers-reduced-motion: reduce) {
    .partner-marquee-track { animation: none; width: auto; }
    .partner-marquee-group { flex-wrap: wrap; width: 100%; }
    .partner-marquee [data-logo-copy] { display: none; }
}

.partner-marquee { container-type: inline-size; }
.partner-marquee .partner-name { width: max(210px, var(--partner-slot)); flex-basis: max(210px, var(--partner-slot)); }
.partner-train-invite-content { display: flex; flex-direction: column; justify-content: center; gap: 10px; width: 100%; height: 150px; border-radius: var(--radius-public); background: var(--primary); color: var(--bg); padding: 18px 24px; }
.partner-train-invite-content > span:first-child { font: 600 10px var(--font); text-transform: uppercase; letter-spacing: .08em; }
.partner-train-invite-content > strong { font: 600 30px/1.05 var(--display); }
.partner-train-talk { display: flex; justify-content: space-between; align-items: center; font: 700 12px var(--font); }
.partner-train-talk > span { font-size: 22px; }
.partner-train-invite:hover .partner-train-invite-content { background: #73e4e8; }
@media (max-width: 600px) { .partner-train-invite-content { height: 130px; padding: 14px 20px; } }

.hero-title-counter { display: inline-block; font-variant-numeric: tabular-nums; transform-origin: center bottom; color: var(--primary); font-weight: 800; }

/* Photo controls keep structured storage out of the CMS editing flow. */
[data-gallery-items] { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); gap:16px; margin-block:16px; }
[data-gallery-item] { padding:16px; min-width:0; }
[data-gallery-item] .admin-award-preview { width:100%; height:180px; object-fit:contain; margin-bottom:12px; }
[data-gallery-editor] [hidden] { display:none; }
.admin-main label:has(> [data-media-remove]) { display:flex; align-items:center; gap:8px; }
.admin-main input[data-media-remove] { width:auto; flex:none; }

.admin-main input[type="checkbox"], .admin-main input[type="radio"] { width:auto; }
.admin-main .form-field:has(> input[type="checkbox"]) { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.admin-main .form-field:has(> input[type="checkbox"]) > label { order:1; margin:0; }
.admin-main .form-field:has(> input[type="checkbox"]) > .field-help { flex-basis:100%; order:2; }

.admin-main [hidden] { display:none !important; }
