﻿/* Filter controls follow EventOverviewListDesign; event cards keep design.css. */
html body #eventsContainer.event-overview-design { --eol-accent: #203f77; --eol-soft: rgba(32,63,119,.12); }
html body #eventsContainer.event-overview-design [hidden] { display: none !important; }
html body #eventsContainer.event-overview-design .item-image img { height: auto; }
html body #eventsContainer.event-overview-design #design_top { display: block; }
html body #eventsContainer.event-overview-design .eol-filters *,
html body #eventsContainer.event-overview-design .eol-tools * { box-sizing: border-box; }
html body #eventsContainer.event-overview-design .eol-filters button,
html body #eventsContainer.event-overview-design .eol-filters input,
html body #eventsContainer.event-overview-design .eol-tools button,
html body #eventsContainer.event-overview-design .eol-tools select { font: inherit; letter-spacing: normal; text-transform: none; margin: 0; }
html body #eventsContainer.event-overview-design button { box-shadow: none; background-image: none; cursor: pointer; }
html body #eventsContainer.event-overview-design button:focus,
html body #eventsContainer.event-overview-design input:focus,
html body #eventsContainer.event-overview-design select:focus { outline: 2px solid var(--eol-accent); outline-offset: 3px; }
html body #eventsContainer.event-overview-design #eol-result-count { margin: 0; line-height: 1.4; }
html body #eventsContainer.event-overview-design .eol-filters { padding: 20px; background: #fff; border: 1px solid #dfebef; border-radius: 14px; margin-bottom: 24px; }
html body #eventsContainer.event-overview-design .eol-search-field label { display: block; margin-bottom: 6px; color: #657c8a; font-size: 13px; }
html body #eventsContainer.event-overview-design input[type="search"],
html body #eventsContainer.event-overview-design select { display: block; width: 100%; min-width: 0; height: 42px; border: 1px solid #dfebef; border-radius: 6px; background: #fff; color: #172f3c; padding: 8px 12px; box-shadow: none; }
html body #eventsContainer.event-overview-design input::placeholder { color: #788891; opacity: 1; }
html body #eventsContainer.event-overview-design .eol-tags { display: flex; gap: 7px; flex-wrap: wrap; margin: 16px 0 0; }
html body #eventsContainer.event-overview-design .eol-chip { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 36px; max-width: 100%; padding: 7px 12px; border: 1px solid #dfebef; border-radius: 5px; background: #fff; color: #657c8a; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
html body #eventsContainer.event-overview-design .eol-chip:hover { background: var(--eol-soft); color: #172f3c; }
html body #eventsContainer.event-overview-design .eol-chip[aria-pressed="true"] { background: var(--eol-accent); color: #fff; border-color: transparent; }
html body #eventsContainer.event-overview-design .eol-categories { display: flex; flex-wrap: wrap; gap: 7px; min-width: 0; max-width: 100%; margin: 0; padding: 0; }
html body #eventsContainer.event-overview-design .eol-status-chip.eol-status-open { background: #edf6ef; color: #377248; }
html body #eventsContainer.event-overview-design .eol-status-chip.eol-status-closed { background: #faeeee; color: #a33c3c; }
html body #eventsContainer.event-overview-design .eol-status-chip.eol-status-planned { background: #fff5df; color: #755114; }
html body #eventsContainer.event-overview-design .eol-status-chip[aria-pressed="true"] { border-color: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
html body #eventsContainer.event-overview-design .eol-status-chip:hover { filter: brightness(.96); }
html body #eventsContainer.event-overview-design .eol-count { font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
html body #eventsContainer.event-overview-design .eol-text-button { border: 0; background: transparent; padding: 6px 0; font-size: 13px; color: var(--eol-accent); text-align: left; text-decoration: underline; }
html body #eventsContainer.event-overview-design .eol-filters > .eol-text-button { margin-top: 8px; }
html body #eventsContainer.event-overview-design .eol-tools { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
html body #eventsContainer.event-overview-design #eol-result-count { font-size: 14px; color: #657c8a; padding-top: 6px; }
html body #eventsContainer.event-overview-design .eol-sort-row { display: flex; gap: 8px; align-items: center; margin-bottom: 5px; }
html body #eventsContainer.event-overview-design .eol-sort-row label { font-size: 12px; color: #657c8a; min-width: 66px; }
html body #eventsContainer.event-overview-design .eol-sort-row select { width: 168px; height: 34px; padding: 4px 24px 4px 9px; font-size: 13px; }
html body #eventsContainer.event-overview-design .eol-sort-direction { border: 1px solid #dfebef; border-radius: 5px; background: #fff; color: var(--eol-accent); width: 34px; min-width: 34px; height: 34px; padding: 2px; font-size: 18px; }
html body #eventsContainer.event-overview-design .eod-multi-time .item-info-item-content { display: inline-flex; align-items: center; }
html body #eventsContainer.event-overview-design button.eod-time-info {
    display: inline-flex; align-items: center; justify-content: center; align-self: stretch;
    min-width: 28px; margin: 0 -6px 0 5px; padding: 0; border: 0; border-radius: 50%;
    background: transparent; color: inherit !important; font: inherit; line-height: inherit;
}
html body #eventsContainer.event-overview-design button.eod-time-info i { color: inherit !important; }
html body #eventsContainer.event-overview-design button.eod-time-info:hover { background: rgba(255,255,255,.15); }
html body #eventsContainer.event-overview-design button.eod-time-info:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
html body .eod-time-popover {
    position: fixed; z-index: 1100; inset: auto; margin: 0; box-sizing: border-box;
    width: 350px; max-width: calc(100vw - 16px); padding: 14px 44px 14px 16px;
    border: 1px solid #dfebef; border-radius: 10px; background: #fff; color: #172f3c;
    box-shadow: 0 5px 20px rgba(23,47,60,.2); font-size: 14px; line-height: 1.5;
}
html body .eod-time-popover[hidden] { display: none !important; }
html body .eod-time-popover p { margin: 0; color: inherit; font: inherit; }
html body .eod-time-popover button {
    position: absolute; top: 7px; right: 7px; display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; margin: 0; padding: 0; border: 0; border-radius: 50%;
    background: #f1f5f7; color: #172f3c; font: inherit; font-size: 22px; cursor: pointer;
}
html body .eod-time-popover button:focus-visible { outline: 2px solid #172f3c; outline-offset: 2px; }
@media print { html body .eod-time-popover { display: none !important; } }

/* Two short lines fit inside the existing diagonal ribbon. Move it slightly inward only during countdown. */
html body #eventsContainer.event-overview-design .km_rows .item-wrapper .item .item-content .item-image .item-image-status.item-countdown {
    top: 80px; right: -54px; line-height: 1.4; padding: 5px 0; font-variant-numeric: tabular-nums;
}
html body #eventsContainer.event-overview-design .item-countdown-text { display: block; width: 210px; max-width: 70%; margin: 0 auto; overflow-wrap: anywhere; }
html body #eventsContainer.event-overview-design .item-countdown-time { display: block; }
html body #eventsContainer.event-overview-design .km_rows .item-wrapper .item .item-content .item-has-countdown .item-date { z-index: 1; }
html body #eventsContainer.event-overview-design .item-opening { max-width: 100%; }
html body #eventsContainer.event-overview-design .item-opening .item-info-data { overflow-wrap: anywhere; }
/* Borderless status colours blend gently with the club colour. JS selects a
   darker tone when the light surface would merge with the card background. */
html body #eventsContainer.event-overview-design .item-enroll {
    height: auto; background: transparent !important; border: 0; border-radius: 18px;
}
html body #eventsContainer.event-overview-design .item-enroll a.eod-action {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    box-sizing: border-box; width: 100%; min-height: 36px; max-width: 100%; padding: 8px 14px;
    border: 0; border-radius: 18px; box-shadow: none;
    background: var(--eod-action-bg) !important; color: var(--eod-action-text) !important;
    font-size: 14px; font-weight: 600; line-height: 20px; text-align: center;
    text-decoration: none; text-transform: none; letter-spacing: normal;
    transition: background-color .15s;
}
html body #eventsContainer.event-overview-design .item-enroll a.eod-action p {
    position: static; margin: 0; font: inherit; line-height: inherit;
    color: inherit !important; text-transform: none; letter-spacing: normal;
}
html body #eventsContainer.event-overview-design .item-enroll a.eod-action > span {
    color: inherit !important; transition: transform .15s;
}
html body #eventsContainer.event-overview-design .item-enroll a.eod-action-open {
    --eod-action-bg: var(--eod-green-bg, rgba(64,211,133,.9));
    --eod-action-hover: var(--eod-green-hover, rgb(64,211,133));
    --eod-action-text: var(--eod-green-text, #103d29);
}
html body #eventsContainer.event-overview-design .item-enroll a.eod-action-closed {
    --eod-action-bg: var(--eod-red-bg, rgba(255,143,132,.9));
    --eod-action-hover: var(--eod-red-hover, rgb(255,143,132));
    --eod-action-text: var(--eod-red-text, #4f211c);
}
html body #eventsContainer.event-overview-design .item-enroll a.eod-action-planned,
html body #eventsContainer.event-overview-design .item-enroll a.eod-action-waiting,
html body #eventsContainer.event-overview-design .item-enroll a.eod-action-sold-out {
    --eod-action-bg: var(--eod-amber-bg, rgba(255,201,72,.9));
    --eod-action-hover: var(--eod-amber-hover, rgb(255,201,72));
    --eod-action-text: var(--eod-amber-text, #4b3208);
}
html body #eventsContainer.event-overview-design .item-enroll a.eod-action:hover {
    background: var(--eod-action-hover) !important;
}
html body #eventsContainer.event-overview-design .item-enroll a.eod-action:focus-visible {
    outline: 2px solid var(--eod-focus, #172f3c); outline-offset: 3px;
}
html body #eventsContainer.event-overview-design .item-opening .item-info-item-content,
html body #eventsContainer.event-overview-design .item-deadline .item-info-item-content {
    display: inline-flex; align-items: center; box-sizing: border-box; max-width: 100%;
    min-height: 2em; padding: .3em .8em; line-height: 1.4;
    background: var(--eod-amber-bg, rgba(255,201,72,.9)) !important;
    color: var(--eod-amber-text, #4b3208) !important;
    border: 0; box-shadow: none;
}
html body #eventsContainer.event-overview-design .item-opening .item-info-icon,
html body #eventsContainer.event-overview-design .item-deadline .item-info-icon { flex-shrink: 0; }
html body #eventsContainer.event-overview-design .item-opening .item-info-data,
html body #eventsContainer.event-overview-design .item-deadline .item-info-data { min-width: 0; overflow-wrap: anywhere; }
html body #eventsContainer.event-overview-design .item-opening .item-info-data,
html body #eventsContainer.event-overview-design .item-opening .item-info-icon,
html body #eventsContainer.event-overview-design .item-opening .item-info-icon i,
html body #eventsContainer.event-overview-design .item-deadline .item-info-data,
html body #eventsContainer.event-overview-design .item-deadline .item-info-icon,
html body #eventsContainer.event-overview-design .item-deadline .item-info-icon i { color: inherit !important; }
@media (hover: hover) {
    html body #eventsContainer.event-overview-design .item-enroll a.eod-action:hover > span { transform: translateX(2px); }
}
@media (max-width: 430px) {
    html body #eventsContainer.event-overview-design .item-enroll a.eod-action { min-height: 44px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    html body #eventsContainer.event-overview-design .item-enroll a.eod-action,
    html body #eventsContainer.event-overview-design .item-enroll a.eod-action > span { transition: none; }
}
@media (max-width: 799px) {
    html body #eventsContainer.event-overview-design .km_rows .item-wrapper { flex-basis: 100%; min-width: 0; }
}
@media (max-width: 640px) {
    html body #eventsContainer.event-overview-design .eol-filters { padding: 14px; }
    html body #eventsContainer.event-overview-design .eol-chip { font-size: 13px; padding: 7px 10px; }
    html body #eventsContainer.event-overview-design .eol-sort-row { flex-wrap: wrap; }
    html body #eventsContainer.event-overview-design .eol-sort-row label { min-width: 54px; }
    html body #eventsContainer.event-overview-design .eol-sort-row select { width: 142px; }
}
@media (max-width: 360px) {
    html body #eventsContainer.event-overview-design .km_rows .item-wrapper .item .item-content .item-image .item-image-status.item-countdown { top: 105px; font-size: 12px; }
    html body #eventsContainer.event-overview-design .item-countdown-text { width: 170px; }
}
