/* ===========================================================================
   /events/ and the national date windows (views.events).

   Rebuilt 15 Oct 2026 on detail.css, which carries the hero, stats strip,
   layout, gig rows, chips, cards and FAQ. This sheet holds only what is
   particular to the listing page, prefixed ev-:

     .ev-bar      the filter bar: country and city pickers, date windows,
                  search, count, genre chips. Sticky on wide screens.
     .ev-dd       a <details> picker, so it opens with scripting off
     .ev-seg      the date-window segmented control (real links)
     .ev-day      a day's section; its header sticks under the bar
     .ev-pager    previous / next, labelled with the date they start on
     .ev-dir      the city directory at the foot

   It replaced a 2,008-line sheet with its own colour tokens, half of which
   styled an event-detail page that had long since moved to detail.css.
   =========================================================================== */

:root {
    /* Measured by the script at the foot of the page; this is the fallback. */
    --ev-bar-h: 58px;
    /* The fixed site header. Same number .dp-tabs and .dp-crumbs use. */
    --ev-header-h: 89px;
}

/* Hero: the listing's own header is shorter than a venue's. */
.ev-hero {
    padding-top: clamp(1.5rem, 3.5vw, 2.25rem);
    padding-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.ev-hero .dp-sub strong {
    color: #fff;
    font-weight: 700;
}

.ev-n {
    font-weight: 600;
    opacity: 0.75;
}

/* ---------------------------------------------------------------------------
   Filter bar
   --------------------------------------------------------------------------- */

.ev-bar {
    position: sticky;
    top: var(--ev-header-h);
    z-index: 6;
    background: rgba(10, 10, 10, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--dp-line);
}

.ev-bar-inner {
    max-width: var(--dp-max);
    margin: 0 auto;
    padding: 0.55rem var(--dp-gut);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.6rem;
}

.ev-ctl {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    height: 38px;
    padding: 0 0.85rem;
    border: 1px solid var(--dp-line);
    border-radius: 8px;
    background: var(--dp-surface);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    list-style: none;
    transition: border-color 0.18s ease;
}

.ev-ctl::-webkit-details-marker {
    display: none;
}

.ev-ctl:hover,
.ev-dd[open] > .ev-ctl {
    border-color: rgba(255, 255, 255, 0.35);
}

.ev-ctl > i:first-child {
    color: var(--dp-red);
    font-size: 0.8em;
}

.ev-chev {
    color: var(--dp-muted);
    font-size: 0.7em;
    transition: transform 0.18s ease;
}

.ev-dd[open] .ev-chev {
    transform: rotate(180deg);
}

.ev-dd {
    position: relative;
}

.ev-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 7;
    min-width: 240px;
    padding: 0.4rem;
    border: 1px solid var(--dp-line);
    border-radius: 10px;
    background: var(--dp-surface);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
}

.ev-menu--city {
    width: min(420px, calc(100vw - 2 * var(--dp-gut)));
}

.ev-menu-scroll {
    max-height: min(60vh, 520px);
    overflow-y: auto;
    padding: 0.2rem 0.1rem 0.1rem;
}

.ev-opt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0.65rem;
    border-radius: 6px;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease;
}

/* On /events/ a city option is a form's button, not a link (events.html):
   it has to look and sit exactly as the link does. */
button.ev-opt {
    width: 100%;
    border: 0;
    background: none;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.ev-opt:hover {
    background: rgba(255, 255, 255, 0.06);
}

.ev-opt.is-on {
    color: var(--dp-red-soft);
    background: rgba(255, 0, 0, 0.08);
}

.ev-opt b {
    font-weight: 500;
    font-size: 0.76rem;
    color: var(--dp-muted);
    font-variant-numeric: tabular-nums;
}

.ev-opt[hidden],
.ev-group[hidden] {
    display: none;
}

.ev-group {
    margin: 0.7rem 0 0.25rem;
    padding: 0 0.65rem;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dp-muted);
}

.ev-group--inline {
    margin: 0 0.2rem 0 0;
    padding: 0;
    align-self: center;
    white-space: nowrap;
}

/* The date windows: a row of real links. */
.ev-seg {
    display: inline-flex;
    height: 38px;
    max-width: 100%;
    border: 1px solid var(--dp-line);
    border-radius: 8px;
    background: var(--dp-surface);
    overflow-x: auto;
    scrollbar-width: none;
}

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

.ev-seg a {
    display: inline-flex;
    align-items: center;
    padding: 0 0.8rem;
    border-right: 1px solid var(--dp-line-soft);
    color: var(--dp-text);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease, background 0.15s ease;
}

.ev-seg a:last-child {
    border-right: 0;
}

.ev-seg a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.ev-seg a[aria-current="page"] {
    background: #fff;
    color: #000;
}

.ev-search {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    height: 38px;
    flex: 1 1 170px;
    min-width: 0;
    max-width: 280px;
    margin: 0;
    padding: 0 0.75rem;
    border: 1px solid var(--dp-line);
    border-radius: 8px;
    background: var(--dp-surface);
    color: var(--dp-muted);
}

.ev-search--menu {
    display: flex;
    max-width: none;
    margin: 0.2rem 0.1rem 0.4rem;
}

.ev-search input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: none;
    color: #fff;
    font: inherit;
    font-size: 0.85rem;
}

.ev-search input::placeholder {
    color: var(--dp-muted);
}

.ev-search input:focus {
    outline: none;
}

.ev-search:focus-within {
    border-color: rgba(255, 255, 255, 0.35);
}

.ev-count {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--dp-muted);
    white-space: nowrap;
}

.ev-count b {
    color: #fff;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.ev-genres {
    flex: 1 0 100%;
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0.1rem;
}

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

.ev-genres .dp-chip {
    padding: 0.3rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ---------------------------------------------------------------------------
   Stats strip: every tile is a link to a window
   --------------------------------------------------------------------------- */

.ev-stat {
    text-decoration: none;
    transition: border-color 0.18s ease;
}

.ev-stat:hover,
.ev-stat.is-on {
    border-color: rgba(255, 255, 255, 0.35);
}

.ev-stat.is-on .dp-stat-label {
    color: var(--dp-red-soft);
}

/* ---------------------------------------------------------------------------
   Listing
   --------------------------------------------------------------------------- */

.ev-layout {
    padding-top: 1.5rem;
}

.ev-lead {
    margin-bottom: 1.5rem;
    max-width: 72ch;
}

.ev-lead a {
    color: var(--dp-red-soft);
    text-decoration: none;
}

.ev-lead a:hover {
    text-decoration: underline;
}

.ev-flash {
    margin: 0 0 1.2rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid rgba(255, 0, 0, 0.35);
    border-radius: 6px;
    background: rgba(255, 0, 0, 0.08);
    color: #fff;
    font-size: 0.88rem;
}

.ev-flash i {
    color: var(--dp-red);
    margin-right: 0.3rem;
}

.ev-day {
    margin-bottom: 1.75rem;
}

/* Sticks under the bar on wide screens and under the site header elsewhere. */
.ev-day-head {
    position: sticky;
    top: calc(var(--ev-header-h) + var(--ev-bar-h));
    z-index: 4;
    margin-bottom: 0.35rem;
    padding: 0.55rem 0 0.45rem;
    /* The page colour (reset.css), so the band only shows while it sticks
       over rows. */
    background: #0a0a0a;
}

.ev-day-head .dp-h {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    flex-wrap: wrap;
    font-size: 1.15rem;
}

.ev-day-head .dp-h small {
    display: inline;
    margin: 0;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.ev-day-count {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--dp-muted);
    white-space: nowrap;
}

.ev-empty {
    padding: 1rem 0 2rem;
}

.ev-empty .dp-h {
    margin-bottom: 0.6rem;
}

.ev-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--dp-line);
}

.ev-pager-span {
    font-size: 0.8rem;
    color: var(--dp-muted);
}

.ev-jump {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin: 1rem 0 2.5rem;
}

.ev-faq {
    margin-top: 2.5rem;
}

.ev-dir .ev-group {
    margin: 1.1rem 0 0.5rem;
    padding: 0;
}

.ev-dir .ev-group:first-of-type {
    margin-top: 0;
}

/* ---------------------------------------------------------------------------
   Sidebar
   --------------------------------------------------------------------------- */

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

.ev-side-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.42rem 0;
    border-bottom: 1px solid var(--dp-line-soft);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.ev-side-list li:last-child a {
    border-bottom: 0;
}

.ev-side-list a:hover {
    color: var(--dp-red-soft);
}

.ev-side-list b {
    font-weight: 500;
    font-size: 0.76rem;
    color: var(--dp-muted);
    font-variant-numeric: tabular-nums;
}

.ev-card-p {
    margin: 0 0 0.8rem;
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--dp-text);
}

.ev-alert {
    display: grid;
    gap: 0.5rem;
    margin: 0;
}

.ev-alert input[type="email"] {
    height: 38px;
    padding: 0 0.75rem;
    border: 1px solid var(--dp-line);
    border-radius: 8px;
    background: #000;
    color: #fff;
    font: inherit;
    font-size: 0.85rem;
}

.ev-alert input[type="email"]:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.35);
}

.ev-alert .dp-btn {
    justify-content: center;
}

/* Honeypot: off-screen, never hidden with display:none (bots check). */
.ev-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.ev-ical {
    margin-top: 0.5rem;
    width: 100%;
    justify-content: center;
}

/* ---------------------------------------------------------------------------
   Narrow screens
   --------------------------------------------------------------------------- */

@media (max-width: 700px) {
    /* The bar is not sticky on a phone: with the 89px site header it would
       hold a third of the screen. The day headers stick under the header. */
    .ev-bar {
        position: static;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .ev-day-head {
        top: var(--ev-header-h);
    }

    .ev-count {
        display: none;
    }

    .ev-search {
        flex-basis: 100%;
        max-width: none;
    }

    .ev-menu--city {
        position: fixed;
        inset: calc(var(--ev-header-h) + 8px) var(--dp-gut) auto;
        width: auto;
    }

    .ev-menu-scroll {
        max-height: 55vh;
    }

    /* One scrolling row of tiles rather than a 2x3 grid: the grid pushed the
       first gig to the second screen. */
    .ev-stats {
        display: flex;
        gap: 0.5rem;
        padding-top: 1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

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

    .ev-stat {
        flex: 0 0 128px;
        scroll-snap-align: start;
        padding: 0.6rem 0.75rem;
    }

    .ev-stat .dp-stat-value {
        font-size: 1.15rem;
    }

    .ev-hero {
        padding-top: 1.1rem;
        padding-bottom: 1rem;
    }

    .ev-layout {
        padding-top: 1rem;
    }

    .ev-lead {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ev-chev,
    .ev-ctl,
    .ev-opt,
    .ev-seg a,
    .ev-stat {
        transition: none;
    }
}

/* Seasonal accent on the seasons' windows (see .szn-<season> in detail.css,
   which sets --szn-rgb). */
:is(.szn-halloween, .szn-christmas, .szn-new-years-eve) .ev-opt.is-on { background: rgba(var(--szn-rgb), 0.08); }
:is(.szn-halloween, .szn-christmas, .szn-new-years-eve) .ev-flash { border-color: rgba(var(--szn-rgb), 0.35); background: rgba(var(--szn-rgb), 0.08); }
