/*
 * Event page design 1, "Standard" (FR-205) —
 * dev-doc/stitch_lanyo_case_study_webpage/event_details_page/.
 *
 * Loaded after lanyo-case-study.css, whose `--nx-*` tokens, buttons, glows and
 * icons it reuses; the values below are the comp's own tailwind-config
 * (surface-elevated #111215, border-subtle rgba(255,255,255,.07), its default
 * 0.25rem / 0.5rem radii). Bootstrap 5.3 supplies the grid and the prize tabs.
 *
 * It also styles the markup the shared components render — the selector's
 * tiers and stepper (`cl-*`), the cart lines and notes (`tpl-*`), the image
 * plates and the builder's preview bar — because each design dresses those
 * in its own clothes.
 *
 *   1. Frame & breadcrumb     5. Kit & route
 *   2. Hero                   6. Timeline & banner
 *   3. Section headings       7. Booking column
 *   4. Intro, categories,     8. Shared components
 *      prizes
 */

.ev {
    --ev-elevated: #111215;
    --ev-overlay: #18191e;
    --ev-high: #1b1c1e;
    --ev-line: rgba(255, 255, 255, 0.07);
    --ev-gold: #ffc14d;
    --ev-gold-soft: #ffdeaa;
    --ev-on-accent: #00382d;
    --ev-r: 0.25rem;
    --ev-r-lg: 0.5rem;

    display: flex;
    flex-direction: column;
    gap: var(--nx-space-lg);
}

/* ---------------------------------------------------------------------------
   1. Frame & breadcrumb
   ------------------------------------------------------------------------ */

.ev-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--nx-space-sm);
    color: var(--nx-text-muted);
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.ev-crumbs a { transition: color 0.2s; }
.ev-crumbs a:hover { color: var(--nx-primary) !important; }
.ev-crumbs > span[aria-hidden] { color: rgba(100, 116, 139, 0.4); }
.ev-crumbs [aria-current] { color: var(--nx-text-secondary); }

/* ---------------------------------------------------------------------------
   2. Hero
   ------------------------------------------------------------------------ */

.ev-hero {
    position: relative;
    overflow: hidden;
    padding: var(--nx-space-lg);
    border-radius: var(--ev-r-lg);
    background-color: var(--ev-elevated);
    background-size: cover;
    background-position: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) { .ev-hero { padding: var(--nx-space-xl); } }
@media (min-width: 1024px) { .ev-hero { padding: 3rem; } }

/* An organiser's hero image goes behind a scrim, so the panel still reads
   as the comp's surface and every line over it keeps its contrast. */
.ev-hero--photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(17, 18, 21, 0.97) 0%, rgba(17, 18, 21, 0.88) 50%, rgba(17, 18, 21, 0.6) 100%);
}

.ev-hero__glow--a {
    top: -5rem;
    right: -5rem;
    width: 24rem;
    height: 24rem;
    background: rgba(0, 229, 190, 0.1);
    filter: blur(100px);
}

.ev-hero__glow--b {
    bottom: -5rem;
    left: -5rem;
    width: 20rem;
    height: 20rem;
    background: rgba(125, 38, 80, 0.35);
    filter: blur(120px);
}

.ev-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-lg);
}

.ev-hero__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem;
    margin: 0;
}

.ev-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--nx-radius-full);
    background: var(--ev-overlay);
    color: var(--nx-text-secondary);
    font-size: 12px;
    line-height: 16px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ev-tag--live {
    background: rgba(0, 229, 190, 0.1);
    color: var(--nx-primary);
}

.ev-tag--alert { color: var(--nx-error); }

.ev-tag__ping {
    position: relative;
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background: var(--nx-primary-container);
}

.ev-tag__ping::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--nx-primary-container);
    animation: ev-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ev-ping {
    75%, 100% { transform: scale(2.5); opacity: 0; }
}

.ev-hero__titles {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-sm);
}

.ev-hero__series {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    color: var(--nx-primary);
    font-size: 12px;
    line-height: 16px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.ev-hero__series > span {
    width: 2rem;
    height: 2px;
    background: var(--nx-primary-container);
}

.ev-hero__title {
    margin: 0;
    color: var(--nx-text-primary);
    font-size: 36px;
    line-height: 42px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .ev-hero__title {
        font-size: 56px;
        line-height: 64px;
        letter-spacing: -0.03em;
    }
}

.ev-accent {
    color: var(--nx-primary-container);
    filter: drop-shadow(0 0 24px rgba(0, 229, 190, 0.4));
}

.ev-hero__slogan {
    margin: 0;
    color: var(--nx-text-secondary);
    font-size: 18px;
    line-height: 28px;
    font-style: italic;
}

.ev-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding-top: var(--nx-space-md);
}

@media (min-width: 640px) { .ev-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ev-facts { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }

.ev-fact {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    padding: var(--nx-space-md);
    border-radius: var(--ev-r);
    background: rgba(24, 25, 30, 0.8);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ev-fact__label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--nx-text-muted);
    font-size: 12px;
    line-height: 16px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ev-fact__label .material-symbols-outlined {
    font-size: 18px;
    color: var(--nx-primary);
}

.ev-fact__label .ev-fact__icon--gold { color: var(--ev-gold); }

.ev-fact strong {
    color: var(--nx-text-primary);
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Narrow cards wrap rather than cut a date or a price in half; only the wide
   five-across row can afford to truncate. */
@media (max-width: 1023.98px) {
    .ev-fact strong,
    .ev-fact__sub {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .ev-fact strong { font-size: 17px; line-height: 24px; }
}

.ev-fact .ev-fact__value--accent { color: var(--nx-primary-container); }
.ev-fact .ev-fact__value--gold { color: var(--ev-gold-soft); }

.ev-fact__sub {
    overflow: hidden;
    color: var(--nx-text-secondary);
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ev-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--nx-space-md);
    padding-top: var(--nx-space-sm);
}

.ev-hero__cta {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 639.98px) {
    .ev-hero__actions .nx-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

.ev-hero__actions .nx-btn--ghost .material-symbols-outlined { color: var(--nx-text-muted); }

/* ---------------------------------------------------------------------------
   3. Layout & section headings
   ------------------------------------------------------------------------ */

.ev-grid { margin-top: var(--nx-space-lg); }

.ev-main {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.ev-block {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-lg);
}

.ev-block__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--nx-space-sm) var(--nx-space-md);
}

/* The comp's heading: a short teal bar, then the title in capitals. */
.ev-heading {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin: 0;
    color: var(--nx-text-primary);
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

@media (min-width: 768px) { .ev-heading { font-size: 24px; line-height: 32px; } }

.ev-heading::before {
    content: '';
    flex-shrink: 0;
    width: 0.375rem;
    height: 1.5rem;
    border-radius: var(--nx-radius-full);
    background: var(--nx-primary-container);
}

.ev-surface {
    padding: var(--nx-space-lg);
    border-radius: var(--ev-r-lg);
    background: var(--ev-elevated);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ev-surface--tight { padding: var(--nx-space-md); border-radius: var(--ev-r); }

.ev-prose {
    color: var(--nx-text-secondary);
    font-size: 15px;
    line-height: 1.625;
}

.ev-prose strong,
.ev-prose b { color: var(--nx-primary); font-weight: 600; }
.ev-prose a { color: var(--nx-primary-container) !important; text-decoration: underline; }

/* ---------------------------------------------------------------------------
   4. Introduction points, categories, prizes
   ------------------------------------------------------------------------ */

.ev-point {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding: 1.25rem;
    border-radius: var(--ev-r);
    background: var(--ev-elevated);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.ev-point:hover { transform: translateY(-2px); }

.ev-point .nx-icon { margin-bottom: 0.25rem; }

.ev-point h3 {
    margin: 0;
    color: var(--nx-text-primary);
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
}

.ev-point p {
    margin: 0;
    color: var(--nx-text-muted);
    font-size: 13px;
    line-height: 20px;
}

.ev-categories {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ev-category {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-md);
    padding: 1.25rem;
    border-radius: var(--ev-r-lg);
    background: var(--ev-elevated);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

@media (min-width: 640px) {
    .ev-category {
        flex-direction: row;
        align-items: center;
    }
}

.ev-category.is-closed { opacity: 0.6; }

.ev-category__mark {
    width: 3.5rem;
    height: 3.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ev-r);
    background: var(--ev-high);
    color: var(--nx-primary);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ev-category__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ev-category__body strong {
    color: var(--nx-text-primary);
    font-size: 18px;
    line-height: 26px;
    font-weight: 600;
}

.ev-category__body span {
    color: var(--nx-text-muted);
    font-size: 13px;
    line-height: 20px;
}

.ev-category__price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--nx-space-sm);
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .ev-category__price {
        flex-direction: column;
        align-items: flex-end;
    }
}

.ev-category__price strong {
    color: var(--nx-primary-container);
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
}

.ev-pill {
    padding: 0.25rem 0.625rem;
    border-radius: var(--nx-radius-full);
    background: var(--ev-overlay);
    color: var(--nx-text-secondary);
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.ev-pill--closed { color: var(--nx-error); }

/* Prize tabs — Bootstrap's tab plugin drives `.active`. */
.ev-switch {
    display: inline-flex;
    gap: 0.375rem;
    padding: 0.25rem;
    border-radius: var(--nx-radius-full);
    background: var(--ev-high);
}

.ev-switch__btn {
    padding: 0.375rem var(--nx-space-md);
    border: 0;
    border-radius: var(--nx-radius-full);
    background: transparent;
    color: var(--nx-text-secondary);
    font-family: var(--nx-font);
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: color 0.2s;
}

.ev-switch__btn:hover { color: var(--nx-text-primary); }

.ev-switch__btn.active {
    background: var(--nx-primary-container);
    color: var(--ev-on-accent);
    font-weight: 700;
}

.ev-prize__label {
    margin: 0 0 0.75rem;
    color: var(--nx-text-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ev-prize {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) { .ev-prize { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ev-prize { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.ev-prize__item {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: var(--nx-space-md);
    border-radius: var(--ev-r);
    background: var(--ev-elevated);
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ev-prize__place {
    color: var(--nx-text-muted);
    font-size: 12px;
    line-height: 16px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ev-prize__item strong {
    color: var(--nx-text-primary);
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
}

.ev-prize__note {
    color: var(--nx-text-muted);
    font-size: 11px;
    line-height: 16px;
}

/* The comp's podium colours: teal, silver, gold, then quiet. */
.ev-prize__item--1::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 0.25rem;
    background: var(--nx-primary-container);
}

.ev-prize__item--1 .ev-prize__place { color: var(--nx-primary); }
.ev-prize__item--2 .ev-prize__place { color: var(--nx-text-secondary); }
.ev-prize__item--3 .ev-prize__place { color: #f9bc48; }

.ev-info {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0;
    padding: var(--nx-space-md);
    border-radius: var(--ev-r);
    background: var(--ev-high);
    color: var(--nx-text-secondary);
    font-size: 13px;
    line-height: 20px;
}

.ev-info .material-symbols-outlined {
    flex-shrink: 0;
    margin-top: 0.125rem;
    font-size: 20px;
    color: var(--nx-primary);
}

/* ---------------------------------------------------------------------------
   5. Kit & route
   ------------------------------------------------------------------------ */

.ev-kit {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
    padding: var(--nx-space-md);
    border-radius: var(--ev-r-lg);
    background: var(--ev-elevated);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ev-kit__media {
    height: 14rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ev-r);
}

.ev-kit__placeholder {
    font-size: 64px !important;
    color: rgba(255, 255, 255, 0.12);
}

.ev-kit figcaption {
    color: var(--nx-text-muted);
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

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

.ev-kit__item {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: var(--nx-space-md);
    border-radius: var(--ev-r);
    background: var(--ev-elevated);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ev-kit__item h3 {
    display: flex;
    align-items: center;
    gap: var(--nx-space-sm);
    margin: 0;
    color: var(--nx-text-primary);
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
}

.ev-kit__item h3 .material-symbols-outlined {
    font-size: 20px;
    color: var(--nx-primary);
}

.ev-kit__item p {
    margin: 0;
    color: var(--nx-text-muted);
    font-size: 13px;
    line-height: 1.375;
}

.ev-route {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-md);
    padding: var(--nx-space-md);
    border-radius: var(--ev-r-lg);
    background: var(--ev-elevated);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ev-route__map {
    height: 18rem;
    border-radius: var(--ev-r);
}

.ev-route__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, var(--nx-surface-base), rgba(10, 10, 12, 0.4) 40%, transparent);
    pointer-events: none;
}

.ev-legend {
    display: flex;
    flex-wrap: wrap;
    gap: var(--nx-space-sm);
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Over the map: the chips sit on its bottom edge, above the scrim, and let
   clicks through to the lightbox link beneath. */
.ev-legend--over {
    position: absolute;
    left: var(--nx-space-md);
    right: var(--nx-space-md);
    bottom: var(--nx-space-md);
    z-index: 3;
    pointer-events: none;
}

.ev-legend li {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: var(--nx-radius-full);
    background: rgba(10, 10, 12, 0.9);
    color: var(--nx-primary);
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.ev-legend li strong { font-weight: 700; }
.ev-legend li span { color: var(--nx-text-secondary); }

/* ---------------------------------------------------------------------------
   6. Timeline & closing banner
   ------------------------------------------------------------------------ */

.ev-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ev-timeline__row {
    display: flex;
    align-items: flex-start;
    gap: var(--nx-space-md);
    padding: var(--nx-space-md);
    border-radius: var(--ev-r-lg);
    background: var(--ev-elevated);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ev-timeline__dot {
    width: 0.625rem;
    height: 0.625rem;
    flex-shrink: 0;
    margin-top: 0.5rem;
    border-radius: 50%;
    background: var(--nx-primary-container);
    box-shadow: 0 0 8px var(--nx-primary-container);
}

.ev-timeline__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.25rem;
}

@media (min-width: 640px) {
    .ev-timeline__body {
        flex-direction: row;
        align-items: center;
    }
}

.ev-timeline__text {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem var(--nx-space-sm);
}

.ev-timeline__time {
    color: var(--nx-primary);
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.ev-timeline__text strong {
    color: var(--nx-text-primary);
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
}

.ev-timeline__tag {
    align-self: flex-start;
    flex-shrink: 0;
    padding: 0.25rem 0.625rem;
    border-radius: var(--ev-r);
    background: var(--ev-overlay);
    color: var(--nx-text-muted);
    font-size: 11px;
    line-height: 16px;
    font-weight: 600;
}

@media (min-width: 640px) { .ev-timeline__tag { align-self: auto; } }

.ev-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem;
    border-radius: var(--ev-r-lg);
    background: var(--ev-elevated);
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.ev-banner__line {
    margin: 0;
    color: var(--nx-primary-container);
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.ev-banner__tags {
    margin: 0;
    color: var(--nx-text-muted);
    font-size: 12px;
    line-height: 16px;
    font-weight: 800;
    letter-spacing: 0.1em;
    word-spacing: 0.5em;
}

/* ---------------------------------------------------------------------------
   7. Booking column
   ------------------------------------------------------------------------ */

.ev-aside {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-lg);
}

@media (min-width: 992px) {
    .ev-aside {
        position: sticky;
        top: calc(var(--nx-header-height) + 1rem);
    }
}

.ev-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: var(--nx-space-lg);
    border-radius: var(--ev-r-lg);
    background: var(--ev-elevated);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ev-panel--booking {
    scroll-margin-top: calc(var(--nx-header-height) + 1rem);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.ev-panel--booking::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 0.25rem;
    background: linear-gradient(to right, var(--nx-primary-container), var(--nx-accent-teal), var(--nx-primary-container));
}

.ev-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--nx-space-sm);
}

.ev-panel__title {
    margin: 0;
    color: var(--nx-text-primary);
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
}

.ev-panel__title--icon {
    display: flex;
    align-items: center;
    gap: var(--nx-space-sm);
}

.ev-panel__title--icon .material-symbols-outlined {
    font-size: 20px;
    color: var(--nx-primary);
}

.ev-status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: var(--nx-radius-full);
    background: rgba(0, 229, 190, 0.1);
    color: var(--nx-primary);
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ev-status > span {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--nx-primary-container);
    animation: nx-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.ev-status--closed {
    background: rgba(255, 180, 171, 0.1);
    color: var(--nx-error);
}

.ev-status--closed > span { background: var(--nx-error); animation: none; }

.ev-panel__label {
    display: block;
    color: var(--nx-text-muted);
    font-size: 12px;
    line-height: 16px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ev-panel__price strong {
    display: block;
    color: var(--nx-primary-container);
    font-size: 40px;
    line-height: 48px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ev-panel__form {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-md);
}

.ev-panel__submit {
    width: 100%;
    justify-content: center;
    margin-top: var(--nx-space-sm);
    border: 0;
    font-family: var(--nx-font);
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
}

.ev-panel__submit:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

.ev-panel__secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin: 0;
    color: var(--nx-text-muted);
    font-size: 11px;
    line-height: 16px;
    font-weight: 600;
    text-align: center;
}

.ev-panel__secure .material-symbols-outlined { font-size: 14px; color: var(--nx-primary); }

.ev-panel__cart {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-sm);
    padding-top: var(--nx-space-md);
    border-top: 1px solid var(--ev-line);
}

.ev-panel__total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: var(--nx-space-sm) 0 0;
}

.ev-panel__total strong {
    color: var(--nx-primary-container);
    font-size: 20px;
    font-weight: 800;
}

.ev-org {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: var(--nx-space-md);
    border-top: 1px solid var(--ev-line);
}

.ev-org__mark {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 229, 190, 0.1);
    color: var(--nx-primary-container);
    font-size: 13px;
    font-weight: 800;
}

.ev-org strong { color: var(--nx-text-primary); font-size: 15px; }

.ev-verified {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin: 0;
    padding: 0.75rem var(--nx-space-md);
    border-radius: var(--ev-r);
    background: var(--ev-high);
}

.ev-verified > .material-symbols-outlined { font-size: 20px; color: var(--nx-primary-container); }

.ev-verified > span { display: flex; flex-direction: column; }
.ev-verified strong { color: var(--nx-text-primary); font-size: 14px; }
.ev-verified span span { color: var(--nx-text-muted); font-size: 12px; line-height: 18px; }

.ev-redeem {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    line-height: 20px;
}

.ev-redeem li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
}

.ev-redeem .material-symbols-outlined {
    flex-shrink: 0;
    margin-top: 0.125rem;
    font-size: 18px;
    color: var(--nx-text-muted);
}

.ev-redeem strong { display: block; color: var(--nx-text-primary); font-weight: 700; }
.ev-redeem span span { color: var(--nx-text-muted); }

.ev-directions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--nx-space-sm);
    padding: var(--nx-space-sm) var(--nx-space-md);
    border-radius: var(--ev-r);
    background: var(--ev-high);
    color: var(--nx-text-primary) !important;
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: background-color 0.2s;
}

.ev-directions:hover { background: var(--nx-surface-container-highest); }
.ev-directions .material-symbols-outlined { font-size: 16px; color: var(--nx-primary); }

/* ---------------------------------------------------------------------------
   8. Shared components, in this design's clothes
   ------------------------------------------------------------------------ */

/* Image plates — an organiser's upload, or a drawn stand-in when empty. */
.ev .tpl-plate {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 229, 190, 0.18), transparent 55%),
        radial-gradient(circle at 85% 80%, rgba(125, 38, 80, 0.35), transparent 55%),
        var(--ev-high);
}

.ev .tpl-plate--photo {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ev .tpl-plate__zoom {
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: zoom-in;
}

/* The package tiers (x-landing.selector, control="radios"). */
.ev .cl-tiers {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-sm);
}

.ev .cl-tier {
    display: block;
    margin: 0;
    padding: 0.75rem 0.875rem;
    border-radius: var(--ev-r);
    background: var(--ev-high);
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.ev .cl-tier:hover { background: var(--ev-overlay); }

.ev .cl-tier:has(input:checked) {
    background: var(--ev-overlay);
    box-shadow: inset 0 0 0 1px var(--nx-primary-container), 0 0 10px rgba(0, 229, 190, 0.15);
}

.ev .cl-tier:has(input:focus-visible) {
    outline: 2px solid var(--nx-primary-container);
    outline-offset: 2px;
}

.ev .cl-tier__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.ev .cl-tier__name {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
    color: var(--nx-text-primary);
    font-size: 14px;
    font-weight: 600;
}

.ev .cl-tier__name input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--nx-primary-container);
}

.ev .cl-tier__price {
    flex-shrink: 0;
    color: var(--nx-primary-container);
    font-size: 14px;
    font-weight: 700;
}

.ev .cl-tier__note {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0.375rem 0 0;
    color: var(--nx-text-muted);
    font-size: 12px;
    line-height: 16px;
}

.ev .cl-tier__note .material-symbols-outlined { font-size: 15px; }

/* Option select, and the labels the selector renders around it. */
.ev [data-options-wrap] label { display: block; margin: 0; }

.ev [data-options-wrap] label > span,
.ev .cl-qty-field__label {
    display: block;
    margin-bottom: 0.375rem;
    color: var(--nx-text-secondary);
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.ev [data-options-wrap] select {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 0;
    border-radius: var(--ev-r);
    background: var(--ev-high);
    color: var(--nx-text-primary);
    font-family: var(--nx-font);
    font-size: 13px;
}

.ev [data-options-wrap] select:focus {
    outline: none;
    box-shadow: 0 0 0 1px var(--nx-primary-container);
}

.ev [data-options-wrap] option { background: var(--ev-high); }

/* Quantity stepper */
.ev .cl-qty {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    border-radius: var(--ev-r);
    background: var(--ev-high);
}

.ev .cl-qty__step {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 0;
    border-radius: var(--ev-r);
    background: var(--ev-overlay);
    color: var(--nx-text-primary);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.ev .cl-qty__step:hover {
    background: var(--nx-primary-container);
    color: var(--ev-on-accent);
}

.ev .cl-qty__step:disabled { opacity: 0.4; cursor: not-allowed; }
.ev .cl-qty__step .material-symbols-outlined { font-size: 18px; }

.ev .cl-qty .cl-qty__value {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0;
    border: 0;
    background: transparent;
    color: var(--nx-text-primary);
    font-family: var(--nx-font);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.ev .cl-qty .cl-qty__value:focus { outline: none; }

/* Notes */
.ev .tpl-note {
    margin: 0;
    padding: 0.75rem var(--nx-space-md);
    border-radius: var(--ev-r);
    background: var(--ev-high);
    color: var(--nx-text-secondary);
    font-size: 13px;
    line-height: 1.45;
}

.ev .tpl-note--warn {
    background: rgba(255, 180, 171, 0.1);
    color: var(--nx-error);
}

/* Cart lines */
.ev .tpl-cart {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-sm);
    margin: 0;
    padding: 0;
    list-style: none;
}

.ev .tpl-cart__line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.625rem;
    padding: 0.625rem 0.75rem;
    border-radius: var(--ev-r);
    background: var(--ev-high);
}

.ev .tpl-cart__name {
    color: var(--nx-text-primary);
    font-size: 13px;
    font-weight: 600;
}

.ev .tpl-cart__meta {
    display: flex;
    align-items: center;
    gap: var(--nx-space-sm);
    color: var(--nx-text-primary);
    font-size: 13px;
}

.ev .tpl-cart__meta form { margin: 0; }

.ev .tpl-cart__remove {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--ev-r);
    background: transparent;
    color: var(--nx-text-muted);
    font-size: 18px;
    cursor: pointer;
}

.ev .tpl-cart__remove:hover { background: var(--ev-overlay); color: var(--nx-error); }

/* Bootstrap's alert (cart-flash), on the dark surface. */
.ev .alert {
    margin: 0;
    border: 0;
    border-radius: var(--ev-r);
    font-size: 13px;
}

/* The organiser's own preview banner (FR-205). */
.tpl-preview-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    margin-bottom: var(--nx-space-md);
    padding: 0.75rem 1.25rem;
    border-radius: var(--ev-r-lg, 0.5rem);
    background: var(--nx-secondary-container);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
}

.tpl-preview-bar a { color: var(--nx-secondary) !important; text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
    .ev-tag__ping::after,
    .ev-status > span { animation: none; }
}
