/**
 * Beer Asia — Events Hub
 * ---------------------------------------------------------------------------
 * Creative, brand-led styling for page-events.php. Inspired by the Deep Dive
 * festival page but built on the core Beer Asia design system (Holtzberg
 * display, gold/black/cream, softened brutalist). Depends on
 * beer-asia-custom.css for the CSS custom-property tokens.
 *
 * Scope: every rule is namespaced under .ev-page / .ev-* to avoid bleed.
 * @version 6.2.0
 */

/* ───────────────────────────────────────────────────────────────────────
   TOKENS (page-local, derived from the brand palette)
   ─────────────────────────────────────────────────────────────────────── */
.ev-page {
    --ev-gold: var(--brand-gold, #fbd126);
    --ev-gold-bright: #ffdd4a;
    --ev-ink: var(--warm-black, #1a1a1a);
    --ev-ink-soft: #2a2a2a;
    --ev-cream: var(--cream, #fffef5);
    --ev-paper: var(--warm-white, #fffef9);
    --ev-line: rgba(26, 26, 26, 0.12);
    --ev-muted: var(--mid-gray, #737373);
    /* Non-zero fallback so the sticky sub-nav clears the site header before/without
       JS; events.js refines the exact value on load + resize. */
    --ev-header-offset: 83px;
    --ev-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.45);
    --ev-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ev-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    background: var(--ev-cream);
    color: var(--ev-ink);
    overflow-x: clip;
}

.ev-page *,
.ev-page *::before,
.ev-page *::after {
    box-sizing: border-box;
}

/* ───────────────────────────────────────────────────────────────────────
   LAYOUT PRIMITIVES
   ─────────────────────────────────────────────────────────────────────── */
.ev-container {
    width: min(100% - 3rem, 1400px);
    margin-inline: auto;
}

.ev-container--narrow {
    width: min(100% - 3rem, 980px);
}

.ev-section {
    padding-block: clamp(2.5rem, 4vw, 4rem);
}

/* Alternate cream / white between sections, like the homepage. A hairline rule
   separates them so sections read as distinct chapters. */
.ev-section--light {
    background: var(--white, #ffffff);
    border-block: 1px solid var(--ev-line);
}

/* Offset in-page anchor jumps so headings clear the sticky nav + site header
   on ALL scroll paths (hash on load, scroll cue, browser history, focus). */
.ev-act {
    scroll-margin-top: calc(var(--ev-header-offset, 0px) + 72px);
}

/* Visually-hidden but available to assistive tech. */
.ev-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Small uppercase eyebrow above each section heading (About / Beer Tourism motif). */
.ev-eyebrow {
    display: block;
    text-align: center;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ev-muted);
    margin: 0 0 0.6rem;
}

/* Centered section header at poster scale with the homepage's gold "tab" accent. */
.ev-section-heading {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.01em;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    margin: 0 0 1rem;
    color: var(--ev-ink);
    text-align: center;
    text-wrap: balance;
    position: relative;
    padding-top: 1.6rem;
}

.ev-section-heading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(80px, 15%);
    height: 3px;
    background: var(--ev-gold);
    border-radius: 2px;
    transition: transform 0.5s var(--ev-ease) 0.1s;
}

/* Gold tab wipes in from collapsed when its section scrolls into view (JS only;
   without JS it stays at full width). */
html.ev-has-js .ev-act .ev-section-heading::before {
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
}

html.ev-has-js .ev-act.is-heading-shown .ev-section-heading::before {
    transform: translateX(-50%) scaleX(1);
}

.ev-section-intro {
    max-width: 60ch;
    text-align: center;
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    line-height: 1.7;
    color: var(--ev-ink-soft);
    margin: 0 auto clamp(2rem, 4vw, 3rem);
}

/* ───────────────────────────────────────────────────────────────────────
   BUTTONS
   This page uses the theme's shared .btn / .btn-primary / .btn-ghost styling
   (beer-asia-custom.css) so buttons match the rest of Beer Asia. The only
   addition is the dark button used on the gold host band.
   ─────────────────────────────────────────────────────────────────────── */
.ev-host__btn {
    background: var(--ev-ink);
    color: var(--ev-gold);
    border-color: var(--ev-ink);
    flex: none;
}

.ev-host__btn:hover {
    background: var(--brand-black, #000);
    border-color: var(--brand-black, #000);
    color: var(--ev-gold);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* ───────────────────────────────────────────────────────────────────────
   HERO
   ─────────────────────────────────────────────────────────────────────── */
.ev-hero {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    min-height: clamp(320px, 52vh, 520px);
    padding: clamp(2.5rem, 6vh, 4.5rem) 1.5rem;
    background: var(--ev-ink);
    color: var(--ev-cream);
    text-align: center;
    border-bottom: var(--border-width, 3px) solid var(--ev-gold);
}

/* Photographic background (real <img> for SEO / responsive srcset) */
.ev-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ev-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
}

/* Dark gradient overlay keeps the cream text legible over the photo */
.ev-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(26, 26, 26, 0.55) 0%, rgba(26, 26, 26, 0.45) 45%, rgba(26, 26, 26, 0.82) 100%),
        linear-gradient(90deg, rgba(26, 26, 26, 0.5) 0%, rgba(26, 26, 26, 0.15) 100%);
}

.ev-hero__content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin-inline: auto;
}

.ev-hero__title {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 0.88;
    letter-spacing: -0.01em;
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin: 0 0 1.1rem;
    color: var(--ev-cream);
    text-wrap: balance;
}

.ev-hero__lede {
    max-width: 46ch;
    margin: 0 auto 1.8rem;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.ev-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    justify-content: center;
}

/* Hero entrance */
.ev-hero__title,
.ev-hero__lede,
.ev-hero__actions {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ev-ease), transform 0.7s var(--ev-ease);
}

.ev-hero.is-loaded .ev-hero__title { transition-delay: 0.1s; }
.ev-hero.is-loaded .ev-hero__lede { transition-delay: 0.24s; }
.ev-hero.is-loaded .ev-hero__actions { transition-delay: 0.36s; }

.ev-hero.is-loaded .ev-hero__title,
.ev-hero.is-loaded .ev-hero__lede,
.ev-hero.is-loaded .ev-hero__actions {
    opacity: 1;
    transform: none;
}

/* ───────────────────────────────────────────────────────────────────────
   STICKY SECTION NAV
   ─────────────────────────────────────────────────────────────────────── */
.ev-nav {
    position: sticky;
    top: var(--ev-header-offset, 0px);
    z-index: 40;
    background: rgba(26, 26, 26, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ev-nav__inner {
    width: min(100% - 2rem, 1180px);
    margin-inline: auto;
    display: flex;
    gap: 0.4rem;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.ev-nav__inner::-webkit-scrollbar { display: none; }

.ev-nav__link {
    flex: none;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.78);
    padding: 1rem 0.9rem;
    position: relative;
    white-space: nowrap;
    transition: color 0.2s var(--ev-ease);
}

.ev-nav__link::after {
    content: "";
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.55rem;
    height: 2px;
    background: var(--ev-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ev-ease);
}

.ev-nav__link:hover,
.ev-nav__link.is-active {
    color: #fff;
}

.ev-nav__link.is-active::after {
    transform: scaleX(1);
}

/* Floating mobile CTA */
.ev-mobile-cta {
    display: none;
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    background: var(--ev-gold);
    color: var(--ev-ink);
    text-decoration: none;
    font-family: var(--font-sans);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.9rem;
    padding: 1rem 1.5rem;
    border: var(--border-thin, 2px) solid var(--ev-ink);
    border-radius: var(--radius-button, 6px);
    box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.45);
    transition: opacity 0.3s var(--ev-ease), transform 0.3s var(--ev-ease);
}

/* With JS, keep the pill out of the way over the hero, then slide it in. */
html.ev-has-js .ev-mobile-cta {
    opacity: 0;
    transform: translateY(150%);
    pointer-events: none;
}

html.ev-has-js .ev-mobile-cta.is-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

/* ───────────────────────────────────────────────────────────────────────
   FLAGSHIPS
   ─────────────────────────────────────────────────────────────────────── */
.ev-flagships__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1rem, 2.5vw, 1.6rem);
}

.ev-flagship {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding: clamp(1.6rem, 3vw, 2.4rem);
    background: var(--white, #ffffff);
    border: var(--border-width, 3px) solid var(--ev-ink);
    border-radius: var(--radius-subtle, 4px);
    transition: transform 0.4s var(--ev-ease), box-shadow 0.4s var(--ev-ease);
    overflow: hidden;
}

/* Gold top-bar scales in from the left on hover (homepage card motif). */
.ev-flagship::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--ev-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ev-ease);
}

.ev-flagship:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12), 0 4px 6px rgba(0, 0, 0, 0.08);
}

.ev-flagship:hover::before {
    transform: scaleX(1);
}

/* The dark hero card carries the brand's flat gold offset shadow (Beer Tourism
   panels) rather than a soft blur. */
.ev-flagship--hero {
    grid-column: 1 / -1;
    background: var(--ev-ink);
    color: var(--ev-cream);
    border-color: var(--ev-ink);
    box-shadow: 8px 8px 0 var(--ev-gold);
}

.ev-flagship--hero:hover {
    transform: translateY(-4px);
    box-shadow: 10px 10px 0 var(--ev-gold), 0 6px 14px rgba(0, 0, 0, 0.25);
}

/* Squared gold "stamp" (sharp Beer Asia badge, not a rounded SaaS pill). */
.ev-flagship__status {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.35rem 0.7rem;
    border: var(--border-thin, 2px) solid var(--ev-ink);
    border-radius: var(--radius-subtle, 4px);
    background: var(--ev-gold);
    color: var(--ev-ink);
}

/* Status stamp springs in when the card reveals (JS only). */
html.ev-has-js .ev-flagship .ev-flagship__status {
    opacity: 0;
    transform: scale(0.85);
    transition: transform 0.45s var(--ev-spring) 0.2s, opacity 0.3s var(--ev-ease) 0.2s;
}

html.ev-has-js .ev-flagship.is-visible .ev-flagship__status {
    opacity: 1;
    transform: none;
}

.ev-flagship__name {
    font-family: var(--font-display);
    line-height: 1.05;
    letter-spacing: -0.01em;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    margin: 0.2rem 0 0;
}

.ev-flagship--hero .ev-flagship__name {
    font-size: clamp(2rem, 5vw, 3.2rem);
}

.ev-flagship__tagline {
    font-family: var(--font-sans);
    font-style: italic;
    font-size: 1.02rem;
    color: var(--ev-muted);
    margin: 0;
}

.ev-flagship--hero .ev-flagship__tagline {
    color: var(--ev-gold);
    font-style: normal;
    font-weight: 600;
}

.ev-flagship__location {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ev-ink-soft);
    margin: 0.2rem 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ev-flagship__location span { color: var(--ev-gold); font-size: 0.7em; }

.ev-flagship--hero .ev-flagship__location { color: rgba(255, 255, 255, 0.72); }

.ev-flagship__desc {
    font-size: 1rem;
    line-height: 1.65;
    margin: 0.2rem 0 0.4rem;
    color: var(--dark-gray, #262626);
}

.ev-flagship--hero .ev-flagship__desc { color: rgba(255, 255, 255, 0.84); max-width: 62ch; }

.ev-flagship__cta {
    margin-top: auto;
    font-family: var(--font-sans);
    font-weight: 700;
    text-decoration: none;
    color: var(--ev-ink);
    border-bottom: 2px solid var(--ev-gold);
    padding-bottom: 2px;
    transition: gap 0.2s var(--ev-ease);
}

.ev-flagship__cta span {
    display: inline-block;
    transition: transform 0.25s var(--ev-spring);
}

.ev-flagship__cta:hover span { transform: translateX(5px); }

.ev-flagship--hero .ev-flagship__cta { color: var(--ev-gold); }

/* ───────────────────────────────────────────────────────────────────────
   CALENDAR — month-grouped agenda, chronological and scannable
   ─────────────────────────────────────────────────────────────────────── */
.ev-calendar__months {
    display: flex;
    flex-direction: column;
    gap: clamp(1.75rem, 3.5vw, 2.75rem);
}

.ev-month[hidden] { display: none; }

.ev-month__label {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-family: var(--font-display);
    letter-spacing: -0.01em;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin: 0 0 0.5rem;
    padding-bottom: 0.6rem;
    border-bottom: var(--border-width, 3px) solid var(--ev-ink);
}

/* Gold diamond tick — the on-angle accent that runs through the page. */
.ev-month__label::before {
    content: "";
    width: 0.8rem;
    height: 0.8rem;
    flex: none;
    background: var(--ev-gold);
    border: 2px solid var(--ev-ink);
    transform: rotate(45deg);
}

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

.ev-event {
    position: relative;
    display: grid;
    grid-template-columns: 64px 1fr auto;
    align-items: center;
    gap: 1.25rem;
    padding: 1.1rem 0.5rem;
    border-bottom: 1px solid var(--ev-line);
    transition: background 0.2s var(--ev-ease), padding 0.2s var(--ev-ease);
}

.ev-event:last-child { border-bottom: none; }

.ev-event[hidden] { display: none; }

.ev-event:hover {
    background: rgba(251, 209, 38, 0.08);
    padding-inline: 0.9rem;
}

/* Make the whole row the click target (stretched link), so the visible card
   matches its hover affordance for mouse, touch and keyboard users. */
.ev-event__link::after {
    content: "";
    position: absolute;
    inset: 0;
}

/* Calendar date tile — flat ink offset shadow; fills gold + tilts on row hover. */
.ev-event__date {
    width: 64px;
    height: 64px;
    flex: none;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 1px;
    border: 2px solid var(--ev-ink);
    border-radius: var(--radius-subtle, 4px);
    background: var(--ev-cream);
    box-shadow: 3px 3px 0 var(--ev-ink);
    line-height: 1;
    transition: background 0.25s var(--ev-ease), transform 0.3s var(--ev-spring);
}

.ev-event:hover .ev-event__date,
.ev-event:focus-within .ev-event__date {
    background: var(--ev-gold);
    transform: rotate(-3deg);
}

.ev-event:hover .ev-event__dow,
.ev-event:focus-within .ev-event__dow {
    color: var(--ev-ink);
}

.ev-event__day {
    font-family: var(--font-display);
    font-size: 1.55rem;
    color: var(--ev-ink);
}

/* Multi-day ranges (e.g. 28–29) must stay on one line inside the tile. */
.ev-event__day--range {
    font-size: 1rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.ev-event__dow {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ev-muted);
}

.ev-event__type {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ev-muted);
    margin-bottom: 0.35rem;
}

.ev-event__name {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0 0 0.3rem;
}

.ev-event__where {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ev-ink-soft);
    margin: 0 0 0.35rem;
}

.ev-event__blurb {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--ev-muted);
    margin: 0;
    max-width: 60ch;
}

.ev-event__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--ev-ink);
    color: var(--ev-ink);
    text-decoration: none;
    font-size: 1.2rem;
    flex: none;
    transition: background 0.2s var(--ev-ease), color 0.2s var(--ev-ease),
        transform 0.2s var(--ev-spring);
}

.ev-event__link:hover {
    background: var(--ev-gold);
    transform: translateX(4px);
}

/* ───────────────────────────────────────────────────────────────────────
   EVENT COVERAGE (article cards pulled from the Events category)
   ─────────────────────────────────────────────────────────────────────── */
.ev-coverage__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: clamp(1rem, 2.5vw, 1.6rem);
}

.ev-article-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white, #ffffff);
    border: var(--border-width, 3px) solid var(--ev-ink);
    border-radius: var(--radius-subtle, 4px);
    overflow: hidden;
    transition: transform 0.4s var(--ev-ease), box-shadow 0.4s var(--ev-ease);
}

/* Gold top-bar scales in on hover (matches the flagship card motif). */
.ev-article-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--ev-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ev-ease);
    z-index: 2;
}

.ev-article-card:hover,
.ev-article-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12), 0 4px 6px rgba(0, 0, 0, 0.08);
}

.ev-article-card:hover::before,
.ev-article-card:focus-within::before {
    transform: scaleX(1);
}

.ev-article-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--ev-ink);
    border-bottom: 2px solid var(--ev-ink);
}

.ev-article-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ev-ease);
}

.ev-article-card:hover .ev-article-card__media img {
    transform: scale(1.04);
}

.ev-article-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: clamp(1.1rem, 2vw, 1.5rem);
    flex: 1;
}

.ev-article-card__meta {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ev-muted);
}

.ev-article-card__title {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0;
}

.ev-article-card__title a {
    color: var(--ev-ink);
    text-decoration: none;
}

/* Stretched link — the whole card is clickable. */
.ev-article-card__title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.ev-article-card__excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ev-ink-soft);
    margin: 0;
}

.ev-article-card__cue {
    margin-top: auto;
    padding-top: 0.4rem;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--ev-ink);
    border-bottom: 2px solid var(--ev-gold);
    align-self: flex-start;
    transition: color 0.2s var(--ev-ease);
}

.ev-article-card:hover .ev-article-card__cue {
    color: var(--ev-muted);
}

.ev-coverage__more {
    margin-top: clamp(2rem, 4vw, 3rem);
    text-align: center;
}

/* ───────────────────────────────────────────────────────────────────────
   HOST CTA BAND
   ─────────────────────────────────────────────────────────────────────── */
.ev-host {
    background: var(--ev-gold);
    color: var(--ev-ink);
    padding-block: clamp(3rem, 6vw, 5rem);
}

.ev-host__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.5rem, 4vw, 3rem);
    flex-wrap: wrap;
}

.ev-host__copy { flex: 1 1 460px; }

/* Dark "stamp" eyebrow on the gold band (Beer Tourism report-strip motif). */
.ev-host__stamp {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ev-gold);
    background: var(--ev-ink);
    border-radius: var(--radius-subtle, 4px);
    padding: 0.45rem 0.7rem;
    margin-bottom: 0.9rem;
}

.ev-host__heading {
    font-family: var(--font-display);
    line-height: 0.98;
    letter-spacing: -0.01em;
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin: 0 0 0.8rem;
}

.ev-host__text {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.6;
    max-width: 56ch;
    margin: 0;
    color: #2a2a2a;
}

/* ───────────────────────────────────────────────────────────────────────
   FADE-IN
   ─────────────────────────────────────────────────────────────────────── */
.ev-fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ev-ease), transform 0.6s var(--ev-ease);
    transition-delay: var(--ev-delay, 0ms);
}

.ev-fade-in.is-visible {
    opacity: 1;
    transform: none;
}

/* ───────────────────────────────────────────────────────────────────────
   FOCUS STATES (a11y)
   ─────────────────────────────────────────────────────────────────────── */
.ev-page a:focus-visible,
.ev-page button:focus-visible,
.ev-nav__link:focus-visible {
    outline: 3px solid var(--ev-ink);
    outline-offset: 3px;
    border-radius: 3px;
}

.ev-hero a:focus-visible,
.ev-nav a:focus-visible,
.ev-nav button:focus-visible,
.ev-flagship--hero a:focus-visible {
    outline-color: var(--ev-gold);
}

/* ───────────────────────────────────────────────────────────────────────
   RESPONSIVE
   ─────────────────────────────────────────────────────────────────────── */
@media (max-width: 992px) {
    .ev-flagships__grid { grid-template-columns: 1fr; }

    .ev-host__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
    .ev-container { width: min(100% - 2rem, 1400px); }
    .ev-container--narrow { width: min(100% - 2rem, 980px); }

    .ev-mobile-cta { display: flex; }

    /* Global clearance so the floating CTA never covers the last row of any
       section (flagships, calendar, formats, FAQ) or the footer. */
    .ev-page { padding-bottom: 5.5rem; }

    .ev-event {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "date  link"
            "body  body";
        gap: 0.5rem 1rem;
        align-items: start;
    }

    .ev-event__date { grid-area: date; }
    .ev-event__body { grid-area: body; }
    .ev-event__link { grid-area: link; align-self: start; }

    .ev-event:hover { padding-inline: 0.5rem; }
}

/* ───────────────────────────────────────────────────────────────────────
   REDUCED MOTION
   ─────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .ev-page *,
    .ev-page *::before,
    .ev-page *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .ev-fade-in { opacity: 1; transform: none; }

    /* Belt-and-suspenders: never leave reveal-gated elements hidden/skewed. */
    .ev-flagship__status { opacity: 1; transform: none; }
    .ev-event:hover .ev-event__date,
    .ev-event:focus-within .ev-event__date { transform: none; }
    .ev-section-heading::before { transform: translateX(-50%) scaleX(1); }
}
