:root {
    --rotary-blue: #17458F;
    --rotary-blue-dark: #0E2D5C;
    --rotary-gold: #F7A81B;
    --rotary-gold-dark: #D88E0F;
    --azure: #0B72D9;
    --ink: #0F1F3D;
    --ink-2: #2C3E5C;
    /* --muted / --gold-text / --azure-text are the WCAG-AA-safe text variants;
       --rotary-gold-dark and --azure stay for fills, borders and hover states. */
    --muted: #5F6D85;
    --gold-text: #8A5C09;
    --azure-text: #0A63BC;
    --bg: #FFFFFF;
    --bg-alt: #F5F7FB;
    --bg-deep: #0E1E3C;
    --line: #E1E6EF;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 12px rgba(15, 31, 61, 0.06);
    --shadow: 0 12px 40px rgba(15, 31, 61, 0.10);
    --shadow-lg: 0 24px 60px rgba(15, 31, 61, 0.18);
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Bebas Neue', 'Inter', sans-serif;
    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --header-h: 76px;
    /* per-element hover transition, composed into the reveal rule */
    --hover-transition: opacity 0s;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* scroll-MARGIN on the anchor targets, not scroll-PADDING on <html>: the
   sticky header's own links live permanently inside a global padding band, so
   merely focusing a nav link made the UA scroll the page ~460px trying to
   clear it. This applies only when something is actually jumped to. */
:target, #main { scroll-margin-top: calc(var(--header-h) + 16px); }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid var(--rotary-gold);
    outline-offset: 2px;
    border-radius: 4px;
}

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    padding: 10px 18px; border-radius: 0 0 10px 10px;
    background: var(--rotary-blue); color: #fff; font-weight: 600; font-size: 14px;
    transition: top .2s ease;
}
.skip-link:focus { top: 0; color: #fff; }
/* focus target only — never draw a ring around the whole page */
main:focus { outline: none; }

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

/* ─── Scroll reveal ──────────────────────── */
/* Gated on .js (set by the inline head script): content is visible by default,
   so a JS failure degrades to a static page rather than a blank one. */
/* Offset uses the independent `translate` property, NOT `transform`: many of
   these elements are cards whose :hover lift sets `transform`, and this rule
   is more specific, so sharing the property would silently kill every hover. */
.js [data-reveal] {
    opacity: 0;
    translate: 0 22px;
    /* The element's own hover transition is composed in, not replaced — this
       rule is more specific, so a bare shorthand here would kill it.
       --hover-transition comes FIRST: a property repeated later in a transition
       list wins, and the inert default is `opacity 0s`, which would otherwise
       override the fade on every element that does not set its own.
       The stagger is a per-property delay on opacity/translate rather than a
       blanket transition-delay, so hover feedback is never held back by it. */
    transition:
        var(--hover-transition),
        opacity .7s var(--ease-out) var(--reveal-delay, 0ms),
        translate .7s var(--ease-out) var(--reveal-delay, 0ms);
}
.js [data-reveal].is-in { opacity: 1; translate: none; }
@media (prefers-reduced-motion: reduce) {
    .js [data-reveal] { opacity: 1; translate: none; transition: none; }
}
/* print has no scrolling, so anything still awaiting its reveal would be
   omitted from the printed page entirely */
@media print {
    /* transition:none too — printing snapshots immediately, so a .7s fade
       would be captured mid-way */
    [data-reveal] { opacity: 1 !important; translate: none !important; transition: none !important; }
}
body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rotary-blue); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--gold-text); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ─── Topbar (utility row) ───────────────── */
.topbar {
    background: var(--rotary-blue-dark); color: rgba(255,255,255,.75);
    font-size: 13px; letter-spacing: .01em;
}
.topbar .container {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; min-height: 38px; flex-wrap: wrap;
}
.topbar-note {
    display: inline-flex; align-items: center; gap: 8px;
    text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 600;
    color: rgba(255,255,255,.7);
}
.topbar-note::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--rotary-gold); flex: 0 0 auto;
}
.topbar-links { display: flex; align-items: center; gap: 20px; }
.topbar-links a { color: rgba(255,255,255,.78); font-weight: 500; }
.topbar-links a:hover { color: var(--rotary-gold); }

/* ─── Header ─────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-stuck {
    box-shadow: 0 6px 24px rgba(15, 31, 61, .08);
    background: rgba(255,255,255,0.95);
}
.site-header .container {
    display: flex; align-items: center; gap: 20px;
    padding-top: 14px; padding-bottom: 14px;
}
/* flex:0 0 auto — as a shrinkable flex item the logo squashed on X only
   (max-width:100% capping width while height stayed pinned at 42px).
   Because it can no longer shrink, small screens scale it via height
   instead — otherwise its intrinsic 141px overflows the header. */
.brand { order: 0; display: block; flex: 0 0 auto; transition: transform .2s var(--ease-out); }
.brand:hover { transform: translateY(-1px); }
.brand img { height: 42px; width: auto; max-width: none; }
/* the ten items (incl. the two-word 'Uždarymo vakaras') have to fit one row
   inside the 1200px container at every desktop width — hence the tight
   spacing and nowrap: wrapping overflows the container instead of absorbing */
.primary-nav {
    order: 1;
    display: flex; align-items: center; justify-content: flex-end;
    gap: 0; margin-left: auto;
    font-size: 13.5px; font-weight: 500;
}
.primary-nav a {
    color: var(--ink-2); position: relative; padding: 8px 7px; border-radius: 8px;
    white-space: nowrap;
    transition: color .18s ease, background .18s ease;
}
.primary-nav a:hover { color: var(--rotary-blue); background: rgba(23, 69, 143, .06); }
.primary-nav a::after {
    content: ''; position: absolute; left: 7px; right: 7px; bottom: 3px; height: 2px;
    border-radius: 2px; background: var(--rotary-gold);
    transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out);
}
.primary-nav a:hover::after { transform: scaleX(1); }
.primary-nav a.is-active { color: var(--rotary-blue); font-weight: 600; }
.primary-nav a.is-active::after { transform: scaleX(1); }
.header-cta { order: 2; display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* LT | EN switcher — always visible next to the header CTA */
.lang-switch { display: flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; }
.lang-switch a {
    color: var(--muted); padding: 5px 7px; border-radius: 6px;
    transition: color .18s ease, background .18s ease;
}
.lang-switch a:hover { color: var(--rotary-blue); background: rgba(23, 69, 143, .06); }
.lang-switch a.is-current { color: var(--rotary-blue); background: rgba(23, 69, 143, .1); }

/* just above the burger breakpoint the container is viewport-wide, so the nav
   row needs the header gaps back to keep its side gutters */
@media (max-width: 1230px) {
    .site-header .container { gap: 10px; }
}

/* Registracija is the site's primary conversion action, so it stays in the
   header at every width — it just gets compact rather than being hidden.
   (the logo height for this range is set after the 1150px block below, which
   would otherwise win on source order) */
@media (max-width: 430px) {
    .site-header .container { gap: 10px; }
    .header-cta .btn { padding: 8px 12px; font-size: 12.5px; gap: 4px; }
}

/* burger — hidden on desktop, drives the mobile dropdown via :checked */
.nav-toggle { display: none; }
.nav-burger { display: none; }

/* ─── Buttons ────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: 15px;
    border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    white-space: nowrap;
}
.btn-primary {
    background: var(--rotary-blue); color: #fff;
}
.btn-primary:hover { background: var(--rotary-blue-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-accent {
    background: var(--rotary-gold); color: var(--ink);
}
.btn-accent:hover { background: var(--rotary-gold-dark); color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost {
    background: transparent; color: var(--ink); border: 1.5px solid var(--line);
}
.btn-ghost:hover { background: var(--bg-alt); color: var(--rotary-blue); }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ─── Hero ───────────────────────────────── */
.hero {
    position: relative; overflow: hidden;
    padding: 100px 0 120px;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(247, 168, 27, 0.18), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(23, 69, 143, 0.16), transparent 60%),
        linear-gradient(180deg, #FBFCFE 0%, #F2F5FA 100%);
}
.hero .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 999px;
    background: rgba(23, 69, 143, 0.08);
    color: var(--rotary-blue); font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
}
.hero h1 {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(48px, 6vw, 84px); line-height: .98;
    margin: 22px 0 16px; letter-spacing: -.01em; color: var(--ink);
}
.hero h1 span { color: var(--rotary-gold); }
.hero p.lead { font-size: 19px; color: var(--ink-2); margin: 0 0 32px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
    position: relative; aspect-ratio: 4/5;
    background:
        radial-gradient(circle at 30% 20%, rgba(247, 168, 27, 0.35), transparent 55%),
        linear-gradient(135deg, var(--rotary-blue), var(--rotary-blue-dark));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.hero-visual::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 14px);
}
.hero-visual .badge-stack {
    position: absolute; bottom: 28px; left: 28px; right: 28px;
    color: #fff; display: flex; flex-direction: column; gap: 10px;
}
.hero-visual .badge-stack strong { font-family: var(--font-display); font-size: 34px; letter-spacing: .02em; }
.hero-visual .badge-stack small { opacity: .8; font-size: 13px; text-transform: uppercase; letter-spacing: .15em; }
.hero-theme-badge {
    position: absolute; top: 24px; right: 24px;
    width: 110px; height: 110px; border-radius: 18px;
    box-shadow: 0 12px 32px rgba(0,0,0,.25);
    border: 3px solid rgba(255,255,255,.15);
}

/* ─── Sections ───────────────────────────── */
section { padding: 96px 0; }
section.alt { background: var(--bg-alt); }

.section-head { max-width: 720px; margin: 0 0 48px; }
.section-head .eyebrow {
    color: var(--gold-text); font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; font-size: 13px; margin-bottom: 12px; display: block;
}
.section-head h2 {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(36px, 4vw, 56px); line-height: 1.05;
    margin: 0 0 14px; letter-spacing: -.01em;
}
.section-head p { color: var(--ink-2); font-size: 17px; margin: 0; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-cta { text-align: center; margin-top: 40px; }
.page-lead { margin: 0 0 36px; max-width: 620px; color: var(--ink-2); font-size: 17px; }
.empty-state {
    grid-column: 1 / -1; padding: 56px; text-align: center;
    background: var(--bg-alt); border: 1px dashed var(--line);
    border-radius: var(--radius-lg); color: var(--muted);
}

/* shared "read more" affordance — arrow slides on card hover */
.arrow { display: inline-block; transition: transform .25s var(--ease-out); }
.card-more { color: var(--rotary-blue); font-weight: 600; }
:is(.event-card, .teaser-card, .link-card, .news-item):hover .arrow { transform: translateX(5px); }

/* ─── Event cards ────────────────────────── */
.event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 28px; }
.event-card {
    background: #fff; border-radius: var(--radius-lg); overflow: hidden; color: inherit;
    box-shadow: var(--shadow-sm);
    --hover-transition: transform .2s ease, box-shadow .2s ease;
    transition: var(--hover-transition);
    display: flex; flex-direction: column;
    border: 1px solid var(--line);
}
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(23,69,143,.18); }
.event-card .cover {
    aspect-ratio: 16/9; background: linear-gradient(135deg, var(--rotary-blue), var(--azure));
    position: relative; overflow: hidden;
}
.event-card .cover img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s var(--ease-out);
}
.event-card:hover .cover img { transform: scale(1.06); }
.event-card .cover .season-badge {
    position: absolute; top: 16px; left: 16px;
    padding: 6px 14px; border-radius: 999px;
    background: rgba(255,255,255,0.95); color: var(--ink);
    font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.event-card .cover .season-badge.winter { background: var(--azure); color: #fff; }
.event-card .cover .season-badge.summer { background: var(--rotary-gold); color: var(--ink); }
.event-card .body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.event-card h3 { font-size: 22px; margin: 0; color: var(--ink); }
.event-card .meta { display: flex; gap: 16px; color: var(--muted); font-size: 14px; }
.event-card .meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-card p.summary { color: var(--ink-2); margin: 4px 0 0; font-size: 15px; }
.event-card .footer-row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 18px; }
.event-card .footer-row a { font-weight: 600; }
/* past events stay browsable but visually recede until hovered/focused */
.section-head--past { margin-top: 64px; }
/* the fade rides on filter, not opacity — the reveal controller owns opacity */
.event-grid--past .event-card { filter: grayscale(55%) opacity(.78); transition: var(--hover-transition), filter .25s ease; }
.event-grid--past .event-card:hover, .event-grid--past .event-card:focus-within { filter: none; }

/* ─── Organizers ─────────────────────────── */
.organizer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 28px; }
.organizer {
    background: #fff; padding: 32px 28px; border-radius: var(--radius-lg);
    text-align: center; border: 1px solid var(--line);
    --hover-transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s ease;
    transition: var(--hover-transition);
}
.organizer:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(23,69,143,.18); }
.organizer img {
    width: 132px; height: 132px; border-radius: 50%; object-fit: cover; margin: 0 auto 18px;
    border: 4px solid var(--bg-alt);
    transition: border-color .25s ease, transform .25s var(--ease-out);
}
.organizer:hover img { border-color: rgba(247,168,27,.35); transform: scale(1.04); }
.organizer h4 { margin: 0 0 6px; font-size: 19px; }
.organizer .role { color: var(--muted); font-size: 14px; }
.organizer-mail { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 500; }

/* ─── Sponsors marquee ───────────────────── */
.sponsor-marquee {
    position: relative;
    overflow: hidden;
    padding: 12px 0;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.sponsor-track {
    display: flex;
    width: max-content;
    gap: 72px;
    align-items: center;
    animation: sponsor-scroll 38s linear infinite;
}
.sponsor-marquee:hover .sponsor-track { animation-play-state: paused; }
.sponsor-track > * {
    flex: 0 0 auto;
    height: 70px;
    display: flex; align-items: center; justify-content: center;
}
.sponsor-track img {
    max-height: 64px; max-width: 180px; width: auto; height: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.55);
    transition: filter .3s ease, transform .3s var(--ease-out);
}
.sponsor-marquee:hover .sponsor-track img { filter: grayscale(60%) opacity(0.75); }
.sponsor-track img:hover { filter: grayscale(0) opacity(1); transform: scale(1.08); }

/* -50% lands half a gap short of one full pass (the track has 2n-1 gaps, not
   2n), which makes the loop visibly jump — offset by half the gap to close it */
@keyframes sponsor-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-50% - 36px)); }
}
@media (prefers-reduced-motion: reduce) {
    /* width:max-content makes flex-wrap inert, so without resetting it the
       track overflows its clipped parent and most logos are never seen —
       there is no animation left to bring them into view */
    .sponsor-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; gap: 40px 56px; }
    /* .sponsor-marquee sits outside .container, so wrapped logos would
       otherwise run flush to the viewport edges */
    .sponsor-marquee { mask-image: none; -webkit-mask-image: none; padding: 12px 24px; }
    /* nothing is scrolling, so the seamless-loop duplicate would just show
       every logo twice */
    .sponsor-dupe { display: none; }
}

/* ─── Stats ──────────────────────────────── */
.stats-band {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--rotary-blue), var(--rotary-blue-dark));
    color: #fff; padding: 64px 0;
}
.stats-band::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(700px 300px at 85% -20%, rgba(247,168,27,.20), transparent 65%);
}
.stats-band .container {
    position: relative;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 32px; text-align: center;
}
.stat + .stat { border-left: 1px solid rgba(255,255,255,.12); }
.stat-num {
    font-family: var(--font-display); font-size: 64px; line-height: 1; color: var(--rotary-gold);
    font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 15px; opacity: .9; letter-spacing: .08em; text-transform: uppercase; margin-top: 6px; }
@media (max-width: 880px) { .stat + .stat { border-left: 0; } }

/* ─── Detail page ────────────────────────── */
.event-hero {
    padding: 80px 0 64px;
    background: linear-gradient(135deg, var(--rotary-blue-dark), var(--rotary-blue));
    color: #fff;
    text-align: left;
}
.event-hero .badge-row { display: flex; gap: 10px; margin-bottom: 18px; justify-content: flex-start; }
.event-hero .badge-row span {
    padding: 6px 14px; border-radius: 999px;
    background: rgba(255,255,255,.15); font-size: 13px; font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase;
}
.event-hero h1 { font-family: var(--font-display); font-size: clamp(40px, 5vw, 72px); margin: 0 0 18px; line-height: 1; }
.event-hero .meta-row { display: flex; gap: 28px; flex-wrap: wrap; font-size: 16px; opacity: .92; }
.event-hero .meta-row span { display: inline-flex; align-items: center; gap: 8px; }

.event-body { padding: 64px 0 96px; }
.event-body .container { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; max-width: 1080px; }
.event-body article { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.event-body article :is(h2,h3) { color: var(--ink); margin-top: 1.4em; }
.event-lead-img { width: 100%; border-radius: var(--radius); margin-bottom: 32px; }
.event-summary { font-size: 20px; color: var(--ink); font-weight: 500; line-height: 1.6; }
.event-body aside .card {
    background: var(--bg-alt); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 26px;
    position: sticky; top: 100px;
}
.event-body aside h4 { margin: 0 0 16px; font-size: 17px; }
.event-body aside .btn { width: 100%; justify-content: center; margin-top: 20px; }
.event-facts { margin: 0; display: grid; gap: 4px; }
.event-facts dt {
    color: var(--muted); font-size: 12px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; margin-top: 12px;
}
.event-facts dt:first-child { margin-top: 0; }
.event-facts dd { margin: 0; color: var(--ink); font-size: 16px; }

/* ─── Footer ─────────────────────────────── */
.site-footer {
    position: relative;
    background: var(--bg-deep); color: rgba(255,255,255,.85); padding: 72px 0 24px;
}
.site-footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--rotary-blue), var(--rotary-gold), var(--azure));
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; padding-bottom: 40px; }
.footer-grid h4 {
    color: #fff; margin: 0 0 16px; font-size: 13px;
    letter-spacing: .12em; text-transform: uppercase;
}
.footer-grid a {
    display: block; width: fit-content; color: rgba(255,255,255,.7); margin-bottom: 9px;
    transition: color .18s ease, transform .18s var(--ease-out);
}
.footer-grid a:hover { color: var(--rotary-gold); transform: translateX(3px); }
/* links inside the rekvizitai paragraph stay inline with their label */
.footer-grid p a { display: inline; margin-bottom: 0; }
.footer-grid p a:hover { transform: none; }
.footer-grid p { margin: 12px 0 0; color: rgba(255,255,255,.6); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px;
    display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.55);
}
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: var(--rotary-gold); }

/* ─── Home hero (photo) ──────────────────── */
.hero-home {
    padding: 120px 0 100px;
    color: #fff;
    /* backgrounds live in .hero-bg (one layer per slide); the light .hero
       gradient is dropped so this dark colour shows through if an image 404s */
    background-image: none; background-color: #0b1e3c;
}
.hero-home .container { display: block; position: relative; z-index: 1; }
.hero-home .hero-content { max-width: 720px; }
.hero-home .hero-eyebrow { background: rgba(255,255,255,.14); color: #fff; }
.hero-home h1 { color: #fff; }
.hero-home h1 span { color: var(--rotary-gold); }
.hero-home p.lead { color: rgba(255,255,255,.9); }
.btn-on-dark { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-on-dark:hover { background: rgba(255,255,255,.12); color: #fff; }
.hero-home { position: relative; }

/* per-slide full-bleed backgrounds; the scrim sits on the wrapper, so the
   crossfade between two images never drops text contrast */
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(11,30,60,.55), rgba(11,30,60,.82));
}
.hero-bg-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity .45s var(--ease-out);
}
.hero-bg-slide.is-active { opacity: 1; }

/* scroll cue — a dot falling inside a "mouse" outline */
.hero-scroll-cue {
    position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 1;
    width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.45); border-radius: 999px;
    display: flex; justify-content: center; padding-top: 8px;
    transition: border-color .2s ease;
}
.hero-scroll-cue:hover { border-color: var(--rotary-gold); }
.hero-scroll-cue span {
    width: 4px; height: 8px; border-radius: 2px; background: rgba(255,255,255,.85);
    animation: cue-fall 1.8s var(--ease-out) infinite;
}
@keyframes cue-fall {
    0%   { transform: translateY(0);    opacity: 0; }
    30%  { opacity: 1; }
    70%  { transform: translateY(14px); opacity: 0; }
    100% { transform: translateY(14px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .hero-scroll-cue span { animation: none; } }
@media (max-width: 880px) { .hero-scroll-cue { display: none; } }

/* ─── Home hero slider ───────────────────── */
.hero-slider { max-width: 860px; }
/* slides stack in one grid cell, so the track is always as tall as the TALLEST
   slide — no height jump when moving between slide 1 and the shorter slides */
.hero-slides { display: grid; min-height: 340px; }
.hero-slide {
    grid-area: 1 / 1;
    display: flex; flex-direction: column; justify-content: center;
    opacity: 0; visibility: hidden;   /* keeps links of inactive slides untabbable */
    transform: translateY(14px);
    /* visibility flips only after the fade, so the outgoing slide crossfades
       instead of vanishing on the spot */
    transition: opacity .45s var(--ease-out), transform .45s var(--ease-out),
                visibility 0s linear .45s;
}
.hero-slide.is-active {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .45s var(--ease-out), transform .45s var(--ease-out),
                visibility 0s;
}
.hero-slide .hero-eyebrow { background: rgba(255,255,255,.14); color: #fff; align-self: flex-start; }
.hero-slide .hero-title {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(38px, 5vw, 64px); line-height: 1.02;
    margin: 22px 0 16px; letter-spacing: -.01em; color: #fff;
}
.hero-slide p.lead { font-size: 19px; color: rgba(255,255,255,.9); margin: 0 0 28px; max-width: 620px; }
.hero-events { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.hero-event {
    padding: 20px; border-radius: var(--radius);
    background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
}
.hero-event h2 { font-family: var(--font-display); font-weight: 400; font-size: 26px; margin: 0 0 6px; color: #fff; }
.hero-event-meta { font-size: 14px; color: rgba(255,255,255,.85); margin: 0 0 16px; }

.hero-slider-nav { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.hero-arrow {
    width: 42px; height: 42px; border-radius: 999px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; padding: 0;
    background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.35);
    color: #fff; font-size: 22px; line-height: 1;
    transition: background .2s var(--ease-out), border-color .2s var(--ease-out);
}
.hero-arrow:hover { background: rgba(255,255,255,.2); border-color: var(--rotary-gold); }
.hero-dots { display: flex; gap: 10px; }
.hero-dot {
    width: 11px; height: 11px; padding: 0; border-radius: 999px; cursor: pointer;
    background: rgba(255,255,255,.35); border: 1px solid rgba(255,255,255,.5);
    transition: background .2s var(--ease-out), transform .2s var(--ease-out);
}
.hero-dot.is-active { background: var(--rotary-gold); border-color: var(--rotary-gold); transform: scale(1.2); }
.hero-arrow:focus-visible, .hero-dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
    .hero-slide { transition: none; }
    .hero-bg-slide { transition: none; }
    .hero-dot, .hero-arrow { transition: none; }
}
@media (max-width: 880px) { .hero-slides { min-height: 460px; } }

/* ─── Sponsor section (home) ─────────────── */
.sponsor-section { background: var(--bg-alt); }
.sponsor-section .section-cta { margin-top: 24px; }

/* ─── Countdown ──────────────────────────── */
.countdown { display: flex; gap: 14px; margin: 0 0 34px; flex-wrap: wrap; }
/* per-event countdown inside a hero card */
.countdown--compact { gap: 8px; margin: 0 0 16px; }
.countdown--compact .cd-unit { min-width: 56px; padding: 8px 6px; }
.countdown--compact .cd-num { font-size: 24px; }
.countdown--compact .cd-label { font-size: 10px; letter-spacing: .08em; }
.cd-unit {
    min-width: 88px; padding: 16px 12px; text-align: center;
    background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16);
    border-radius: var(--radius); backdrop-filter: blur(6px);
}
.cd-num {
    font-family: var(--font-display); font-size: 48px; line-height: 1;
    color: var(--rotary-gold); display: block; font-variant-numeric: tabular-nums;
}
.cd-label { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; opacity: .85; }
/* keep all four units on one row instead of orphaning "sek." */
@media (max-width: 560px) {
    .countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .cd-unit { min-width: 0; padding: 12px 4px; }
    .cd-num { font-size: 32px; }
    .cd-label { font-size: 10px; letter-spacing: .06em; }
}

/* ─── Teaser / link cards ────────────────── */
.teaser-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 24px; }
.teaser-card, .link-card {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; gap: 8px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 28px; color: inherit;
    --hover-transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s ease;
    transition: var(--hover-transition);
}
/* gold rail wipes in from the left edge on hover */
.teaser-card::before, .link-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: var(--rotary-gold);
    transform: scaleY(0); transform-origin: top;
    transition: transform .3s var(--ease-out);
}
.teaser-card:hover::before, .link-card:hover::before { transform: scaleY(1); }
.teaser-card:hover, .link-card:hover {
    transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(23,69,143,.18);
}
.teaser-num {
    position: absolute; top: 18px; right: 22px;
    font-family: var(--font-display); font-size: 42px; line-height: 1;
    color: var(--ink); opacity: .07; pointer-events: none;
    transition: opacity .25s ease, color .25s ease;
}
.teaser-card:hover .teaser-num { opacity: .16; color: var(--rotary-blue); }
.teaser-kicker {
    align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--gold-text); background: rgba(247,168,27,.12); padding: 4px 10px; border-radius: 999px;
}
.teaser-card h3, .link-card h3 { margin: 6px 0 0; font-size: 21px; color: var(--ink); }
.teaser-card p, .link-card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.teaser-more { margin-top: auto; padding-top: 8px; color: var(--rotary-blue); font-weight: 600; font-size: 14px; }

/* home teaser tiles are photo-backed: photo + dark scrim + copy on top, so all
   their text switches to the on-dark palette (never the gold text token) */
.teaser-card { padding: 0; min-height: 320px; justify-content: flex-end; background: var(--rotary-blue); border-color: transparent; }
.teaser-card::before { z-index: 2; }
.teaser-photo {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s var(--ease-out);
}
.teaser-card:hover .teaser-photo { transform: scale(1.06); }
.teaser-scrim {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,26,51,.20) 0%, rgba(10,26,51,.66) 46%, rgba(10,26,51,.92) 100%);
}
.teaser-body { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 28px; }
.teaser-card .teaser-num { color: #fff; opacity: .3; }
.teaser-card:hover .teaser-num { color: #fff; opacity: .45; }
.teaser-card .teaser-kicker { color: #fff; background: rgba(255,255,255,.18); }
.teaser-card h3 { color: #fff; }
.teaser-card p { color: rgba(255,255,255,.9); }
.teaser-card .teaser-more { color: #fff; }
.link-card-grid {display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; }

/* ─── Inner pages ────────────────────────── */
.page-head {
    position: relative; overflow: hidden;
    padding: 76px 0 52px;
    background:
        radial-gradient(900px 400px at 90% -20%, rgba(247,168,27,.14), transparent 60%),
        linear-gradient(180deg, #FBFCFE, #F2F5FA);
    border-bottom: 1px solid var(--line);
}
/* faint diagonal weave, echoing the hero visual */
.page-head::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: repeating-linear-gradient(45deg, rgba(23,69,143,.035) 0 1px, transparent 1px 12px);
}
.page-head .container { position: relative; }
.page-head .eyebrow {
    color: var(--gold-text); font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; font-size: 13px; display: block; margin-bottom: 10px;
}
.page-head h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(38px, 5vw, 64px); line-height: 1.02; margin: 0; }
.page-hero-photo {
    padding: 120px 0 72px; color: #fff; background-size: cover; background-position: center;
}
.page-hero-photo .eyebrow { color: var(--rotary-gold); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; display: block; margin-bottom: 10px; }
.page-hero-photo h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(38px, 5vw, 64px); line-height: 1.02; margin: 0; color: #fff; }
.page-body { padding: 72px 0 88px; }
.page-body.alt { background: var(--bg-alt); }
/* Content pages keep the standard .container so every page's left edge lines
   up with /programa; readability is handled by capping the text measure, not
   by narrowing (and re-centring) the container itself.
   A fixed px cap, NOT ch: ch resolves against each child's own font-size, so
   headings and body copy would each stop at a different width. */
.prose-page > * { max-width: 860px; }
.prose p { font-size: 17.5px; line-height: 1.78; color: var(--ink-2); margin: 0 0 22px; }
.prose ul, .prose ol { font-size: 17.5px; line-height: 1.78; color: var(--ink-2); margin: 0 0 22px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3vw, 40px); margin: 40px 0 18px; color: var(--ink); }
.prose a { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: rgba(23,69,143,.35); }
.prose a:hover { text-decoration-color: var(--rotary-gold-dark); }
.prose strong { color: var(--ink); font-weight: 600; }

/* opening paragraph reads as a standfirst */
.prose > :is(p, div):first-child {
    font-size: 21px; line-height: 1.62; color: var(--ink);
    padding-left: 20px; border-left: 3px solid var(--rotary-gold);
    margin-bottom: 34px;
}

/* gold custom markers instead of default discs */
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li { position: relative; padding-left: 26px; }
.prose ul > li::before {
    content: ''; position: absolute; left: 4px; top: .68em;
    width: 7px; height: 7px; border-radius: 50%; background: var(--rotary-gold);
}

/* "<strong>term</strong> — description" lists render as a milestone timeline.
   Opt-in via .prose-milestones on the page wrapper: keying it to content shape
   alone would silently restyle any client-written bold-lead-in list. */
.prose-milestones ul:has(> li > strong:first-child) {
    border-left: 2px solid var(--line); padding-left: 0; margin-left: 6px;
}
.prose-milestones ul:has(> li > strong:first-child) > li {
    padding: 6px 0 6px 30px; margin-bottom: 2px;
}
.prose-milestones ul:has(> li > strong:first-child) > li::before {
    left: -6px; top: 1.05em; width: 10px; height: 10px;
    border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line);
    transition: transform .2s var(--ease-out), background .2s ease;
}
.prose-milestones ul:has(> li > strong:first-child) > li:hover::before {
    transform: scale(1.35); background: var(--rotary-blue);
}
.prose-milestones ul:has(> li > strong:first-child) > li > strong {
    display: inline-block; min-width: 168px; color: var(--ink); font-weight: 700;
}
@media (max-width: 560px) {
    .prose-milestones ul:has(> li > strong:first-child) > li > strong { display: block; min-width: 0; }
}

/* ─── Schedule (eisena) ──────────────────── */
.schedule { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.schedule li {
    display: grid; grid-template-columns: 100px 1fr; gap: 20px; align-items: start;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
}
.sc-time { font-family: var(--font-display); font-size: 32px; color: var(--rotary-blue); line-height: 1; }
.schedule li p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.7; }

/* ─── Rekvizitai (kontaktai) ─────────────── */
.rekvizitai {
    margin-top: 64px; padding: 36px 40px;
    background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.rekvizitai h2 { font-family: var(--font-display); font-weight: 400; font-size: 32px; margin: 0 0 20px; }
.rekvizitai p { margin: 0 0 12px; color: var(--ink-2); line-height: 1.8; }
.rekvizitai-list {
    display: grid; grid-template-columns: 150px 1fr; gap: 12px 24px; margin: 0;
    font-size: 16px;
}
.rekvizitai-list dt {
    color: var(--muted); font-size: 12.5px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; padding-top: 3px;
}
.rekvizitai-list dd { margin: 0; color: var(--ink); }
@media (max-width: 560px) {
    .rekvizitai { padding: 28px 22px; }
    .rekvizitai-list { grid-template-columns: 1fr; gap: 4px 0; }
    .rekvizitai-list dd { margin-bottom: 12px; }
}

/* ─── Organizers (remejai) ───────────────── */
.org-placeholder-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.org-placeholder {
    position: relative; overflow: hidden;
    min-height: 150px; padding: 36px 28px; text-align: center;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-size: 26px; line-height: 1.15; color: var(--rotary-blue);
    --hover-transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s ease;
    transition: var(--hover-transition);
}
.org-placeholder::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: linear-gradient(90deg, var(--rotary-blue), var(--rotary-gold));
    transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.org-placeholder:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(23,69,143,.18); }
.org-placeholder:hover::after { transform: scaleX(1); }
.org-placeholder img { max-height: 84px; max-width: 100%; width: auto; object-fit: contain; }

/* ─── Sponsor grid (remejai) ─────────────── */
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); gap: 18px; }
.sponsor-cell {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    height: 130px; display: flex; align-items: center; justify-content: center; padding: 22px;
    --hover-transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s ease;
    transition: var(--hover-transition);
}
.sponsor-cell:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: rgba(23,69,143,.18); }
.sponsor-cell img {
    max-height: 76px; max-width: 100%; width: auto; object-fit: contain;
    filter: grayscale(100%) opacity(.62);
    transition: filter .3s ease, transform .3s var(--ease-out);
}
.sponsor-cell:hover img { filter: none; transform: scale(1.05); }
/* sponsors with a website_url wrap their logo in a link — the anchor becomes the
   flex item, so it inherits the cell's centring instead of collapsing inline */
.org-placeholder > a, .sponsor-cell > a, .sponsor-track > * > a {
    display: flex; align-items: center; justify-content: center; max-width: 100%; min-width: 0;
}

/* ─── News grid ──────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 28px; }
.news-item {
    display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    --hover-transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s ease;
    transition: var(--hover-transition);
}
.news-item:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(23,69,143,.18); }
.news-thumb-wrap { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-alt); }
.news-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.news-item:hover .news-thumb { transform: scale(1.06); }
.news-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.news-date { color: var(--muted); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; font-weight: 600; }
.news-title { margin: 0; font-size: 20px; line-height: 1.35; color: var(--ink); }
.news-title a { color: var(--ink); }
.news-title a:hover { color: var(--rotary-blue); }
.news-excerpt { margin: 12px 0 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
.news-more { margin-top: auto; padding-top: 16px; color: var(--rotary-blue); font-weight: 600; font-size: 14px; }
/* stretch the title link over the whole card so the visual affordance is real.
   NOT gated on :has — the overlay rule is always valid, so if the containing
   block were conditional the link would cover the viewport where :has is
   unsupported (Firefox ESR 115, Safari <15.4). */
.news-item { position: relative; }
.news-link::after { content: ''; position: absolute; inset: 0; }

/* ─── Mobile ─────────────────────────────── */
/* 1150, not 1024: the 9-link desktop nav does not actually fit below ~1150px.
   That was previously masked by the logo squashing to absorb the overflow. */
@media (max-width: 1150px) {
    .nav-burger {
        display: flex; flex-direction: column; justify-content: center; gap: 5px;
        width: 44px; height: 44px; margin-left: auto; cursor: pointer;
        border: 1px solid var(--line); border-radius: 10px; padding: 0 11px;
    }
    /* pinned: with the logo unshrinkable, all flex shrink landed here and
       collapsed the only nav control on <=1024px from 44px to 24px */
    .nav-burger { order: 3; margin-left: 0; flex: 0 0 44px; }
    .brand img { height: 34px; }
    .nav-burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s ease; }
    .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
    .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .primary-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 2px;
        background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
        padding: 12px 24px 20px; margin-left: 0;
    }
    .nav-toggle:checked ~ .primary-nav { display: flex; }
    .primary-nav a { padding: 12px 10px; font-size: 16px; }
    .primary-nav a::after { display: none; }
    .header-cta { order: 2; margin-left: auto; }
    .site-header .container { position: relative; }
    .topbar-note { display: none; }
    .topbar .container { justify-content: center; }
}
@media (max-width: 880px) {
    .hero { padding: 60px 0 80px; }
    .hero .container { grid-template-columns: 1fr; gap: 36px; }
    .hero-visual { max-width: 440px; margin: 0 auto; }
    .hero-home { padding: 80px 0 64px; }
    section { padding: 64px 0; }
    .event-body .container { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .schedule li { grid-template-columns: 1fr; gap: 6px; }
}

/* CMS bodies (Trix round-trip): body h1 = section heading; Trix emits <div>
   blocks instead of <p> after editing, so give them paragraph rhythm. */
.prose-cms h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3vw, 40px); margin: 40px 0 18px; color: var(--ink); line-height: 1.1; }
.prose-cms > div, .prose-cms trix-content > div { font-size: 17px; line-height: 1.75; color: var(--ink-2); margin: 0 0 20px; }
.prose-cms ul ul, .prose-cms ol ol { margin-bottom: 0; }

/* Competition schedule (/programa) — DB-driven ScheduleItem grid */
/* scroll-margin sits on the element itself — a `:target` rule does not apply
   when the hash is followed from another page, so #stage-* would land under
   the sticky header */
.schedule-stage { margin-top: 48px; scroll-margin-top: calc(var(--header-h) + 16px); }
.schedule-stage-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3vw, 40px); color: var(--ink); margin: 0 0 8px; }
.schedule-day { margin-top: 28px; }
.schedule-day-title { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--rotary-blue); margin: 0 0 12px; }
.schedule-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.schedule-row {
    display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 16px;
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 14px 18px; box-shadow: var(--shadow-sm);
}
.schedule-row--ceremony { background: var(--bg-alt); border-style: dashed; }
.schedule-time { font-family: var(--font-display); font-weight: 400; font-size: 22px; color: var(--rotary-blue); letter-spacing: .02em; }
.schedule-row--ceremony .schedule-time { color: var(--gold-text); }
.schedule-title { font-weight: 600; color: var(--ink); }
.schedule-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.schedule-chip {
    display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--bg-alt);
    color: var(--ink-2); font-size: 12px; font-weight: 600;
}
.schedule-badge {
    display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
    letter-spacing: .02em;
}
.schedule-badge--scored { background: rgba(23, 69, 143, .10); color: var(--rotary-blue); }
.schedule-badge--guest { background: rgba(11, 114, 217, .10); color: var(--azure-text); }
.schedule-badge--live { background: rgba(247, 168, 27, .18); color: var(--gold-text); }
.schedule-legend { margin-top: 40px; color: var(--muted); font-size: 14px; line-height: 2.2; }
.schedule-note { margin-top: 16px; color: var(--muted); font-size: 14px; font-style: italic; }
.schedule-links-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 3vw, 34px); color: var(--ink); margin: 56px 0 20px; }

@media (max-width: 640px) {
    .schedule-row { grid-template-columns: 1fr; gap: 8px; }
    .schedule-badges { justify-content: flex-start; }
}

/* Interactive Gantt grid + per-stage filter + tooltip (desktop; list is the mobile fallback) */
.schedule-filter { display: none; }
.schedule-grid-day { display: none; }
.schedule-grid-axis { display: flex; justify-content: space-between; margin-bottom: 8px; }
.schedule-tick { font-size: 11px; font-weight: 600; color: var(--muted); }
.schedule-grid-bars {
    display: grid; grid-template-columns: repeat(var(--cols), 1fr); row-gap: 8px;
    background-image: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px calc(100% / var(--cols)));
}
/* intro keeps the container's left edge (aligned with the grid below) while
   its text measure stays readable */
.schedule-intro > :is(p, div):first-child { margin-bottom: 0; }
.schedule-bar {
    min-width: 0; overflow: hidden; border-radius: 999px; padding: 8px 11px;
    display: flex; align-items: center; font-size: 12.5px; font-weight: 600; cursor: default;
    background: var(--rotary-blue); color: #fff; box-shadow: var(--shadow-sm);
    transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), filter .18s ease;
}
.schedule-bar:hover {
    transform: translateY(-2px); box-shadow: var(--shadow); filter: brightness(1.06);
    position: relative; z-index: 2;
}
.schedule-bar-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.schedule-bar--combinable { background: var(--rotary-gold); color: var(--ink); }
.schedule-bar--ceremony { background: var(--bg); color: var(--gold-text); border: 2px solid var(--rotary-gold-dark); }
.schedule-bar:focus-visible { outline: 2px solid var(--rotary-blue-dark); outline-offset: 2px; }
.schedule-tip {
    position: fixed; z-index: 50; max-width: 260px; padding: 10px 12px; line-height: 1.5;
    font-size: 13px; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow); pointer-events: none;
}
.schedule-tip strong { display: block; color: var(--ink); }
.schedule-tip-time { color: var(--rotary-blue); font-weight: 600; }
.schedule-chip-filter {
    border: 1px solid var(--line); background: var(--bg); color: var(--ink-2);
    padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.schedule-chip-filter:hover { border-color: var(--rotary-blue); color: var(--rotary-blue); }
.schedule-chip-filter.is-active { background: var(--rotary-blue); border-color: var(--rotary-blue); color: #fff; }
.schedule-color-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 40px; color: var(--ink-2); font-size: 14px; }
.schedule-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: middle; }
.schedule-swatch--default { background: var(--rotary-blue); }
.schedule-swatch--combinable { background: var(--rotary-gold); }
.schedule-swatch--ceremony { background: var(--bg); border: 2px solid var(--rotary-gold-dark); }
.schedule-downloads { margin-top: 24px; color: var(--muted); font-size: 14px; }
.is-hidden { display: none !important; }

@media (min-width: 900px) {
    .schedule-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
    .schedule-grid-day { display: block; margin-top: 28px; }
    .schedule-day { display: none; }
}

/* Results (/rezultatai) — edition switcher + standings tables */
.results-switcher { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; }
.results-chip {
    border: 1px solid var(--line); background: var(--bg); color: var(--ink-2);
    padding: 7px 15px; border-radius: 999px; font-size: 14px; font-weight: 600;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.results-chip:hover { border-color: var(--rotary-blue); color: var(--rotary-blue); }
.results-chip.is-active { background: var(--rotary-blue); border-color: var(--rotary-blue); color: #fff; }
/* the upcoming edition's live-results chip — gold accent so it reads apart
   from the archive chips (dark ink on gold, AA-safe like .btn-accent) */
.results-chip--live {
    background: var(--rotary-gold); border-color: var(--rotary-gold); color: var(--ink);
    box-shadow: var(--shadow-sm);
}
.results-chip--live:hover {
    background: var(--rotary-gold-dark); border-color: var(--rotary-gold-dark); color: var(--ink);
}

/* wide tables scroll inside their own box — never the page */
.table-scroll {
    overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--bg); box-shadow: var(--shadow-sm);
}
.results-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.results-table th, .results-table td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.results-table thead th {
    background: var(--bg-alt); color: var(--muted); font-size: 12px;
    text-transform: uppercase; letter-spacing: .05em;
}
.results-table tbody tr:last-child td { border-bottom: 0; }
.results-table .is-num { text-align: right; white-space: nowrap; }
.results-table .is-place { width: 68px; font-weight: 700; color: var(--ink); }
.results-table tr.is-top td { font-weight: 600; }
.results-table tr.is-top-1 td { background: rgba(247, 168, 27, .16); }
.results-table tr.is-top-2 td { background: rgba(95, 109, 133, .12); }
.results-table tr.is-top-3 td { background: rgba(216, 142, 15, .09); }
.results-table tr.is-top-1 .is-place { color: var(--gold-text); }
.results-source { margin-top: 20px; font-size: 15px; }
.results-source a { color: var(--azure-text); font-weight: 600; }
.results-empty { color: var(--muted); margin: 0; }
/* .btn's display: inline-flex would otherwise beat the UA [hidden] rule */
.results-expand-btn { margin-top: 20px; }
.results-expand-btn[hidden] { display: none; }

/* Discipline winners — up to ~50 cards per edition, so they stay compact */
.discipline-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.discipline-card {
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
    box-shadow: var(--shadow-sm); padding: 16px 18px;
}
.discipline-name { font-size: 16px; margin: 0 0 10px; color: var(--ink); }
.discipline-places { list-style: none; margin: 0; padding: 0; }
.discipline-row {
    display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: baseline;
    padding: 7px 8px; border-radius: 6px; font-size: 14px;
}
.discipline-row .is-place { font-weight: 700; color: var(--ink); }
.discipline-row .is-num { color: var(--muted); white-space: nowrap; }
.discipline-who strong { font-weight: 600; color: var(--ink); }
.discipline-club { display: block; color: var(--muted); font-size: 13px; }
.discipline-row.is-top-1 { background: rgba(247, 168, 27, .16); }
.discipline-row.is-top-2 { background: rgba(95, 109, 133, .12); }
.discipline-row.is-top-3 { background: rgba(216, 142, 15, .09); }
.discipline-row.is-top-1 .is-place { color: var(--gold-text); }

/* Placed last so it wins over the 1150px block's .brand img height. */
@media (max-width: 430px) {
    .brand img { height: 30px; }
}
