/* =========================================================================
   EYOC 2027 — Liepāja seaside theme
   Palette: sea blue #245e9c · sand #c49a6c · coral #f0513c · charcoal #4a4a4a
   ========================================================================= */
:root {
    --sea:       #245e9c;
    --sea-deep:  #173d63;
    --sea-soft:  #2f74bd;
    --sand:      #c49a6c;
    --sand-soft: #ece0cf;   /* light sand — section backgrounds */
    --coral:     #f0513c;
    --coral-700: #d23d29;
    --ink:       #4a4a4a;
    --ink-soft:  #79797d;
    --paper:     #edceac;
    --paper-2:   #f2e9db;
    --line:      rgba(74, 74, 74, 0.12);

    --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;

    --shadow-sm: 0 1px 2px rgba(23,61,99,.06), 0 4px 12px rgba(23,61,99,.06);
    --shadow-md: 0 8px 30px rgba(23,61,99,.12);
    --shadow-lg: 0 24px 60px rgba(23,61,99,.18);

    /* Paper-coloured wave used to transition dark headers into the page */
    --wave-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%23edceac' d='M0,72 C180,112 360,24 600,40 C840,56 1020,116 1260,84 C1350,72 1410,60 1440,52 L1440,120 L0,120 Z'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, .brand-text, .hero-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    letter-spacing: -0.02em;
    color: var(--ink);
}

a { color: var(--coral-700); text-decoration: none; }
a:hover { color: var(--coral); }

.eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: .75rem;
}

/* ---- brand mark: a sail / beach flag ------------------------------------ */
.brand-mark {
    width: 22px; height: 22px;
    border-radius: 5px;
    background: linear-gradient(135deg, #fff 49.5%, transparent 49.5% 100%), var(--coral);
    flex: 0 0 auto;
    transition: transform 400ms var(--ease-out);
}
.navbar-brand:hover .brand-mark { transform: rotate(90deg); }

/* =========================================================================
   Navigation
   ========================================================================= */
.eyoc-nav {
    background: rgba(250, 246, 240, 0);
    transition: background 300ms var(--ease-out), box-shadow 300ms var(--ease-out), backdrop-filter 300ms var(--ease-out);
    padding: 1.1rem 0;
}
.eyoc-nav.scrolled {
    background: rgba(250, 246, 240, 0.85);
    backdrop-filter: saturate(150%) blur(14px);
    box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
    padding: .7rem 0;
}
.eyoc-nav .brand-text { font-size: 1.25rem; font-weight: 700; }

/* Every page opens on a dark sea header → light nav until scrolled. */
.eyoc-nav:not(.scrolled) .brand-text,
.eyoc-nav:not(.scrolled) .nav-link { color: #fff; }
.eyoc-nav:not(.scrolled) .toggler-bar { background: #fff; }

.eyoc-nav .nav-link {
    color: var(--ink);
    font-weight: 500;
    padding: .4rem .85rem;
    position: relative;
    transition: color 200ms var(--ease-out);
}
.eyoc-nav .nav-link::after {
    content: "";
    position: absolute;
    left: .85rem; right: .85rem; bottom: .15rem;
    height: 2px;
    background: var(--coral);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms var(--ease-out);
}
.eyoc-nav .nav-link:hover,
.eyoc-nav .nav-link.active { color: var(--coral); }
.eyoc-nav:not(.scrolled) .nav-link:hover,
.eyoc-nav:not(.scrolled) .nav-link.active { color: #fff; }
.eyoc-nav .nav-link.active::after,
.eyoc-nav .nav-link:hover::after { transform: scaleX(1); }

.navbar-toggler { border: 0; padding: .4rem; }
.navbar-toggler:focus { box-shadow: none; }
.toggler-bar {
    display: block; width: 24px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 250ms var(--ease-out), opacity 200ms var(--ease-out);
}
.toggler-bar + .toggler-bar { margin-top: 5px; }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn-eyoc, .btn-ghost {
    --bs-btn-focus-box-shadow: none;
    font-weight: 600;
    border-radius: 2px;
    padding: .72rem 1.6rem;
    border: 1.5px solid transparent;
    transition: transform 160ms var(--ease-out), background-color 200ms var(--ease-out),
                color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
    will-change: transform;
}
.btn-eyoc {
    background: var(--coral);
    color: #fff;
    box-shadow: 0 8px 20px rgba(240,81,60,.30);
}
.btn-eyoc:hover { background: var(--coral-700); color: #fff; box-shadow: 0 10px 26px rgba(240,81,60,.38); }
.btn-eyoc:active { transform: scale(.97); }

.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.5);
}
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; border-color: #fff; }
.btn-ghost:active { transform: scale(.97); }

.btn-sm.btn-eyoc { padding: .5rem 1.1rem; font-size: .9rem; }

/* =========================================================================
   Hero — sea horizon, sun and waves
   ========================================================================= */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    color: #fff;
    background: linear-gradient(180deg, var(--sea-soft) 0%, var(--sea) 45%, var(--sea-deep) 100%);
    overflow: hidden;
    padding: 8rem 0 7rem;
}
/* faint contour rings, like an orienteering map under the surface */
.hero::before {
    content: ""; position: absolute; z-index: 0; pointer-events: none;
    left: -180px; bottom: -120px; width: 620px; height: 620px; border-radius: 50%;
    background: repeating-radial-gradient(circle, transparent 0 38px, rgba(255,255,255,.05) 38px 40px);
    mask-image: radial-gradient(circle, #000 55%, transparent 72%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
/* The sun, low over the horizon */
.hero-contours {
    position: absolute;
    top: 12%; right: 10%;
    width: 240px; height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240,81,60,.55) 0%, rgba(240,81,60,.18) 45%, transparent 70%);
    filter: blur(2px);
}
/* Orienteering control markers, recoloured coral */
.control-dot {
    position: absolute;
    width: 16px; height: 16px;
    border-radius: 50%;
    border: 3px solid var(--coral);
    background: rgba(240,81,60,.18);
    box-shadow: 0 0 0 6px rgba(240,81,60,.08);
}

/* Seagull silhouettes gliding over the sea */
.gulls { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.gull { position: absolute; display: block; color: rgba(255,255,255,.85); }
.gull svg { display: block; width: 100%; height: auto; transform-origin: 50% 40%; }
.gull path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.gull.g1 { top: 17%; left: 11%;  width: 44px; animation: gull-drift 13s var(--ease-in-out) infinite; }
.gull.g2 { top: 12%; right: 28%; width: 30px; animation: gull-drift 17s var(--ease-in-out) 1.4s infinite; }
.gull.g3 { top: 25%; right: 14%; width: 56px; animation: gull-drift 15s var(--ease-in-out) .7s infinite; }
.gull.g4 { top: 33%; left: 30%;  width: 24px; animation: gull-drift 19s var(--ease-in-out) 2.2s infinite; }
.gull.g1 svg { animation: gull-flap 2.8s var(--ease-in-out) infinite; }
.gull.g2 svg { animation: gull-flap 2.2s var(--ease-in-out) .3s infinite; }
.gull.g3 svg { animation: gull-flap 3.2s var(--ease-in-out) infinite; }
.gull.g4 svg { animation: gull-flap 2.5s var(--ease-in-out) .6s infinite; }

@keyframes gull-drift {
    0%   { transform: translate(0, 0); }
    50%  { transform: translate(34px, -16px); }
    100% { transform: translate(0, 0); }
}
@keyframes gull-flap {
    0%, 100% { transform: scaleY(1); }
    50%      { transform: scaleY(.66); }
}
@media (max-width: 575.98px) {
    .gull.g1 { width: 32px; } .gull.g2 { width: 22px; }
    .gull.g3 { width: 38px; } .gull.g4 { display: none; }
}

/* Orienteering control flag standing on a support leg by the wave band */
.control-stand {
    position: absolute;
    bottom: 14px; right: 14%;
    width: 160px; z-index: 2;
    transform-origin: 50% 100%;           /* rocks from the foot on the ground */
    animation: stand-sway 6s var(--ease-in-out) infinite;
    filter: drop-shadow(0 8px 10px rgba(11,29,47,.22));
}
.control-stand svg { display: block; width: 100%; height: auto; overflow: visible; }
@keyframes stand-sway {
    0%, 100% { transform: rotate(-2.5deg); }
    50%      { transform: rotate(2.5deg); }
}
@media (max-width: 991.98px) { .control-stand { width: 124px; right: 9%; } }
@media (max-width: 575.98px) { .control-stand { display: none; } }

/* Liepāja city silhouette sitting on the horizon behind the waves */
.hero-skyline {
    position: absolute;
    right: 0; left: auto; bottom: 50px;    /* base sunk into the wave zone */
    width: min(680px, 54%);
    height: 210px;
    z-index: 1;                 /* above the hero background, below the waves & content */
    color: #0e3866;             /* distant-silhouette blue */
    opacity: .5;
    pointer-events: none;
}
.hero-skyline svg { display: block; width: 100%; height: 100%; }
/* Spinning turbine blades — origin is each hub, in SVG viewBox coordinates */
.turbine-blades { transform-box: view-box; animation: turbine-spin 7s linear infinite; }
.turbine-blades-1 { transform-origin: 58px 110px; }
.turbine-blades-2 { transform-origin: 138px 134px; animation-duration: 9s; }
@keyframes turbine-spin { to { transform: rotate(360deg); } }
@media (max-width: 991.98px)  { .hero-skyline { width: 66%; bottom: 36px; height: 175px; opacity: .45; } }
@media (max-width: 575.98px)  { .hero-skyline { width: 88%; bottom: 26px; height: 130px; opacity: .4; } }

/* Layered waves at the foot of the hero */
.hero-waves {
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 130px;
    z-index: 1;
    pointer-events: none;
}
.hero-waves span {
    position: absolute;
    left: -10%; right: -10%; bottom: 0;
    height: 100%;
    background-repeat: repeat-x;
    background-position: 0 bottom;
}
.hero-waves .w1 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1440' height='130' viewBox='0 0 1440 130' preserveAspectRatio='none'%3E%3Cpath fill='%232f74bd' fill-opacity='0.55' d='M0,70 C240,30 480,110 720,80 C960,50 1200,100 1440,70 L1440,130 L0,130 Z'/%3E%3C/svg%3E");
    background-size: 1440px 130px;
    animation: wave-move 14s linear infinite;
}
.hero-waves .w2 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1440' height='130' viewBox='0 0 1440 130' preserveAspectRatio='none'%3E%3Cpath fill='%23edceac' d='M0,92 C200,60 420,120 700,96 C980,72 1180,116 1440,90 L1440,130 L0,130 Z'/%3E%3C/svg%3E");
    background-size: 1280px 130px;
    animation: wave-move 9s linear infinite reverse;
}
@keyframes wave-move {
    from { background-position: 0 bottom; }
    to   { background-position: 1440px bottom; }
}

.hero-inner {
    position: relative; z-index: 2;
    display: flex; align-items: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
}
.hero-logo { flex: 0 0 auto; width: min(34%, 330px); }
.hero-logo img {
    width: 100%; height: auto; display: block;
    /* light halo so the logo lifts off the blue background */
    filter: drop-shadow(0 0 10px rgba(255,255,255,.65))
            drop-shadow(0 0 28px rgba(255,255,255,.4));
}
.hero-copy { flex: 1 1 auto; min-width: 0; max-width: 720px; }
@media (max-width: 991.98px) {
    .hero-inner { flex-direction: column; align-items: flex-start; gap: 1.6rem; }
    .hero-logo { width: 160px; }
}
.hero-kicker {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700; letter-spacing: -0.01em; line-height: 1.12;
    font-size: clamp(1.6rem, 3.6vw, 2.8rem);
    color: #fff; margin-bottom: 1.4rem;
}
.hero-title { margin: 0 0 1.4rem; line-height: .94; }
.hero-title-main {
    display: block;
    font-size: clamp(3.2rem, 11vw, 8rem);
    font-weight: 700; color: #fff;
    text-shadow: 0 2px 30px rgba(23,61,99,.35);
}
.hero-meta { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.4rem; }
.hero-pill {
    display: inline-flex; align-items: center;
    padding: .4rem 1rem; border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    font-weight: 500; font-size: .95rem;
    backdrop-filter: blur(4px);
}
.hero-lead {
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    color: rgba(255,255,255,.88);
    max-width: 640px; line-height: 1.55; margin-bottom: 2rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1rem; }

.hero-scroll {
    position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
    width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5);
    border-radius: 14px; z-index: 3;
}
.hero-scroll span {
    position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
    background: #fff; border-radius: 2px;
    animation: scroll-dot 1.8s var(--ease-in-out) infinite;
}
@keyframes scroll-dot {
    0% { opacity: 0; transform: translateY(0); }
    40% { opacity: 1; }
    80%,100% { opacity: 0; transform: translateY(14px); }
}

/* =========================================================================
   Sections
   ========================================================================= */
.section { padding: clamp(2.25rem, 4.5vw, 3.5rem) 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; margin: 0; }
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.section-head-row .link-arrow { margin-top: 0; white-space: nowrap; }

/* ---- Race-week day tabs ------------------------------------------------- */
.section-days { background: var(--paper); }
.day-nav { display: flex; flex-wrap: wrap; gap: .6rem; border: 0; margin-bottom: 16px; }
.day-nav .nav-link {
    position: relative;
    display: flex; flex-direction: column; align-items: flex-start; gap: .15rem;
    border: 1px solid var(--line); border-radius: 2px;
    background: #fff; color: var(--ink);
    padding: .7rem 1.2rem; min-width: 120px;
    transition: transform 160ms var(--ease-out), background-color 200ms var(--ease-out),
                color 200ms var(--ease-out), box-shadow 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.day-nav .nav-link:hover { border-color: var(--coral); color: var(--coral); }
.day-nav .nav-link:active { transform: scale(.98); }
.day-nav .nav-link.active { background: var(--coral); border-color: var(--coral); color: #fff; box-shadow: 0 8px 20px rgba(240,81,60,.28); }
.day-nav .day-no { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.05rem; }
.day-nav .day-date { font-size: .82rem; opacity: .85; }
/* caret bridging the active day button down to the content panel */
.day-nav .nav-link.active::after {
    content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    margin-top: -1px; width: 0; height: 0;
    border-left: 9px solid transparent; border-right: 9px solid transparent;
    border-top: 11px solid var(--coral);
    transition: left 200ms var(--ease-out);
}

.day-content {
    position: relative;
    background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--coral);
    border-radius: 2px;
    padding: 2rem;
}
/* Programme and Results sit side by side inside the active day. */
.day-content > .tab-pane.active {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: start;
}
.day-block { margin: 0; }
.day-resources { display: flex; flex-direction: column; gap: 1.6rem; }
.day-block-title {
    font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--sea); margin: 0 0 1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--sand);
}
.day-empty { color: var(--ink-soft); margin: 0; }
.tab-pane.fade { transition: opacity 250ms var(--ease-out); }

.section-news-home { background: var(--paper); }


.section-disciplines { background: var(--sand-soft); }
.discipline-card {
    position: relative; background: #fff;
    border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 2.2rem 1.8rem; height: 100%; overflow: hidden;
    transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out), border-color 260ms var(--ease-out);
}
.discipline-card::before {
    content: ""; position: absolute; top: 0; left: 0; width: 5px; height: 100%;
    background: var(--coral); transform: scaleY(0); transform-origin: top;
    transition: transform 320ms var(--ease-out);
}
.discipline-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.discipline-card:hover::before { transform: scaleY(1); }
.discipline-index { font-family: 'Space Grotesk', sans-serif; font-size: 2.4rem; font-weight: 700; color: var(--sand); display: block; line-height: 1; opacity: .55; }
.discipline-card h3 { margin: .8rem 0 0; font-size: 1.5rem; }

/* Preview cards */
.section-preview { background: var(--sand-soft); }
.preview-card { border-radius: var(--r-lg); padding: 2.6rem; transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out); }
.preview-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.preview-bulletin { background: var(--sea); color: #fff; position: relative; overflow: hidden; }
.preview-bulletin .eyebrow { color: #ffb3a8; }
.preview-bulletin h3 { color: #fff; }
.preview-bulletin::after {
    content: ""; position: absolute; right: -60px; bottom: -60px;
    width: 200px; height: 200px; border-radius: 50%; border: 28px solid rgba(255,255,255,.08);
}
.preview-bulletin h3 { font-size: 1.7rem; margin-bottom: .4rem; }
.preview-date { color: rgba(255,255,255,.7); font-size: .9rem; margin-bottom: 1rem; }
.preview-text { color: rgba(255,255,255,.88); line-height: 1.6; }
.preview-maps { background: #fff; border: 1px solid var(--line); }
.preview-maps .preview-text { color: var(--ink-soft); }
.preview-maps h3 { font-size: 1.5rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; margin-top: 1.4rem; color: inherit; }
.preview-bulletin .link-arrow { color: #fff; }
.link-arrow span { transition: transform 200ms var(--ease-out); }
.link-arrow:hover { color: var(--coral); }
.preview-bulletin .link-arrow:hover { color: #ffb3a8; }
.link-arrow:hover span { transform: translateX(5px); }

/* =========================================================================
   Page header (inner pages) — sea gradient + wave foot
   ========================================================================= */
.page-head {
    background: linear-gradient(180deg, var(--sea-soft), var(--sea) 60%, var(--sea-deep));
    color: #fff;
    padding: 9rem 0 6rem;
    position: relative;
    overflow: hidden;
}
.page-head::before {
    content: ""; position: absolute; right: 8%; top: -30%;
    width: 320px; height: 320px; border-radius: 50%;
    background: radial-gradient(circle, rgba(240,81,60,.45), transparent 70%);
}
.page-head::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
    height: 70px; background: var(--wave-paper);
    background-size: 100% 70px; background-repeat: no-repeat;
}
.page-head .container { position: relative; z-index: 2; }
.page-head h1 { font-size: clamp(2.6rem, 7vw, 4.5rem); font-weight: 700; margin: 0 0 1rem; color: #fff; }
.page-head .eyebrow { color: #ffb3a8; }
/* Seaside decorations (gulls + control flag) tuned for the shorter page header */
.page-head .gull.g1 { top: 32%; left: 7%; width: 38px; }
.page-head .gull.g2 { top: 20%; right: 24%; width: 26px; }
.page-head .gull.g3 { top: 48%; right: 9%; width: 46px; }
.page-head .gull.g4 { top: 28%; left: 24%; width: 22px; }
.page-head .control-stand { width: 72px; bottom: 4px; right: 7%; }
.page-lead { font-size: 1.15rem; color: rgba(255,255,255,.9); max-width: 620px; line-height: 1.6; margin: 0; }

/* =========================================================================
   Bulletin list
   ========================================================================= */
.bulletin-list { display: flex; flex-direction: column; gap: 1rem; }
.bulletin-row {
    display: flex; align-items: center; gap: 1.6rem;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 1.4rem 1.6rem;
    transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out), border-color 240ms var(--ease-out);
}
.bulletin-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.bulletin-date { flex: 0 0 auto; width: 76px; text-align: center; border-right: 1px solid var(--line); padding-right: 1.2rem; }
.bd-day { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; color: var(--coral); line-height: 1; }
.bd-mon { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin-top: .3rem; }
.bulletin-body { flex: 1 1 auto; }
.bulletin-body h3 { font-size: 1.25rem; margin: 0 0 .3rem; }
.bulletin-body p { margin: 0; color: var(--ink-soft); line-height: 1.55; }
.bulletin-action { flex: 0 0 auto; }
.soon-badge { display: inline-block; padding: .4rem .9rem; border-radius: 999px; background: var(--sand-soft); color: var(--ink); font-size: .82rem; font-weight: 600; }

/* =========================================================================
   Maps grid
   ========================================================================= */
.map-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
    overflow: hidden; height: 100%; display: flex; flex-direction: column;
    transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out), border-color 260ms var(--ease-out);
}
.map-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.map-thumb { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand-soft); }
.map-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.map-card:hover .map-thumb:not(.no-link) img { transform: scale(1.06); }
.map-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(45deg, var(--sand-soft) 0 14px, #e3d4bd 14px 28px); }
.map-placeholder .control-dot { position: static; width: 28px; height: 28px; }
.map-year { position: absolute; top: .8rem; left: .8rem; background: var(--sea); color: #fff; font-weight: 600; font-size: .82rem; padding: .25rem .7rem; border-radius: 999px; }
.map-info { padding: 1.4rem 1.5rem 1.6rem; flex: 1 1 auto; display: flex; flex-direction: column; }
.map-info h3 { font-size: 1.25rem; margin: 0 0 .4rem; }
.map-terrain { color: var(--ink-soft); line-height: 1.5; margin: 0 0 1rem; flex: 1 1 auto; }
.map-scale { align-self: flex-start; font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--coral); background: rgba(240,81,60,.10); padding: .3rem .7rem; border-radius: 8px; }

/* =========================================================================
   Contacts
   ========================================================================= */
.contact-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 2rem 1.8rem; height: 100%;
    transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out), border-color 240ms var(--ease-out);
}
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.contact-card h3 { font-size: 1.3rem; margin: 0 0 .3rem; }
.contact-role { color: var(--coral); font-weight: 600; font-size: .9rem; margin: 0 0 .8rem; }
.contact-person { color: var(--ink); font-weight: 500; margin: 0 0 1rem; }
.contact-links { display: flex; flex-direction: column; gap: .4rem; }
.contact-link { color: var(--ink-soft); font-weight: 500; transition: color 180ms var(--ease-out); }
.contact-link:hover { color: var(--coral); }

.contact-banner {
    margin-top: 3rem; display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem; flex-wrap: wrap;
    background: var(--sea); color: #fff; border-radius: var(--r-lg); padding: 2.4rem 2.6rem;
}
.contact-banner h3 { margin: 0 0 .4rem; color: #fff; }
.contact-banner p { margin: 0; color: rgba(255,255,255,.85); }

/* =========================================================================
   News
   ========================================================================= */
.news-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
    overflow: hidden; height: 100%; display: flex; flex-direction: column;
    transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out), border-color 260ms var(--ease-out);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.news-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sand-soft); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.news-card:hover .news-thumb img { transform: scale(1.05); }
.news-thumb-fallback { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--sea-soft), var(--sea)); position: relative; }
.news-thumb-fallback::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38px; background: var(--wave-paper); background-size: 100% 38px; background-repeat: no-repeat; }
.news-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1 1 auto; }
.news-date { font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--coral); text-transform: uppercase; margin: 0 0 .5rem; }
.news-body h3 { font-size: 1.3rem; margin: 0 0 .6rem; }
.news-body p { color: var(--ink-soft); line-height: 1.6; margin: 0 0 1rem; flex: 1 1 auto; }

/* News article (detail page) */
.page-back {
    display: inline-flex; align-items: center; gap: .4rem;
    color: rgba(255,255,255,.8); font-weight: 600; margin-bottom: 1rem;
    transition: color 180ms var(--ease-out);
}
.page-back:hover { color: #fff; }
.news-article { max-width: 760px; margin: 0 auto; }
/* White reading panel behind the text. Wider max-width than .news-article so the
   padding does not narrow the ~760px text measure. */
.news-article-card {
    --card-pad: clamp(1.4rem, 3.5vw, 3rem);
    max-width: 856px;
    margin: clamp(1rem, 2.5vw, 2rem) auto 0;
    padding: var(--card-pad);
    background: #fff;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;   /* keeps the full-bleed image inside the rounded corners */
}
/* Lead image runs edge to edge at the top of the card */
.news-article-card > .news-article-img:first-child {
    width: calc(100% + 2 * var(--card-pad));
    margin: calc(-1 * var(--card-pad)) 0 1.8rem calc(-1 * var(--card-pad));
    border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.news-article-img { width: 100%; border-radius: var(--r-lg); margin-bottom: 1.8rem; display: block; }
.news-article-lead { font-size: 1.2rem; line-height: 1.6; color: var(--ink); font-weight: 500; margin: 0 0 1.5rem; }
.news-article-body { color: var(--ink); line-height: 1.75; font-size: 1.05rem; }
.news-article-body h2 { font-size: 1.6rem; margin: 2rem 0 .8rem; }
.news-article-body h3 { font-size: 1.3rem; margin: 1.6rem 0 .6rem; }
.news-article-body p { margin: 0 0 1.1rem; }
.news-article-body ul, .news-article-body ol { margin: 0 0 1.1rem 1.3rem; }
.news-article-body li { margin-bottom: .4rem; }
.news-article-body a { color: var(--coral-700); text-decoration: underline; }
.news-article-body a:hover { color: var(--coral); }
.news-article-body blockquote {
    margin: 1.4rem 0; padding: .6rem 1.2rem; border-left: 4px solid var(--sand);
    color: var(--ink-soft); font-style: italic;
}
.news-article-body img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.news-article-body table {
    width: 100%; border-collapse: collapse; margin: 1.2rem 0 1.6rem; font-size: .98rem;
}
.news-article-body th, .news-article-body td {
    border: 1px solid var(--line); padding: .55rem .8rem; text-align: left; vertical-align: top;
}
.news-article-body thead th { background: var(--sea); color: #fff; font-weight: 600; border-color: var(--sea); }
.news-article-body tbody tr:nth-child(even) { background: var(--paper-2); }
.news-article-body table a { word-break: break-word; }
@media (max-width: 575.98px) {
    .news-article-body table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* Overview map (OpenLayers) */
.eyoc-map {
    width: 100%; height: 460px; margin: 1.2rem 0 1rem;
    border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
}
.eyoc-map-legend {
    list-style: none; margin: 0 0 1.6rem; padding: 0;
    display: flex; flex-wrap: wrap; gap: .5rem 1.4rem;
    font-size: .95rem;
}
.eyoc-map-legend li { display: flex; align-items: center; gap: .5rem; margin: 0; }
.eyoc-map-dot {
    display: inline-block; width: .8rem; height: .8rem; border-radius: 50%;
    border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); flex: none;
}
.embargo-warning {
    margin: 0 0 1.6rem; padding: .9rem 1.2rem;
    background: #fef2f2; border: 1px solid #fecaca; border-left: 4px solid #dc2626;
    border-radius: var(--r-md); color: #7f1d1d; line-height: 1.55;
}

/* =========================================================================
   Programme timeline
   ========================================================================= */
.prog-day { margin-bottom: 2.5rem; }
.prog-day-head {
    display: flex; align-items: baseline; gap: .8rem; margin-bottom: 1.2rem;
    padding-bottom: .6rem; border-bottom: 2px solid var(--sand);
}
.prog-day-head h2 { font-size: 1.5rem; margin: 0; }
.prog-day-head .prog-dow { color: var(--coral); font-weight: 600; }
.prog-row {
    display: flex; gap: 1.4rem; align-items: flex-start;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 1.2rem 1.4rem; margin-bottom: .8rem;
    transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color 220ms var(--ease-out);
}
.prog-row:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); border-color: transparent; }
.prog-time {
    flex: 0 0 auto; width: 70px; font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem; font-weight: 700; color: var(--sea);
    font-variant-numeric: tabular-nums;
}
.prog-main { flex: 1 1 auto; }
.prog-main h3 { font-size: 1.15rem; margin: 0 0 .2rem; }
.prog-venue { color: var(--ink-soft); font-size: .92rem; margin: 0; }
.prog-venue::before {
    content: "";
    display: inline-block;
    width: .8em; height: 1em;
    margin-right: .35em;
    vertical-align: -0.16em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f0513c' d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z'/%3E%3Ccircle cx='12' cy='9' r='2.6' fill='%23fff'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}
.prog-notes { color: var(--ink-soft); margin: .5rem 0 0; line-height: 1.5; }
.prog-tag {
    flex: 0 0 auto; align-self: center;
    font-size: .76rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
    color: var(--sea); background: rgba(36,94,156,.10); padding: .3rem .7rem; border-radius: 999px;
}

/* ---- Results ----------------------------------------------------------- */
.result-day { margin-bottom: 2.5rem; }
.result-row {
    display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 1rem 1.3rem; margin-bottom: .7rem;
    transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color 220ms var(--ease-out);
}
.result-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: transparent; }
.result-info { min-width: 0; }
.result-info h3 { font-size: 1.1rem; margin: 0; }
.result-cat { color: var(--ink-soft); font-size: .9rem; margin: .2rem 0 0; }

/* =========================================================================
   Accommodation
   ========================================================================= */
.acc-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
    overflow: hidden; height: 100%; display: flex; flex-direction: column;
    transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out), border-color 260ms var(--ease-out);
}
.acc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.acc-thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand-soft); }
.acc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.acc-card:hover .acc-thumb img { transform: scale(1.05); }
.acc-thumb-fallback { display: block; width: 100%; height: 100%; background: repeating-linear-gradient(45deg, var(--sand-soft) 0 16px, #e3d4bd 16px 32px); }
.acc-type { position: absolute; top: .8rem; left: .8rem; background: var(--sea); color: #fff; font-weight: 600; font-size: .8rem; padding: .25rem .7rem; border-radius: 999px; }
.acc-body { padding: 1.4rem 1.6rem 1.6rem; display: flex; flex-direction: column; flex: 1 1 auto; }
.acc-body h3 { font-size: 1.25rem; margin: 0 0 .3rem; }
.acc-distance { color: var(--ink-soft); font-size: .9rem; margin: 0 0 .8rem; }
.acc-desc { color: var(--ink-soft); line-height: 1.55; margin: 0 0 1rem; flex: 1 1 auto; }
.acc-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.acc-price { font-weight: 700; color: var(--sea); font-family: 'Space Grotesk', sans-serif; }

/* Empty states */
.empty-state {
    text-align: center; padding: 4rem 1rem;
    border: 1px dashed var(--line); border-radius: var(--r-lg); background: #fff;
}
.empty-state h3 { margin-bottom: .5rem; }
.empty-state p { color: var(--ink-soft); margin: 0; }

/* =========================================================================
   Footer
   ========================================================================= */
.eyoc-footer { background: var(--sea-deep); color: rgba(255,255,255,.78); padding: 4rem 0 1.5rem; }
.eyoc-footer .brand-text { color: #fff; }
.footer-muted { color: rgba(255,255,255,.6); margin: 0 0 .2rem; }
.footer-head { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .55rem; }
.footer-links a { color: rgba(255,255,255,.72); transition: color 180ms var(--ease-out); }
.footer-links a:hover { color: var(--coral); }
.footer-bottom {
    margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1);
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
    font-size: .88rem; color: rgba(255,255,255,.55);
}
.footer-admin { color: rgba(255,255,255,.55); }
.footer-admin:hover { color: var(--coral); }

/* =========================================================================
   Reveal-on-scroll + stagger
   ========================================================================= */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-stagger-item] { opacity: 0; transform: translateY(18px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
[data-stagger-item].is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1199.98px) {
    .eyoc-nav .nav-link { padding: .4rem .65rem; }
}
@media (max-width: 991.98px) {
    .eyoc-nav .navbar-collapse {
        background: var(--paper); border-radius: var(--r-md);
        margin-top: .8rem; padding: 1rem; box-shadow: var(--shadow-md);
    }
    /* Inside the expanded mobile menu the background is paper → dark links. */
    .eyoc-nav:not(.scrolled) .navbar-collapse .nav-link { color: var(--ink); }
    .eyoc-nav:not(.scrolled) .navbar-collapse .nav-link:hover,
    .eyoc-nav:not(.scrolled) .navbar-collapse .nav-link.active { color: var(--coral); }
    .eyoc-nav .nav-link::after { display: none; }
    .preview-card { padding: 2rem; }
    .contact-banner { padding: 1.8rem; }
}
@media (max-width: 575.98px) {
    .bulletin-row { flex-wrap: wrap; gap: 1rem; }
    .bulletin-date { width: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 .6rem; display: flex; gap: .5rem; align-items: baseline; }
    .bd-day { font-size: 1.4rem; }
    .bulletin-action { width: 100%; }
    .bulletin-action .btn { width: 100%; }
    .prog-row { flex-wrap: wrap; gap: .6rem; }
    .day-nav .nav-link { flex: 1 1 auto; }
    /* tabs wrap to a grid here, so stack the blocks and drop the caret */
    .day-content > .tab-pane.active { grid-template-columns: 1fr; gap: 1.6rem; }
    .day-nav .nav-link.active::after { display: none; }
    .prog-tag { align-self: flex-start; }
}

/* Supporters / partners logo band */
.sponsors { background: var(--paper-2); padding: clamp(2rem, 4vw, 3rem) 0; border-top: 1px solid var(--line); }
.sponsors-title {
    text-align: center; margin: 0 0 1.6rem;
    font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: var(--ink-soft);
}
.sponsor-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.25rem 2rem; }
.sponsor-item {
    display: flex; align-items: center; justify-content: center;
    height: 72px; min-width: 140px; padding: .6rem 1.1rem;
    background: #fff; border-radius: var(--r-sm); box-shadow: var(--shadow-sm);
}
.sponsor-item img {
    max-height: 52px; max-width: 180px; width: auto; height: auto; object-fit: contain;
    filter: grayscale(1); opacity: .8; transition: filter .2s var(--ease-out), opacity .2s var(--ease-out);
}
a.sponsor-item:hover img { filter: grayscale(0); opacity: 1; }
.sponsor-name { font-weight: 600; color: var(--ink); }
.sponsor-item-empty { background: transparent; box-shadow: none; border: 2px dashed var(--line); }
@media (max-width: 575.98px) { .sponsor-item { min-width: 116px; height: 62px; } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    [data-reveal], [data-stagger-item] { opacity: 1; transform: none; }
    .hero-waves span { animation: none; }
    .control-stand { animation: none; transform: none; }
    .gull, .gull svg { animation: none; transform: none; }
}
