/* ============================================================================
   Tickets99 — Modern Design System  ("Ink & Electric")
   ----------------------------------------------------------------------------
   ADDITIVE LAYER. Load this AFTER bootstrap.min.css, common.css and styles.css.
   Nothing here deletes or edits the legacy sheets; removing the single <link>
   restores the previous appearance exactly.

   SCOPING CONTRACT
   ----------------
   * Design tokens are declared on :root so any page that loads this file can
     read them, but they change nothing on their own.
   * Everything that restyles EXISTING markup (typography, body surface, legacy
     Bootstrap buttons, legacy .card1 event cards) is gated behind `body.t99m`.
     A page opts in by adding class="t99m" to <body>. A page that loads the
     stylesheet without that class gets only the new `.t99-*` components it
     explicitly uses.
   * New components are all prefixed `.t99-` and never collide with the legacy
     utility names in common.css (`.bg-dark1`, `.fancy-btn`, `.text-red-col`...).

   WHY A SEPARATE FILE
   -------------------
   styles.css and common.css are shared by Tickets99_Web, Tickets99_Domain,
   Survey and the admin console. Editing them changes every estate at once.
   This file is linked only from the pages being modernised.
   ============================================================================ */

/* ---------------------------------------------------------------------------
   1. TYPEFACES
   Outfit      — geometric display. Headlines, prices, nav, buttons.
   Plus Jakarta Sans — UI/body. Highly legible at 14-16px, tabular figures.
   `display=swap` so text paints immediately (no FOIT) — Core Web Vitals.
   --------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ---------------------------------------------------------------------------
   2. DESIGN TOKENS
   --------------------------------------------------------------------------- */
:root {
    /* -- Core surfaces: ink (near-black with a violet cast), not pure black -- */
    --t99-ink:            #0B0B12;
    --t99-ink-2:          #15151F;
    --t99-ink-3:          #1E1E2B;
    --t99-ink-4:          #2A2A3C;

    /* -- Paper surfaces -- */
    --t99-paper:          #FFFFFF;
    --t99-canvas:         #F6F6F9;
    --t99-canvas-2:       #EFEFF5;

    /* -- Brand accents --------------------------------------------------
       accent    : primary brand + primary CTA.  Tickets99 indigo #171766,
                   15.5:1 on white - the existing brand colour, kept.
       flare     : urgency, price, discount.     decorative / large only
       flare-ink : the text-safe flare.          4.90:1 on white (AA text)
       mint      : available / success.          decorative
       mint-ink  : text-safe mint.               4.65:1 on white (AA text)

       NOTE ON THE NAME. These are still called --t99-electric* because the
       whole sheet references them; only the VALUES changed when the accent
       moved from violet to the house indigo. Renaming ~90 references buys
       nothing and risks missing one. Read "electric" as "the accent".

       The indigo is deliberately dark, so hover LIGHTENS rather than
       darkens - the usual darken-on-hover is invisible at this luminance.
       ------------------------------------------------------------------ */
    --t99-electric:       #171766;
    --t99-electric-600:   #23238C;   /* hover: lifts, 10.6:1 on white */
    --t99-electric-700:   #171766;   /* text on a soft tint */
    --t99-electric-soft:  #ECECF6;
    --t99-electric-rgb:   23, 23, 102;

    --t99-flare:          #FF4D64;
    --t99-flare-ink:      #D62B43;
    --t99-flare-soft:     #FFEEF0;

    --t99-mint:           #00B37E;
    --t99-mint-ink:       #00855E;
    --t99-mint-soft:      #E6F7F1;

    --t99-amber:          #F59E0B;
    --t99-amber-ink:      #996100;   /* #A66A00 measured 4.48:1 on white - under AA */
    --t99-amber-soft:     #FFF6E5;

    /* -- Text -- */
    --t99-text:           #11111A;
    --t99-text-2:         #4A4A5E;
    --t99-text-3:         #6A6A80;   /* 4.6:1 on white — the lightest legal body grey */
    --t99-text-on-ink:    #FFFFFF;
    --t99-text-on-ink-2:  #B9B9CC;

    /* -- Lines -- */
    --t99-border:         #E6E6EF;
    --t99-border-2:       #D5D5E2;
    --t99-border-ink:     rgba(255, 255, 255, .12);

    /* -- Signature gradient -------------------------------------------------
       The house indigo sweeping to the text-safe flare. WHITE TEXT PASSES AA
       AT EVERY STOP - #171766 15.5:1, #5B2A7A 10.2:1, #D62B43 4.90:1 - so
       unlike the violet palette it replaced there is no decorative/CTA split
       to get wrong. --t99-grad-cta is kept as a separate name only so the
       rules that reference it keep working, and so a future vivid variant
       can be introduced without touching every button.
       --------------------------------------------------------------------- */
    --t99-grad:      linear-gradient(135deg, #171766 0%, #5B2A7A 50%, #D62B43 100%);
    --t99-grad-cta:  linear-gradient(135deg, #171766 0%, #5B2A7A 50%, #D62B43 100%);
    --t99-grad-soft: linear-gradient(135deg, #ECECF6 0%, #FFEEF0 100%);

    /* -- Type scale (1.250 major third, 16px base) -- */
    --t99-font-display: 'Outfit', 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --t99-font-body:    'Plus Jakarta Sans', 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --t99-fs-xs:   0.75rem;    /* 12 — meta, overline */
    --t99-fs-sm:   0.875rem;   /* 14 — secondary UI   */
    --t99-fs-base: 1rem;       /* 16 — body           */
    --t99-fs-md:   1.125rem;   /* 18 — lead           */
    --t99-fs-lg:   1.375rem;   /* 22 — card title     */
    --t99-fs-xl:   1.75rem;    /* 28 — section title  */
    --t99-fs-2xl:  2.25rem;    /* 36                  */
    --t99-fs-3xl:  3rem;       /* 48 — page title     */
    --t99-fs-4xl:  3.75rem;    /* 60 — hero           */

    --t99-lh-tight: 1.15;
    --t99-lh-snug:  1.35;
    --t99-lh-body:  1.6;

    /* -- Spacing: 4px rhythm -- */
    --t99-s-1:  0.25rem;
    --t99-s-2:  0.5rem;
    --t99-s-3:  0.75rem;
    --t99-s-4:  1rem;
    --t99-s-5:  1.5rem;
    --t99-s-6:  2rem;
    --t99-s-7:  3rem;
    --t99-s-8:  4rem;
    --t99-s-9:  6rem;

    /* -- Radii -- */
    --t99-r-sm:   8px;
    --t99-r-md:   12px;
    --t99-r-lg:   18px;
    --t99-r-xl:   24px;
    --t99-r-pill: 999px;

    /* -- Elevation: one consistent scale, tinted with the ink hue ---------- */
    --t99-e-1: 0 1px 2px rgba(11, 11, 18, .06), 0 1px 3px rgba(11, 11, 18, .04);
    --t99-e-2: 0 2px 6px rgba(11, 11, 18, .07), 0 6px 16px rgba(11, 11, 18, .05);
    --t99-e-3: 0 8px 24px rgba(11, 11, 18, .10), 0 2px 6px rgba(11, 11, 18, .05);
    --t99-e-4: 0 18px 48px rgba(11, 11, 18, .16), 0 4px 12px rgba(11, 11, 18, .06);
    --t99-e-focus: 0 0 0 3px rgba(var(--t99-electric-rgb), .35);

    /* -- Motion: one rhythm for the whole product -- */
    --t99-dur-1: 120ms;   /* state flip        */
    --t99-dur-2: 200ms;   /* standard          */
    --t99-dur-3: 320ms;   /* entrance          */
    --t99-ease:       cubic-bezier(.4, 0, .2, 1);
    --t99-ease-out:   cubic-bezier(.16, 1, .3, 1);
    --t99-ease-spring: cubic-bezier(.34, 1.56, .64, 1);

    /* -- Layering -- */
    --t99-z-sticky: 1020;
    --t99-z-header: 1030;
    --t99-z-mega:   1040;
    --t99-z-toast:  1080;
}

/* ---------------------------------------------------------------------------
   3. OPT-IN BASE  (body.t99m)
   --------------------------------------------------------------------------- */
body.t99m {
    font-family: var(--t99-font-body);
    font-size: var(--t99-fs-base);
    line-height: var(--t99-lh-body);
    color: var(--t99-text);
    background: var(--t99-canvas);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv11", "ss01";
}

body.t99m h1, body.t99m h2, body.t99m h3,
body.t99m h4, body.t99m h5, body.t99m h6,
body.t99m .t99-display {
    font-family: var(--t99-font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: var(--t99-lh-tight);
    /* Deliberately NO `color` here. Setting one made every heading on a dark
       hero near-invisible: these pages colour their own headings with
       .text-white / .blue-text and a blanket colour out-specifies the ones
       that rely on inheritance. Headings without a colour of their own
       inherit the body colour, which is already --t99-text. */
}

body.t99m h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, var(--t99-fs-3xl)); }
body.t99m h2 { font-size: clamp(1.5rem, 1.1rem + 1.5vw, var(--t99-fs-xl)); }
body.t99m h3 { font-size: var(--t99-fs-lg); }

/* Numerals in prices, counts and timers must not jitter as they change. */
body.t99m .t99-num,
body.t99m .t99-price,
body.t99m .t99-card__price {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* The legacy sheets strip focus rings in places. Put them back, everywhere. */
body.t99m :is(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 2px solid var(--t99-electric);
    outline-offset: 2px;
    border-radius: var(--t99-r-sm);
}

/* icomoon glyphs are declared `!important` upstream, so the body font change
   above cannot reach them. This is only a defensive restatement. */
body.t99m [class^="icon-"],
body.t99m [class*=" icon-"] { font-family: 'icomoon' !important; }

/* ---------------------------------------------------------------------------
   4. LAYOUT PRIMITIVES
   --------------------------------------------------------------------------- */
.t99-shell { max-width: 1280px; margin-inline: auto; padding-inline: var(--t99-s-4); }
@media (min-width: 768px) { .t99-shell { padding-inline: var(--t99-s-5); } }

.t99-section      { padding-block: var(--t99-s-7); }
@media (min-width: 992px) { .t99-section { padding-block: var(--t99-s-8); } }
.t99-section--tight { padding-block: var(--t99-s-6); }
.t99-section--ink { background: var(--t99-ink); color: var(--t99-text-on-ink); }
.t99-section--ink :is(h1,h2,h3,h4,h5,h6) { color: var(--t99-text-on-ink); }
.t99-section--canvas { background: var(--t99-canvas); }
.t99-section--paper  { background: var(--t99-paper); }

.t99-stack > * + * { margin-top: var(--t99-s-4); }

/* Section header: title left, action right, consistent on every band. */
.t99-sechead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--t99-s-4);
    margin-bottom: var(--t99-s-5);
    flex-wrap: wrap;
}
.t99-sechead__title { margin: 0; }
.t99-sechead__sub {
    margin: var(--t99-s-1) 0 0;
    color: var(--t99-text-3);
    font-size: var(--t99-fs-sm);
}
.t99-overline {
    display: inline-block;
    font-family: var(--t99-font-display);
    font-size: var(--t99-fs-xs);
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--t99-electric);
    margin-bottom: var(--t99-s-2);
}

/* ---------------------------------------------------------------------------
   5. BUTTONS
   --------------------------------------------------------------------------- */
.t99-btn {
    --_bg: var(--t99-electric);
    --_fg: #fff;
    --_bd: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--t99-s-2);
    min-height: 44px;                 /* touch target floor */
    padding: 0 var(--t99-s-5);
    border: 1px solid var(--_bd);
    border-radius: var(--t99-r-pill);
    background: var(--_bg);
    color: var(--_fg);
    font-family: var(--t99-font-display);
    font-size: var(--t99-fs-sm);
    font-weight: 600;
    letter-spacing: .01em;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform var(--t99-dur-1) var(--t99-ease),
                box-shadow var(--t99-dur-2) var(--t99-ease),
                background-color var(--t99-dur-2) var(--t99-ease),
                color var(--t99-dur-2) var(--t99-ease);
}
.t99-btn:hover { color: var(--_fg); box-shadow: var(--t99-e-3); transform: translateY(-1px); }
.t99-btn:active { transform: translateY(0) scale(.985); box-shadow: var(--t99-e-1); }
.t99-btn:focus-visible { outline: none; box-shadow: var(--t99-e-focus); }

.t99-btn--primary   { --_bg: var(--t99-electric); }
.t99-btn--primary:hover { --_bg: var(--t99-electric-600); }
.t99-btn--grad      { background: var(--t99-grad-cta); background-size: 160% 160%; }
.t99-btn--grad:hover{ background-position: 100% 0; }
.t99-btn--flare     { --_bg: var(--t99-flare-ink); }
.t99-btn--ghost     { --_bg: transparent; --_fg: var(--t99-text); --_bd: var(--t99-border-2); }
.t99-btn--ghost:hover { --_bg: var(--t99-canvas); --_bd: var(--t99-border-2); }
.t99-btn--on-ink    { --_bg: rgba(255,255,255,.08); --_fg: #fff; --_bd: rgba(255,255,255,.18); }
.t99-btn--on-ink:hover { --_bg: rgba(255,255,255,.16); }
.t99-btn--sm        { min-height: 36px; padding: 0 var(--t99-s-4); font-size: var(--t99-fs-xs); }
.t99-btn--lg        { min-height: 52px; padding: 0 var(--t99-s-6); font-size: var(--t99-fs-base); }
.t99-btn--block     { display: flex; width: 100%; }

.t99-btn[disabled], .t99-btn.is-disabled, .t99-btn[aria-disabled="true"] {
    opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; pointer-events: none;
}

/* Async state: the label is replaced by a spinner, width is preserved so the
   layout does not jump. Driven by `aria-busy="true"`, not a bespoke class. */
.t99-btn[aria-busy="true"] { color: transparent !important; pointer-events: none; position: relative; }
.t99-btn[aria-busy="true"]::after {
    content: "";
    position: absolute; inset: 0; margin: auto;
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: t99-spin .6s linear infinite;
}
@keyframes t99-spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------------------
   6. CHIPS, BADGES, PILLS
   --------------------------------------------------------------------------- */
.t99-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--t99-s-2);
    min-height: 38px;
    padding: 0 var(--t99-s-4);
    border: 1px solid var(--t99-border);
    border-radius: var(--t99-r-pill);
    background: var(--t99-paper);
    color: var(--t99-text-2);
    font-size: var(--t99-fs-sm);
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--t99-dur-2) var(--t99-ease);
}
.t99-chip:hover { border-color: var(--t99-electric); color: var(--t99-electric); }
.t99-chip[aria-pressed="true"], .t99-chip.is-active {
    background: var(--t99-ink);
    border-color: var(--t99-ink);
    color: #fff;
}
.t99-chip__count {
    font-size: var(--t99-fs-xs);
    opacity: .6;
    font-variant-numeric: tabular-nums;
}

/* Horizontal chip rail — scrolls on phones, no visible scrollbar, snaps. */
.t99-chiprail {
    display: flex;
    gap: var(--t99-s-2);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-block: var(--t99-s-1);
    margin-inline: calc(var(--t99-s-4) * -1);
    padding-inline: var(--t99-s-4);
}
.t99-chiprail::-webkit-scrollbar { display: none; }
.t99-chiprail > * { scroll-snap-align: start; flex: 0 0 auto; }
@media (min-width: 992px) {
    .t99-chiprail { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
}

.t99-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--t99-r-pill);
    font-family: var(--t99-font-display);
    font-size: var(--t99-fs-xs);
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.5;
}
.t99-badge--flare   { background: var(--t99-flare-soft);    color: var(--t99-flare-ink); }
.t99-badge--mint    { background: var(--t99-mint-soft);     color: var(--t99-mint-ink); }
.t99-badge--amber   { background: var(--t99-amber-soft);    color: var(--t99-amber-ink); }
.t99-badge--electric{ background: var(--t99-electric-soft); color: var(--t99-electric-700); }
.t99-badge--ink     { background: var(--t99-ink); color: #fff; }
.t99-badge--solid-flare { background: var(--t99-flare-ink); color: #fff; }

/* ---------------------------------------------------------------------------
   7. EVENT CARD
   The listing's single most important component. Fixed aspect-ratio media so
   the grid never shifts as images arrive (CLS), CSS line-clamp instead of
   server-side Substring truncation, and one clear primary action.
   --------------------------------------------------------------------------- */
.t99-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--t99-paper);
    border: 1px solid var(--t99-border);
    border-radius: var(--t99-r-lg);
    overflow: hidden;
    transition: transform var(--t99-dur-2) var(--t99-ease-out),
                box-shadow var(--t99-dur-2) var(--t99-ease-out),
                border-color var(--t99-dur-2) var(--t99-ease);
}
.t99-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--t99-e-4);
    border-color: transparent;
}

.t99-card__media {
    position: relative;
    aspect-ratio: 16 / 10;          /* reserves space before the image loads */
    background: var(--t99-canvas-2);
    overflow: hidden;
}
.t99-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 600ms var(--t99-ease-out);
}
.t99-card:hover .t99-card__media img { transform: scale(1.05); }

/* Gradient scrim so overlaid labels stay legible on any photo. */
.t99-card__media::after {
    content: "";
    position: absolute; inset: auto 0 0 0; height: 55%;
    background: linear-gradient(to top, rgba(11,11,18,.72), transparent);
    pointer-events: none;
}

.t99-card__flag {
    position: absolute; top: var(--t99-s-3); left: var(--t99-s-3);
    z-index: 2;
}
.t99-card__fav {
    position: absolute; top: var(--t99-s-3); right: var(--t99-s-3);
    z-index: 2;
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(6px);
    color: var(--t99-text-2);
    cursor: pointer;
    transition: transform var(--t99-dur-1) var(--t99-ease-spring),
                color var(--t99-dur-2) var(--t99-ease);
}
.t99-card__fav:hover { transform: scale(1.1); color: var(--t99-flare-ink); }
.t99-card__fav[aria-pressed="true"] { color: var(--t99-flare-ink); }

/* Date block sits on the image — the single most scanned datum on a listing. */
.t99-card__when {
    position: absolute; left: var(--t99-s-3); bottom: var(--t99-s-3);
    z-index: 2;
    display: flex; align-items: center; gap: var(--t99-s-2);
    color: #fff;
    font-family: var(--t99-font-display);
    font-size: var(--t99-fs-sm);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,.4);
}

.t99-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: var(--t99-s-2);
    padding: var(--t99-s-4);
}

.t99-card__title {
    margin: 0;
    font-family: var(--t99-font-display);
    font-size: var(--t99-fs-lg);
    font-weight: 700;
    line-height: var(--t99-lh-snug);
    letter-spacing: -0.015em;
    color: var(--t99-text);
    /* Two lines then ellipsis — replaces C# Substring(0,50)+"...." which cut
       mid-word and shipped a literal four-dot string to the browser. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.t99-card__meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--t99-fs-sm);
    color: var(--t99-text-3);
}
.t99-card__meta li { display: flex; align-items: flex-start; gap: var(--t99-s-2); }
.t99-card__meta i  { flex: 0 0 auto; margin-top: 2px; opacity: .75; }
.t99-card__meta span {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.t99-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--t99-s-3);
    margin-top: auto;
    padding-top: var(--t99-s-3);
    border-top: 1px solid var(--t99-border);
}
.t99-card__price {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.t99-card__price-label {
    font-size: var(--t99-fs-xs);
    color: var(--t99-text-3);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
}
.t99-card__price-value {
    font-family: var(--t99-font-display);
    font-size: var(--t99-fs-md);
    font-weight: 700;
    color: var(--t99-text);
}
.t99-card__price-value.is-free { color: var(--t99-mint-ink); }

/* The whole card is clickable, but only the title is the accessible link.
   This keeps one link per card in the tab order instead of three. */
.t99-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.t99-card__fav, .t99-card__cta { position: relative; z-index: 3; }

/* ---------------------------------------------------------------------------
   8. LISTING GRID
   Replaces the auto-rotating Owl carousel. A listing is for scanning and
   comparing; a 3-second autoplay carousel prevents both and cannot be
   deep-linked to a position.
   --------------------------------------------------------------------------- */
.t99-grid {
    display: grid;
    gap: var(--t99-s-4);
    grid-template-columns: 1fr;
}
@media (min-width: 576px) { .t99-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .t99-grid { grid-template-columns: repeat(3, 1fr); gap: var(--t99-s-5); } }
@media (min-width: 1400px){ .t99-grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* Staggered entrance, 40ms apart, capped at 12 so a long list does not take
   half a second to finish appearing. */
.t99-grid > * { animation: t99-rise var(--t99-dur-3) var(--t99-ease-out) both; }
.t99-grid > *:nth-child(1)  { animation-delay: 0ms; }
.t99-grid > *:nth-child(2)  { animation-delay: 40ms; }
.t99-grid > *:nth-child(3)  { animation-delay: 80ms; }
.t99-grid > *:nth-child(4)  { animation-delay: 120ms; }
.t99-grid > *:nth-child(5)  { animation-delay: 160ms; }
.t99-grid > *:nth-child(6)  { animation-delay: 200ms; }
.t99-grid > *:nth-child(7)  { animation-delay: 240ms; }
.t99-grid > *:nth-child(8)  { animation-delay: 280ms; }
.t99-grid > *:nth-child(9)  { animation-delay: 320ms; }
.t99-grid > *:nth-child(10) { animation-delay: 360ms; }
.t99-grid > *:nth-child(11) { animation-delay: 400ms; }
.t99-grid > *:nth-child(n+12) { animation-delay: 440ms; }

@keyframes t99-rise {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------------------
   9. LISTING TOOLBAR
   --------------------------------------------------------------------------- */
.t99-toolbar {
    position: sticky;
    top: 0;
    z-index: var(--t99-z-sticky);
    background: rgba(255,255,255,.88);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--t99-border);
    padding-block: var(--t99-s-3);
}
.t99-toolbar__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--t99-s-4);
    flex-wrap: wrap;
}
.t99-toolbar__count {
    font-size: var(--t99-fs-sm);
    color: var(--t99-text-3);
    font-variant-numeric: tabular-nums;
}
.t99-toolbar__controls { display: flex; align-items: center; gap: var(--t99-s-2); }

/* Native <select> restyled rather than replaced — keeps the mobile wheel
   picker, the keyboard behaviour and the existing onchange handlers intact. */
.t99-select {
    appearance: none;
    min-height: 40px;
    padding: 0 36px 0 var(--t99-s-4);
    border: 1px solid var(--t99-border);
    border-radius: var(--t99-r-pill);
    background-color: var(--t99-paper);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236A6A80' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    font-family: var(--t99-font-body);
    font-size: var(--t99-fs-sm);
    font-weight: 500;
    color: var(--t99-text);
    cursor: pointer;
}
.t99-select:focus-visible { outline: none; box-shadow: var(--t99-e-focus); border-color: var(--t99-electric); }

/* ---------------------------------------------------------------------------
   10. EMPTY / LOADING / ERROR STATES
   `/events/all/all` currently renders a bare page when the result set is
   empty — no message, no suggestion, no way forward. These three states fix
   that and are reused by every listing band.
   --------------------------------------------------------------------------- */
.t99-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--t99-s-3);
    padding: var(--t99-s-8) var(--t99-s-4);
    background: var(--t99-paper);
    border: 1px dashed var(--t99-border-2);
    border-radius: var(--t99-r-lg);
}
.t99-empty__art {
    width: 72px; height: 72px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--t99-grad-soft);
    color: var(--t99-electric);
    font-size: 30px;
}
.t99-empty__title {
    margin: 0;
    font-family: var(--t99-font-display);
    font-size: var(--t99-fs-lg);
    font-weight: 700;
}
.t99-empty__text {
    margin: 0;
    max-width: 46ch;
    color: var(--t99-text-3);
    font-size: var(--t99-fs-sm);
}
.t99-empty__actions { display: flex; gap: var(--t99-s-2); flex-wrap: wrap; justify-content: center; margin-top: var(--t99-s-2); }

/* Skeleton: same box model as .t99-card so swapping in real cards shifts
   nothing. */
.t99-skel {
    background: var(--t99-paper);
    border: 1px solid var(--t99-border);
    border-radius: var(--t99-r-lg);
    overflow: hidden;
}
.t99-skel__media { aspect-ratio: 16 / 10; }
.t99-skel__body { padding: var(--t99-s-4); display: flex; flex-direction: column; gap: var(--t99-s-3); }
.t99-skel__line { height: 12px; border-radius: 6px; }
.t99-skel__line--title { height: 20px; width: 80%; }
.t99-skel__line--short { width: 55%; }
.t99-shimmer {
    background: linear-gradient(90deg, var(--t99-canvas-2) 25%, #E4E4EE 37%, var(--t99-canvas-2) 63%);
    background-size: 400% 100%;
    animation: t99-shimmer 1.4s ease-in-out infinite;
}
@keyframes t99-shimmer {
    0%   { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* ---------------------------------------------------------------------------
   11. HEADER + SOLUTIONS MEGA MENU
   --------------------------------------------------------------------------- */
.t99-header {
    position: sticky; top: 0;
    z-index: var(--t99-z-header);
    background: var(--t99-ink);
    border-bottom: 1px solid var(--t99-border-ink);
}
.t99-header__row {
    display: flex;
    align-items: center;
    gap: var(--t99-s-4);
    min-height: 68px;
}
.t99-header__brand { flex: 0 0 auto; display: inline-flex; align-items: center; }
.t99-header__brand img { height: 36px; width: auto; }
.t99-header__spacer { flex: 1 1 auto; }

/* Two surfaces to serve: the MVC listing header and the static homepage are
   ink (.bg-dark1), while every other static marketing page has a white
   header. The base is the LIGHT-background form because more pages use it;
   --on-ink is the modifier for the dark headers. Getting this backwards
   renders the control invisible, so the variant is explicit, never inferred. */
.t99-navlink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 var(--t99-s-3);
    border-radius: var(--t99-r-pill);
    color: var(--t99-text-2);
    font-family: var(--t99-font-display);
    font-size: var(--t99-fs-sm);
    font-weight: 600;
    text-decoration: none;
    background: none;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: color var(--t99-dur-2) var(--t99-ease),
                background-color var(--t99-dur-2) var(--t99-ease),
                border-color var(--t99-dur-2) var(--t99-ease);
}
.t99-navlink:hover,
.t99-navlink[aria-expanded="true"] {
    color: var(--t99-electric);
    background: var(--t99-electric-soft);
    border-color: transparent;
}
.t99-navlink[aria-current="page"] { color: var(--t99-text); }

.t99-navlink--on-ink { color: var(--t99-text-on-ink-2); }
.t99-navlink--on-ink:hover,
.t99-navlink--on-ink[aria-expanded="true"] { color: #fff; background: rgba(255,255,255,.10); }
.t99-navlink--on-ink[aria-current="page"] { color: #fff; }
.t99-navlink__caret { transition: transform var(--t99-dur-2) var(--t99-ease); font-size: 10px; }
.t99-navlink[aria-expanded="true"] .t99-navlink__caret { transform: rotate(180deg); }

/* The mega panel. Opens on click (not hover) so it is reachable by keyboard
   and usable on touch — `hover-vs-tap`. */
.t99-mega {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    z-index: var(--t99-z-mega);
    background: var(--t99-paper);
    border-top: 1px solid var(--t99-border);
    box-shadow: var(--t99-e-4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--t99-dur-2) var(--t99-ease),
                transform var(--t99-dur-2) var(--t99-ease-out),
                visibility 0s linear var(--t99-dur-2);
}
.t99-mega.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
}
.t99-mega__inner { padding-block: var(--t99-s-5) var(--t99-s-6); }
.t99-mega__grid {
    display: grid;
    gap: var(--t99-s-3);
    grid-template-columns: 1fr;
}
@media (min-width: 768px) { .t99-mega__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px){ .t99-mega__grid { grid-template-columns: repeat(3, 1fr); } }

.t99-mega__item {
    display: flex;
    gap: var(--t99-s-3);
    padding: var(--t99-s-3);
    border-radius: var(--t99-r-md);
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    transition: background-color var(--t99-dur-2) var(--t99-ease),
                border-color var(--t99-dur-2) var(--t99-ease),
                transform var(--t99-dur-1) var(--t99-ease);
}
.t99-mega__item:hover {
    background: var(--t99-canvas);
    border-color: var(--t99-border);
    transform: translateX(2px);
    color: inherit;
}
.t99-mega__icon {
    flex: 0 0 auto;
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: var(--t99-r-md);
    background: var(--t99-electric-soft);
    color: var(--t99-electric-700);
    font-size: 18px;
}
.t99-mega__item:nth-child(6n+2) .t99-mega__icon { background: var(--t99-flare-soft); color: var(--t99-flare-ink); }
.t99-mega__item:nth-child(6n+3) .t99-mega__icon { background: var(--t99-mint-soft);  color: var(--t99-mint-ink); }
.t99-mega__item:nth-child(6n+4) .t99-mega__icon { background: var(--t99-amber-soft); color: var(--t99-amber-ink); }
.t99-mega__item:nth-child(6n+5) .t99-mega__icon { background: #EAF0FF; color: #2A4BD7; }
.t99-mega__item:nth-child(6n+6) .t99-mega__icon { background: #E6F1F5; color: #1A6C87; }

.t99-mega__name {
    margin: 0 0 2px;
    font-family: var(--t99-font-display);
    font-size: var(--t99-fs-base);
    font-weight: 700;
    color: var(--t99-text);
}
.t99-mega__desc {
    margin: 0;
    font-size: var(--t99-fs-sm);
    line-height: 1.45;
    color: var(--t99-text-3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.t99-mega__foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--t99-s-4); flex-wrap: wrap;
    margin-top: var(--t99-s-5);
    padding-top: var(--t99-s-4);
    border-top: 1px solid var(--t99-border);
}

/* Dim the page behind an open mega panel so the panel reads as a layer. */
.t99-scrim {
    position: fixed; inset: 0;
    z-index: calc(var(--t99-z-mega) - 1);
    background: rgba(11, 11, 18, .45);
    opacity: 0; visibility: hidden;
    transition: opacity var(--t99-dur-2) var(--t99-ease), visibility 0s linear var(--t99-dur-2);
}
.t99-scrim.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }

/* ---------------------------------------------------------------------------
   12. FOOTER
   --------------------------------------------------------------------------- */
.t99-footer {
    background: var(--t99-ink);
    color: var(--t99-text-on-ink-2);
    font-size: var(--t99-fs-sm);
}
.t99-footer a { color: var(--t99-text-on-ink-2); text-decoration: none; transition: color var(--t99-dur-2) var(--t99-ease); }
.t99-footer a:hover { color: #fff; }

.t99-footer__main {
    display: grid;
    gap: var(--t99-s-6);
    grid-template-columns: 1fr;
    padding-block: var(--t99-s-7);
}
@media (min-width: 768px) { .t99-footer__main { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px){ .t99-footer__main { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; } }

.t99-footer__title {
    font-family: var(--t99-font-display);
    font-size: var(--t99-fs-xs);
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 var(--t99-s-3);
}
.t99-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

/* Solutions column gets two sub-columns from md up so all 11 pages fit without
   making the footer tall. */
.t99-footer__list--2col { display: grid; grid-template-columns: 1fr; gap: 10px var(--t99-s-4); }
@media (min-width: 480px) { .t99-footer__list--2col { grid-template-columns: repeat(2, 1fr); } }

.t99-footer__bottom {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--t99-s-4); flex-wrap: wrap;
    padding-block: var(--t99-s-4);
    border-top: 1px solid var(--t99-border-ink);
    font-size: var(--t99-fs-xs);
}
.t99-footer__social { display: flex; gap: var(--t99-s-2); }
.t99-footer__social a {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.07);
    border: 1px solid var(--t99-border-ink);
    transition: background-color var(--t99-dur-2) var(--t99-ease), transform var(--t99-dur-1) var(--t99-ease-spring);
}
.t99-footer__social a:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }

.t99-sub { display: flex; gap: var(--t99-s-2); margin-top: var(--t99-s-3); }
.t99-sub input {
    flex: 1 1 auto;
    min-height: 44px;
    padding: 0 var(--t99-s-4);
    border-radius: var(--t99-r-pill);
    border: 1px solid var(--t99-border-ink);
    background: rgba(255,255,255,.06);
    color: #fff;
    font-size: var(--t99-fs-sm);
}
.t99-sub input::placeholder { color: rgba(255,255,255,.45); }
.t99-sub input:focus-visible { outline: none; border-color: var(--t99-electric); box-shadow: var(--t99-e-focus); }

/* ---------------------------------------------------------------------------
   13. CHECKOUT  (presentation only — no step logic, ids or field names touched)
   --------------------------------------------------------------------------- */
.t99-steps {
    display: flex;
    align-items: center;
    gap: var(--t99-s-2);
    overflow-x: auto;
    scrollbar-width: none;
    padding-block: var(--t99-s-3);
}
.t99-steps::-webkit-scrollbar { display: none; }
.t99-step {
    display: flex; align-items: center; gap: var(--t99-s-2);
    flex: 0 0 auto;
    font-family: var(--t99-font-display);
    font-size: var(--t99-fs-sm);
    font-weight: 600;
    color: var(--t99-text-3);
}
.t99-step__dot {
    width: 28px; height: 28px;
    display: grid; place-items: center;
    border-radius: 50%;
    border: 2px solid var(--t99-border-2);
    background: var(--t99-paper);
    font-size: var(--t99-fs-xs);
    transition: all var(--t99-dur-2) var(--t99-ease);
}
.t99-step__bar { width: 28px; height: 2px; background: var(--t99-border-2); border-radius: 2px; }
.t99-step.is-active { color: var(--t99-text); }
.t99-step.is-active .t99-step__dot {
    border-color: var(--t99-electric);
    background: var(--t99-electric);
    color: #fff;
    box-shadow: 0 0 0 4px var(--t99-electric-soft);
}
.t99-step.is-done { color: var(--t99-mint-ink); }
.t99-step.is-done .t99-step__dot { border-color: var(--t99-mint); background: var(--t99-mint); color: #fff; }
.t99-step.is-done + .t99-step .t99-step__bar,
.t99-step.is-done .t99-step__bar { background: var(--t99-mint); }

/* Ticket row: name + description left, price and quantity stepper right. */
.t99-ticket {
    display: flex;
    align-items: center;
    gap: var(--t99-s-4);
    padding: var(--t99-s-4);
    background: var(--t99-paper);
    border: 1px solid var(--t99-border);
    border-radius: var(--t99-r-md);
    transition: border-color var(--t99-dur-2) var(--t99-ease), box-shadow var(--t99-dur-2) var(--t99-ease);
    flex-wrap: wrap;
}
.t99-ticket:hover { border-color: var(--t99-border-2); }
.t99-ticket.is-selected { border-color: var(--t99-electric); box-shadow: 0 0 0 3px var(--t99-electric-soft); }
.t99-ticket.is-soldout { opacity: .55; }
.t99-ticket__main { flex: 1 1 220px; min-width: 0; }
.t99-ticket__name {
    margin: 0 0 2px;
    font-family: var(--t99-font-display);
    font-size: var(--t99-fs-base);
    font-weight: 700;
}
.t99-ticket__note { margin: 0; font-size: var(--t99-fs-sm); color: var(--t99-text-3); }
.t99-ticket__price {
    font-family: var(--t99-font-display);
    font-size: var(--t99-fs-md);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.t99-stepper { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--t99-border-2); border-radius: var(--t99-r-pill); overflow: hidden; }
.t99-stepper button {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border: 0; background: var(--t99-paper);
    color: var(--t99-text);
    font-size: 18px; line-height: 1;
    cursor: pointer;
    transition: background-color var(--t99-dur-1) var(--t99-ease);
}
.t99-stepper button:hover:not([disabled]) { background: var(--t99-canvas); }
.t99-stepper button[disabled] { opacity: .35; cursor: not-allowed; }
.t99-stepper input, .t99-stepper .t99-stepper__val {
    width: 46px; height: 40px;
    border: 0; border-inline: 1px solid var(--t99-border);
    text-align: center;
    font-family: var(--t99-font-display);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    background: var(--t99-paper);
    color: var(--t99-text);
}

/* Order summary. Sticky on desktop; becomes a fixed bottom bar on phones so
   the total and the primary action are always one tap away. */
.t99-summary {
    background: var(--t99-paper);
    border: 1px solid var(--t99-border);
    border-radius: var(--t99-r-lg);
    box-shadow: var(--t99-e-2);
    padding: var(--t99-s-5);
}
@media (min-width: 992px) {
    .t99-summary { position: sticky; top: var(--t99-s-5); }
}
.t99-summary__row { display: flex; justify-content: space-between; gap: var(--t99-s-3); padding-block: 7px; font-size: var(--t99-fs-sm); }
.t99-summary__row span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.t99-summary__row--muted { color: var(--t99-text-3); }
.t99-summary__total {
    display: flex; justify-content: space-between; align-items: baseline; gap: var(--t99-s-3);
    margin-top: var(--t99-s-3);
    padding-top: var(--t99-s-3);
    border-top: 1px solid var(--t99-border);
    font-family: var(--t99-font-display);
    font-size: var(--t99-fs-lg);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.t99-paybar {
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: var(--t99-z-sticky);
    display: flex; align-items: center; justify-content: space-between; gap: var(--t99-s-3);
    padding: var(--t99-s-3) var(--t99-s-4);
    padding-bottom: max(var(--t99-s-3), env(safe-area-inset-bottom));
    background: var(--t99-paper);
    border-top: 1px solid var(--t99-border);
    box-shadow: 0 -8px 24px rgba(11,11,18,.10);
}
@media (min-width: 992px) { .t99-paybar { display: none; } }
/* Pages that show the pay bar must reserve room or it covers the last field. */
body.t99m.has-paybar { padding-bottom: 88px; }

.t99-trustrow {
    display: flex; align-items: center; gap: var(--t99-s-4); flex-wrap: wrap;
    font-size: var(--t99-fs-xs);
    color: var(--t99-text-3);
}
.t99-trustrow span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------------------------------------------------------------------------
   14. FORMS
   --------------------------------------------------------------------------- */
.t99-field { display: flex; flex-direction: column; gap: 6px; }
.t99-label {
    font-size: var(--t99-fs-sm);
    font-weight: 600;
    color: var(--t99-text-2);
}
.t99-label .t99-req { color: var(--t99-flare-ink); margin-left: 2px; }
.t99-input {
    min-height: 46px;            /* >=44px touch floor */
    padding: 0 var(--t99-s-4);
    border: 1px solid var(--t99-border-2);
    border-radius: var(--t99-r-md);
    background: var(--t99-paper);
    font-family: var(--t99-font-body);
    font-size: 16px;             /* 16px stops iOS zooming the viewport on focus */
    color: var(--t99-text);
    transition: border-color var(--t99-dur-2) var(--t99-ease), box-shadow var(--t99-dur-2) var(--t99-ease);
}
textarea.t99-input { min-height: 110px; padding-block: var(--t99-s-3); line-height: 1.5; }
.t99-input::placeholder { color: #9A9AB0; }
.t99-input:hover { border-color: var(--t99-border-2); }
.t99-input:focus { outline: none; border-color: var(--t99-electric); box-shadow: var(--t99-e-focus); }
.t99-input[readonly] { background: var(--t99-canvas); }
.t99-input[disabled] { background: var(--t99-canvas-2); color: var(--t99-text-3); cursor: not-allowed; }
.t99-help { font-size: var(--t99-fs-xs); color: var(--t99-text-3); }

/* Errors sit under the field they belong to, carry an icon as well as colour,
   and are announced via aria-live by the markup. */
.t99-input.is-invalid, .t99-input[aria-invalid="true"] {
    border-color: var(--t99-flare-ink);
    box-shadow: 0 0 0 3px var(--t99-flare-soft);
}
.t99-error {
    display: flex; align-items: flex-start; gap: 6px;
    font-size: var(--t99-fs-xs);
    font-weight: 600;
    color: var(--t99-flare-ink);
}
.t99-error::before { content: "!"; flex: 0 0 auto; width: 14px; height: 14px; display: grid; place-items: center; border-radius: 50%; background: var(--t99-flare-ink); color: #fff; font-size: 10px; line-height: 1; margin-top: 2px; }

/* ---------------------------------------------------------------------------
   15. HERO (marketing + listing header)
   --------------------------------------------------------------------------- */
.t99-hero {
    position: relative;
    background: var(--t99-ink);
    color: #fff;
    overflow: hidden;
    padding-block: var(--t99-s-8);
}
.t99-hero::before {
    content: "";
    position: absolute;
    top: -30%; right: -10%;
    width: 60vw; height: 60vw;
    max-width: 760px; max-height: 760px;
    background: var(--t99-grad);
    filter: blur(110px);
    opacity: .32;
    pointer-events: none;
}
.t99-hero__inner { position: relative; z-index: 1; max-width: 46rem; }
.t99-hero h1 { color: #fff; font-size: clamp(2.25rem, 1.4rem + 3.4vw, var(--t99-fs-4xl)); margin: 0 0 var(--t99-s-3); }
.t99-hero p  { color: rgba(255,255,255,.76); font-size: var(--t99-fs-md); margin: 0 0 var(--t99-s-5); max-width: 60ch; }
.t99-hero__actions { display: flex; gap: var(--t99-s-3); flex-wrap: wrap; }

.t99-gradtext {
    background: var(--t99-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Stat band */
.t99-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--t99-s-4); }
.t99-stat__value {
    font-family: var(--t99-font-display);
    font-size: clamp(1.75rem, 1rem + 2.4vw, var(--t99-fs-2xl));
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.t99-stat__label { font-size: var(--t99-fs-sm); color: var(--t99-text-3); margin-top: 6px; }
.t99-section--ink .t99-stat__label { color: var(--t99-text-on-ink-2); }

/* ---------------------------------------------------------------------------
   16. SCROLL REVEAL
   Applied by t99-modern.js via IntersectionObserver. The `.t99-reveal` class
   is only added by the script, so content stays visible when JS is off.
   --------------------------------------------------------------------------- */
.t99-reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--t99-ease-out), transform 500ms var(--t99-ease-out); }
.t99-reveal.is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------------------
   17. UTILITIES
   --------------------------------------------------------------------------- */
.t99-skip {
    position: absolute; left: var(--t99-s-4); top: -60px;
    z-index: var(--t99-z-toast);
    padding: var(--t99-s-3) var(--t99-s-4);
    background: var(--t99-electric);
    color: #fff;
    border-radius: 0 0 var(--t99-r-md) var(--t99-r-md);
    font-weight: 600;
    text-decoration: none;
    transition: top var(--t99-dur-2) var(--t99-ease);
}
.t99-skip:focus { top: 0; color: #fff; }

.t99-sr {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

.t99-divider { height: 1px; background: var(--t99-border); border: 0; margin-block: var(--t99-s-5); }

/* ---------------------------------------------------------------------------
   18. REDUCED MOTION
   Every animation above is decorative. Honour the OS setting.
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    body.t99m *,
    body.t99m *::before,
    body.t99m *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .t99-reveal { opacity: 1; transform: none; }
    .t99-grid > * { animation: none; opacity: 1; }
}

/* ---------------------------------------------------------------------------
   19. PRINT  (tickets and order confirmations are printed)
   --------------------------------------------------------------------------- */
@media print {
    .t99-header, .t99-footer, .t99-toolbar, .t99-paybar, .t99-scrim, .t99-mega { display: none !important; }
    body.t99m { background: #fff; }
    .t99-card, .t99-summary { box-shadow: none; border-color: #ccc; }
}

/* ===========================================================================
   20. LEGACY BRIDGE
   ---------------------------------------------------------------------------
   Restyles EXISTING Bootstrap/legacy markup on the pages that opt in, so the
   old controls adopt the new language without their class names, ids or event
   handlers being touched. Every selector here is scoped to `body.t99m` plus a
   specific id or legacy class, so nothing leaks to pages that do not opt in.
   =========================================================================== */

/* -- 20.1 Events listing toolbar ----------------------------------------- */

/* #diveventslisttomove is the band holding the H1, the sort control and the
   type filters. events.js scrolls to this id, so the id must not change. */
body.t99m #diveventslisttomove {
    position: sticky;
    top: 0;
    z-index: var(--t99-z-sticky);
    background: rgba(255, 255, 255, .92) !important;   /* overrides .bg-light */
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--t99-border) !important;
}

body.t99m #diveventslisttomove h1 {
    font-family: var(--t99-font-display);
    font-size: clamp(1.75rem, 1.2rem + 1.8vw, var(--t99-fs-xl));
    font-weight: 800;
    letter-spacing: -.02em;
}
/* The legacy ::after underline decoration fights the new type. */
body.t99m #diveventslisttomove .li-style::after,
body.t99m #diveventslisttomove .li-style::before { display: none; }

body.t99m #diveventslisttomove .text-red-col { color: var(--t99-electric) !important; }

/* The filter chips sit on their own full-width line under the sort control
   instead of competing with it for horizontal space. */
body.t99m .head-select-box .d-flex.flex-sm-nowrap { flex-wrap: wrap !important; }
body.t99m .t99-filterbar { flex: 1 0 100%; margin-top: var(--t99-s-3); }
@media (min-width: 576px) { body.t99m .t99-filterbar { display: flex; justify-content: flex-end; } }

/* Each pill button becomes a chip. The buttons keep .dropdown-item (Bootstrap
   needs nothing from it here) and keep .active, which Bootstrap's Tab writes. */
body.t99m #event-pills-tab { gap: var(--t99-s-2); }
body.t99m #event-pills-tab .nav-item { display: flex; }
body.t99m #event-pills-tab .dropdown-item {
    display: inline-flex;
    align-items: center;
    width: auto;
    min-height: 38px;
    padding: 0 var(--t99-s-4);
    border: 1px solid var(--t99-border);
    border-radius: var(--t99-r-pill);
    background: var(--t99-paper);
    color: var(--t99-text-2);
    font-family: var(--t99-font-body);
    font-size: var(--t99-fs-sm);
    font-weight: 500;
    white-space: nowrap;
    transition: all var(--t99-dur-2) var(--t99-ease);
}
body.t99m #event-pills-tab .dropdown-item:hover {
    background: var(--t99-paper);
    border-color: var(--t99-electric);
    color: var(--t99-electric);
}
body.t99m #event-pills-tab .dropdown-item.active,
body.t99m #event-pills-tab .dropdown-item[aria-selected="true"] {
    background: var(--t99-ink);
    border-color: var(--t99-ink);
    color: #fff;
}
body.t99m #event-pills-tab .dropdown-item:focus-visible {
    outline: none;
    box-shadow: var(--t99-e-focus);
}

/* Sort control: the legacy input-group is flattened into one pill. */
body.t99m .head-select-box .input-group {
    width: auto;
    border: 1px solid var(--t99-border);
    border-radius: var(--t99-r-pill);
    background: var(--t99-paper);
    overflow: hidden;
}
body.t99m .head-select-box .input-group-text {
    border: 0 !important;
    background: transparent !important;
    color: var(--t99-text-3);
    padding-inline: var(--t99-s-3) var(--t99-s-1);
}
body.t99m .head-select-box .form-select {
    border: 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    min-height: 38px;
    padding-left: 0;
    font-family: var(--t99-font-body);
    font-size: var(--t99-fs-sm);
    font-weight: 500;
    color: var(--t99-text);
}

/* "View All" */
body.t99m .head-select-box ~ *,
body.t99m .t99-toolbar__controls > .btn-outline-danger {
    border-radius: var(--t99-r-pill);
}
body.t99m .t99-toolbar__controls .btn-outline-danger {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    border-color: var(--t99-border-2);
    color: var(--t99-text);
    font-family: var(--t99-font-display);
    font-weight: 600;
    font-size: var(--t99-fs-sm);
}
body.t99m .t99-toolbar__controls .btn-outline-danger:hover {
    background: var(--t99-ink);
    border-color: var(--t99-ink);
    color: #fff;
}

/* -- 20.2 Results area ---------------------------------------------------- */

body.t99m #eventspartial { padding-block: var(--t99-s-5); }

/* The server-rendered loading skeleton inside #eventspartial still uses the
   legacy .card1 + Bootstrap .placeholder markup. Give it the new card's box so
   the swap to real results does not shift the layout. */
body.t99m #eventspartial .card1 {
    border-radius: var(--t99-r-lg) !important;
    border-color: var(--t99-border) !important;
    box-shadow: none !important;
}
body.t99m #eventspartial #ticket-event figure { aspect-ratio: 16 / 10; margin: 0; overflow: hidden; }
body.t99m #eventspartial #ticket-event figure img { width: 100%; height: 100%; object-fit: contain; opacity: .25; }

/* -- 20.3 Legacy footer --------------------------------------------------- */
/* Lift the hand-rolled footers in the MVC views onto the new ink surface
   without rewriting their markup. */
body.t99m .footer-block {
    background: var(--t99-ink) !important;
    font-size: var(--t99-fs-sm);
}
body.t99m .footer-block .footer-menu a { transition: color var(--t99-dur-2) var(--t99-ease); }
body.t99m .footer-block .footer-menu a:hover { color: #fff !important; }
body.t99m .footer-block h4,
body.t99m .footer-block .t99-footer__title {
    font-family: var(--t99-font-display);
    font-size: var(--t99-fs-xs);
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* -- 20.4 Legacy header --------------------------------------------------- */
body.t99m header.bg-dark1,
body.t99m header.shadow-tc {
    background: var(--t99-ink) !important;
    border-bottom: 1px solid var(--t99-border-ink);
    transition: box-shadow var(--t99-dur-2) var(--t99-ease);
}
body.t99m header.is-stuck { box-shadow: var(--t99-e-3); }

/* -- 20.5 Legacy buttons -------------------------------------------------- */
/* .fancy-btn is the site-wide CTA. Reshape it rather than replace it so every
   existing instance picks up the new language. */
body.t99m .btn {
    border-radius: var(--t99-r-pill);
    font-family: var(--t99-font-display);
    font-weight: 600;
    letter-spacing: .01em;
}
body.t99m .btn-danger,
body.t99m .btn-primary-c {
    background: var(--t99-electric);
    border-color: var(--t99-electric);
}
body.t99m .btn-danger:hover,
body.t99m .btn-primary-c:hover {
    background: var(--t99-electric-600);
    border-color: var(--t99-electric-600);
}

/* -- 20.6 Count-up stat band --------------------------------------------- */
body.t99m .count-section {
    background: var(--t99-paper);
    border-block: 1px solid var(--t99-border);
}

/* -- 20.7 Footer Solutions band (static marketing pages) ------------------
   Inserted as the first child of <footer> on every Tickets99 static page.
   Plain links, no JS: this is the half of the navigation fix that works for
   crawlers and for anyone with scripting unavailable. */
.t99-footer-solutions {
    background: var(--t99-ink-2);
    border-bottom: 1px solid var(--t99-border-ink);
    padding-block: var(--t99-s-6);
}
.t99-footer-solutions .t99-overline { color: #fff; opacity: .55; margin-bottom: var(--t99-s-4); }
.t99-footer-solutions__grid {
    display: grid;
    gap: var(--t99-s-2) var(--t99-s-5);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 0;
}
@media (min-width: 768px)  { .t99-footer-solutions__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .t99-footer-solutions__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.t99-footer-solutions__grid a {
    display: block;
    padding-block: 7px;
    color: rgba(255, 255, 255, .72);
    font-size: var(--t99-fs-sm);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color var(--t99-dur-2) var(--t99-ease), border-color var(--t99-dur-2) var(--t99-ease);
}
.t99-footer-solutions__grid a:hover {
    color: #fff;
    border-bottom-color: var(--t99-electric);
}

/* -- 20.8 "Our Services" dropdown, upgraded ------------------------------
   The pages that already carry a Bootstrap "Our Services" dropdown keep it -
   same trigger, same data-bs-toggle, same open/close code. Only its contents
   changed (6 items -> all 11) and it is restyled here from a narrow dark menu
   into a proper light mega panel. */
.dropdown-menu .t99-mega__dd {
    display: grid;
    gap: var(--t99-s-2);
    grid-template-columns: 1fr;
    list-style: none;
    margin: 0;
    padding: 0;
}
@media (min-width: 768px)  { .dropdown-menu .t99-mega__dd { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .dropdown-menu .t99-mega__dd { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

body.t99m .dropdown-menu.min-w-50pr {
    background: var(--t99-paper) !important;   /* overrides .bg-dark1 */
    border: 1px solid var(--t99-border);
    border-radius: var(--t99-r-lg);
    box-shadow: var(--t99-e-4);
    padding: var(--t99-s-4);
    /* The legacy menu was min-width:50% and clipped the 11-item grid. */
    width: min(1120px, calc(100vw - 2rem));
    max-height: min(74vh, 760px);
    overflow-y: auto;
}

/* -- 20.9 Checkout (/buy) -------------------------------------------------
   PRESENTATION ONLY. Nothing below changes markup, ids, field names or the
   step state machine in Purchase/Index.cshtml. nextStepFun()/prevStepFun()
   keep writing .active and .valid on #checkout-progress .step exactly as
   before; these rules only change what those two classes LOOK like.

   NOT VERIFIED IN A BROWSER: there is no bookable event on the public site
   and no local runtime in this environment, so this section was written
   against the selectors in styles.css:1504-1548 rather than against a
   rendered page. Treat it as needing a visual pass on a real checkout. */

/* Stepper ---------------------------------------------------------------- */
body.t99m #checkout-progress .status-bar { background-color: var(--t99-electric); }

body.t99m #checkout-progress .progress-bar-checkout .step .step-label {
    font-family: var(--t99-font-display);
    font-weight: 600;
    letter-spacing: .01em;
    color: var(--t99-text-3);
}

/* The markup puts an <i class="icon-check"> inside EVERY step, including the
   ones the user has not reached, so Register / Verify / Checkout each showed
   a tick before anything had been done. Hide the tick on steps that are
   neither current nor completed, leaving an empty circle - the icon element
   itself is left in place because nextStepFun() toggles its d-none class. */
body.t99m #checkout-progress .progress-bar-checkout .step:not(.active):not(.valid) i.icon-check {
    visibility: hidden;
}
body.t99m #checkout-progress .progress-bar-checkout .step.active i,
body.t99m #checkout-progress .progress-bar-checkout .step.active .step-label {
    color: var(--t99-electric) !important;
}
body.t99m #checkout-progress .progress-bar-checkout .step.active:after {
    border: 2px solid var(--t99-electric);
    background: var(--t99-electric);
    box-shadow: 0 0 0 4px var(--t99-electric-soft);
}
/* A completed step reads as done, not as "another active one". */
body.t99m #checkout-progress .progress-bar-checkout .step.valid:after {
    background-color: var(--t99-mint);
    border: 2px solid var(--t99-mint);
    box-shadow: none;
}
body.t99m #checkout-progress .progress-bar-checkout .step.valid .step-label {
    color: var(--t99-mint-ink);
}

/* Panels ----------------------------------------------------------------- */
body.t99m .divpurchasetickets .card,
body.t99m .cart-item,
body.t99m .checkout-block .card {
    border-radius: var(--t99-r-md);
    border-color: var(--t99-border);
}

/* Prices: tabular figures so a total does not shift width as it updates. */
body.t99m .tickpp,
body.t99m .cart-currency,
body.t99m .curreny-sign,
body.t99m .price-mob {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}
body.t99m .tickpp { font-family: var(--t99-font-display); font-weight: 700; }

/* Inputs: 16px min on mobile stops iOS zooming the viewport on focus, which
   on a checkout form throws the user out of the layout mid-entry. */
body.t99m .form-control,
body.t99m .form-select {
    border-radius: var(--t99-r-md);
    border-color: var(--t99-border-2);
    font-family: var(--t99-font-body);
}
body.t99m .form-control:focus,
body.t99m .form-select:focus {
    border-color: var(--t99-electric);
    box-shadow: var(--t99-e-focus);
}
@media (max-width: 767.98px) {
    body.t99m .form-control,
    body.t99m .form-select { font-size: 16px; }
}
body.t99m .form-control.is-invalid,
body.t99m .was-validated .form-control:invalid {
    border-color: var(--t99-flare-ink);
}
body.t99m .invalid-feedback { color: var(--t99-flare-ink); font-weight: 600; }

/* Disabled controls must look disabled, not merely inert. */
body.t99m .btn:disabled,
body.t99m .btn.disabled { opacity: .45; }

/* -- 20.10 Event detail page (/e/{code}) ---------------------------------
   PRESENTATION ONLY. No markup, id, onclick or data-url is touched; every
   selector below targets classes the page already emits.
   Verified against https://www.tickets99.com/e/flyzonetrampolinepark. */

/* Hero. The page layers a blurred copy of the artwork behind a contained
   copy, which is the right technique for mixed-aspect event posters; it
   just wants a softer frame.

   The container is .event-View-detail. Do NOT use .event-banner-box for
   this: despite the name it is a GENERIC SECTION WRAPPER used for the
   title block and for "Organized By" as well, so styling it as hero media
   painted the Organized By heading dark-on-dark. */
body.t99m .event-View-detail {
    border-radius: var(--t99-r-xl) !important;
    overflow: hidden;
}

/* Title / summary / CTA panels. */
body.t99m .shadow-et {
    box-shadow: var(--t99-e-2) !important;
    border-radius: var(--t99-r-lg) !important;
}

/* The "FROM x / BOOK NOW" bar is the page's single primary action. Give it
   the brand gradient, a real touch height and a press state, and - the
   substantive change - make its panel STICKY on desktop so the CTA stays
   with the reader down a 6,000px page instead of scrolling away in the
   first screen. Mobile keeps the normal flow; a fixed bar there would
   collide with the existing .sticky-bottom block. */
body.t99m .register-btn {
    background: var(--t99-grad-cta) !important;
    background-size: 160% 160% !important;
    border: 0 !important;
    border-radius: var(--t99-r-pill) !important;
    min-height: 56px;
    font-family: var(--t99-font-display);
    letter-spacing: .02em;
    transition: background-position var(--t99-dur-3) var(--t99-ease),
                transform var(--t99-dur-1) var(--t99-ease),
                box-shadow var(--t99-dur-2) var(--t99-ease);
}
body.t99m .register-btn:hover {
    background-position: 100% 0 !important;
    transform: translateY(-1px);
    box-shadow: var(--t99-e-3);
}
body.t99m .register-btn:active { transform: translateY(0) scale(.99); }
body.t99m .register-btn .curreny-sign,
body.t99m .register-btn .currency-data { font-variant-numeric: tabular-nums; }

/* NOT sticky. position:sticky on this panel applies cleanly but buys almost
   nothing: its containing block is the short row it shares with the title
   card, so it releases after ~400px and is gone for the remaining ~5,500px
   of the page. Measured on /e/flyzonetrampolinepark - the panel's top was
   -628px at scrollY 1100. The persistent CTA is .t99-bookbar below instead. */

/* Persistent book bar. Appears only once the real Book Now control has
   scrolled out of view, and re-hides when it comes back, so there is never
   a duplicate CTA on screen. It is a plain element that calls the SAME
   redirecttoticket() handler with the SAME data-url as the original - no
   new endpoint, no new behaviour, nothing to keep in sync but the price
   text, which is copied from the original at render time. */
.t99-bookbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: var(--t99-z-sticky);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--t99-s-4);
    padding: var(--t99-s-3) var(--t99-s-4);
    padding-bottom: max(var(--t99-s-3), env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid var(--t99-border);
    box-shadow: 0 -8px 24px rgba(11, 11, 18, .10);
    transform: translateY(110%);
    transition: transform var(--t99-dur-3) var(--t99-ease-out);
}
.t99-bookbar.is-in { transform: none; }
.t99-bookbar__meta { min-width: 0; }
.t99-bookbar__name {
    margin: 0;
    font-family: var(--t99-font-display);
    font-size: var(--t99-fs-sm);
    font-weight: 700;
    color: var(--t99-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.t99-bookbar__price {
    margin: 0;
    font-size: var(--t99-fs-xs);
    color: var(--t99-text-3);
    font-variant-numeric: tabular-nums;
}
.t99-bookbar .t99-btn { flex: 0 0 auto; }

@media (prefers-reduced-motion: reduce) {
    .t99-bookbar { transition: none; }
}

/* Views / Interested counters read as data, not as body copy. */
body.t99m #allviewsofeventdiv { font-variant-numeric: tabular-nums; }

/* Section rules ("ORGANIZED BY", "ABOUT EVENT"). */
body.t99m #about-event h2,
body.t99m #about-event h3,
body.t99m .dont-org-spons h6,
body.t99m .organiz-box h6 {
    font-family: var(--t99-font-display);
    letter-spacing: .06em;
}

/* Organizer / sponsor strip. */
body.t99m .dont-org-spons .border-radius,
body.t99m .divsponsors { border-radius: var(--t99-r-md) !important; }

/* Tab panes used for Agenda / Speakers / FAQ etc. */
body.t99m .tab-content.shadow-tc {
    border-radius: 0 0 var(--t99-r-lg) var(--t99-r-lg) !important;
    box-shadow: var(--t99-e-2) !important;
}

/* -- 20.11 Booking engine: date + time step ------------------------------
   #datepickerCalendar is an INLINE jQuery UI datepicker. purchase_tickets.js
   returns "validDate activeDate" from beforeShowDay for sellable days; those
   two class names are the contract and are NOT changed here, only restyled.

   The live picker paints every open day in saturated green and the selected
   day navy. Green reading as "available" collides with green meaning "step
   complete" in the stepper directly above it, so availability moves to the
   brand's electric tint and the SELECTION becomes the only solid cell. */
body.t99m #datepickerCalendar.hasDatepicker,
body.t99m #datepickerCalendar .ui-datepicker {
    width: 100%;
    border: 1px solid var(--t99-border);
    border-radius: var(--t99-r-lg);
    background: var(--t99-paper);
    padding: var(--t99-s-3);
    font-family: var(--t99-font-body);
}
body.t99m #datepickerCalendar .ui-datepicker-header {
    background: transparent;
    border: 0;
    padding-block: var(--t99-s-2);
}
body.t99m #datepickerCalendar .ui-datepicker-title {
    font-family: var(--t99-font-display);
    font-weight: 700;
    font-size: var(--t99-fs-base);
    color: var(--t99-text);
}
body.t99m #datepickerCalendar th {
    font-size: var(--t99-fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--t99-text-3);
    padding-block: var(--t99-s-2);
}
body.t99m #datepickerCalendar td { padding: 2px; }
body.t99m #datepickerCalendar td a,
body.t99m #datepickerCalendar td span {
    display: grid;
    place-items: center;
    min-height: 40px;
    border: 1px solid transparent;
    border-radius: var(--t99-r-md);
    background: transparent;
    color: var(--t99-text-3);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: center;
    transition: background-color var(--t99-dur-1) var(--t99-ease),
                color var(--t99-dur-1) var(--t99-ease),
                border-color var(--t99-dur-1) var(--t99-ease);
}
/* Closed days: muted, obviously inert. */
body.t99m #datepickerCalendar td.ui-datepicker-unselectable span {
    color: #B9B9C8;
    background: var(--t99-canvas);
}
/* Open days. */
body.t99m #datepickerCalendar td.validDate a,
body.t99m #datepickerCalendar td.activeDate a {
    background: var(--t99-electric-soft);
    color: var(--t99-electric-700);
}
body.t99m #datepickerCalendar td.validDate a:hover,
body.t99m #datepickerCalendar td.activeDate a:hover {
    background: #E3DCFF;
    border-color: var(--t99-electric);
    color: var(--t99-electric-700);
}
/* The chosen day - the single solid cell on the grid. */
body.t99m #datepickerCalendar td a.ui-state-active,
body.t99m #datepickerCalendar td a.ui-state-highlight.ui-state-active {
    background: var(--t99-ink) !important;
    border-color: var(--t99-ink) !important;
    color: #fff !important;
}
/* Today, when it is not the selection. */
body.t99m #datepickerCalendar td a.ui-state-highlight:not(.ui-state-active) {
    border-color: var(--t99-electric);
}
body.t99m #datepickerCalendar .ui-datepicker-prev,
body.t99m #datepickerCalendar .ui-datepicker-next {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid var(--t99-border);
    background: var(--t99-paper);
    cursor: pointer;
    top: 6px;
}
body.t99m #datepickerCalendar .ui-datepicker-prev.ui-state-disabled,
body.t99m #datepickerCalendar .ui-datepicker-next.ui-state-disabled {
    opacity: .35;
    cursor: not-allowed;
}

/* The Available / Closed legend - the swatches must match the cells above. */
body.t99m #PopUpTicketDates .icon-lens.text-success { color: var(--t99-electric) !important; }
body.t99m #PopUpTicketDates .icon-lens.text-secondary { color: #B9B9C8 !important; }

/* Time slots. .EventDatesDiv is generated by _t99ShowTimes(); its
   onclick="BindDateWiseTickets(this)" and every data-* attribute are
   untouched - only btn-outline-success's appearance is replaced, because
   that green clashed with the stepper's "step complete" green. */
body.t99m #TikcetDates { gap: var(--t99-s-2) !important; }
body.t99m .EventDatesDiv.btn.btn-outline-success {
    min-height: 44px;                    /* was ~31px: under the 44px floor */
    padding-inline: var(--t99-s-4);
    border: 1px solid var(--t99-border-2) !important;
    border-radius: var(--t99-r-pill) !important;
    background: var(--t99-paper) !important;
    color: var(--t99-text) !important;
    font-family: var(--t99-font-display);
    font-weight: 600;
    font-size: var(--t99-fs-sm);
    font-variant-numeric: tabular-nums;
    transition: all var(--t99-dur-2) var(--t99-ease);
}
body.t99m .EventDatesDiv.btn.btn-outline-success:hover {
    border-color: var(--t99-electric) !important;
    background: var(--t99-electric-soft) !important;
    color: var(--t99-electric-700) !important;
    transform: translateY(-1px);
}
body.t99m .EventDatesDiv.btn.btn-outline-success:active { transform: none; }

/* -- 20.12 Booking engine: ticket rows + cart ---------------------------- */

body.t99m .purchase-tickets .Tickets-li {
    padding: var(--t99-s-4) !important;
    margin-bottom: var(--t99-s-3);
    border: 1px solid var(--t99-border) !important;
    border-radius: var(--t99-r-md);
    background: var(--t99-paper);
    transition: border-color var(--t99-dur-2) var(--t99-ease),
                box-shadow var(--t99-dur-2) var(--t99-ease);
}
body.t99m .purchase-tickets .Tickets-li:hover { border-color: var(--t99-border-2) !important; }
body.t99m .purchase-tickets .Tickets-li #Name {
    font-family: var(--t99-font-display);
    font-size: var(--t99-fs-base);
    font-weight: 700;
}

/* Quantity stepper. The two tap targets were 30x30 (.iconSize-bac) - the
   most-tapped control in the whole funnel, below the 44px floor on every
   platform. The size bump is scoped to .ticketquantity because
   .iconSize-bac is also used by carousel arrows and sponsor chips. */
body.t99m .ticketquantity {
    align-items: center;
    gap: 0 !important;
    border: 1px solid var(--t99-border-2);
    border-radius: var(--t99-r-pill);
    overflow: hidden;
    background: var(--t99-paper);
}
body.t99m .ticketquantity .input-number-decrement,
body.t99m .ticketquantity .input-number-increment {
    width: 44px;
    height: 44px;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--t99-paper);
    color: var(--t99-text) !important;
    font-size: 18px;
    line-height: 1;
    transition: background-color var(--t99-dur-1) var(--t99-ease);
}
body.t99m .ticketquantity .input-number-decrement:hover,
body.t99m .ticketquantity .input-number-increment:hover { background: var(--t99-canvas); }
body.t99m .ticketquantity .input-number-1 {
    width: 52px;
    height: 44px;
    border: 0 !important;
    border-inline: 1px solid var(--t99-border) !important;
    background: var(--t99-paper);
    color: var(--t99-text) !important;
    font-family: var(--t99-font-display);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
/* value 0 reads as "none chosen" rather than as a filled-in figure. */
body.t99m .ticketquantity .input-number-1[value="0"] { color: var(--t99-text-3) !important; }

body.t99m .Tickets-li .tickpp {
    font-family: var(--t99-font-display);
    font-weight: 700;
    font-size: var(--t99-fs-md);
    color: var(--t99-text);
}

/* Order summary. Sticky from lg up so the running total and the primary
   action stay on screen while the ticket list is scrolled. */
body.t99m .next-box {
    border: 1px solid var(--t99-border) !important;
    border-radius: var(--t99-r-lg) !important;
    box-shadow: var(--t99-e-2);
}
@media (min-width: 992px) {
    body.t99m .col-lg-4 > .next-box { position: sticky; top: var(--t99-s-5); }
}
body.t99m #TicketCart { font-variant-numeric: tabular-nums; }
body.t99m #TicketCart img { border-radius: var(--t99-r-md); }

/* "change date" is navigation, not decoration. */
body.t99m .changeDate-box .btn { border-radius: var(--t99-r-pill); }

/* -- 20.13 Legacy brand red -> text-safe flare ---------------------------
   The old identity's red is --col-secondary-color: #ED1C24. Measured on the
   live event page it gives 4.38:1 both ways - as link text on white and as
   white text on a red fill - so it misses WCAG AA (4.5:1) for body-size
   text in every place it is used: "Get Directions", "Show more", the footer
   "Home" link, the newsletter Submit button, the left rail chip.

   --t99-flare-ink (#D62B43) is the same hue pulled to 4.90:1. Remapping the
   legacy utilities to it fixes the contrast and folds the last of the old
   palette into the new one, without editing common.css (which the admin
   console and the subdomain app also load).

   Scoped to body.t99m, so only the pages that opted in are affected. */
body.t99m .text-red-col:not(#diveventslisttomove .text-red-col),
body.t99m .red,
body.t99m a.text-danger {
    color: var(--t99-flare-ink) !important;
}
body.t99m .bg-red-col,
body.t99m .bg-danger {
    background-color: var(--t99-flare-ink) !important;
}
body.t99m .btn-outline-danger {
    --bs-btn-color: var(--t99-flare-ink);
    --bs-btn-border-color: var(--t99-border-2);
    --bs-btn-hover-bg: var(--t99-flare-ink);
    --bs-btn-hover-border-color: var(--t99-flare-ink);
}
/* The left rail chip sets its own red; same treatment. */
body.t99m .event-tab-sidebar .active,
body.t99m .sidebar-menu .active { background-color: var(--t99-flare-ink) !important; }

/* -- 20.14 Two remaining AA failures on the event detail page ------------
   Found by sweeping every leaf text node on /e/flyzonetrampolinepark and
   comparing each against its resolved background. Both predate this work;
   both are one line to fix once the new tokens exist. */

/* 1. The left rail's current section ("About") is white on #ED1C24 = 4.38:1.
      .leftmenubar scopes this to that rail, so the listing page's
      #event-pills-tab chips and the checkout's pills are untouched. */
body.t99m .leftmenubar .nav-pills .nav-link.active {
    background-color: var(--t99-flare-ink) !important;
}

/* 2. The footer marks the current page by overriding .text-white with the
      brand red, giving red-on-ink at 4.48:1 - and on a dark surface that
      red would still only reach 3.8:1 even after the remap in 20.13. On an
      ink footer the current page should simply stay white; the <a> already
      carries .text-white, so this just lets it win. */
body.t99m .footer-menu a.active,
body.t99m .footer-menu a.active.text-white {
    color: #fff !important;
}

/* ===========================================================================
   21. PER-EVENT BRANDING
   ---------------------------------------------------------------------------
   On event-scoped pages the accent is the ORGANISER's colour, not Tickets99's.

   Tbl_LEvents.PrimaryThemeColour / SecondaryThemeColour are resolved by
   Tickets99_CL.Helpers.ThemeConfigResolver into --col-primary-color and
   friends, emitted by Views/Shared/_ThemeVars.cshtml. The subdomain app has
   done this for a while; /e/{code} and /buy/{code}/... on www did not, which
   is why the same event looked organiser-branded on <code>.tickets99.com and
   platform-branded here.

   Opt in with class="t99-event-theme" on <body>, alongside t99m. Only the two
   event-scoped views carry it - the marketing site, the events listing and the
   blog stay on the Tickets99 accent, because those surfaces are Tickets99's
   own and must not inherit one organiser's colour.

   The fallbacks are belt and braces. ThemeConfigResolver already defaults to
   #171766 / #ed1c24 for an event with nothing configured, and common.css
   declares both variables at :root, so --col-primary-color is always defined.
   The var() fallbacks only matter if this class is ever used on a page that
   renders neither, in which case it degrades to the Tickets99 accent rather
   than to an invalid value.
   =========================================================================== */
body.t99m.t99-event-theme {
    --t99-electric:      var(--col-primary-color, #171766);
    --t99-electric-600:  var(--col-primary-hover, #23238C);
    --t99-electric-700:  var(--col-primary-color, #171766);
    --t99-electric-soft: var(--col-primary-soft, #ECECF6);
    --t99-electric-rgb:  var(--col-primary-rgb, 23, 23, 102);

    /* The gradient has to be rebuilt from the live variables rather than
       inherited, or a brand-coloured page would still sweep to the Tickets99
       indigo at its first stop. */
    --t99-grad:     linear-gradient(135deg,
                        var(--col-primary-color, #171766) 0%,
                        var(--col-secondary-color, #ed1c24) 100%);
    --t99-grad-cta: var(--t99-grad);
}

/* Text ON the organiser's colour uses the contrast value the resolver
   computed for it - near-black on a pale brand colour, white on a dark one -
   so an organiser who picks lemon yellow still gets a readable button. This
   is the one thing a fixed white would get wrong, and it is the reason the
   resolver computes a contrast at all. */
body.t99m.t99-event-theme .t99-btn--primary,
body.t99m.t99-event-theme .t99-btn--grad,
body.t99m.t99-event-theme .register-btn {
    color: var(--col-primary-contrast, #fff) !important;
}

/* Same for the checkout stepper's filled dot and the calendar's selected day,
   both of which paint the accent behind small text. */
body.t99m.t99-event-theme #checkout-progress .progress-bar-checkout .step.active:after {
    box-shadow: 0 0 0 4px var(--col-primary-soft, #ECECF6);
}

/* ===========================================================================
   22. MARKETING PAGE SECTIONS
   ---------------------------------------------------------------------------
   Components for the brochure/landing pages under /solutions/ and the root
   marketing pages. Structure follows the pattern the owner named as the
   reference (quickeventstaff.com): hero -> problem -> capability grid ->
   numbers -> process -> proof -> FAQ -> related -> lead form.

   Everything here is built from the section 2 tokens, so a page inherits the
   Tickets99 accent, and an event-scoped page inheriting t99-event-theme would
   pick up the organiser's colour without a single override.
   =========================================================================== */

/* -- 22.1 Marketing hero -------------------------------------------------- */
.t99-mhero {
    position: relative;
    background: var(--t99-ink);
    color: #fff;
    overflow: hidden;
    padding-block: var(--t99-s-8) var(--t99-s-7);
}
/* Two soft brand washes instead of a stock photo. A real event photograph
   belongs here when one is available - .t99-mhero__media is the slot - but the
   page must look finished without one, because most of these pages have no
   photography at all today. */
.t99-mhero::before,
.t99-mhero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}
.t99-mhero::before {
    top: -45%; right: -5%;
    width: 46vw; height: 46vw;
    max-width: 620px; max-height: 620px;
    background: var(--t99-electric);
    opacity: .55;
}
.t99-mhero::after {
    bottom: -55%; left: -8%;
    width: 38vw; height: 38vw;
    max-width: 520px; max-height: 520px;
    background: var(--t99-flare);
    opacity: .22;
}
.t99-mhero__inner { position: relative; z-index: 1; }
.t99-mhero__grid {
    display: grid;
    gap: var(--t99-s-6);
    grid-template-columns: 1fr;
    align-items: center;
}
@media (min-width: 992px) {
    .t99-mhero__grid { grid-template-columns: 1.15fr .85fr; gap: var(--t99-s-8); }
}
.t99-mhero h1 {
    color: #fff;
    font-size: clamp(2.1rem, 1.2rem + 3.2vw, 3.4rem);
    letter-spacing: -.03em;
    margin: 0 0 var(--t99-s-4);
}
.t99-mhero__lede {
    color: rgba(255, 255, 255, .80);
    font-size: var(--t99-fs-md);
    line-height: 1.6;
    max-width: 58ch;
    margin: 0 0 var(--t99-s-5);
}
.t99-mhero__cta { display: flex; gap: var(--t99-s-3); flex-wrap: wrap; }
.t99-mhero__media {
    border-radius: var(--t99-r-xl);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .04);
    aspect-ratio: 4 / 3;
}
.t99-mhero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Trust strip under the hero copy. */
.t99-trust {
    display: flex;
    flex-wrap: wrap;
    gap: var(--t99-s-5);
    margin-top: var(--t99-s-6);
    padding-top: var(--t99-s-5);
    border-top: 1px solid rgba(255, 255, 255, .14);
}
.t99-trust__n {
    font-family: var(--t99-font-display);
    font-size: var(--t99-fs-xl);
    font-weight: 800;
    line-height: 1;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.t99-trust__l {
    display: block;
    margin-top: 4px;
    font-size: var(--t99-fs-xs);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .62);
}

/* -- 22.2 Problem cards --------------------------------------------------- */
.t99-prob {
    display: flex;
    gap: var(--t99-s-3);
    padding: var(--t99-s-4);
    background: var(--t99-paper);
    border: 1px solid var(--t99-border);
    border-left: 3px solid var(--t99-flare-ink);
    border-radius: var(--t99-r-md);
    height: 100%;
}
.t99-prob__i {
    flex: 0 0 auto;
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: var(--t99-r-sm);
    background: var(--t99-flare-soft);
    color: var(--t99-flare-ink);
}
.t99-prob h3 {
    margin: 0 0 4px;
    font-size: var(--t99-fs-base);
    font-weight: 700;
}
.t99-prob p { margin: 0; font-size: var(--t99-fs-sm); color: var(--t99-text-3); line-height: 1.5; }

/* -- 22.3 Capability cards ------------------------------------------------ */
.t99-cap {
    padding: var(--t99-s-5);
    background: var(--t99-paper);
    border: 1px solid var(--t99-border);
    border-radius: var(--t99-r-lg);
    height: 100%;
    transition: border-color var(--t99-dur-2) var(--t99-ease),
                box-shadow var(--t99-dur-2) var(--t99-ease),
                transform var(--t99-dur-2) var(--t99-ease-out);
}
.t99-cap:hover { border-color: transparent; box-shadow: var(--t99-e-3); transform: translateY(-3px); }
.t99-cap__i {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: var(--t99-r-md);
    background: var(--t99-electric-soft);
    color: var(--t99-electric-700);
    font-size: 20px;
    margin-bottom: var(--t99-s-3);
}
.t99-cap h3 { margin: 0 0 6px; font-size: var(--t99-fs-base); font-weight: 700; }
.t99-cap p { margin: 0; font-size: var(--t99-fs-sm); color: var(--t99-text-3); line-height: 1.55; }

/* -- 22.4 Numbered process ------------------------------------------------ */
.t99-steps-grid { display: grid; gap: var(--t99-s-5); grid-template-columns: 1fr; counter-reset: t99step; }
@media (min-width: 768px) { .t99-steps-grid { grid-template-columns: repeat(3, 1fr); } }
.t99-pstep { position: relative; padding-top: var(--t99-s-6); }
.t99-pstep::before {
    counter-increment: t99step;
    content: counter(t99step);
    position: absolute; top: 0; left: 0;
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--t99-ink);
    color: #fff;
    font-family: var(--t99-font-display);
    font-weight: 800;
    font-size: var(--t99-fs-base);
}
.t99-pstep h3 { margin: 0 0 6px; font-size: var(--t99-fs-lg); }
.t99-pstep p { margin: 0; color: var(--t99-text-3); font-size: var(--t99-fs-sm); line-height: 1.6; }

/* -- 22.5 Split feature band (the "beyond software" moat) ----------------- */
.t99-split {
    display: grid;
    gap: var(--t99-s-6);
    grid-template-columns: 1fr;
    align-items: center;
}
@media (min-width: 992px) { .t99-split { grid-template-columns: 1fr 1fr; gap: var(--t99-s-8); } }
.t99-ticklist { list-style: none; margin: var(--t99-s-4) 0 0; padding: 0; display: grid; gap: var(--t99-s-3); }
.t99-ticklist li { display: flex; gap: var(--t99-s-3); align-items: flex-start; }
.t99-ticklist li::before {
    content: "";
    flex: 0 0 auto;
    width: 22px; height: 22px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--t99-mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%2300855E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 5l3.5 3.5L11 1.5'/%3E%3C/svg%3E") center/12px 10px no-repeat;
}
.t99-ticklist strong { display: block; font-size: var(--t99-fs-base); }
.t99-ticklist span { font-size: var(--t99-fs-sm); color: var(--t99-text-3); }

/* -- 22.6 FAQ accordion --------------------------------------------------- */
.t99-faq { display: grid; gap: var(--t99-s-2); max-width: 820px; margin-inline: auto; }
.t99-faq details {
    background: var(--t99-paper);
    border: 1px solid var(--t99-border);
    border-radius: var(--t99-r-md);
    overflow: hidden;
}
.t99-faq details[open] { border-color: var(--t99-border-2); box-shadow: var(--t99-e-1); }
.t99-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--t99-s-4);
    padding: var(--t99-s-4) var(--t99-s-5);
    cursor: pointer;
    font-family: var(--t99-font-display);
    font-size: var(--t99-fs-base);
    font-weight: 700;
    list-style: none;
}
.t99-faq summary::-webkit-details-marker { display: none; }
.t99-faq summary::after {
    content: "";
    flex: 0 0 auto;
    width: 12px; height: 8px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236A6A80' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E") center/contain no-repeat;
    transition: transform var(--t99-dur-2) var(--t99-ease);
}
.t99-faq details[open] summary::after { transform: rotate(180deg); }
.t99-faq summary:focus-visible { outline: none; box-shadow: var(--t99-e-focus); }
.t99-faq__a { padding: 0 var(--t99-s-5) var(--t99-s-4); color: var(--t99-text-2); font-size: var(--t99-fs-sm); line-height: 1.65; }
.t99-faq__a p { margin: 0 0 var(--t99-s-2); }
.t99-faq__a p:last-child { margin-bottom: 0; }

/* -- 22.7 Related event types (the cross-link grid) ----------------------- */
.t99-related { display: grid; gap: var(--t99-s-3); grid-template-columns: 1fr; }
@media (min-width: 576px)  { .t99-related { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px)  { .t99-related { grid-template-columns: repeat(3, 1fr); } }
.t99-related a {
    display: flex;
    align-items: center;
    gap: var(--t99-s-3);
    padding: var(--t99-s-4);
    background: var(--t99-paper);
    border: 1px solid var(--t99-border);
    border-radius: var(--t99-r-md);
    text-decoration: none;
    color: var(--t99-text);
    font-weight: 600;
    font-size: var(--t99-fs-sm);
    transition: all var(--t99-dur-2) var(--t99-ease);
}
.t99-related a:hover {
    border-color: var(--t99-electric);
    background: var(--t99-electric-soft);
    color: var(--t99-electric-700);
    transform: translateY(-2px);
}
.t99-related i { color: var(--t99-electric); }

/* -- 22.8 Lead form ------------------------------------------------------- */
.t99-lead { background: var(--t99-ink); color: #fff; }
.t99-lead__grid { display: grid; gap: var(--t99-s-6); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 992px) { .t99-lead__grid { grid-template-columns: .9fr 1.1fr; gap: var(--t99-s-8); } }
.t99-lead h2 { color: #fff; }
.t99-lead__lede { color: rgba(255, 255, 255, .78); font-size: var(--t99-fs-md); line-height: 1.6; }
.t99-lead__side { list-style: none; padding: 0; margin: var(--t99-s-5) 0 0; display: grid; gap: var(--t99-s-3); }
.t99-lead__side li { display: flex; gap: var(--t99-s-3); align-items: center; color: rgba(255, 255, 255, .8); font-size: var(--t99-fs-sm); }
.t99-lead__side i { color: #fff; opacity: .7; }
.t99-lead__side a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }

.t99-leadcard {
    background: var(--t99-paper);
    border-radius: var(--t99-r-xl);
    padding: var(--t99-s-5);
    box-shadow: var(--t99-e-4);
}
@media (min-width: 576px) { .t99-leadcard { padding: var(--t99-s-6); } }
.t99-leadcard .t99-label { color: var(--t99-text-2); }
.t99-formgrid { display: grid; gap: var(--t99-s-4); grid-template-columns: 1fr; }
@media (min-width: 576px) {
    .t99-formgrid { grid-template-columns: repeat(2, 1fr); }
    .t99-formgrid .t99-col-2 { grid-column: 1 / -1; }
}
/* Honeypot: off-screen rather than display:none, because some bots skip
   display:none fields. Never give it a label a human would read. */
.t99-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px;
    overflow: hidden;
}
/* countrySelect.js injects a flag dropdown inside the wrapper and needs the
   input to carry left padding; the legacy pages do this with an inline style. */
.t99-leadcard .country-select { width: 100%; }
.t99-leadcard .country-select .t99-input { width: 100%; padding-left: 82px; }

/* -- 22.9 Section header, centred variant --------------------------------- */
.t99-sechead--center { flex-direction: column; align-items: center; text-align: center; }
.t99-sechead--center .t99-sechead__sub { max-width: 62ch; }
.t99-lede-center { max-width: 62ch; margin-inline: auto; text-align: center; color: var(--t99-text-3); }

/* ===========================================================================
   23. COUNTRY-CODE DROPDOWN (countrySelect.js)
   ---------------------------------------------------------------------------
   THE BUG THIS FIXES
   countrySelect.min.css sets `.country-list { background-color:#fff }` but
   never sets a text COLOUR, so the list inherits it. That was harmless while
   every form sat on a white page. The new lead form sits inside .t99-lead,
   which is `color:#fff` on an ink background - so the panel inherited white
   text onto its own white background and the country names became invisible.
   Measured: listBg rgb(255,255,255), listColor rgb(255,255,255).

   Rather than patch the inheritance back to dark-on-white, the panel is now
   deliberately dark, which is what was asked for and which also makes the
   bug unrepeatable: both colours are stated explicitly here, so no ancestor
   can change either one again.

   The flags are untouched. They are a sprite
   (d2r3fkmprkayl1.cloudfront.net/flags_n.png) positioned per country, and
   nothing below alters background-image, background-position or size on
   .flag - only the panel around them.

   Scoped to body.t99m so only pages that opted into the design layer change.
   =========================================================================== */

body.t99m .country-list {
    background-color: var(--t99-ink-3) !important;
    color: #fff;
    border: 1px solid var(--t99-border-ink) !important;
    border-radius: var(--t99-r-md);
    box-shadow: var(--t99-e-4) !important;
    padding: var(--t99-s-2) 0;
    max-height: 260px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .25) transparent;
}

body.t99m .country-list .country {
    padding: 8px 14px;
    color: #fff;
    font-size: var(--t99-fs-sm);
    line-height: 1.4;
    transition: background-color var(--t99-dur-1) var(--t99-ease);
}
body.t99m .country-list .country:hover,
body.t99m .country-list .country.highlight {
    background-color: rgba(255, 255, 255, .12) !important;
}
/* The dial code is secondary information; mute it rather than hide it. */
body.t99m .country-list .country .dial-code { color: rgba(255, 255, 255, .62); }
body.t99m .country-list .country-name { color: #fff; }

/* The preferred-countries separator. */
body.t99m .country-list .divider {
    border-bottom: 1px solid var(--t99-border-ink) !important;
    margin-bottom: var(--t99-s-2);
    padding-bottom: var(--t99-s-2);
}

/* WebKit scrollbar inside the panel, so it does not render as a pale bar on
   the dark surface. */
body.t99m .country-list::-webkit-scrollbar { width: 8px; }
body.t99m .country-list::-webkit-scrollbar-track { background: transparent; }
body.t99m .country-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .22);
    border-radius: 999px;
}

/* The TRIGGER stays light: it sits on the white phone input, not in the
   panel. Only the arrow needs to stop being the library's #555 on a tinted
   patch. */
body.t99m .country-select .selected-flag { background-color: transparent !important; }
body.t99m .country-select .selected-flag:hover { background-color: rgba(11, 11, 18, .05) !important; }
body.t99m .country-select .selected-flag .arrow { border-top-color: var(--t99-text-3); }
body.t99m .country-select .selected-flag .arrow.up { border-bottom-color: var(--t99-text-3); }

/* A visible divider between the flag trigger and the number, so the 82px of
   left padding on the input reads as a control rather than dead space. */
body.t99m .t99-leadcard .country-select .flag-dropdown {
    border-right: 1px solid var(--t99-border);
    width: 72px;
}
body.t99m .t99-leadcard .country-select .selected-flag { width: 72px; }
body.t99m .t99-leadcard .country-select .t99-input { padding-left: 86px; }

/* ===========================================================================
   24. LOGO FALLBACK - the company's NAME instead of a dummy logo
   ---------------------------------------------------------------------------
   Today a missing or broken company logo shows
   d2r3fkmprkayl1.cloudfront.net/logo-dum.webp - a generic grey placeholder
   used as the onerror fallback in 8 views. It tells a visitor nothing, and on
   a sponsor or exhibitor row it is worse than nothing because every one of
   them looks identical.

   _AboutOrganizer.cshtml is worse still: its onerror calls CompanyimgError(),
   which is defined only in the Survey project. In Tickets99_Web the call
   throws a ReferenceError and the browser's own broken-image icon stays on
   screen. t99-modern.js now defines that function, so the handler the markup
   already calls resolves to this fallback instead of throwing.

   The replacement is a wordmark tile: the organiser's name set in the display
   face on a brand tint. Short names render in full; long ones fall back to
   initials, so the tile never overflows a sponsor grid cell.
   =========================================================================== */
.t99-logofallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 72px;
    padding: var(--t99-s-3);
    border-radius: var(--t99-r-md);
    background: var(--t99-electric-soft);
    color: var(--t99-electric-700);
    font-family: var(--t99-font-display);
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    overflow: hidden;
    /* the tile sits where an <img> was, so it must not stretch its row */
    aspect-ratio: 16 / 10;
}
.t99-logofallback:hover { color: var(--t99-electric-700); }

/* Full name, clamped to three lines. */
.t99-logofallback__name {
    font-size: clamp(0.8125rem, 0.6rem + 0.9vw, 1.0625rem);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

/* Initials, for names too long to set legibly in the tile. */
.t99-logofallback__initials {
    font-size: clamp(1.25rem, 0.9rem + 1.6vw, 2rem);
    letter-spacing: .02em;
}

/* Rotate the tint so a grid of sponsors without logos does not read as one
   block of identical squares. Six variants, same rhythm as the mega-menu
   icons, every pairing checked for AA. */
/* The variant class is assigned by t99-modern.js, not by :nth-of-type: each
   tile is normally the only element of its type inside its own <figure>, so
   the selector always matched :nth-of-type(1) and the whole grid came out one
   colour. */
.t99-logofallback--2 { background: var(--t99-flare-soft);    color: var(--t99-flare-ink); }
.t99-logofallback--3 { background: var(--t99-mint-soft);     color: var(--t99-mint-ink); }
.t99-logofallback--4 { background: var(--t99-amber-soft);    color: var(--t99-amber-ink); }
.t99-logofallback--5 { background: #EAF0FF;                  color: #2A4BD7; }
.t99-logofallback--6 { background: #E6F1F5;                  color: #1A6C87; }

/* In the organiser block the tile sits inside a <figure> that already has its
   own radius and overflow. */
figure > .t99-logofallback { border-radius: inherit; }
