/* ============================================================
   Supertree Events — self-contained presentation layer.

   This stylesheet owns every class it uses (all prefixed `stev-`)
   and defines its own colour/spacing tokens. It does NOT depend on
   the active theme's CSS, CSS variables, classes or blocks, so the
   plugin renders a complete, acceptable UI on any theme after
   install + activate + rewrite flush. A theme may layer its own
   styles on top later if it wants a tighter match.

   Styles: single event, /whats-on/ archive, event-category terms,
   and the homepage "upcoming events" block.

   Section flow on the single event: purple hero → white band
   (image, details, body) → light register band → white upcoming
   → purple host CTA.
   ============================================================ */

/* =============================================
   TOKENS — local copies of the Supertree palette
   (kept in sync with the brandbook; renamed so they
   never collide with or rely on a theme :root).
============================================= */
:root {
  --stev-bg-primary: #f6f5f8;
  --stev-bg-alt: #eeedf1;
  --stev-bg-dark: #1a1a2e;
  --stev-text-heading: #1a1a2e;
  --stev-text-body: #4a4a5a;
  --stev-text-muted: #7a7a8a;
  --stev-purple: #a78bfa;
  --stev-purple-hover: #8b5cf6;
  --stev-purple-bright: #7c5cfc;
  --stev-purple-light: #ede9fe;
  --stev-white: #fff;
  --stev-border: #e8e8e8;
  --stev-card-radius: 20px;
  --stev-card-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
  --stev-max-width: 1200px;
  --stev-hero-gradient: linear-gradient(160deg, #8b5cf6 0%, #9b6ffb 40%, #a07dfb 60%, #8b5cf6 100%);
}

/* =============================================
   ICON SYSTEM — line icons shipped inside the
   plugin (assets/icons/*.svg) and tinted via mask.
   `currentColor` of the parent sets the colour.
============================================= */
.stev-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.stev-icon::before {
  content: "";
  display: block;
  width: 1em;
  height: 1em;
  background: currentColor;
  -webkit-mask: var(--stev-icon-url) center / contain no-repeat;
          mask: var(--stev-icon-url) center / contain no-repeat;
}

.stev-icon--calendar     { --stev-icon-url: url("icons/calendar.svg"); }
.stev-icon--clock        { --stev-icon-url: url("icons/clock.svg"); }
.stev-icon--map-pin      { --stev-icon-url: url("icons/map-pin.svg"); }
.stev-icon--credit-card  { --stev-icon-url: url("icons/credit-card.svg"); }
.stev-icon--badge-check  { --stev-icon-url: url("icons/badge-check.svg"); }
.stev-icon--users        { --stev-icon-url: url("icons/users.svg"); }
.stev-icon--coffee       { --stev-icon-url: url("icons/coffee.svg"); }
.stev-icon--briefcase    { --stev-icon-url: url("icons/briefcase.svg"); }
.stev-icon--monitor      { --stev-icon-url: url("icons/monitor.svg"); }
.stev-icon--star         { --stev-icon-url: url("icons/star.svg"); }

/* =============================================
   LAYOUT PRIMITIVES
============================================= */
.stev-container {
  max-width: var(--stev-max-width);
  margin: 0 auto;
  padding: 0 80px;
}

.stev-band { padding: clamp(64px, 8vw, 110px) 0; background: var(--stev-bg-primary); }
.stev-band--alt { background: var(--stev-bg-primary); }

/* Shared heading helpers */
.stev-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--stev-purple);
  margin-bottom: 14px;
}

.stev-title {
  font-size: 36px;
  font-weight: 400;
  color: var(--stev-text-heading);
  line-height: 1.25;
  margin-bottom: 16px;
}

.stev-title--center { text-align: center; }

.stev-sub {
  font-size: 17px;
  line-height: 1.75;
  color: var(--stev-text-body);
  margin: 0;
}

/* =============================================
   BUTTONS — pill buttons, self-contained
============================================= */
.stev-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 40px;
  border-radius: 50px;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.stev-btn--primary { background: var(--stev-purple); color: #fff; }
.stev-btn--primary:hover { background: var(--stev-purple-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3); }

.stev-btn--white { background: #fff; color: var(--stev-bg-dark); }
.stev-btn--white:hover { background: #f0f0f0; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); }

.stev-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.stev-btn--ghost:hover { background: #fff; color: var(--stev-bg-dark); }

/* Inline text link with arrow */
.stev-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--stev-purple);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}
.stev-link::after { content: "→"; font-size: 16px; line-height: 1; }
.stev-link:hover { gap: 10px; color: var(--stev-purple-hover); }

/* =============================================
   HERO — purple gradient, watermark, 400-weight H1
============================================= */
.stev-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--stev-hero-gradient);
  color: #fff;
}

.stev-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at 30% 0%, rgba(255, 255, 255, 0.14) 0%, transparent 55%);
  pointer-events: none;
}

.stev-hero__logo {
  position: absolute;
  right: -7%;
  top: 50%;
  z-index: 1;
  width: auto;
  height: 92%;
  object-fit: contain;
  object-position: center;
  opacity: 0.035;
  filter: brightness(0) invert(1);
  pointer-events: none;
  transform: translateY(-50%);
}

.stev-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--stev-max-width);
  margin: 0 auto;
  padding: 60px 80px 80px;
}

.stev-back {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.2s ease;
}
.stev-back svg { width: 16px; height: 16px; }
.stev-back:hover { color: #fff; }

.stev-hero__eyebrow {
  display: inline-block;
  margin: 0 0 24px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10rem;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.45;
  text-transform: uppercase;
}

.stev-hero h1 {
  max-width: 22.5ch;
  margin: 0 0 22px;
  color: #fff;
  font-size: 56px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.5px;
  text-wrap: balance;
}

.stev-hero__sub {
  max-width: 50ch;
  margin: 0 0 36px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.75;
  text-wrap: pretty;
}

.stev-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.stev-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.stev-hero__btn:hover { transform: translateY(-2px); }
.stev-hero__btn--primary { background: #fff; color: #1a1a2e; }
.stev-hero__btn--primary:hover { background: #f0f0f0; box-shadow: 0 8px 32px rgba(255, 255, 255, 0.2); }
.stev-hero__btn--secondary { border: 1px solid rgba(255, 255, 255, 0.4); color: #fff; }
.stev-hero__btn--secondary:hover { background: #fff; color: #1a1a2e; }

/* Compact archive hero variant */
.stev-hero--archive .stev-hero__inner { padding-top: 80px; padding-bottom: 70px; }

/* =============================================
   WHITE BAND — featured image, details, body
============================================= */
.stev-bodyband {
  background: #fff;
  padding: clamp(48px, 6vw, 80px) 24px;
}

/* Featured image — 1200x630 ratio */
.stev-featured {
  max-width: 1040px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1200 / 630;
}
.stev-featured img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Details card — icon tiles */
.stev-details {
  max-width: 1040px;
  margin: clamp(28px, 4vw, 44px) auto;
  background: var(--stev-bg-primary);
  border-radius: 20px;
  padding: clamp(26px, 3.5vw, 40px) clamp(26px, 3.5vw, 48px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 28px 24px;
}

.stev-detail { display: flex; align-items: center; gap: 16px; }

.stev-detail__ico {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: #f0ecff;
  color: var(--stev-purple-hover);
}
.stev-detail__ico .stev-icon::before { width: 22px; height: 22px; }

.stev-detail__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.stev-detail__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--stev-text-muted);
}

.stev-detail__value {
  font-size: 17px;
  font-weight: 600;
  color: var(--stev-text-heading);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stev-detail__maplink {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(26, 26, 46, 0.25);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
.stev-detail__maplink:hover { color: var(--stev-purple-hover); text-decoration-color: var(--stev-purple-hover); }

/* Body — article-style reading column */
.stev-body {
  max-width: 760px;
  margin: clamp(36px, 5vw, 56px) auto 0;
  color: var(--stev-text-body);
  font-size: 18px;
  line-height: 1.75;
}

.stev-body > * + * { margin-top: 1.4em; }
.stev-body p { font-size: 18px; line-height: 1.75; color: var(--stev-text-body); }
.stev-body p:first-of-type { font-size: 19px; color: var(--stev-text-heading); font-weight: 400; line-height: 1.7; }

.stev-body h2 {
  font-size: 30px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--stev-text-heading);
  margin-top: 2em;
  letter-spacing: -0.01em;
}

.stev-body h3 {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--stev-text-heading);
  margin-top: 1.8em;
}

.stev-body a {
  color: var(--stev-purple-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.stev-body a:hover { color: var(--stev-purple-hover); }
.stev-body strong { color: var(--stev-text-heading); font-weight: 700; }

.stev-body ul { padding-left: 1.4em; }
.stev-body ul > li { margin-top: 0.5em; font-size: 18px; line-height: 1.7; color: var(--stev-text-body); }
.stev-body ul > li::marker { color: var(--stev-purple); }

.stev-body figure img { border-radius: 18px; }

/* Agenda — timeline; leading <strong> becomes a block (time on its own line) */
.stev-body ul.event-agenda {
  list-style: none;
  padding-left: 6px;
  margin-top: 1.6em;
  border-left: 3px solid var(--stev-purple-light);
}
.stev-body ul.event-agenda > li { position: relative; padding: 0 0 0 32px; margin-top: clamp(20px, 2.6vw, 30px); }
.stev-body ul.event-agenda > li:first-child { margin-top: 0.6em; }
.stev-body ul.event-agenda > li::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--stev-purple);
  border: 4px solid #fff;
  box-shadow: 0 0 0 2px var(--stev-purple-light);
}
.stev-body ul.event-agenda > li > strong:first-child {
  display: block;
  color: var(--stev-purple-bright);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.4px;
  font-variant-numeric: tabular-nums;
  margin-bottom: 2px;
}

/* =============================================
   EVENT BODY SECTIONS (insertable block patterns)
   Speakers · What you'll get · Who's it for · FAQ.
   Built on native core/columns + core/details. The
   inner classes (event-speaker, event-highlight, …)
   are plugin-owned and styled only here.
============================================= */
.stev-body .wp-block-columns { margin-top: 0.4em; }

.stev-body .event-speakers,
.stev-body .event-highlights,
.stev-body .event-audience { gap: clamp(18px, 2.6vw, 30px); }

/* --- Speakers / Hosts --- */
.stev-body .event-speaker {
  text-align: center;
  padding: clamp(20px, 2.6vw, 28px) 18px;
  background: var(--stev-bg-primary);
  border-radius: 18px;
}
.stev-body .event-speaker .wp-block-image,
.stev-body .event-speaker .event-speaker-photo { margin: 0 auto 14px; width: 104px; }
.stev-body .event-speaker .wp-block-image img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; display: block; }
.stev-body .event-speaker h3 { margin-top: 0; font-size: 18px; font-weight: 600; }
.stev-body .event-speaker .event-speaker-role { margin-top: 4px; color: var(--stev-purple-bright); font-size: 14px; font-weight: 600; }
.stev-body .event-speaker .event-speaker-bio { margin-top: 8px; color: var(--stev-text-muted); font-size: 15px; line-height: 1.6; }

/* --- What you'll get (icon + text cards) --- */
.stev-body .event-highlight {
  padding: clamp(22px, 2.8vw, 30px);
  background: var(--stev-bg-primary);
  border-radius: 18px;
}
.stev-body .event-highlight .stev-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--stev-purple-hover);
  margin-bottom: 12px;
}
.stev-body .event-highlight .stev-icon::before { width: 30px; height: 30px; }
.stev-body .event-highlight h3 { margin-top: 0; font-size: 18px; font-weight: 600; }
.stev-body .event-highlight p { margin-top: 6px; font-size: 16px; color: var(--stev-text-muted); line-height: 1.6; }

/* --- Who's it for (compact audience cards) --- */
.stev-body .event-audience-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--stev-purple-light);
  border-radius: 14px;
}
.stev-body .event-audience-item .stev-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--stev-purple-hover);
}
.stev-body .event-audience-item .stev-icon::before { width: 22px; height: 22px; }
.stev-body .event-audience-item p { margin: 0; font-size: 16px; font-weight: 600; color: var(--stev-text-heading); }

/* --- FAQ accordion (native core/details) --- */
.stev-body .event-faq-item {
  border: 1px solid var(--stev-purple-light);
  border-radius: 14px;
  padding: 4px 22px;
  margin-top: 14px;
  background: #fff;
}
.stev-body .event-faq-item + .event-faq-item { margin-top: 12px; }
.stev-body .event-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 28px 16px 0;
  position: relative;
  font-size: 17px;
  font-weight: 600;
  color: var(--stev-text-heading);
}
.stev-body .event-faq-item summary::-webkit-details-marker { display: none; }
.stev-body .event-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--stev-purple);
  transition: transform 0.2s ease;
}
.stev-body .event-faq-item[open] summary::after { content: "\2212"; }
.stev-body .event-faq-item p { margin: 0 0 16px; font-size: 16px; color: var(--stev-text-body); line-height: 1.7; }

@media (max-width: 640px) {
  .stev-body .event-highlight .stev-icon,
  .stev-body .event-highlight .stev-icon::before { width: 26px; height: 26px; }
}

/* =============================================
   REGISTER (external) — single left-aligned button after the description
============================================= */
.stev-body-cta { max-width: 760px; margin: 28px auto 0; }

/* =============================================
   REGISTER — text left, form card right
============================================= */
.stev-reg__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.stev-reg__text .stev-title { margin-bottom: 16px; text-wrap: balance; }

.stev-reg__list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin: 22px 0 0; padding: 0; }
.stev-reg__list li { display: flex; gap: 11px; font-size: 16px; color: var(--stev-text-heading); text-transform: none; }
.stev-reg__list li::before { content: "→"; color: var(--stev-purple-hover); font-weight: 800; }

.stev-formcard {
  background: #fff;
  border-radius: 30px;
  padding: clamp(28px, 3vw, 42px);
  box-shadow: 0 10px 30px rgba(35, 35, 35, 0.07);
}

.stev-form__field { margin-bottom: 18px; }
.stev-form__field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 7px; color: var(--stev-text-heading); }
.stev-form__optional { font-weight: 500; color: var(--stev-text-muted); }
.stev-form__field input {
  width: 100%;
  border: 1.5px solid var(--stev-border);
  border-radius: 12px;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--stev-text-heading);
  background: #fff;
  transition: border-color 0.15s;
}
.stev-form__field input:focus { outline: none; border-color: var(--stev-purple-hover); }
.stev-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.stev-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 8px;
  background: var(--stev-purple);
  color: #fff;
  padding: 16px 40px;
  border: 0;
  border-radius: 50px;
  font-family: inherit;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.stev-form__submit:hover { background: var(--stev-purple-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3); }
.stev-form__submit:disabled { opacity: 0.65; cursor: wait; transform: none; box-shadow: none; }

.stev-form__consent { margin-top: 14px; font-size: 12.5px; line-height: 1.5; color: var(--stev-text-muted); text-align: center; }
.stev-form__consent a { color: var(--stev-purple-hover); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }

.stev-form__status { margin-top: 14px; padding: 14px 18px; border-radius: 12px; font-size: 14px; line-height: 1.5; display: none; }
.stev-form__status.is-error { display: block; background: #fff0f0; color: #c33; border: 1px solid #ffcccc; }
.stev-form__status.is-success { display: block; background: #e7faf2; color: #22a173; border: 1px solid #b8eed4; }

/* =============================================
   CARD GRID — archive list + single "upcoming"
============================================= */
.stev-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.stev-card {
  display: block;
  background: #fff;
  border-radius: var(--stev-card-radius);
  overflow: hidden;
  box-shadow: var(--stev-card-shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}
.stev-card:hover { transform: translateY(-4px); }

.stev-card__img { display: block; height: 200px; overflow: hidden; background: var(--stev-bg-alt); }
.stev-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.stev-card:hover .stev-card__img img { transform: scale(1.04); }

.stev-card__ph { width: 100%; height: 100%; background: linear-gradient(135deg, var(--stev-purple-light) 0%, var(--stev-purple) 160%); }

.stev-card__body { padding: 28px 24px; }
.stev-card__tag {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--stev-purple);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.stev-card__body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--stev-text-heading);
  margin: 0 0 8px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.stev-card__body p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--stev-text-body);
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* =============================================
   UPCOMING EVENTS strip (single event page)
============================================= */
.stev-upcoming { background: #fff; padding: clamp(72px, 9vw, 120px) 0; }
.stev-upcoming__head { margin-bottom: 48px; }

.stev-seeall { margin-top: 40px; font-size: 15px; text-align: center; }

/* =============================================
   HOST CTA — centered, purple gradient
============================================= */
.stev-cta {
  position: relative;
  background: var(--stev-hero-gradient);
  color: #fff;
  padding: clamp(72px, 9vw, 120px) 0;
  overflow: hidden;
  isolation: isolate;
}
.stev-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 50% at 15% 20%, rgba(255, 255, 255, 0.22), transparent 60%),
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.10) 0%, transparent 50%);
  pointer-events: none;
}
.stev-cta .stev-container { position: relative; z-index: 2; }
.stev-cta__title { text-align: center; font-size: 36px; font-weight: 400; line-height: 1.25; color: #fff; margin-bottom: 16px; }
.stev-cta__sub { text-align: center; margin: 0 auto; max-width: 60ch; font-size: 17px; line-height: 1.75; color: rgba(255, 255, 255, 0.7); }
.stev-cta__actions {
  margin-top: 33px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* =============================================
   HOMEPAGE "UPCOMING EVENTS" BLOCK
   (date-badge cards — matches the old homepage look)
============================================= */
.stev-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.stev-feed__card {
  background: #fff;
  border-radius: var(--stev-card-radius);
  padding: 36px 28px;
  box-shadow: var(--stev-card-shadow);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.stev-feed__card:hover { transform: translateY(-4px); }

.stev-feed__date {
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: 28px 28px;
  column-gap: 16px;
  align-items: center;
  margin: 0 0 20px;
}
.stev-feed__date p { margin: 0; }

.stev-feed__badge {
  grid-row: 1 / 3;
  grid-column: 1;
  width: 56px;
  height: 56px;
  background: var(--stev-purple-light);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.stev-feed__badge .day { display: block; font-size: 22px; font-weight: 800; color: var(--stev-text-heading); line-height: 1; margin: 0; letter-spacing: -0.5px; }
.stev-feed__badge .month { display: block; font-size: 11px; font-weight: 600; color: var(--stev-text-muted); text-transform: uppercase; letter-spacing: 1px; margin: 0; line-height: 1; }

.stev-feed__dow { grid-row: 1; grid-column: 2; align-self: end; font-size: 16px; color: var(--stev-text-muted); font-weight: 400; line-height: 1.35; }
.stev-feed__time { grid-row: 2; grid-column: 2; align-self: start; font-size: 16px; color: var(--stev-text-muted); font-weight: 400; line-height: 1.35; }

.stev-feed__card h3 { font-size: 18px; font-weight: 700; color: var(--stev-text-heading); margin: 0 0 8px; line-height: 1.3; }
.stev-feed__card > p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--stev-text-body);
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.stev-feed__card .stev-link { margin-top: auto; }

.stev-feed__empty { text-align: center; color: var(--stev-text-muted); font-size: 17px; }

/* =============================================
   EVENTS ARCHIVE (/whats-on/ + category terms)
============================================= */
.stev-archive__listing { padding: clamp(48px, 6vw, 80px) 0; }

.stev-archive__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.stev-filter {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border: 1px solid var(--stev-purple-light);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--stev-text-body);
  text-decoration: none;
  background: #fff;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.stev-filter:hover { color: var(--stev-purple); border-color: var(--stev-purple); }
.stev-filter.is-active { background: var(--stev-purple); border-color: var(--stev-purple); color: #fff; }

.stev-archive__empty { text-align: center; color: var(--stev-text-muted); padding: 40px 0; }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) {
  .stev-container { padding: 0 40px; }
  .stev-hero__inner { padding-left: 40px; padding-right: 40px; padding-top: 40px; padding-bottom: 60px; }
}

@media (max-width: 968px) {
  .stev-reg__grid { grid-template-columns: 1fr; }
  .stev-cards,
  .stev-feed { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .stev-container { padding: 0 20px; }
  .stev-hero h1 { font-size: 42px; }
  .stev-cards,
  .stev-feed { grid-template-columns: 1fr; }
  .stev-details { grid-template-columns: 1fr; gap: 22px; }
  .stev-body p, .stev-body ul > li { font-size: 17px; }
  .stev-featured { border-radius: 14px; }
  .stev-form__row { grid-template-columns: 1fr; }
  .stev-archive__filters { gap: 8px; }
  .stev-filter { padding: 7px 14px; font-size: 13px; }
  .stev-title, .stev-cta__title { font-size: 28px; }
}
