/* ==========================================================================
   Events & Webinars page (templates/resources-events-and-webinars.php)
   Namespaced .shx-ev-* — brand tokens from the Skyhigh design system:
   primary #3664F4, navy #141351, hero gradient #1B1C34→#2B2D65,
   accent #99B1F9, body bg #f4f3ef, Inter 300/400/600.
   ========================================================================== */

.shx-ev-page {
    /* Tokens shared with the sh-event-templates webinar/exchange layouts
       (.shx-webinar) so the listing and the detail pages read as one system. */
    --navy: #1c164c; --navy-mid: #231d5e;
    --royal: #3664F4; --royal-dark: #3333cc; --royal-light: #6699FF;
    --malibu: #9BB2FA; --malibu-soft: #B8C9FC;
    --off-white: #EBEFF4; --arctic: #72ddf7;
    --gray-100: #E4E3DF; --gray-200: #C8CDD9; --gray-500: #6B7280; --gray-700: #374151; --gray-900: #1c164c;
    --gradient-btn: linear-gradient(120deg, #3333CC 0%, #3664F4 100%);
    background: #fff;
    color: var(--gray-900);
}
/* Hex-mesh motif carried over from the detail-page layouts. */
.shx-ev-hexbg {
    position: absolute; inset: 0; opacity: .04; pointer-events: none; z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 34L0 84V50l28-16 28 16v34L28 100z' fill='none' stroke='%231c164c' stroke-width='1'/%3E%3C/svg%3E");
}

/* Space Mono section labels with the leading rule, as on the detail pages. */
.shx-ev-eyebrow {
    font-family: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
    display: inline-flex; align-items: center; gap: 12px;
}
.shx-ev-eyebrow::before { content: ''; width: 30px; height: 1px; background: currentColor; }

/* ---------------------------------- Hero --------------------------------- */
.shx-ev-hero {
    position: relative;
    /* Same hero gradient as the sh-event-templates webinar/exchange detail
       pages, so listing and detail read as one system. */
    background: linear-gradient(180deg, #050510 0%, #0b0b22 16%, #14133f 34%, #1c164c 50%, #232a86 68%, #2f4fc4 84%, #3664f4 100%);
    color: #fff;
    overflow: hidden;
    padding: 2.25rem 0 6rem;
}
.shx-ev-hero__inner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 240px;
}
.shx-ev-hero__content { flex: 1 1 auto; min-width: 0; }
.shx-ev-hero__eyebrow { color: var(--arctic); margin: 0 0 1rem; }
.shx-ev-hero__heading {
    font-weight: 800; font-size: clamp(32px, 4.1vw, 50px); line-height: 1.06;
    letter-spacing: -.03em; margin: 0 0 .875rem;
}
.shx-ev-hero__copy {
    font-weight: 500; font-size: clamp(15px, 1.5vw, 17px); line-height: 1.6;
    color: var(--malibu-soft); margin: 0; max-width: 36rem;
}

@media (min-width: 1024px) {
    .shx-ev-hero__heading { font-size: 3rem; }
}
@media (max-width: 1023px) {
    .shx-ev-hero { padding: 1.5rem 0 4.5rem; }
    .shx-ev-hero__inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .shx-ev-hero__content { flex-basis: auto; width: 100%; }
}

/* ------------------------------ Featured card ---------------------------- */
.shx-ev-featured-wrap { margin-top: -3.5rem; position: relative; z-index: 2; }
.shx-ev-featured {
    display: grid;
    grid-template-columns: 42% 1fr;
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: 14px;
    box-shadow: 0 14px 50px rgba(28,22,76,.16);
    overflow: hidden;
    position: relative;
}
.shx-ev-featured::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient-btn); z-index: 3;
}
.shx-ev-featured__media { position: relative; min-height: 280px; }
.shx-ev-featured__media img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
}
.shx-ev-featured__body { padding: 2rem 2.25rem; min-width: 0; }
.shx-ev-featured__label { color: var(--royal); margin: 0 0 .75rem; }
.shx-ev-featured__title {
    font-weight: 800; font-size: 26px; line-height: 1.15; letter-spacing: -.02em;
    color: var(--gray-900); margin: 0 0 1rem;
}
.shx-ev-featured__meta { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding: 0; margin: 0 0 1rem; }
.shx-ev-featured__meta-item { display: inline-flex; align-items: center; gap: .5rem; font-size: 14.5px; font-weight: 700; color: var(--gray-900); }
.shx-ev-featured__meta-item i { color: var(--royal); }
.shx-ev-featured__desc { font-weight: 400; font-size: 14.5px; line-height: 1.62; color: var(--gray-700); margin: 0 0 1rem; }
.shx-ev-featured__yourtime { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: #555; margin: 0 0 1.25rem; }
.shx-ev-featured__yourtime i { color: #3664F4; }
.shx-ev-featured__actions { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; }
.shx-ev-invite {
    display: inline-block; background: #E8EDFE; color: #2929A3; border-radius: 4px;
    font-size: .75rem; font-weight: 600; padding: .125rem .5rem; vertical-align: middle;
}
@media (max-width: 1023px) {
    .shx-ev-featured { grid-template-columns: 1fr; }
    .shx-ev-featured__media { min-height: 210px; }
    .shx-ev-featured__media img { clip-path: none; }
    .shx-ev-featured__body { padding: 1.5rem 1.25rem; }
}

/* -------------------------------- Buttons -------------------------------- */
.shx-ev-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: inherit; font-weight: 700; font-size: 15px; line-height: 1;
    border-radius: 8px; padding: 12px 26px; cursor: pointer;
    text-decoration: none; transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s;
    border: 1px solid transparent;
}
.shx-ev-btn__chev::after { content: "\203A"; font-size: 1.1em; line-height: 1; transform: translateY(-1px); }
.shx-ev-btn--primary { background: var(--gradient-btn); color: #fff; box-shadow: 0 8px 24px rgba(54,100,244,.28); }
.shx-ev-btn--primary:hover, .shx-ev-btn--primary:focus { color: #fff; filter: brightness(1.06); transform: translateY(-1px); }
.shx-ev-btn--outline { background: #fff; color: var(--royal); border-color: rgba(54,100,244,.45); }
.shx-ev-btn--outline:hover, .shx-ev-btn--outline:focus { background: #f2f6ff; border-color: var(--royal); color: var(--royal-dark); }
.shx-ev-btn--ghost { background: transparent; color: #3664F4; padding-left: .25rem; padding-right: .25rem; }
.shx-ev-btn--ghost:hover, .shx-ev-btn--ghost:focus { color: #2929A3; text-decoration: underline; }
.shx-ev-btn:focus-visible, .shx-ev-page button:focus-visible, .shx-ev-page a:focus-visible,
.shx-ev-page input:focus-visible, .shx-ev-page select:focus-visible {
    outline: 2px solid #3664F4; outline-offset: 2px; box-shadow: none;
}

/* ------------------------------ Filter module ---------------------------- */
.shx-ev-filters-wrap { margin-top: 1.5rem; }
.shx-ev-filters {
    background: #fff; border: 1px solid var(--gray-100); border-radius: 14px;
    box-shadow: 0 4px 18px rgba(28,22,76,.07);
    padding: 1rem 1.25rem;
}
.shx-ev-filters__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 1.25rem; }
/* Group legends stack above their controls. The float:left is load-bearing: a
   floated <legend> is no longer the fieldset's "rendered legend", so it becomes
   an ordinary box, and the float itself is then ignored inside the grid/flex
   fieldset. Never drop or override that float — here or in any media query. */
.shx-ev-grouplabel { float: left; font-size: .75rem; font-weight: 600; color: #62696f; margin: 0; padding: 0; line-height: 1.2; }
.shx-ev-typegroup { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: auto auto; justify-items: start; align-items: center; column-gap: .85rem; row-gap: .35rem; }
.shx-ev-typegroup .shx-ev-grouplabel { grid-column: 1 / -1; }
.shx-ev-availgroup { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; }

.shx-ev-search { position: relative; flex: 0 1 210px; min-width: 190px; }
.shx-ev-search__icon { position: absolute; left: .875rem; top: 50%; transform: translateY(-50%); color: #62696f; font-size: .875rem; }
.shx-ev-search input {
    width: 100%; border: 1px solid #8c8880; border-radius: 8px; background: #fbfaf7;
    font-family: inherit; font-size: .9375rem; padding: .625rem 2rem .625rem 2.25rem;
}
.shx-ev-search input::placeholder { color: #6b6b69; }
.shx-ev-search__clear {
    position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
    background: none; border: 0; color: #62696f; font-size: 1.25rem; line-height: 1;
    cursor: pointer; padding: .25rem .375rem; border-radius: 4px;
}
.shx-ev-search__clear:hover { color: #141351; }

.shx-ev-check { display: inline-flex; align-items: center; gap: .4rem; font-size: .875rem; cursor: pointer; min-height: 24px; white-space: nowrap; }
.shx-ev-check input { width: 1.05rem; height: 1.05rem; accent-color: #3664F4; cursor: pointer; }

.shx-ev-segmented { display: inline-flex; background: var(--off-white); border-radius: 8px; padding: 3px; }
.shx-ev-segmented__opt { position: relative; cursor: pointer; }
.shx-ev-segmented__opt input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; cursor: pointer; }
.shx-ev-segmented__opt span {
    display: inline-block; padding: .45rem .8rem; font-size: .8125rem; font-weight: 700;
    color: var(--gray-700); border-radius: 6px; transition: background-color .15s, color .15s;
    white-space: nowrap; /* keep "On-Demand" on one line */
}
.shx-ev-segmented__opt input:checked + span { background: var(--gradient-btn); color: #fff; }
.shx-ev-segmented__opt input:focus-visible + span { outline: 2px solid #141351; outline-offset: 2px; }

.shx-ev-morebtn {
    display: inline-flex; align-items: center; gap: .5rem;
    background: none; border: 1px solid #8c8880; border-radius: 8px;
    font-family: inherit; font-size: .875rem; font-weight: 600; color: #1F1F1F;
    padding: .55rem 1rem; cursor: pointer;
}
.shx-ev-morebtn:hover { border-color: #3664F4; color: #3664F4; }
.shx-ev-morebtn[aria-expanded="true"] { background: #E8EDFE; border-color: #3664F4; color: #2929A3; }

/* Topic + Region sit inline in the main row (no More Filters panel). */
.shx-ev-field { display: flex; flex-direction: column; gap: .35rem; min-width: 200px; }
/* Compound class: .shx-ev-field--inline select alone ties on specificity with
   .shx-ev-field select below and would lose on source order. */
.shx-ev-field--inline { flex-direction: row; align-items: center; gap: .5rem; min-width: 0; }
.shx-ev-field.shx-ev-field--inline select { max-width: 190px; }
.shx-ev-field.shx-ev-field--inline.shx-ev-field--region select { max-width: 172px; }
.shx-ev-field label { font-size: .8125rem; font-weight: 600; color: #62696f; }
.shx-ev-field select {
    font-family: inherit; font-size: .9375rem; padding: .5rem .75rem;
    border: 1px solid #8c8880; border-radius: 8px; background: #fbfaf7; max-width: 300px;
}

.shx-ev-filters__meta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: .75rem 1.5rem; border-top: 1px solid #eeece5; margin-top: 1rem; padding-top: .875rem;
}
.shx-ev-tzline { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; color: #555; margin: 0; }
.shx-ev-tzline i { color: #3664F4; }
.shx-ev-tzline__change {
    background: none; border: 0; color: #3664F4; font-family: inherit; font-size: .875rem;
    font-weight: 600; cursor: pointer; text-decoration: underline; padding: .125rem .25rem;
}
.shx-ev-filters__meta-right { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.shx-ev-count { font-size: .875rem; font-weight: 600; color: #141351; margin: 0; }
.shx-ev-sort { display: inline-flex; align-items: center; gap: .5rem; }
.shx-ev-sort label { font-size: .875rem; color: #62696f; }
.shx-ev-sort select { font-family: inherit; font-size: .875rem; padding: .375rem .625rem; border: 1px solid #8c8880; border-radius: 6px; background: #fff; }
.shx-ev-viewtoggle { display: inline-flex; border: 1px solid #8c8880; border-radius: 6px; overflow: hidden; }
.shx-ev-viewtoggle__btn { background: #fff; border: 0; color: #62696f; padding: .45rem .7rem; cursor: pointer; font-size: .875rem; }
.shx-ev-viewtoggle__btn + .shx-ev-viewtoggle__btn { border-left: 1px solid #8c8880; }
.shx-ev-viewtoggle__btn[aria-pressed="true"] { background: #3664F4; color: #fff; }

.shx-ev-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-top: .875rem; }
.shx-ev-chips__label { font-size: .8125rem; font-weight: 600; color: #62696f; }
.shx-ev-chip {
    display: inline-flex; align-items: center; gap: .45rem;
    background: var(--off-white); color: var(--royal-dark); border: 1px solid rgba(54,100,244,.25); border-radius: 999px;
    font-family: inherit; font-size: .8125rem; font-weight: 700;
    padding: .35rem .9rem; cursor: pointer;
}
.shx-ev-chip::after { content: "\00d7"; font-size: 1rem; line-height: 1; }
.shx-ev-chip:hover { background: #d4defc; }
.shx-ev-chips__clear {
    background: none; border: 0; color: #3664F4; font-family: inherit; font-size: .8125rem;
    font-weight: 600; text-decoration: underline; cursor: pointer; padding: .25rem;
}

/* -------------------------------- Sections ------------------------------- */
.shx-ev-results { padding-top: 2.75rem; padding-bottom: 1rem; position: relative; }
.shx-ev-results-wrap { background: var(--off-white); }
.shx-ev-results:focus-visible { outline: 2px solid #3664F4; outline-offset: 4px; }
/* fixed 58px site header must not cover programmatically focused targets */
.shx-ev-results, .shx-ev-section, .shx-ev-card { scroll-margin-top: 84px; }
.shx-ev-section { margin-bottom: 3rem; }
.shx-ev-section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 1.375rem; }
.shx-ev-section__title { display: flex; align-items: center; gap: .625rem; font-weight: 800; font-size: 26px; letter-spacing: -.02em; color: var(--gray-900); margin: 0 0 .35rem; }
.shx-ev-section__title i { color: var(--royal); font-size: 1.15rem; }
.shx-ev-section__sub { font-weight: 400; font-size: 15px; color: var(--gray-500); margin: 0; }
.shx-ev-viewall { display: inline-flex; align-items: center; gap: .4rem; color: #2929A3; font-weight: 600; font-size: .9375rem; text-decoration: none; white-space: nowrap; }
.shx-ev-viewall:hover, .shx-ev-viewall:focus { color: #2929A3; text-decoration: underline; }

/* ---------------------------------- Grid --------------------------------- */
.shx-ev-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.375rem; }
@media (max-width: 1199px) { .shx-ev-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1023px) { .shx-ev-grid { grid-template-columns: repeat(2, 1fr); gap: 1.125rem; } }
@media (max-width: 639px) { .shx-ev-grid { grid-template-columns: 1fr; } }

/* A section that cannot fill a full desktop row stretches its cards instead of
   leaving empty grid cells, so a single upcoming event does not read as three
   missing ones and the next section is pulled up. Desktop only — narrower
   breakpoints already collapse to fewer columns. */
@media (min-width: 1024px) {
    .shx-ev-grid[data-count="1"] { grid-template-columns: 1fr; }
    .shx-ev-grid[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
    .shx-ev-grid[data-count="3"] { grid-template-columns: repeat(3, 1fr); }
    /* At one- and two-up the track is too wide for a stacked card, so use the
       horizontal composition (same markup, image beside the copy). */
    .shx-ev-grid[data-count="1"] .shx-ev-card,
    .shx-ev-grid[data-count="2"] .shx-ev-card { flex-direction: row; }
    .shx-ev-grid[data-count="1"] .shx-ev-card__media { flex: 0 0 42%; aspect-ratio: auto; min-height: 230px; }
    .shx-ev-grid[data-count="2"] .shx-ev-card__media { flex: 0 0 44%; aspect-ratio: auto; min-height: 200px; }
    .shx-ev-grid[data-count="1"] .shx-ev-card__body,
    .shx-ev-grid[data-count="2"] .shx-ev-card__body { padding: 1.5rem 1.75rem; justify-content: center; }
    .shx-ev-grid[data-count="1"] .shx-ev-card__title { font-size: 21px; }
    .shx-ev-grid[data-count="1"] .shx-ev-card__excerpt { -webkit-line-clamp: 2; max-width: 46rem; }
    .shx-ev-grid[data-count="1"] .shx-ev-card__cta,
    .shx-ev-grid[data-count="2"] .shx-ev-card__cta { margin-top: 1rem; padding-top: 0; }
}

/* ---------------------------------- Cards -------------------------------- */
.shx-ev-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--gray-100); border-radius: 14px;
    box-shadow: 0 4px 18px rgba(28,22,76,.07);
    overflow: hidden; min-width: 0;
    transition: box-shadow .15s, transform .15s, border-color .15s;
}
.shx-ev-card:hover, .shx-ev-card:focus-within {
    box-shadow: 0 14px 38px rgba(28,22,76,.16);
    border-color: rgba(54,100,244,.35);
    transform: translateY(-3px);
}
.shx-ev-card__media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(120.32deg, #141351 35%, #2929A3 100%); }
.shx-ev-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shx-ev-card__media.is-imgless img { display: none; }
.shx-ev-card__datebadge {
    position: absolute; top: .75rem; left: .75rem;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 3rem; height: 3.125rem; background: #fff; border-radius: 8px;
    box-shadow: 0 2px 8px rgba(20,19,81,.18);
}
.shx-ev-card__datebadge-month { font-family: 'Space Mono', ui-monospace, monospace; font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--royal); line-height: 1.1; }
.shx-ev-card__datebadge-day { font-size: 19px; font-weight: 800; color: var(--gray-900); line-height: 1.1; }
.shx-ev-badge {
    position: absolute; bottom: .75rem; left: .75rem;
    font-family: 'Space Mono', ui-monospace, monospace;
    font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    border-radius: 6px; padding: .3rem .6rem; color: #fff;
}
.shx-ev-badge--event { background: var(--royal-dark); }
.shx-ev-badge--webinar { background: var(--royal); }
.shx-ev-badge--on-demand { background: var(--navy); }
.shx-ev-card__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 1.125rem 1.25rem 1.25rem; min-width: 0; }
.shx-ev-card__title { font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; margin: 0 0 .625rem; }
.shx-ev-card__title a { color: var(--gray-900); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.shx-ev-card__title a:hover, .shx-ev-card__title a:focus { color: var(--royal); }
.shx-ev-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; font-size: .8438rem; font-weight: 600; color: #1F1F1F; margin: 0 0 .375rem; }
.shx-ev-card__meta--loc { color: #555; font-weight: 400; }
.shx-ev-card__meta .shx-ev-yourtime-line { display: block; width: 100%; font-weight: 400; color: #62696f; font-size: .8125rem; }

/* Multi-region sessions — one row per run of the same webinar (AMER/EMEA, APJ). */
.shx-ev-sessions { list-style: none; margin: 0 0 .375rem; padding: 0; display: flex; flex-direction: column; gap: .3125rem; }
.shx-ev-session { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .5rem; font-size: .8438rem; font-weight: 600; color: #1F1F1F; }
.shx-ev-session__label {
    display: inline-block; background: var(--gray-100); color: var(--gray-900); border-radius: 4px;
    font-size: .6875rem; font-weight: 700; letter-spacing: .02em; padding: .125rem .4375rem; white-space: nowrap;
}
/* events.js appends the "Your time:" line inside the <time>; keep it full-width here too. */
.shx-ev-session .shx-ev-yourtime-line { display: block; width: 100%; font-weight: 400; color: #62696f; font-size: .8125rem; }
.shx-ev-card__excerpt {
    font-weight: 400; font-size: 13.5px; line-height: 1.62; color: var(--gray-700); margin: .25rem 0 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.shx-ev-card__cta { margin: auto 0 0; padding-top: 1rem; }
.shx-ev-card__cta .shx-ev-btn { padding: .625rem 1.125rem; font-size: .875rem; }

/* List view */
.shx-ev-results[data-view="list"] .shx-ev-grid { grid-template-columns: 1fr; gap: 1rem; }
.shx-ev-results[data-view="list"] .shx-ev-card { flex-direction: row; }
.shx-ev-results[data-view="list"] .shx-ev-card__media { flex: 0 0 260px; aspect-ratio: auto; min-height: 150px; }
.shx-ev-results[data-view="list"] .shx-ev-card__body { padding: 1.125rem 1.5rem; }
@media (max-width: 767px) {
    .shx-ev-results[data-view="list"] .shx-ev-card { flex-direction: column; }
    .shx-ev-results[data-view="list"] .shx-ev-card__media { flex-basis: auto; aspect-ratio: 16 / 9; }
}

/* ------------------------------- Pagination ------------------------------ */
.shx-ev-pagination-wrap { display: flex; justify-content: center; margin: .5rem 0 2rem; }
.shx-ev-pagination { display: flex; gap: .375rem; }
/* NB: named .shx-ev-pagenum, NOT .shx-ev-page — the latter is the page shell
   (main#main.shx-ev-page); reusing it here collapsed <main> to 2.5rem. */
.shx-ev-pagenum {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.5rem; height: 2.5rem; padding: 0 .5rem;
    border: 1px solid #8c8880; border-radius: 8px; background: #fff;
    color: #141351; font-weight: 600; font-size: .9375rem; text-decoration: none;
}
.shx-ev-pagenum:hover, .shx-ev-pagenum:focus { border-color: #3664F4; color: #2929A3; }
.shx-ev-pagenum.is-current { background: #2929A3; border-color: #2929A3; color: #fff; }

/* -------------------------- Empty / error / loading ----------------------- */
.shx-ev-noresults { text-align: center; padding: 3.5rem 1rem 4rem; }
.shx-ev-noresults__msg { font-size: 1.125rem; font-weight: 600; color: #141351; margin: 0 0 1.25rem; }
.shx-ev-noresults__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 1rem; }
.shx-ev-error {
    background: #fdecea; border: 1px solid #f5c6c0; color: #8a2019;
    border-radius: 8px; padding: .875rem 1.25rem; font-size: .9375rem; margin: 0 0 1.5rem;
}
.shx-ev-results.is-loading .shx-ev-grid { opacity: .45; pointer-events: none; }
.shx-ev-results.is-loading::after {
    content: ""; position: absolute; top: 5rem; left: 50%; margin-left: -16px;
    width: 32px; height: 32px; border-radius: 50%;
    border: 3px solid #c9d5fb; border-top-color: #3664F4;
    animation: shx-ev-spin .7s linear infinite; z-index: 3;
}
@keyframes shx-ev-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .shx-ev-card, .shx-ev-card:hover { transition: none; transform: none; }
    .shx-ev-results.is-loading::after { animation-duration: 1.6s; }
}

/* ------------------------------- CTA banner ------------------------------- */
.shx-ev-ctabanner-wrap { padding: .5rem 0 3.5rem; }
.shx-ev-ctabanner {
    display: flex; align-items: center; gap: 1.5rem;
    background: #E8EDFE; border: 1px solid #d4defc; border-radius: 12px;
    padding: 1.5rem 2rem;
}
.shx-ev-ctabanner__icon {
    flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
    width: 3.25rem; height: 3.25rem; border-radius: 10px; background: #3664F4; color: #fff; font-size: 1.375rem;
}
.shx-ev-ctabanner__text { min-width: 0; }
.shx-ev-ctabanner__title { font-size: 1.25rem; font-weight: 600; color: #141351; margin: 0 0 .25rem; }
.shx-ev-ctabanner__copy { font-weight: 300; font-size: .9375rem; color: #444; margin: 0; }
.shx-ev-ctabanner__btn { margin-left: auto; white-space: nowrap; }
@media (max-width: 767px) {
    .shx-ev-ctabanner { flex-direction: column; align-items: flex-start; }
    .shx-ev-ctabanner__btn { margin-left: 0; }
}

/* ---------------------------- Timezone dialog ----------------------------- */
.shx-ev-tzdialog {
    border: 0; border-radius: 14px; padding: 0;
    width: min(440px, calc(100vw - 2rem));
    box-shadow: 0 24px 64px rgba(20,19,81,.3);
}
.shx-ev-tzdialog::backdrop { background: rgba(16,16,46,.55); }
.shx-ev-tzdialog__inner { display: flex; flex-direction: column; padding: 1.375rem 1.5rem; max-height: min(560px, 85vh); }
.shx-ev-tzdialog__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.shx-ev-tzdialog__head h2 { font-size: 1.125rem; font-weight: 600; color: #141351; margin: 0; }
.shx-ev-tzdialog__close { background: none; border: 0; font-size: 1.5rem; line-height: 1; color: #62696f; cursor: pointer; padding: .25rem .5rem; border-radius: 6px; }
.shx-ev-tzdialog__close:hover { color: #141351; background: #f0eee8; }
.shx-ev-tzdialog__current { font-size: .875rem; color: #555; margin: 0 0 .75rem; }
.shx-ev-tzdialog__auto { align-self: flex-start; margin-bottom: 1rem; padding: .5rem 1rem; font-size: .875rem; }
.shx-ev-tzdialog__searchlabel { font-size: .8125rem; font-weight: 600; color: #62696f; margin-bottom: .3rem; }
.shx-ev-tzdialog__search {
    font-family: inherit; font-size: .9375rem; padding: .55rem .75rem;
    border: 1px solid #d8d6cf; border-radius: 8px; margin-bottom: .75rem;
}
.shx-ev-tzdialog__list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1 1 auto; border: 1px solid #eeece5; border-radius: 8px; }
.shx-ev-tzdialog__list li { border-bottom: 1px solid #f2f0ea; }
.shx-ev-tzdialog__list li:last-child { border-bottom: 0; }
.shx-ev-tzdialog__list button {
    display: flex; justify-content: space-between; gap: 1rem; width: 100%; text-align: left;
    background: none; border: 0; font-family: inherit; font-size: .875rem; color: #1F1F1F;
    padding: .6rem .875rem; cursor: pointer;
}
.shx-ev-tzdialog__list button:hover { background: #f6f8ff; }
.shx-ev-tzdialog__list button[aria-selected="true"] { background: #E8EDFE; color: #2929A3; font-weight: 600; }
.shx-ev-tzdialog__list .shx-ev-tzoffset { color: #898987; font-variant-numeric: tabular-nums; }

/* ------------------------- Touch targets (mobile) ------------------------- */
@media (max-width: 767px) {
    .shx-ev-btn, .shx-ev-morebtn, .shx-ev-pagenum, .shx-ev-chip,
    .shx-ev-segmented__opt span, .shx-ev-viewtoggle__btn,
    .shx-ev-check, .shx-ev-viewall, .shx-ev-tzline__change,
    .shx-ev-field select, .shx-ev-sort select { min-height: 44px; }
    .shx-ev-segmented__opt span { display: inline-flex; align-items: center; }
    .shx-ev-check, .shx-ev-viewall { display: inline-flex; align-items: center; }
    .shx-ev-tzline__change { padding: .5rem .5rem; }
    .shx-ev-search input { min-height: 44px; }
    .shx-ev-filters__meta-right { margin-left: 0; }
    /* Card title is the primary tap target on touch screens */
    .shx-ev-card__title a { display: block; padding: .7rem 0; }
}

/* Filter groups must wrap rather than overflow the panel on narrow screens.
   The segmented control needs 240px + a 69px legend = 321px, which does not
   fit a 375-430px viewport on one line. */
@media (max-width: 640px) {
    .shx-ev-typegroup, .shx-ev-availgroup { width: 100%; }
    .shx-ev-grouplabel { width: 100%; margin: 0 0 .35rem; line-height: 1.4; }
    .shx-ev-segmented { width: 100%; }
    .shx-ev-segmented__opt { flex: 1 1 auto; text-align: center; }
    .shx-ev-segmented__opt span { width: 100%; justify-content: center; padding-inline: .5rem; }
    .shx-ev-filters__row { gap: 1rem; }
}
