/* =====================================================================
   MLC SINGLE EVENT — redesigned default + tabbed event layout (.mev)
   (single-event-mlc.php; routed by functions/event-single-mlc.php)

   All color comes from theme tokens with hex fallbacks so the design
   follows each site's scheme (MLC: primary Creators Blue #0032a0,
   secondary Electric Teal #12ddb6, accent Electric Rose #ee448d).
   Per-event hero colors arrive as CSS vars on the article root:
     --mev-hero-bg / --mev-hero-text  (normalized in the template)
   The sticky offsets are set by event.js:
     --mev-stick-top (live masthead bottom) / --mev-tabnav-h
   ===================================================================== */

.mev {
  --c-primary: var(--wdg-color-primary, #0032a0);
  --c-teal: var(--wdg-color-electric-teal, #12ddb6);
  --c-rose: var(--wdg-color-electric-rose, #ee448d);
  --c-ink: var(--wdg-color-text, #414042);
  --c-line: #e2e8f2;
  --c-paper: #f4f7fb;
  --c-band: #e7eef9; /* deeper tint for the sub-hero shelf + tab nav zone */

  /* Brand layer: every accent below flows through these two slots so the
     MI sub-program brands (and future sites) override in one place.
     Defaults = the MLC values, so MLC renders unchanged. */
  --mev-accent: var(--c-teal);          /* chrome accents (card rules, active pills) */
  --mev-accent-ink: var(--c-primary);   /* text on the accent color */
  --mev-cta: var(--c-rose);             /* primary register button fill */
  --mev-cta-text: #fff;
  --mev-cta-hover: var(--c-primary);
  --mev-cta-hover-text: #fff;
  width: 100%;
}

/* ---- NAM: green-top card accents (the NAM stat-band language) with the
   aqua secondary-light register CTA the legacy event heroes used. ---- */
.mev--nam {
  --mev-accent: var(--wdg-color-nam-green, #43b02a);
  --mev-cta: var(--wdg-color-secondary-light, #66cbec);
  --mev-cta-text: var(--c-primary);
}

/* ---- IRI: plum primary flows in via --wdg-color-primary; the brand
   orange is the accent + CTA (plum text — white on IRI orange fails
   contrast). ---- */
.mev--iri {
  --mev-accent: var(--wdg-color-secondary, #ff8f1c);
  --mev-cta: var(--wdg-color-secondary, #ff8f1c);
  --mev-cta-text: var(--c-primary);
  /* plum-tinted neutrals instead of the blue-family band tints */
  --c-line: #e8e0e6;
  --c-paper: #f8f5f7;
  --c-band: #efe8ee;
}

/* ---- MI generic + sub-program brands (Heroes MAKE America / STEP /
   FAME / MFG Day). Hero band colors stay per-event via --mev-hero-bg;
   these govern the accent chrome. ---- */
.mev--mi {
  --mev-accent: var(--wdg-color-secondary, #5bc500);   /* MI green */
  --mev-cta: var(--wdg-color-secondary, #5bc500);
  --mev-cta-text: var(--c-primary);
}
.mev--brand-heroes {
  --mev-accent: var(--wdg-color-red, #da291c);
  --mev-cta: var(--wdg-color-red, #da291c);
  --mev-cta-text: #fff;
}
.mev--brand-step {
  --mev-accent: var(--wdg-color-purple, #87189d);
  --mev-cta: var(--wdg-color-purple, #87189d);
  --mev-cta-text: #fff;
}
.mev--brand-fame {
  --mev-accent: var(--wdg-color-teal, #2cccd3);
  --mev-cta: var(--wdg-color-teal, #2cccd3);
  --mev-cta-text: var(--c-primary);
}
.mev--brand-mfgday {
  --mev-accent: var(--wdg-color-orange, #ff8200);
  --mev-cta: var(--wdg-color-orange, #ff8200);
  --mev-cta-text: var(--c-primary);
}
.mev * { box-sizing: border-box; }

/* ---------------- Buttons ---------------- */
.mev-btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .8em 1.6em;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.mev-btn svg { width: 1.05em; height: 1.05em; flex: 0 0 auto; }
.mev-btn:hover { transform: translateY(-1px); }

.mev-btn--primary {
  background: var(--mev-cta);
  border-color: var(--mev-cta);
  color: var(--mev-cta-text, #fff) !important;
}
.mev-btn--primary:hover,
.mev-btn--primary:focus {
  background: var(--mev-cta-hover);
  border-color: var(--mev-cta-hover);
  color: var(--mev-cta-hover-text, #fff) !important;
}
.mev-btn--registered {
  background: var(--wdg-color-nam-green, #43b02a);
  border-color: var(--wdg-color-nam-green, #43b02a);
  color: #fff !important;
}
.mev-btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit !important;
}
.mev-btn--ghost:hover,
.mev-btn--ghost:focus {
  background: rgba(255, 255, 255, .14);
}
.mev--light-hero .mev-hero .mev-btn--ghost:hover,
.mev--light-hero .mev-hero .mev-btn--ghost:focus,
.mev-cta--past .mev-btn--ghost:hover,
.mev-cta--past .mev-btn--ghost:focus {
  background: rgba(0, 50, 160, .08);
}

/* ---------------- Hero ---------------- */
.mev-hero {
  position: relative;
  background: var(--mev-hero-bg, var(--c-primary));
  color: var(--mev-hero-text, #fff);
  overflow: hidden;
}

/* Photographic header art: full-bleed background under a directional
   gradient scrim built from the per-event hero color (the advance-page
   header treatment) — text stays readable, no media box. */
.mev-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.mev-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Flat fallback for browsers without color-mix (matches the theme's
     flat-navy .entry-header overlay). */
  background: rgba(0, 25, 80, .78);
}
@supports (background: color-mix(in srgb, red 50%, transparent)) {
  .mev-hero__scrim {
    background: linear-gradient(to right,
      var(--mev-hero-bg, var(--c-primary)) 0%,
      color-mix(in srgb, var(--mev-hero-bg, var(--c-primary)) 82%, transparent) 45%,
      color-mix(in srgb, var(--mev-hero-bg, var(--c-primary)) 45%, transparent) 100%);
  }
}
.mev-hero--photo .mev-hero__orb { display: none; }

.mev-hero__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
  z-index: 1;
}
.mev-hero__orb--1 {
  width: 480px; height: 480px;
  right: -140px; top: -220px;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.14), rgba(255,255,255,0) 68%);
}
.mev-hero__orb--2 {
  width: 340px; height: 340px;
  left: -120px; bottom: -180px;
  background: radial-gradient(circle at 60% 40%, rgba(0,0,0,.16), rgba(0,0,0,0) 70%);
}
.mev--light-hero .mev-hero__orb--1 { background: radial-gradient(circle at 35% 35%, rgba(0,50,160,.08), rgba(0,50,160,0) 68%); }
.mev--light-hero .mev-hero__orb--2 { background: radial-gradient(circle at 60% 40%, rgba(0,50,160,.06), rgba(0,50,160,0) 70%); }

.mev-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  /* Extra bottom padding hosts the overlapping at-a-glance card shelf. */
  padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1.25rem, 4vw, 2.5rem) clamp(3.25rem, 6vw, 4.5rem);
}
.mev-hero--no-glance .mev-hero__inner {
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.mev-hero__inner--media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(340px, 30%);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
/* Wide wordmark art gets a roomier column than the old photo card. */
.mev-hero__inner--media:has(.mev-hero__media--bare) {
  grid-template-columns: minmax(0, 1fr) min(460px, 40%);
}
.mev-hero__media {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 18px 44px -18px rgba(0, 10, 50, .55);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mev-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Transparent wordmark/logo art floats bare on the hero color —
   no card chrome. */
.mev-hero__media--bare {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: auto;
  overflow: visible;
}
.mev-hero__media--bare img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  filter: drop-shadow(0 14px 30px rgba(0, 10, 50, .35));
}

.mev-hero .breadcrumb,
.mev-hero .breadcrumb a,
.mev-hero .breadcrumb svg,
.mev-hero .breadcrumb-data { color: var(--mev-hero-text, #fff); }

.mev-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .75rem 0 1rem;
}
.mev-pill {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .32em .85em;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  opacity: .92;
}
.mev-pill svg { width: .9em; height: .9em; }
.mev-pill--type {
  background: var(--mev-accent);
  border-color: var(--mev-accent);
  color: var(--mev-accent-ink);
  opacity: 1;
}
.mev--light-hero .mev-pill--type { color: var(--c-primary); }
.mev-pill--past {
  background: rgba(255, 255, 255, .16);
  border-color: transparent;
}
.mev--light-hero .mev-pill--past { background: rgba(0, 50, 160, .08); }

.mev-hero__title {
  margin: 0 0 1.1rem;
  color: var(--mev-hero-text, #fff) !important;
  font-family: var(--wdg-font-heading, inherit);
  font-size: clamp(1.85rem, 1.2rem + 2.4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.015em;
  max-width: 26ch;
}

.mev-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.6rem;
  margin-bottom: 1.6rem;
  font-size: .98rem;
  font-weight: 600;
}
.mev-meta {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  opacity: .95;
}
.mev-meta svg { width: 1.1em; height: 1.1em; flex: 0 0 auto; opacity: .85; }

.mev-hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
}
.mev-hero__members-notice {
  display: flex;
  align-items: center;
  gap: .45em;
  margin: 1rem 0 0;
  font-size: .85rem;
  opacity: .92;
}
.mev-hero__members-notice svg { width: 1em; height: 1em; flex: 0 0 auto; }
.mev-hero__members-notice a {
  color: inherit !important;
  text-decoration: underline;
  font-weight: 700;
  cursor: pointer;
}
.mev-hero__ended {
  margin: 1rem 0 0;
  font-size: .95rem;
  font-weight: 600;
  opacity: .85;
}

/* ---------------- Add to calendar ---------------- */
.mev-cal { position: relative; display: inline-block; }
.mev-cal__caret { font-size: .8em; margin-left: .1em; }
.mev-cal__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #fff;
  color: var(--c-ink);
  border: 1px solid var(--c-line);
  border-radius: 10px;
  box-shadow: 0 18px 40px -16px rgba(0, 15, 60, .35);
  padding: .4rem;
  display: none;
  z-index: 200;
}
.mev-cal__menu--up { top: auto; bottom: calc(100% + 8px); }
.mev-cal.is-open .mev-cal__menu { display: block; }
.mev-cal__item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 7px;
  padding: .6rem .8rem;
  font-size: .92rem;
  font-weight: 600;
  color: var(--c-primary) !important;
  text-decoration: none !important;
  cursor: pointer;
}
.mev-cal__item:hover { background: var(--c-paper); }

/* ---------------- At-a-glance strip ----------------
   A card "shelf" overlapping the hero's bottom edge — kills the dead
   band between the hero and the article, and pulls the substance up.
   Below the hero edge the zone is tinted (paper) so hero → shelf →
   nav → white article read as distinct layers. */
.mev-glance {
  --mev-glance-ov: clamp(2.25rem, 4.5vw, 3rem);
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0) 0,
    rgba(0, 0, 0, 0) var(--mev-glance-ov),
    var(--c-band) var(--mev-glance-ov),
    var(--c-band) 100%);
  border-bottom: 1px solid var(--c-line);
  margin-top: calc(-1 * var(--mev-glance-ov));
  position: relative;
  z-index: 5;
  pointer-events: none;
}
.mev-glance__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem) clamp(1rem, 2vw, 1.35rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .85rem;
}
.mev-glance__card {
  pointer-events: auto;
  background: #fff;
  border: 1px solid var(--c-line);
  border-top: 4px solid var(--mev-accent);
  border-radius: 12px;
  box-shadow: 0 14px 32px -18px rgba(0, 20, 80, .4);
  padding: .75rem 1rem .8rem;
  display: flex;
  flex-direction: column;
  gap: .14rem;
  position: relative;
  min-width: 0;
}
.mev-glance__ico {
  position: absolute;
  top: .75rem;
  right: .85rem;
  color: var(--c-primary);
  opacity: .35;
}
.mev-glance__ico svg { width: 1.2rem; height: 1.2rem; }
.mev-glance__label {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-primary);
  opacity: .75;
}
.mev-glance__value {
  font-weight: 700;
  font-size: .98rem;
  color: var(--c-ink);
  padding-right: 1.6rem;
  overflow-wrap: anywhere;
}
.mev-glance__value a { color: var(--c-primary) !important; text-decoration: underline; }
.mev-glance__sub { font-size: .85rem; color: var(--c-ink); opacity: .75; }

/* ---------------- Body ---------------- */
.mev-body { background: #fff; }
.mev-body__inner {
  max-width: 54rem;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 4vw, 2rem) clamp(2rem, 5vw, 3.5rem);
}
.mev-body .entry-content {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1.65;
}
.mev-body .entry-content iframe { max-width: 100%; }
.mev-body .entry-content > *:first-child { margin-block-start: 0; }

/* Authored fixed-width chrome inside legacy event content (e.g. the
   `.info-box{width:400px}` cards on the Rethink pages) must never exceed
   the viewport on small screens. */
.mev .entry-content .info-box { max-width: 100% !important; }

/* ---------------- Icon cards ----------------
   Migrated "heading + icon image + paragraph" stacks (the Rethink
   why-attend sections) rewritten as compact cards; same design family
   as the at-a-glance shelf. */
.mev .entry-content .mev-icards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-block: 1.75rem !important;
}
.mev .entry-content .mev-icard {
  background: #fff;
  border: 1px solid var(--c-line);
  border-top: 4px solid var(--mev-accent);
  border-radius: 12px;
  box-shadow: 0 10px 26px -18px rgba(0, 20, 80, .35);
  padding: 1.15rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  min-width: 0;
  margin: 0 !important;
}
.mev .entry-content .mev-icard__ico {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--c-paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem;
  box-sizing: border-box;
}
.mev .entry-content .mev-icard__ico img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  margin: 0 !important;
}
.mev .entry-content .mev-icard .mev-icard__title {
  margin: 0 !important;
  color: var(--c-primary);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}
.mev .entry-content .mev-icard p {
  margin: 0 !important;
  font-size: .93rem;
  line-height: 1.55;
}
@media (max-width: 900px) {
  .mev .entry-content .mev-icards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .mev .entry-content .mev-icards { grid-template-columns: 1fr; }
}

/* Tabbed events: the body goes full-width, the panels self-cap. */
.mev--tabbed .mev-body__inner {
  max-width: none;
  padding: 0;
}

/* ---------------- Sections shared ---------------- */
.mev-section-title {
  margin: 0 0 1.4rem;
  color: var(--c-primary);
  font-family: var(--wdg-font-heading, inherit);
  font-size: clamp(1.35rem, 1rem + 1.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -.01em;
}

/* ---------------- Upcoming sessions (recurring) ---------------- */
.mev-sessions { background: var(--c-paper); border-top: 1px solid var(--c-line); }
.mev-sessions__inner {
  max-width: 54rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2rem);
}
.mev-sessions__list { list-style: none; margin: 0; padding: 0; }
.mev-sessions__item {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  padding: .8rem 1rem;
  margin-bottom: .55rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem .9rem;
}
.mev-sessions__item.is-next { border-color: var(--mev-accent); box-shadow: 0 6px 18px -10px rgba(0, 20, 80, .25); }
.mev-sessions__date { font-weight: 700; color: var(--c-primary); }
.mev-sessions__time { font-size: .92rem; }
.mev-sessions__note { font-size: .85rem; opacity: .8; flex-basis: 100%; }
.mev-sessions__next {
  background: var(--mev-accent);
  color: var(--mev-accent-ink);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .2em .6em;
  border-radius: 999px;
  margin-left: auto;
}
.mev-sessions__hint { font-size: .85rem; opacity: .8; margin: .8rem 0 0; }

/* ---------------- Speakers ---------------- */
.mev-speakers { background: #fff; border-top: 1px solid var(--c-line); }
.mev-speakers__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2.5rem);
}
.mev-speakers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.mev-spk {
  display: flex;
  align-items: center;
  gap: .9rem;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  padding: .9rem 1.05rem;
  min-width: 0;
}
.mev-spk__avatar {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .04em;
}
.mev-spk__body { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.mev-spk__name {
  font-weight: 700;
  color: var(--c-primary) !important;
  font-size: 1rem;
  text-decoration: none;
}
a.mev-spk__name:hover { text-decoration: underline; }
.mev-spk__role { font-size: .86rem; color: var(--c-ink); opacity: .8; }

/* ---------------- Closing CTA band ---------------- */
.mev-cta {
  position: relative;
  background: var(--c-primary);
  color: #fff;
  overflow: hidden;
  text-align: center;
}
.mev-cta::before,
.mev-cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.mev-cta::before {
  width: 420px; height: 420px;
  right: -140px; top: -200px;
  background: radial-gradient(circle at 35% 35%, rgba(18,221,182,.22), rgba(18,221,182,0) 68%);
}
.mev-cta::after {
  width: 320px; height: 320px;
  left: -110px; bottom: -170px;
  background: radial-gradient(circle at 60% 40%, rgba(238,68,141,.2), rgba(238,68,141,0) 70%);
}
/* Decorative CTA-band glows follow the brand accents where color-mix exists. */
@supports (background: color-mix(in srgb, red 50%, transparent)) {
  .mev-cta::before {
    background: radial-gradient(circle at 35% 35%,
      color-mix(in srgb, var(--mev-accent) 22%, transparent),
      transparent 68%);
  }
  .mev-cta::after {
    background: radial-gradient(circle at 60% 40%,
      color-mix(in srgb, var(--mev-cta) 20%, transparent),
      transparent 70%);
  }
}
.mev-cta__inner {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2rem);
}
.mev-cta__title {
  margin: 0 0 .7rem;
  color: #fff;
  font-family: var(--wdg-font-heading, inherit);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem);
  font-weight: 700;
}
.mev-cta__sub {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  opacity: .92;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .45em;
}
.mev-cta__sub svg { width: 1.05em; height: 1.05em; }
.mev-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .75rem;
}
.mev-cta--past {
  background: var(--c-paper);
  color: var(--c-ink);
}
.mev-cta--past::before { background: radial-gradient(circle at 35% 35%, rgba(0,50,160,.07), rgba(0,50,160,0) 68%); }
.mev-cta--past::after { background: radial-gradient(circle at 60% 40%, rgba(0,50,160,.05), rgba(0,50,160,0) 70%); }
.mev-cta--past .mev-cta__title { color: var(--c-primary); }

/* =====================================================================
   TABBED EVENTS — restyle the my-plugin/tab-container chrome as a
   sticky pill sub-nav (scoped to .mev--tabbed so tab blocks elsewhere
   are untouched). The nav/subnav ULs are built client-side by
   template-parts/blocks/tab-block/view.js.
   ===================================================================== */

.mev--tabbed .entry-content > .wp-block-my-plugin-tab-container,
.mev--tabbed .entry-content > .tab-container,
.mev--tabbed .entry-content > .tab-container.alignwide,
.mev--tabbed .entry-content > .tab-container.alignfull {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: none !important;
}

/* --- pill nav bar --- */
.mev--tabbed .tab-nav {
  position: sticky;
  top: var(--mev-stick-top, 0px);
  z-index: 90;
  height: auto !important;
  min-height: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center !important;
  align-items: center;
  gap: .45rem;
  padding: .7rem clamp(1rem, 4vw, 2rem);
  margin: 0;
  background: var(--c-band);
  border-bottom: 2px solid var(--mev-accent) !important;
  box-shadow: 0 10px 24px -18px rgba(0, 20, 80, .45);
}
.mev--tabbed .tab-nav > .tab-nav-item {
  height: auto;
  flex: 0 0 auto;
  align-items: center;
}
.mev--tabbed .tab-nav_link {
  height: auto;
  width: auto;
  border: 0 !important;
  border-radius: 999px;
  padding: .5em 1.25em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--c-primary);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--c-line);
  text-decoration: none !important;
  transition: background .2s, color .2s, box-shadow .2s;
}
.mev--tabbed .tab-nav_link:hover,
.mev--tabbed .tab-nav_link:focus {
  background: rgba(0, 50, 160, .08);
  color: var(--c-primary);
  border: 0 !important;
}
.mev--tabbed .tab-nav_link.active,
.mev--tabbed .tab-nav_link:hover,
.mev--tabbed .tab-nav_link:focus {
  box-shadow: none;
}
.mev--tabbed .tab-nav_link.active {
  background: var(--c-primary) !important;
  color: #fff !important;
  border: 0 !important;
}
.mev--tabbed .tab-nav_chevron,
.mev--tabbed .tab-nav_chevron-top {
  color: var(--c-primary);
  position: static;
  transform: none;
  padding: 0 .35rem;
}
.mev--tabbed .tab-nav-item.has-children > .tab-nav_link {
  padding-right: 1.25em;
}

/* --- sub-nav row --- */
.mev--tabbed .tab-subnav {
  position: sticky;
  top: calc(var(--mev-stick-top, 0px) + var(--mev-tabnav-h, 58px));
  z-index: 89;
  height: auto;
  border: 0 !important;
  border-bottom: 1px solid var(--c-line) !important;
  background: #fff;
  box-shadow: none;
  justify-content: center;
  gap: .35rem;
}
.mev--tabbed .tab-subnav.is-visible {
  max-height: none;
  padding: .45rem clamp(1rem, 4vw, 2rem);
}
.mev--tabbed .tab-subnav > .tab-nav-item {
  flex: 0 0 auto;
  height: auto;
}
.mev--tabbed .tab-subnav-link {
  height: auto;
  width: auto;
  border: 0 !important;
  border-radius: 999px;
  padding: .4em 1.1em;
  display: inline-flex;
  align-items: center;
  font-size: .85rem;
  font-weight: 600;
  color: var(--c-primary);
  background: transparent;
  text-decoration: none !important;
}
.mev--tabbed .tab-subnav-link:hover,
.mev--tabbed .tab-subnav-link:focus {
  background: rgba(0, 50, 160, .08);
  border: 0 !important;
}
.mev--tabbed .tab-subnav-link.active {
  background: var(--mev-accent) !important;
  color: var(--mev-accent-ink) !important;
  border: 0 !important;
}
.mev--tabbed .tab-children {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  box-shadow: 0 18px 40px -16px rgba(0, 15, 60, .3);
}
.mev--tabbed .tab-children a,
.mev--tabbed .tab-subnav .tab-children a {
  color: var(--c-primary);
  border-radius: 7px;
}
.mev--tabbed .tab-children a:hover,
.mev--tabbed .tab-subnav .tab-children a:hover,
.mev--tabbed .tab-children a.active,
.mev--tabbed .tab-subnav .tab-children a.active {
  background: var(--c-paper);
  color: var(--c-primary);
}

/* --- panels ---
   Capped to a readable measure (long text panels like Venue &
   Transportation otherwise run ~1200px lines and read left-skewed);
   grids/columns inside still lay out fine at this width. */
.mev--tabbed .tab-panel,
.mev--tabbed .tab-panel.alignwide {
  max-width: 58rem;
  margin: 0 auto !important;
  padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1.25rem, 4vw, 2rem) clamp(1.75rem, 4vw, 3rem) !important;
  background: #fff;
}
.mev--tabbed .subpage-content { margin-top: 0; padding: 1rem 0 0; }
.mev--tabbed .tab-panel[data-hassubnav="true"] .subpage-content > .tab-title,
.mev--tabbed .tab-panel[data-hassubnav="true"] .subpage-content > h2:first-child,
.mev--tabbed .tab-panel[data-hassubnav="true"] .subpage-content > h3:first-child,
.mev--tabbed .tab-panel[data-hassubnav="true"] .subpage-content > h4:first-child { display: none; }

/* --- mobile: horizontal scroll strip instead of the stacked column --- */
@media (max-width: 61.9375em) {
  .mev--tabbed .tab-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start !important;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .mev--tabbed .tab-nav > .tab-nav-item {
    width: auto;
    min-width: max-content;
    height: auto;
  }
  .mev--tabbed .tab-nav_link {
    height: auto;
    justify-content: center;
    text-align: center;
    padding: .5em 1.1em;
    white-space: nowrap;
  }
  .mev--tabbed .tab-subnav {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .mev--tabbed .tab-subnav > .tab-nav-item {
    width: auto;
    min-width: max-content;
    height: auto;
  }
  .mev--tabbed .tab-subnav-link {
    height: auto;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
  }
  .mev--tabbed .tab-children {
    position: absolute;
    min-width: max-content;
    width: auto;
  }
}

/* ---------------- Small screens ---------------- */
@media (max-width: 768px) {
  .mev-hero__inner--media {
    grid-template-columns: 1fr;
  }
  .mev-hero__media {
    order: -1;
    aspect-ratio: 16 / 9;
    max-height: 240px;
    width: 100%;
  }
  .mev-hero__media--bare img { max-height: 160px; }
  /* Text spans the full width on small screens, so the photo scrim goes
     near-opaque edge to edge. */
  .mev-hero__scrim { background: rgba(0, 25, 80, .9); }
  @supports (background: color-mix(in srgb, red 50%, transparent)) {
    .mev-hero__scrim {
      background: linear-gradient(to bottom,
        var(--mev-hero-bg, var(--c-primary)) 0%,
        color-mix(in srgb, var(--mev-hero-bg, var(--c-primary)) 90%, transparent) 100%);
    }
  }
  .mev-hero__title { max-width: none; }
  .mev-glance__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .mev-glance__inner { grid-template-columns: 1fr; }
  .mev-hero__cta .mev-btn { width: 100%; justify-content: center; }
  .mev-hero__cta .mev-cal { width: 100%; }
  .mev-hero__cta .mev-cal__btn { width: 100%; justify-content: center; }
}

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  .mev-btn { transition: none; }
  .mev-btn:hover { transform: none; }
}
