/* ============================================================
   Exit Five — homepage styles (Phase 2)
   Layout + components ported from the Figma Make prototype.
   Design tokens come from theme.json (CSS custom properties
   auto-generated by WordPress).
   ============================================================ */

:root {
  --ex5-radius: 0.625rem;
  --ex5-container: 80rem;        /* 1280px */
  --ex5-container-px: 1.5rem;    /* 24px (px-6) */
}

/* Reset a few WP defaults that interfere with the design ---- */
body { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

/* Layout utilities ------------------------------------------- */
.ex5-container {
  max-width: var(--ex5-container);
  margin-inline: auto;
  padding-inline: var(--ex5-container-px);
}

.ex5-section { padding-block: 3rem; }

/* ============================================================
   Navigation
   ============================================================ */
.ex5-nav {
  border-bottom: 1px solid var(--wp--preset--color--border);
  background: var(--wp--preset--color--background);
}
.ex5-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}
.ex5-nav__left { display: flex; align-items: center; gap: 2rem; }
.ex5-nav__logo { width: 140px; color: var(--wp--preset--color--foreground); }
.ex5-nav__logo svg { width: 100%; height: auto; }
.ex5-nav__links { display: none; align-items: center; gap: 1.5rem; }
@media (min-width: 1024px) {
  .ex5-nav__links { display: flex; }
}
.ex5-nav__links a {
  font-weight: 400;
  color: var(--wp--preset--color--foreground);
  transition: color 150ms;
}
.ex5-nav__links a:hover { color: var(--wp--preset--color--accent); }

.ex5-nav__actions { display: flex; align-items: center; gap: 1rem; }

/* Login text link — sits next to the Become a Member button, styled
   like a nav link rather than a button so the CTA hierarchy is clear:
   one prominent filled button, one quiet text affordance. Hidden on
   small screens (the mobile menu carries it). */
.ex5-nav__login {
  display: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--wp--preset--color--foreground);
  transition: color 150ms;
}
@media (min-width: 1024px) {
  .ex5-nav__login { display: inline-flex; }
}
.ex5-nav__login:hover { color: var(--wp--preset--color--accent); }

.ex5-btn--subscribe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 2.75rem;
  padding: 0.5rem 1.25rem;
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary-foreground);
  border-radius: var(--ex5-radius);
  font-weight: 500;
  transition: background 150ms, color 150ms;
}
.ex5-btn--subscribe:hover {
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--accent-foreground);
}

.ex5-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.5rem;
  border-radius: var(--ex5-radius);
  color: var(--wp--preset--color--foreground);
  transition: background 150ms;
}
.ex5-icon-btn:hover { background: rgba(138, 255, 128, 0.1); }

/* Search bar + mobile menu (toggled by interactivity.js) ----- */
.ex5-nav__toggle { display: inline-flex; }
@media (min-width: 1024px) {
  .ex5-nav__toggle { display: none; }
}

.ex5-nav__searchbar,
.ex5-mobile-menu {
  border-bottom: 1px solid var(--wp--preset--color--border);
  background: var(--wp--preset--color--background);
}
.ex5-nav__searchbar[hidden],
.ex5-mobile-menu[hidden] { display: none; }
@media (min-width: 1024px) {
  .ex5-mobile-menu { display: none !important; }
}

.ex5-nav__searchbar-inner {
  display: flex;
  gap: 0.75rem;
  padding-block: 0.75rem;
}
.ex5-nav__searchinput {
  flex: 1;
  min-width: 0;
  padding: 0.625rem 1rem;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--ex5-radius);
  background: var(--wp--preset--color--background);
  color: var(--wp--preset--color--foreground);
  font: inherit;
}
.ex5-nav__searchinput:focus {
  outline: 2px solid var(--wp--preset--color--accent);
  outline-offset: 2px;
}

.ex5-mobile-menu__inner {
  display: flex;
  flex-direction: column;
  padding-bottom: 1rem;
}
.ex5-mobile-menu__link {
  padding: 0.875rem 0;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--wp--preset--color--foreground);
  border-bottom: 1px solid var(--wp--preset--color--border);
  transition: color 150ms;
}
.ex5-mobile-menu__link:hover { color: var(--wp--preset--color--accent); }
.ex5-mobile-menu__cta { margin-top: 1rem; }

/* ============================================================
   Hero
   ============================================================ */
.ex5-hero {
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary-foreground);
  border-bottom: 4px solid var(--wp--preset--color--accent);
}
.ex5-hero__inner { padding-block: 4rem; }
.ex5-hero__content { max-width: 42rem; }
.ex5-hero__title {
  font-size: clamp(2rem, 6vw, 3rem);   /* 32px → 48px */
  line-height: 1.1;
  font-weight: 600;
  margin: 0 0 1rem;
}
.ex5-hero__lede {
  font-size: 1.125rem;   /* 18px */
  font-weight: 300;
  color: color-mix(in srgb, var(--wp--preset--color--primary-foreground) 80%, transparent);
  margin: 0 0 2rem;
}
.ex5-hero__form {
  display: flex;
  gap: 0.75rem;
  max-width: 32rem;
}
.ex5-hero__input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--wp--preset--color--background);
  color: var(--wp--preset--color--foreground);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--ex5-radius);
}
.ex5-hero__input:focus {
  outline: 2px solid var(--wp--preset--color--accent);
  outline-offset: 2px;
}
.ex5-hero__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--accent-foreground);
  border-radius: var(--ex5-radius);
  font-weight: 600;
  transition: opacity 150ms;
}
.ex5-hero__submit:hover { opacity: 0.9; }
.ex5-hero__submit:disabled,
.ex5-hero__submit.is-loading {
  opacity: 0.7;
  cursor: progress;
}
.ex5-hero__fine {
  font-size: 0.875rem;
  font-weight: 300;
  color: color-mix(in srgb, var(--wp--preset--color--primary-foreground) 60%, transparent);
  margin: 1rem 0 0;
}

/* Inline subscribe feedback — shared across all data-ex5-subscribe forms. */
.ex5-subscribe-msg {
  flex-basis: 100%;
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}
.ex5-subscribe-msg--success {
  color: var(--wp--preset--color--accent, #00d563);
}
.ex5-subscribe-msg--error {
  color: #ff6b6b;
}

@media (max-width: 639px) {
  .ex5-hero__inner { padding-block: 3rem; }
  .ex5-hero__form { flex-direction: column; }
  .ex5-hero__submit { justify-content: center; }
  .ex5-nav__logo { width: 112px; }
}

/* ============================================================
   Category badge
   ============================================================ */
.ex5-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--wp--preset--color--foreground);
}
.ex5-badge--lime { background: var(--wp--preset--color--accent); }
.ex5-badge--blue { background: var(--wp--preset--color--secondary); }

/* Per-CPT badges, driven by the type-X class that wp:post-template
   adds to each <li> wrapper. Hide all by default; show the matching one. */
.ex5-badge--newsletter,
.ex5-badge--podcast,
.ex5-badge--live { display: none; }
.type-newsletter      .ex5-badge--newsletter { display: inline-block; background: var(--wp--preset--color--accent); }
.type-podcast_episode .ex5-badge--podcast    { display: inline-block; background: var(--wp--preset--color--secondary); }
.type-live_session    .ex5-badge--live       { display: inline-block; background: var(--wp--preset--color--accent); }

/* Query Loop post-template wrapper — strip default list styling. */
.wp-block-post-template {
  list-style: none;
  padding: 0;
  margin: 0;
}
.wp-block-post-template > li { margin: 0; }
.wp-block-post-template > li::before { content: none; }

/* Featured image inside Query Loop — match ex5-article__media aspect ratio. */
.ex5-article .wp-block-post-featured-image,
.ex5-card    .wp-block-post-featured-image {
  margin: 0 0 1rem;
}
.ex5-article .wp-block-post-featured-image a,
.ex5-card    .wp-block-post-featured-image a,
.ex5-article .wp-block-post-featured-image img,
.ex5-card    .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--ex5-radius);
  overflow: hidden;
  transition: transform 300ms;
}
.ex5-article:hover .wp-block-post-featured-image img,
.ex5-card:hover    .wp-block-post-featured-image img { transform: scale(1.03); }

/* Post-title link inside cards — inherit color, swap on hover. */
.ex5-article .wp-block-post-title a,
.ex5-card    .wp-block-post-title a,
.ex5-list-item .wp-block-post-title a {
  color: inherit;
  text-decoration: none;
  transition: color 150ms;
}
.ex5-article:hover .wp-block-post-title a,
.ex5-card:hover    .wp-block-post-title a,
.ex5-list-item:hover .wp-block-post-title a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* Post-excerpt + author/date — match the article styles. */
.ex5-article .wp-block-post-excerpt__excerpt {
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--wp--preset--color--muted-foreground);
  margin: 0 0 1rem;
}

/* ============================================================
   Main content grids
   ============================================================ */
.ex5-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .ex5-main-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ex5-main-grid__featured { grid-column: span 2 / span 2; }
}

.ex5-card-grid,
ul.wp-block-post-template.ex5-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 4rem;
  list-style: none;
  padding: 0;
}
.ex5-card-grid__heading {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 4rem 0 1.5rem;
}
.ex5-card-grid__heading + .ex5-card-grid { margin-top: 0; }
@media (min-width: 768px) {
  .ex5-card-grid,
  ul.wp-block-post-template.ex5-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .ex5-card-grid,
  ul.wp-block-post-template.ex5-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.ex5-card-grid__empty {
  font-size: 1.0625rem;
  color: rgba(0, 0, 0, 0.6);
  margin: 0 0 2rem;
}

/* ============================================================
   Homepage topic-filter row (above "More Content")
   ============================================================ */
.ex5-topic-filters {
  margin-top: 4rem;
}
.ex5-topic-filters__heading {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(0, 0, 0, 0.6);
  margin: 0 0 1rem;
}
.ex5-topic-filters__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.ex5-topic-filters__item { margin: 0; }
.ex5-topic-btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  color: var(--wp--preset--color--foreground);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.ex5-topic-btn:hover {
  border-color: rgba(0, 0, 0, 0.3);
  background: #fafafa;
}
.ex5-topic-btn--active {
  background: var(--wp--preset--color--foreground);
  color: var(--wp--preset--color--background);
  border-color: var(--wp--preset--color--foreground);
}
.ex5-topic-btn--active:hover {
  background: var(--wp--preset--color--foreground);
  color: var(--wp--preset--color--background);
}
/* When the topic row is present, the grid heading shouldn't add its own
   big top margin on top of the row's. */
.ex5-topic-filters + .ex5-card-grid__heading { margin-top: 2rem; }

/* ============================================================
   Homepage — Feature cards (full-bleed image cards to key pages)
   ============================================================ */
.ex5-feature-cards { margin-top: 4rem; }
@media (min-width: 768px) { .ex5-feature-cards { margin-top: 5rem; } }
.ex5-feature-cards__heading {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
}
.ex5-feature-cards__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .ex5-feature-cards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ex5-feature-cards__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.ex5-feature-card {
  position: relative;
  display: block;
  border-radius: 1rem;
  overflow: hidden;
  min-height: 260px;
  text-decoration: none;
  color: #fff;
  background: #1a1a1a;
  isolation: isolate;
}
@media (min-width: 768px) { .ex5-feature-card { min-height: 300px; } }

.ex5-feature-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.4s ease;
}
.ex5-feature-card:hover .ex5-feature-card__img { transform: scale(1.04); }

.ex5-feature-card__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient( to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0.05) 100% );
}

.ex5-feature-card__body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.5rem;
}
.ex5-feature-card__label {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.15;
}
@media (min-width: 768px) { .ex5-feature-card__label { font-size: 1.625rem; } }
.ex5-feature-card__sublabel {
  font-size: 0.9375rem;
  font-weight: 500;
  opacity: 0.9;
}

/* ============================================================
   Article (featured + cards)
   ============================================================ */
.ex5-article { cursor: pointer; }
.ex5-article__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--ex5-radius);
  margin-bottom: 1rem;
  background: var(--wp--preset--color--muted);
}
.ex5-article__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms;
}
.ex5-article:hover .ex5-article__media img { transform: scale(1.03); }
.ex5-article__media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ex5-article__placeholder {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted-foreground);
}

.ex5-article__title--featured {
  font-size: 2rem;       /* 32px */
  line-height: 1.2;
  font-weight: 600;
  margin: 0.75rem 0;
  transition: color 150ms;
}
.ex5-article__title--card {
  font-size: 1.25rem;    /* 20px */
  line-height: 1.3;
  font-weight: 600;
  margin: 0.5rem 0;
  transition: color 150ms;
}
.ex5-article:hover .ex5-article__title--featured,
.ex5-article:hover .ex5-article__title--card {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.ex5-article__excerpt {
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--wp--preset--color--muted-foreground);
  margin: 0 0 1rem;
}

.ex5-article__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--wp--preset--color--muted-foreground);
}
.ex5-article__meta .author { font-weight: 500; }
.ex5-article__meta .date { font-weight: 300; }
.ex5-card .ex5-article__meta { font-size: 0.875rem; }
.ex5-card .ex5-article__meta .author { font-weight: 300; }

/* ============================================================
   Latest articles sidebar
   ============================================================ */
.ex5-latest {
  background: color-mix(in srgb, var(--wp--preset--color--muted) 30%, transparent);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--ex5-radius);
  padding: 1.5rem;
}
.ex5-latest__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.ex5-latest__title {
  font-size: 1.5rem;     /* 24px */
  font-weight: 600;
  margin: 0;
}
.ex5-latest__all {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--wp--preset--color--foreground);
  transition: color 150ms;
}
.ex5-latest__all:hover { color: var(--wp--preset--color--accent); }

.ex5-list-item {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--wp--preset--color--border);
  cursor: pointer;
}
.ex5-list-item:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}
.ex5-list-item__title {
  font-size: 1.125rem;   /* 18px */
  line-height: 1.3;
  font-weight: 600;
  margin: 0.5rem 0;
  transition: color 150ms;
}
.ex5-list-item:hover .ex5-list-item__title {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.ex5-list-item__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;  /* 13px */
  color: var(--wp--preset--color--muted-foreground);
}
.ex5-list-item__meta .author { font-weight: 400; }
.ex5-list-item__meta .time { font-weight: 300; }

/* ============================================================
   Footer
   ============================================================ */
.ex5-footer {
  border-top: 1px solid var(--wp--preset--color--border);
  margin-top: 4rem;
  background: var(--wp--preset--color--background);
}
.ex5-footer__inner { padding-block: 3rem; }
.ex5-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .ex5-footer__grid { grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); }
}
.ex5-footer__logo { display: block; width: 130px; color: var(--wp--preset--color--foreground); margin-bottom: 1rem; }
.ex5-footer__tagline {
  color: var(--wp--preset--color--muted-foreground);
  font-size: 0.875rem;
  font-weight: 300;
  margin: 0;
}
.ex5-footer__col h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem;
}
.ex5-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ex5-footer__col a {
  color: var(--wp--preset--color--muted-foreground);
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 150ms;
}
.ex5-footer__col a:hover { color: var(--wp--preset--color--accent); }

.ex5-footer__bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--wp--preset--color--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) {
  .ex5-footer__bottom { flex-direction: row; }
}
.ex5-footer__copy {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--wp--preset--color--muted-foreground);
  margin: 0;
}
.ex5-footer__legal {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
}
.ex5-footer__legal a {
  color: var(--wp--preset--color--muted-foreground);
  font-weight: 400;
  transition: color 150ms;
}
.ex5-footer__legal a:hover { color: var(--wp--preset--color--accent); }

/* ============================================================
   Tiny icon helpers (inline SVGs use these sizes)
   ============================================================ */
.ex5-icon { width: 1rem; height: 1rem; flex-shrink: 0; }
.ex5-icon--lg { width: 1.25rem; height: 1.25rem; }

/* ============================================================
   Archive page hero (Newsletter / Podcast / Live Sessions)
   ============================================================ */
.ex5-archive-hero {
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary-foreground);
  position: relative;
  overflow: hidden;
}
.ex5-archive-hero__container {
  max-width: 87.5rem;
  margin-inline: auto;
  padding: 4rem 1.5rem;
}
@media (min-width: 768px) {
  .ex5-archive-hero__container { padding: 6rem 3rem; }
}
.ex5-archive-hero__content { max-width: 40rem; position: relative; z-index: 1; }
.ex5-archive-hero__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 2rem;
}
.ex5-archive-hero__lede {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  color: color-mix(in srgb, var(--wp--preset--color--primary-foreground) 80%, transparent);
  margin: 0 0 2.5rem;
}
.ex5-archive-hero__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .ex5-archive-hero__form { flex-direction: row; }
}
.ex5-archive-hero__input {
  flex: 1;
  padding: 1rem 1.25rem;
  background: var(--wp--preset--color--background);
  color: var(--wp--preset--color--foreground);
  border: 2px solid transparent;
  border-radius: var(--ex5-radius);
  font-size: 1rem;
}
.ex5-archive-hero__input:focus {
  outline: 2px solid var(--wp--preset--color--accent);
  outline-offset: 2px;
}
.ex5-archive-hero__submit {
  padding: 1rem 2rem;
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--accent-foreground);
  border-radius: var(--ex5-radius);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: opacity 150ms;
}
.ex5-archive-hero__submit:hover { opacity: 0.9; }

/* ============================================================
   Archive section + heading
   ============================================================ */
.ex5-archive-section { background: var(--wp--preset--color--background); padding: 4rem 0; }
@media (min-width: 768px) { .ex5-archive-section { padding: 6rem 0; } }
.ex5-archive-section__container {
  max-width: 87.5rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 768px) {
  .ex5-archive-section__container { padding-inline: 3rem; }
}
.ex5-archive-section__header { margin-bottom: 3rem; max-width: 48rem; }
.ex5-archive-section__header--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: none;
  gap: 1rem;
}
.ex5-archive-section__eyebrow {
  border-bottom: 1px solid var(--wp--preset--color--foreground);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.ex5-archive-section__eyebrow span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--wp--preset--color--foreground);
}
.ex5-archive-section__title {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
}
.ex5-btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--wp--preset--color--foreground);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 400;
  transition: background 150ms, color 150ms;
  white-space: nowrap;
}
.ex5-btn-outline:hover {
  background: var(--wp--preset--color--foreground);
  color: var(--wp--preset--color--background);
}

/* ============================================================
   Newsletter card grid (archive page)
   ============================================================ */
.ex5-newsletter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 768px)  { .ex5-newsletter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ex5-newsletter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.ex5-newsletter-card {
  display: flex;
  flex-direction: column;
  background: var(--wp--preset--color--background);
  border: 1px solid #d0d0ca;
  border-radius: 0.75rem;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: border-color 150ms, transform 150ms;
}
.ex5-newsletter-card:hover {
  border-color: var(--wp--preset--color--foreground);
}
.ex5-newsletter-card__media {
  position: relative;
  height: 11.25rem;
  overflow: hidden;
}
.ex5-newsletter-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ex5-newsletter-card__brand {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--wp--preset--color--accent);
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  transform: rotate(-2deg);
}
.ex5-newsletter-card__brand span {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--wp--preset--color--accent-foreground);
}
.ex5-newsletter-card__body {
  padding: 0.875rem;
}
.ex5-newsletter-card__badge {
  display: inline-block;
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--accent-foreground);
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}
.ex5-newsletter-card__title {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--wp--preset--color--foreground);
  margin: 0 0 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ex5-newsletter-card__excerpt {
  font-size: 0.8125rem;
  color: var(--wp--preset--color--muted-foreground);
  line-height: 1.5;
  margin: 0 0 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ex5-newsletter-card__meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.75rem;
  color: var(--wp--preset--color--muted-foreground);
}

/* ============================================================
   Single newsletter (detail page)
   ============================================================ */
.ex5-article-detail { background: var(--wp--preset--color--background); padding: 3rem 0; }
@media (min-width: 768px) { .ex5-article-detail { padding: 5rem 0; } }
.ex5-article-detail__container {
  max-width: 48rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.ex5-article-detail__header { margin-bottom: 2rem; }
.ex5-article-detail__eyebrow {
  display: inline-block;
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--accent-foreground);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}
.ex5-article-detail__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1rem;
}
.ex5-article-detail__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--wp--preset--color--muted-foreground);
}
.ex5-article-detail__media {
  margin: 2rem 0;
  border-radius: 0.75rem;
  overflow: hidden;
}
.ex5-article-detail__media img {
  width: 100%;
  height: auto;
  display: block;
}
.ex5-article-detail__body {
  font-size: 1.0625rem;
  line-height: 1.75;
}
.ex5-article-detail__body p { margin: 0 0 1.25rem; }
.ex5-article-detail__body h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
}
.ex5-article-detail__body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
}

/* ============================================================
   Related newsletters (single page bottom)
   ============================================================ */
.ex5-newsletter-grid--related {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px)  { .ex5-newsletter-grid--related { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .ex5-newsletter-grid--related { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.ex5-newsletter-related-card {
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 200ms;
}
.ex5-newsletter-related-card:hover { box-shadow: 0 20px 40px -16px rgba(0,0,0,0.2); }
.ex5-newsletter-related-card__media {
  position: relative;
  height: 14.25rem;
  overflow: hidden;
}
.ex5-newsletter-related-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms;
}
.ex5-newsletter-related-card:hover .ex5-newsletter-related-card__media img { transform: scale(1.03); }
.ex5-newsletter-related-card__number {
  position: absolute;
  left: 1.0625rem;
  bottom: 0;
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--accent-foreground);
  font-size: 1.25rem;
  font-weight: 600;
  padding: 0.5rem;
  border-top-right-radius: 0.5rem;
}
.ex5-newsletter-related-card__body {
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--accent-foreground);
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 17.5rem;
}
.ex5-newsletter-related-card__title {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ex5-newsletter-related-card__excerpt {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 400;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ex5-newsletter-related-card__meta {
  margin-top: auto;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.875rem;
}

/* ============================================================
   Podcast archive (/podcast/) — hero + recent grid + subscribe
   ============================================================ */

/* Hero (dark) ----------------------------------------------- */
.ex5-podcast-hero {
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary-foreground);
}
.ex5-podcast-hero__inner { padding-block: 4rem; }
@media (min-width: 768px) { .ex5-podcast-hero__inner { padding-block: 6rem; } }

.ex5-podcast-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .ex5-podcast-hero__grid { grid-template-columns: 1fr 1fr; }
}

.ex5-podcast-hero__art {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 1rem;
  overflow: hidden;
  background: #1a2520;
}
.ex5-podcast-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ex5-podcast-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}
.ex5-podcast-play svg {
  width: 2rem;
  height: 2rem;
  color: var(--wp--preset--color--accent-foreground);
}
.ex5-podcast-play::before {
  content: '';
  position: absolute;
  width: 5rem;
  height: 5rem;
  background: var(--wp--preset--color--accent);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  transition: transform 200ms;
}
.ex5-podcast-play svg { position: relative; z-index: 1; margin-left: 0.25rem; }
.ex5-podcast-play:hover::before { transform: scale(1.1); }

.ex5-podcast-hero__pill {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--accent-foreground);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}
.ex5-podcast-hero__title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 1.5rem;
  color: var(--wp--preset--color--primary-foreground);
}
.ex5-podcast-hero__excerpt {
  font-size: 1.125rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--wp--preset--color--primary-foreground) 80%, transparent);
  margin: 0 0 1.5rem;
  font-weight: 400;
}
.ex5-podcast-hero__meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 1rem;
  color: color-mix(in srgb, var(--wp--preset--color--primary-foreground) 60%, transparent);
  margin-bottom: 2rem;
}
.ex5-podcast-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Buttons ---------------------------------------------------- */
.ex5-podcast-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--ex5-radius);
  transition: background 150ms, color 150ms, opacity 150ms;
  text-decoration: none;
}
.ex5-podcast-btn--fill {
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--accent-foreground);
}
.ex5-podcast-btn--fill:hover { opacity: 0.9; }

.ex5-podcast-btn--outline {
  background: transparent;
  color: var(--wp--preset--color--accent);
  border: 2px solid var(--wp--preset--color--accent);
}
.ex5-podcast-btn--outline:hover {
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--accent-foreground);
}

.ex5-podcast-btn--invert {
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--accent);
  padding: 1rem 2rem;
}
.ex5-podcast-btn--invert:hover { opacity: 0.9; }

/* Recent episodes ------------------------------------------- */
.ex5-podcast-recent {
  background: var(--wp--preset--color--background);
  padding-block: 4rem;
}
@media (min-width: 768px) { .ex5-podcast-recent { padding-block: 6rem; } }

.ex5-podcast-recent__title {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 3rem;
}
.ex5-podcast-recent__empty {
  font-size: 1rem;
  color: var(--wp--preset--color--muted-foreground);
}

.ex5-podcast-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px)  { .ex5-podcast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ex5-podcast-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.ex5-podcast-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--border) 30%, transparent);
  border-radius: 0.75rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 200ms;
}
.ex5-podcast-card:hover { box-shadow: 0 20px 40px -16px rgba(0,0,0,0.2); }

.ex5-podcast-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #f5f5f5;
  overflow: hidden;
}
.ex5-podcast-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms;
}
.ex5-podcast-card:hover .ex5-podcast-card__img { transform: scale(1.03); }

.ex5-podcast-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 200ms;
}
.ex5-podcast-card:hover .ex5-podcast-card__play { opacity: 1; }
.ex5-podcast-card__play::before {
  content: '';
  position: absolute;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--wp--preset--color--accent);
  border-radius: 999px;
}
.ex5-podcast-card__play svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--wp--preset--color--accent-foreground);
  margin-left: 0.25rem;
  position: relative;
  z-index: 1;
}

.ex5-podcast-card__body { padding: 1.5rem; }
.ex5-podcast-card__meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--wp--preset--color--foreground) 60%, transparent);
  margin-bottom: 0.75rem;
}
.ex5-podcast-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.75rem;
  transition: color 150ms;
}
@media (min-width: 768px) {
  .ex5-podcast-card__title { font-size: 1.5rem; }
}
.ex5-podcast-card:hover .ex5-podcast-card__title { color: var(--wp--preset--color--accent); }
.ex5-podcast-card__excerpt {
  font-size: 1rem;
  color: color-mix(in srgb, var(--wp--preset--color--foreground) 70%, transparent);
  line-height: 1.6;
  margin: 0;
}

/* Subscribe CTA (lime) -------------------------------------- */
.ex5-podcast-subscribe {
  background: var(--wp--preset--color--accent);
  padding-block: 4rem;
}
@media (min-width: 768px) { .ex5-podcast-subscribe { padding-block: 6rem; } }

.ex5-podcast-subscribe__inner { text-align: center; }
.ex5-podcast-subscribe__title {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--wp--preset--color--accent-foreground);
  margin: 0 0 1.5rem;
}
.ex5-podcast-subscribe__lede {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  color: color-mix(in srgb, var(--wp--preset--color--accent-foreground) 80%, transparent);
  margin: 0 auto 2rem;
  max-width: 42rem;
}
@media (min-width: 768px) {
  .ex5-podcast-subscribe__lede { font-size: 1.25rem; }
}
.ex5-podcast-subscribe__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.ex5-podcast-subscribe__eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
  margin-bottom: 1rem;
}

/* Static hero variant — when no image is set, center the text column. */
.ex5-podcast-hero__grid--text-only {
  grid-template-columns: 1fr !important;
  max-width: 56rem;
  margin-inline: auto;
  text-align: center;
}
.ex5-podcast-hero__grid--text-only .ex5-podcast-hero__ctas { justify-content: center; }

/* Subscribe row (top of /podcast) ------------------------------ */
.ex5-podcast-subscribe-row {
  background: #fafafa;
  padding-block: 2.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
@media (min-width: 768px) { .ex5-podcast-subscribe-row { padding-block: 3rem; } }

.ex5-podcast-subscribe-row__title {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(0, 0, 0, 0.6);
  margin: 0 0 1.5rem;
}

.ex5-podcast-subscribe-row__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.ex5-podcast-subscribe-row__item { margin: 0; }

.ex5-podcast-subscribe-row__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--wp--preset--color--foreground);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.ex5-podcast-subscribe-row__link:hover {
  border-color: rgba(0, 0, 0, 0.25);
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.ex5-podcast-subscribe-row__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
}
.ex5-podcast-subscribe-row__icon img,
.ex5-podcast-subscribe-row__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Testimonials --------------------------------------------------- */
.ex5-podcast-testimonials {
  padding-block: 4rem;
  background: #fff;
}
@media (min-width: 768px) { .ex5-podcast-testimonials { padding-block: 5rem; } }

.ex5-podcast-testimonials__title {
  text-align: center;
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0 0 2.5rem;
}
@media (min-width: 768px) { .ex5-podcast-testimonials__title { font-size: 2.25rem; } }

.ex5-podcast-testimonials__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px)  { .ex5-podcast-testimonials__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ex5-podcast-testimonials__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.ex5-podcast-testimonial {
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.ex5-podcast-testimonial__stars {
  display: inline-flex;
  gap: 2px;
  color: #facc15;
}
.ex5-podcast-testimonial__quote {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  color: var(--wp--preset--color--foreground);
}
.ex5-podcast-testimonial__source {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.6);
  margin: 0;
}

/* Pagination ---------------------------------------------------- */
.ex5-podcast-pagination {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.ex5-podcast-pagination__link {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--wp--preset--color--foreground);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.ex5-podcast-pagination__link:hover {
  border-color: rgba(0, 0, 0, 0.25);
  background: #fafafa;
}
.ex5-podcast-pagination__link--prev { justify-self: start; }
.ex5-podcast-pagination__link--next { justify-self: end; }
.ex5-podcast-pagination__status {
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.6);
  font-weight: 500;
  text-align: center;
}

/* ============================================================
   Content Archive — /content (unified newsletter+podcast+live)
   ============================================================ */

/* Hero --------------------------------------------------------- */
.ex5-content-hero {
  background: var(--wp--preset--color--background);
  color: var(--wp--preset--color--foreground);
  padding-block: 3.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
@media (min-width: 768px) { .ex5-content-hero { padding-block: 5rem; } }

.ex5-content-hero__inner {
  max-width: 52rem;
  text-align: center;
}

.ex5-content-hero__eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 1rem;
}

.ex5-content-hero__title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
}
@media (min-width: 768px) { .ex5-content-hero__title { font-size: 2.75rem; } }

.ex5-content-hero__lede {
  font-size: 1.125rem;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.7);
  margin: 0;
}

/* Filter chips ------------------------------------------------- */
.ex5-content-chips {
  background: #fff;
  padding-block: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 5;
}

/* Second (topic) row sits directly under the sticky type row: not
   independently sticky, lighter chrome, subtle background to read as a
   secondary axis of filtering. */
.ex5-content-chips--topics {
  position: static;
  padding-block: 1rem;
  background: #fafafa;
}

.ex5-content-chips__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.ex5-content-chips__item { margin: 0; }

.ex5-content-chip {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--wp--preset--color--foreground);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.ex5-content-chip:hover {
  border-color: rgba(0, 0, 0, 0.3);
  background: #fafafa;
}
.ex5-content-chip--active {
  background: var(--wp--preset--color--foreground);
  color: var(--wp--preset--color--background);
  border-color: var(--wp--preset--color--foreground);
}
.ex5-content-chip--active:hover {
  background: var(--wp--preset--color--foreground);
  color: var(--wp--preset--color--background);
}

/* Grid --------------------------------------------------------- */
.ex5-content-grid-section {
  padding-block: 3rem;
}
@media (min-width: 768px) { .ex5-content-grid-section { padding-block: 4rem; } }

.ex5-content-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .ex5-content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ex5-content-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.ex5-content-grid__empty {
  text-align: center;
  font-size: 1.0625rem;
  color: rgba(0, 0, 0, 0.6);
  padding-block: 3rem;
}

/* Pagination --------------------------------------------------- */
.ex5-content-pagination {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.ex5-content-pagination__link {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--wp--preset--color--foreground);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.ex5-content-pagination__link:hover {
  border-color: rgba(0, 0, 0, 0.25);
  background: #fafafa;
}
.ex5-content-pagination__link--prev { justify-self: start; }
.ex5-content-pagination__link--next { justify-self: end; }
.ex5-content-pagination__status {
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.6);
  font-weight: 500;
  text-align: center;
}

/* ============================================================
   Live Session — single (/live/{slug}/)
   ============================================================ */
.ex5-ls-container {
  max-width: 87.5rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 768px) {
  .ex5-ls-container { padding-inline: 3rem; }
}

/* Hero -------------------------------------------------------- */
.ex5-ls-hero {
  background: var(--wp--preset--color--background);
  color: var(--wp--preset--color--foreground);
  padding-block: 2.5rem;
}
@media (min-width: 768px) { .ex5-ls-hero { padding-block: 3.5rem; } }

.ex5-ls-hero__image {
  max-width: 75%;
  margin: 0 auto 2.5rem;
  border-radius: 1rem;
  overflow: hidden;
  background: #f5f5f5;
}
.ex5-ls-hero__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.ex5-ls-hero__content {
  max-width: 75%;
  margin-inline: auto;
}
@media (max-width: 767px) {
  .ex5-ls-hero__image,
  .ex5-ls-hero__content { max-width: 100%; }
}

.ex5-ls-hero__partner {
  font-size: 0.9375rem;
  color: color-mix(in srgb, var(--wp--preset--color--foreground) 70%, transparent);
  margin: 0 0 0.75rem;
}
.ex5-ls-hero__title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 1rem;
}
.ex5-ls-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.ex5-ls-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: color-mix(in srgb, var(--wp--preset--color--foreground) 70%, transparent);
}
.ex5-ls-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--wp--preset--color--foreground);
  flex-shrink: 0;
}
.ex5-ls-hero__excerpt {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--wp--preset--color--foreground) 70%, transparent);
  margin: 0 0 2rem;
}
.ex5-ls-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Buttons ---------------------------------------------------- */
.ex5-ls-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--ex5-radius);
  border: 2px solid transparent;
  transition: background 150ms, color 150ms, opacity 150ms;
  text-decoration: none;
}
.ex5-ls-btn--fill {
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--accent-foreground);
}
.ex5-ls-btn--fill:hover { opacity: 0.9; }

.ex5-ls-btn--outline {
  background: transparent;
  color: var(--wp--preset--color--foreground);
  border-color: var(--wp--preset--color--foreground);
}
.ex5-ls-btn--outline:hover {
  background: var(--wp--preset--color--foreground);
  color: var(--wp--preset--color--background);
}

/* Body ------------------------------------------------------- */
.ex5-ls-body {
  background: var(--wp--preset--color--background);
  padding-block: 3rem;
}
@media (min-width: 768px) { .ex5-ls-body { padding-block: 4rem; } }
.ex5-ls-body__inner {
  max-width: 56rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 768px) {
  .ex5-ls-body__inner { padding-inline: 2rem; }
}

.ex5-ls-rich {
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 3rem;
}
.ex5-ls-rich p { margin: 0 0 1.25rem; }

.ex5-ls-section { margin-bottom: 3rem; }

.ex5-ls-badge-heading {
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--accent-foreground);
  border-radius: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  display: inline-block;
  margin-bottom: 1.5rem;
}

/* Numbered list (learning objectives / agenda) --------------- */
.ex5-ls-numbered {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}
.ex5-ls-numbered li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1.0625rem;
  line-height: 1.6;
}
.ex5-ls-numbered__num {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.125rem;
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--accent-foreground);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}
.ex5-ls-numbered--dark .ex5-ls-numbered__num {
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--accent);
  border-radius: 0.25rem;
  width: 2rem;
  height: 2rem;
}

/* Speaker cards ---------------------------------------------- */
.ex5-ls-speakers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .ex5-ls-speakers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ex5-ls-speaker {
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--foreground) 10%, transparent);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: border-color 150ms;
}
.ex5-ls-speaker:hover { border-color: var(--wp--preset--color--accent); }
.ex5-ls-speaker__top { display: flex; gap: 1rem; margin-bottom: 1rem; }
.ex5-ls-speaker__avatar {
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--wp--preset--color--accent);
}
.ex5-ls-speaker__name { font-size: 1.25rem; font-weight: 600; margin: 0 0 0.25rem; }
.ex5-ls-speaker__title { font-size: 0.875rem; margin: 0; color: color-mix(in srgb, var(--wp--preset--color--foreground) 70%, transparent); }
.ex5-ls-speaker__company { font-size: 0.875rem; font-weight: 600; margin: 0; color: color-mix(in srgb, var(--wp--preset--color--foreground) 70%, transparent); }
.ex5-ls-speaker__bio { font-size: 0.9375rem; line-height: 1.6; margin: 0; color: color-mix(in srgb, var(--wp--preset--color--foreground) 80%, transparent); }

/* Checklist -------------------------------------------------- */
.ex5-ls-checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.ex5-ls-checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1.0625rem;
  line-height: 1.6;
}
.ex5-ls-check {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--wp--preset--color--accent);
}

/* Takeaways -------------------------------------------------- */
.ex5-ls-takeaways {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}
.ex5-ls-takeaways li {
  background: #f5f5f5;
  border-left: 4px solid var(--wp--preset--color--accent);
  border-radius: 0.5rem;
  padding: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* Bottom CTA ------------------------------------------------- */
.ex5-ls-bottom-cta {
  background: var(--wp--preset--color--background);
  padding-block: 0 4rem;
}
.ex5-ls-bottom-cta__inner {
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary-foreground);
  border-radius: 0.75rem;
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 56rem;
  margin-inline: auto;
}
.ex5-ls-bottom-cta__title {
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  font-weight: 600;
  margin: 0 0 1rem;
  color: inherit;
}
.ex5-ls-bottom-cta__body {
  font-size: 1rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--wp--preset--color--primary-foreground) 80%, transparent);
  margin: 0 auto 1.5rem;
  max-width: 42rem;
}
