/* ==========================================================================
   AdMedia — Events page (events.php)
   Uses the AdMedia tokens from new-homepage.css (--am-*). Prefix "ev-".
   ========================================================================== */
.ev-page { font-family: var(--am-font-body); font-size: 17px; line-height: 1.65; color: var(--am-text); background: #fff; }
.ev-page ul { margin: 0; padding: 0; list-style: none; }
.ev-page a:hover { text-decoration: none; }
.ev-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ev-section { scroll-margin-top: calc(var(--am-header-h) + 16px); }

/* ---------- Hero ---------- */
.ev-hero { padding-block: clamp(48px, 6vw, 88px); }
.ev-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ev-hero h1 { max-width: 640px; }
.ev-stats { display: grid; gap: 12px; margin: 0; }
.ev-stats > div { padding: 18px 22px; border-radius: var(--am-radius); background: #fff; border: 1px solid var(--am-line); }
.ev-stats dt { font-family: var(--am-font-head); font-weight: 500; font-size: 13px; color: var(--am-muted); }
.ev-stats dd { margin: 4px 0 0; font-family: var(--am-font-head); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -.02em; color: var(--am-ink); }
.ev-stats > div:first-child dd { background: var(--am-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Section heads ---------- */
.ev-head.am-head--split { align-items: flex-end; }
.ev-head.am-head--split .am-lead { max-width: 460px; margin: 0; }

/* ---------- Upcoming: empty state ---------- */
.ev-empty {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center;
    padding: clamp(22px, 3vw, 32px); border-radius: var(--am-radius-lg);
    background: var(--am-peach-soft); border: 1px dashed #efcfc2;
}
.ev-empty__ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: #fff; color: var(--am-red); }
.ev-empty__ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ev-empty__copy strong { display: block; font-family: var(--am-font-head); font-weight: 500; font-size: 19px; color: var(--am-ink); }
.ev-empty__copy p { margin: 4px 0 0; font-size: 16px; }
.ev-empty__ctas { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Island AdFest band ---------- */
.ev-adfest-section { padding-bottom: clamp(16px, 2vw, 24px); }
.ev-adfest {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: space-between; gap: 28px;
    padding: clamp(28px, 4vw, 52px); border-radius: 32px;
    background: radial-gradient(circle at 90% 120%, rgba(255, 255, 255, .18), transparent 45%), var(--am-dark);
    color: rgba(255, 255, 255, .78);
}
.ev-adfest::after { content: ""; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: var(--am-grad-diag); opacity: .35; filter: blur(30px); }
.ev-adfest__copy { position: relative; z-index: 1; max-width: 640px; }
.ev-adfest .am-h2 { color: #fff; margin-bottom: 10px; }
.ev-page .ev-adfest p { margin: 0; font-size: 17px; color: rgba(255, 255, 255, .78) !important; }
.ev-adfest .am-btn { position: relative; z-index: 1; flex: none; }

/* ---------- Past events: tools ---------- */
.ev-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 26px; }
.ev-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-filter {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
    border: 1px solid var(--am-line); border-radius: 999px; background: #fff; cursor: pointer;
    font-family: var(--am-font-head); font-size: 14px; color: var(--am-ink);
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.ev-filter span { padding: 1px 8px; border-radius: 999px; background: var(--am-peach); font-size: 12px; color: var(--am-muted); }
.ev-filter:hover { border-color: #e8cfc2; background: var(--am-peach-soft); }
.ev-filter.is-active { background: var(--am-grad); border-color: transparent; color: #fff; }
.ev-filter.is-active span { background: rgba(255, 255, 255, .22); color: #fff; }
.ev-search { position: relative; display: block; margin: 0; flex: 0 1 280px; }
.ev-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--am-muted); stroke-width: 1.8; stroke-linecap: round; }
.ev-search input {
    width: 100%; height: 42px; padding: 0 14px 0 40px;
    border: 1px solid var(--am-line); border-radius: 999px; background: #fff;
    font-family: var(--am-font-body); font-size: 15px; color: var(--am-ink);
}
.ev-search input:focus { outline: 0; border-color: var(--am-red); box-shadow: 0 0 0 4px rgba(231, 0, 90, .1); }

/* ---------- Event cards ---------- */
.ev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.ev-card[hidden] { display: none; }
.ev-card__link {
    display: flex; flex-direction: column; height: 100%;
    border-radius: var(--am-radius); overflow: hidden; background: #fff; border: 1px solid var(--am-line);
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.ev-card__link:hover { border-color: var(--am-blush); transform: translateY(-3px); box-shadow: var(--am-shadow); }
.ev-card__img { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--am-peach); overflow: hidden; }
.ev-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ev-card__link:hover .ev-card__img img { transform: scale(1.03); }
.ev-badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: var(--am-grad); color: #fff; font-style: normal; font-family: var(--am-font-head); font-size: 12px; }
.ev-card__body { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; flex: 1; padding: 16px 18px 18px; }
.ev-card__body strong { font-family: var(--am-font-head); font-weight: 500; font-size: 16.5px; line-height: 1.35; color: var(--am-ink); }
.ev-card__more { display: inline-flex; align-items: center; gap: 6px; font-family: var(--am-font-head); font-size: 14px; color: var(--am-red); }
.ev-card__more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.ev-card__link:hover .ev-card__more svg { transform: translateX(3px); }

.ev-none { margin: 10px 0 0; padding: 24px; border-radius: var(--am-radius); background: var(--am-peach-soft); text-align: center; color: var(--am-muted); }
.ev-more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 32px; }
.ev-more [hidden] { display: none; }
.ev-count { margin: 0; font-size: 14px; color: var(--am-muted); }

.ev-cta { padding-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .ev-hero__grid { grid-template-columns: minmax(0, 1fr); }
    .ev-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ev-head.am-head--split { flex-direction: column; align-items: flex-start; gap: 12px; }
    .ev-empty { grid-template-columns: auto minmax(0, 1fr); }
    .ev-empty__ctas { grid-column: 1 / -1; }
    .ev-adfest { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 767px) {
    .ev-filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding: 0 20px 4px; scrollbar-width: none; }
    .ev-filters::-webkit-scrollbar { display: none; }
    .ev-filter { flex: none; }
    .ev-search { flex: 1 1 100%; }
}
@media (max-width: 560px) {
    .ev-stats { grid-template-columns: minmax(0, 1fr); }
    .ev-grid { grid-template-columns: minmax(0, 1fr); }
    .ev-empty { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   Event details (event.php) — prefix "ed-"
   ========================================================================== */
.ed-hero { padding-block: clamp(28px, 3.5vw, 44px) clamp(44px, 5.5vw, 76px); }
.ed-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: clamp(22px, 3vw, 36px); font-size: 14px; color: var(--am-muted); }
.ed-crumbs a { color: var(--am-muted); }
.ed-crumbs a:hover { color: var(--am-red); }
.ed-crumbs [aria-current] { color: var(--am-ink); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.ed-status { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--am-line); font-family: var(--am-font-head); font-size: 13px; font-weight: 500; color: var(--am-muted); }
.ed-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #c9bdb5; }
.ed-status--live { color: var(--am-red); }
.ed-status--live::before { background: var(--am-grad); box-shadow: 0 0 0 4px rgba(231, 0, 90, .12); }
.ed-hero h1 { font-size: clamp(32px, 3.8vw, 50px); }
.ed-facts { display: grid; gap: 12px; margin: 6px 0 28px !important; }
.ed-facts li { display: flex; align-items: flex-start; gap: 14px; }
.ed-facts__ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--am-red); border: 1px solid var(--am-line); }
.ed-facts__ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ed-facts small { display: block; font-family: var(--am-font-head); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--am-muted); }
.ed-facts strong { display: block; font-family: var(--am-font-head); font-weight: 500; font-size: 18px; color: var(--am-ink); }
.ed-facts span:not(.ed-facts__ico) { display: block; font-size: 15px; color: var(--am-text); }
.ed-hero__img { margin: 0; border-radius: var(--am-radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--am-line); }
.ed-hero__img img { width: 100%; height: auto; }

.ed-body__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.ed-about .am-h2 { margin-bottom: 18px; font-size: clamp(26px, 2.8vw, 36px); }
.ed-about p { max-width: 680px; }
.ed-links { display: grid; gap: 8px; margin: 18px 0 0 !important; }
.ed-links a { display: inline-flex; align-items: center; gap: 6px; font-family: var(--am-font-head); font-size: 15px; color: var(--am-red); }
.ed-links svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ed-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.ed-gallery figure { margin: 0; border-radius: var(--am-radius); overflow: hidden; border: 1px solid var(--am-line); background: var(--am-peach); }
.ed-gallery img { width: 100%; height: auto; }
.ed-gallery figure:only-child { grid-column: 1 / -1; }

.ed-side { position: sticky; top: calc(var(--am-header-h) + 24px); display: grid; gap: 16px; }
.ed-card { padding: 22px; border-radius: var(--am-radius); background: #fff; border: 1px solid var(--am-line); }
.ed-card__label { margin: 0 0 12px !important; font-family: var(--am-font-head); font-weight: 500; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--am-muted); }
.ed-people { display: grid; gap: 12px; }
.ed-people li { display: flex; align-items: center; gap: 12px; }
.ed-people img, .ed-people__ini { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--am-peach); }
.ed-people img { filter: grayscale(1); }
.ed-people .ed-people__ini { display: grid; place-items: center; margin: 0; background: var(--am-grad-diag); color: #fff; font-family: var(--am-font-head); font-size: 15px; line-height: 1; }
.ed-people strong { display: block; font-family: var(--am-font-head); font-weight: 500; font-size: 16px; color: var(--am-ink); }
.ed-people span { display: block; font-size: 13.5px; line-height: 1.4; color: var(--am-muted); }
.ed-card--cta { background: var(--am-peach-soft); }
.ed-card--cta strong { display: block; font-family: var(--am-font-head); font-weight: 500; font-size: 19px; color: var(--am-ink); }
.ed-card--cta p { margin: 6px 0 16px; font-size: 15px; }

/* previous / next event with left & right arrows */
.ed-pager { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--am-line); }
.ed-pager__link { display: flex; align-items: center; gap: 14px; min-width: 0; color: var(--am-ink); }
.ed-pager__link--next { justify-content: flex-end; text-align: right; }
.ed-pager__link small { display: block; font-family: var(--am-font-head); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--am-muted); }
.ed-pager__link strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--am-font-head); font-weight: 500; font-size: 16px; }
.ed-pager__link > span:not(.ed-pager__arrow) { min-width: 0; }
.ed-pager__arrow { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--am-line); background: #fff; color: var(--am-ink); transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.ed-pager__arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ed-pager__link:hover { color: var(--am-red); }
.ed-pager__link:hover .ed-pager__arrow { background: var(--am-grad); border-color: transparent; color: #fff; }
.ed-pager__all { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--am-line); font-family: var(--am-font-head); font-size: 14px; color: var(--am-ink); }
.ed-pager__all:hover { background: var(--am-peach-soft); color: var(--am-ink); }

.ed-more { background: var(--am-peach-soft); }
.ed-more__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.ed-more + .ev-cta { padding-top: clamp(56px, 6.5vw, 96px); }

@media (max-width: 991px) {
    .ed-hero__grid, .ed-body__grid { grid-template-columns: minmax(0, 1fr); }
    .ed-hero__img { order: -1; }
    .ed-side { position: static; }
}
@media (max-width: 600px) {
    .ed-pager { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .ed-pager__all { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
    .ed-pager__link strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 14.5px; }
    .ed-pager__arrow { width: 40px; height: 40px; }
    .ed-gallery { grid-template-columns: minmax(0, 1fr); }
    .ed-more__head { flex-direction: column; align-items: flex-start; }
}
.ed-people strong a { color: inherit; } .ed-people strong a:hover { color: var(--am-red); }

/* hero stat cards removed (WEB-93 feedback, Oct 30) — copy runs full width */
.ev-hero__grid { grid-template-columns: minmax(0, 1fr); }
.ev-hero .am-lead { max-width: 640px; }

/* Hero centred, same padding and centring as the home page's "Reach consumers across every channel"
   section (am-section + am-head--center). WEB-93 feedback, Nov 2 */
.ev-hero { padding-block: clamp(56px, 6.5vw, 96px); }
.ev-hero__copy { max-width: 760px; margin-inline: auto; text-align: center; }
.ev-hero h1 { max-width: none; }
.ev-hero .am-lead { margin-inline: auto; }
.ev-hero .am-hero__ctas { justify-content: center; }

/* Event details: archived copy from the old pages (Nov 2026) */
.ed-notice { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 14px 18px; border-radius: 14px; border: 1px solid #ffc9b5; background: #fff4ee; font-family: var(--am-font-head); font-size: 15px; color: var(--am-ink); }
.ed-notice::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--am-grad); }
.ed-subhead { margin: 26px 0 10px; font-family: var(--am-font-head); font-size: 20px; line-height: 1.3; color: var(--am-ink); }
.ed-list { margin: 0 0 16px; padding: 0; list-style: none; }
.ed-list li { position: relative; padding: 4px 0 4px 22px; font-size: 16px; line-height: 1.6; color: var(--am-text); }
.ed-list li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--am-grad); }
.ed-about p a, .ed-list a { color: var(--am-red); word-break: break-word; }
