/* hero */
/**
 * Hero Block styles.
 *
 * One layout, five modifiers. The variants differ only in height, how far the image
 * bleeds in from the right, and how wide the copy column runs — everything else is
 * shared, which is the whole reason these are one block rather than five.
 *
 * Below 860px the image unpins into a band above the copy, so the headline sits on
 * flat background instead of a busy part of the photograph.
 */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: 440px;
  background: var(--bg-base, #121412);
  color: var(--text, #ffffff);
}

.hero--homepage { min-height: 600px; }
.hero--interior { min-height: 525px; }
.hero--plain    { min-height: 525px; }
.hero--service  { min-height: 525px; }
.hero--article  { min-height: 546px; }

/* Media ------------------------------------------------------------------
   Absolutely positioned so the photograph bleeds off the right edge with no
   container margin. The inset controls how far it reaches toward the copy. */

.hero__media {
  position: absolute;
  inset: 0 0 0 42%;
  z-index: 0;
}

.hero--homepage .hero__media { inset: 0 0 0 38%; }
.hero--article  .hero__media { inset: 0 0 0 40%; }
.hero--plain    .hero__media { inset: 0 0 0 44%; }
.hero--service  .hero__media { inset: 0 0 0 46%; }

.hero__media picture,
.hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Carries the image into the flat background behind the copy. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--bg-base, #121412) 0%,
    rgba(18, 20, 18, 0.88) 20%,
    rgba(18, 20, 18, 0.28) 62%,
    rgba(18, 20, 18, 0) 100%
  );
}

.hero__placeholder {
  height: 100%;
  border-radius: 0;
}

/* Copy -------------------------------------------------------------------- */

/* Padded measure, not --container: the gutter sits on this element rather than
   an outer box, so the copy lines up with the .section blocks either side. */
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-padded);
  margin-inline: auto;
  padding-inline: var(--space-gutter);
}

.hero__copy {
  max-width: 560px;
  padding-block: clamp(2.75rem, 6.5vw, 5rem);
}

.hero--homepage .hero__copy {
  max-width: 80%;
  padding-top: clamp(3.5rem, 6.4vw, 5.75rem);
  padding-bottom: clamp(3.5rem, 8.3vw, 7.45rem);
}
/* The interior and service comps run the copy to a 1280px measure with a tight
   band above and below — the height comes from the copy, not from padding. In rem
   so it tracks the root scale; at 960px flat the H1s wrapped a line early. */
.hero--interior .hero__copy,
.hero--plain    .hero__copy {
  max-width: 60rem;
  padding-top: 2.3rem;
  padding-bottom: 2.95rem;
}

.hero--service .hero__copy {
  max-width: 60rem;
  padding-top: 3.5rem;
  padding-bottom: 2.3rem;
}

/* The article hero carries just the kicker and the title — the comp sets it on a
   900px measure with a tighter band than the interior heroes. */
.hero--article .hero__copy {
  max-width: 56.25rem;
  padding-top: 4.9rem;
  padding-bottom: 2.9rem;
}

/* Eyebrow, headline and intro sit further apart on the interior heroes than on
   the homepage, where the whole stack is tighter. */
.hero__copy .eyebrow { margin-bottom: 1.625rem; font-size: 1.375rem; }

.hero--interior .hero__heading,
.hero--service  .hero__heading,
.hero--plain    .hero__heading { margin-bottom: 1.47rem; }

.hero--interior .hero__intro,
.hero--service  .hero__intro,
.hero--plain    .hero__intro { max-width: 44rem; margin-bottom: 4.3rem; }

.hero__heading {
  margin: 0 0 0.875rem;
  font-size: clamp(2.1rem, 4.4vw, 3.25rem);
  line-height: 1.19;
  color: var(--text, #ffffff);
}

.hero__subtitle {
  margin: 0 0 0.5rem;
  font-size: 1.656rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #c9cfc9);
}

.hero__intro {
  max-width: 30rem;
  margin: 0 0 1.5rem;
  font-size: 1.3125rem;
  line-height: 1.71;
  color: var(--text, #ffffff);
}

/* The comp drops the homepage button row a long way clear of the intro — roughly
   9% of the viewport width — so the gap is set in vw and capped, not a flat rem. */
.hero--homepage .hero__intro { max-width: 38rem; margin-bottom: clamp(2.5rem, 8.2vw, 7.375rem); }

.hero__note {
  margin-top: 1.5rem;
  font-size: 1.3125rem;
  color: var(--muted, #c9cfc9);
}

.hero__note a {
  color: var(--accent, #5ad05a);
  font-weight: 600;
  text-decoration: none;
}

.hero__note a:hover,
.hero__note a:focus-visible { text-decoration: underline; }

.hero__note > :first-child { margin-top: 0; }
.hero__note > :last-child  { margin-bottom: 0; }

/* The intro is the last element before the buttons on most variants, so the
   button row carries no extra top margin of its own. */
.hero__buttons { margin-top: 0; }

/* Editor-only prompt when no button has been added yet. */
.hero__buttons-empty {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--muted, #c9cfc9);
  font-style: italic;
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 860px) {
  .hero,
  .hero--homepage,
  .hero--interior,
  .hero--plain,
  .hero--service,
  .hero--article {
    display: block;
    min-height: 0;
  }

  .hero__media,
  .hero--homepage .hero__media,
  .hero--article .hero__media,
  .hero--plain .hero__media,
  .hero--service .hero__media {
    position: relative;
    inset: auto;
    aspect-ratio: 16 / 10;
  }

  .hero__media::after {
    background: linear-gradient(180deg, rgba(18, 20, 18, 0.5) 0%, rgba(18, 20, 18, 0) 45%);
  }

  .hero__copy,
  .hero--homepage .hero__copy,
  .hero--plain .hero__copy,
  .hero--service .hero__copy,
  .hero--article .hero__copy {
    max-width: none;
    padding-block: clamp(2rem, 8vw, 3rem);
  }

  .hero__intro,
  .hero--homepage .hero__intro { max-width: none; }

  .hero--homepage .hero__intro { margin-bottom: 2rem; }
}

@media (max-width: 560px) {
  .hero__media { aspect-ratio: 16 / 9; }
}

/* guides */
/**
 * Guides Block styles.
 */

.guides {
  background: var(--bg-base, #121412);
  color: var(--text, #ffffff);
}

.guides__heading {
  margin: 0 0 1.5rem;
  font-size: clamp(1.75rem, 3.2vw, 2.8125rem);
  color: var(--text, #ffffff);
}

.guides__subhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.guides__label {
  margin: 0;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted, #c9cfc9);
}

.guides__label--soon { margin: 2rem 0 1rem; }

.guides__all {
  font-size: 1.3125rem;
  color: var(--text, #ffffff);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.guides__all:hover,
.guides__all:focus-visible {
  color: var(--accent, #5ad05a);
  border-bottom-color: var(--accent, #5ad05a);
}

/* Available — artwork beside white rows. ---------------------------------------- */

.guides__layout {
  display: grid;
  grid-template-columns: 17.5rem 1fr;
  gap: 0.75rem;
  align-items: stretch;
}

/* The artwork column stretches with the row — that is what keeps its top edge level
   with the first guide — but the picture inside must not.
 *
 * Putting the aspect ratio on the container does nothing once the grid stretches it:
 * a stretched item takes its height from the row, and aspect-ratio only applies when
 * a dimension is auto. The image then filled that height and object-fit cropped it,
 * so the tile came out square at two guides and a tall sliver at three or more.
 *
 * The ratio belongs to the picture instead, with height auto. The tile is then square
 * at any number of guides, pinned to the top, and the container's leftover height is
 * simply empty background. */
.guides__artwork picture,
.guides__artwork-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.guides__rows {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.guides__row {
  --text: var(--ink, #121412);
  --muted: var(--ink-2);

  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  flex: 1;
  padding: 1.5rem;
  background: var(--bg-invert, #ffffff);
  color: var(--ink-2);
}

.guides__title {
  margin: 0 0 0.5rem;
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--ink, #121412);
}

.guides__summary {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.5;
}

.guides__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6875rem 1.125rem;
  border: 2px solid var(--ink, #121412);
  border-radius: var(--radius);
  color: var(--ink, #121412);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.22s ease, color 0.22s ease;
}

.guides__download:hover,
.guides__download:focus-visible {
  background: var(--ink, #121412);
  color: var(--bg-invert, #ffffff);
}

/* Coming soon — outlined, locked, not interactive. ------------------------------- */

.guides__tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.guides__tile {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 0.75rem;
  align-items: center;
  min-height: 4rem;
  padding: 1rem 1.5rem;
  border: 1px solid var(--border);
}

.guides__lock { color: var(--muted, #c9cfc9); }

.guides__tile-title {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text, #ffffff);
}

/* Alert form ---------------------------------------------------------------------- */

.guides__alert { margin-top: 2rem; }

/* The comp runs the alert form as one row — name, email, submit — with the consent
   line spanning underneath, the same shape as the newsletter band. */
.guides__alert .wpcf7-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.875rem 1.75rem;
  align-items: end;
}

.guides__alert .wpcf7-form > p { margin: 0; }

.guides__alert .wpcf7-form > p:last-of-type,
.guides__alert .wpcf7-acceptance { grid-column: 1 / -1; }

.guides__alert-heading {
  margin: 0 0 1rem;
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--accent, #5ad05a);
}

.guides__alert :where(input[type="text"], input[type="email"]) {
  width: 100%;
  padding: 0.625rem 0.125rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  color: var(--text, #ffffff);
  font-family: inherit;
  font-size: 1.125rem;
}

.guides__alert :where(input[type="text"], input[type="email"])::placeholder { color: var(--muted, #c9cfc9); }

.guides__alert :where(input[type="text"], input[type="email"]):focus {
  border-bottom-color: var(--accent, #5ad05a);
  outline: none;
}

.guides__hint {
  margin: 0;
  font-size: 1.125rem;
  font-style: italic;
  color: var(--muted, #c9cfc9);
}

/* Responsive ------------------------------------------------------------------------ */

@media (max-width: 820px) {
  .guides__tiles { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .guides__layout { grid-template-columns: 1fr; }

  /* Stacked, the tile becomes a letterbox band above the rows. */
  .guides__artwork picture,
  .guides__artwork-image { aspect-ratio: 16 / 9; }

  .guides__row { grid-template-columns: 1fr; gap: 1rem; }
  .guides__download { width: 100%; }
}

@media (max-width: 520px) {
  .guides__tiles { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .guides__download { transition: none; }
}

/* article-list */
/**
 * Article List Block styles.
 *
 * Four layouts over one card. `cards` and `white` are white panels, so those variants
 * flip the text tokens on the card itself; `grid` and `related` sit directly on the
 * dark background with no panel.
 */

.article-list {
  background: var(--bg-base, #121412);
  color: var(--text, #ffffff);
}

/* Head ------------------------------------------------------------------------ */

.article-list__head {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.125rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.article-list__heading {
  margin: 0;
  font-size: clamp(1.75rem, 3.2vw, 2.8125rem);
  color: var(--text, #ffffff);
}

.article-list--cards .article-list__head {
  justify-content: center;
  text-align: center;
}

.article-list--cards .article-list__viewall {
  position: absolute;
  right: 0;
  bottom: 0;
}

.article-list__viewall {
  font-size: 1.3125rem;
  color: var(--text, #ffffff);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.article-list__viewall:hover,
.article-list__viewall:focus-visible {
  color: var(--accent, #5ad05a);
  border-bottom-color: var(--accent, #5ad05a);
}

/* Grid -------------------------------------------------------------------------- */

.article-list__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.125rem;
}

.article-list--grid .article-list__grid { gap: 2rem 1.5rem; }

/* Related shows two cards but keeps the three-column width, so the cards keep
   their proportions instead of stretching across the container. */
.article-list--related .article-list__card:nth-child(n + 3) { display: none; }

/* Card ---------------------------------------------------------------------------- */

.article-list__card {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* White panel variants. */
.article-list--cards .article-list__card,
.article-list--white .article-list__card {
  --text: var(--ink, #121412);
  --muted: var(--ink-2);

  background: var(--bg-invert, #ffffff);
  color: var(--ink-2);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-list--cards .article-list__card:hover,
.article-list--white .article-list__card:hover { transform: translateY(-4px); }

.article-list--white .article-list__body { padding: 1.5rem; }
.article-list--cards .article-list__body { padding: 1.5rem; }

.article-list__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Media ------------------------------------------------------------------------- */

.article-list__media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

.article-list--grid .article-list__media,
.article-list--related .article-list__media { margin-bottom: 1rem; }

.article-list__media picture,
.article-list__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Copy --------------------------------------------------------------------------- */

.article-list__category {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted, #c9cfc9);
}

/* The dark variants set the category label in the brand green. */
.article-list--grid .article-list__category,
.article-list--related .article-list__category { color: var(--accent, #5ad05a); }

/* Bold in the artwork. At Regular these read as body copy and the card loses its
   hierarchy — the title is the thing you scan, not the excerpt. */
.article-list__title {
  flex: 1;
  margin: 0 0 0.75rem;
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text, #ffffff);
}

.article-list--grid .article-list__title,
.article-list--related .article-list__title {
  font-size: 1.3125rem;
  line-height: 1.5;
}

.article-list__excerpt {
  flex: 1;
  margin: 0 0 1.5rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted, #c9cfc9);
}

.article-list__foot { display: flex; }

.article-list--grid .article-list__foot,
.article-list--related .article-list__foot { justify-content: flex-end; }

.article-list__link {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text, #ffffff);
  text-decoration: none;
}

.article-list--cards .article-list__link,
.article-list--white .article-list__link { font-size: 1.21875rem; }

/* Stretched over the card so the whole card is clickable, while the link text
   stays the accessible name. */
.article-list__link::before {
  content: "";
  position: absolute;
  inset: 0;
}

.article-list__link:hover,
.article-list__link:focus-visible { color: var(--accent, #5ad05a); }

/* Responsive ---------------------------------------------------------------------- */

@media (max-width: 920px) {
  .article-list__grid { grid-template-columns: repeat(2, 1fr); }

  .article-list--cards .article-list__grid,
  .article-list--white .article-list__grid {
    grid-template-columns: 1fr;
    max-width: 35rem;
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .article-list__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .article-list--cards .article-list__card,
  .article-list--white .article-list__card { transition: none; }

  .article-list--cards .article-list__card:hover,
  .article-list--white .article-list__card:hover { transform: none; }
}

/* podcast-episodes */
/**
 * Podcast Episodes Block styles.
 *
 * `cards` gives each episode artwork beside a solid green panel; `rows` is the compact
 * cross-promotion — one shared artwork tile with white rows alongside.
 */

.podcast-episodes {
  background: var(--bg-base, #121412);
  color: var(--text, #ffffff);
}

.podcast-episodes__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.podcast-episodes__heading {
  margin: 0;
  font-size: clamp(1.75rem, 3.2vw, 2.8125rem);
  color: var(--text, #ffffff);
}

.podcast-episodes__all {
  font-size: 1.125rem;
  color: var(--text, #ffffff);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.podcast-episodes__all:hover,
.podcast-episodes__all:focus-visible {
  color: var(--accent, #5ad05a);
  border-bottom-color: var(--accent, #5ad05a);
}

/* Rows — shared artwork beside a stack of white rows. -------------------------- */

.podcast-episodes--rows .podcast-episodes__layout {
  display: grid;
  grid-template-columns: 11.5rem 1fr;
  gap: 0.75rem;
  align-items: stretch;
}

.podcast-episodes__artwork { aspect-ratio: 1 / 1; }

.podcast-episodes__artwork picture,
.podcast-episodes__artwork-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.podcast-episodes--rows .podcast-episodes__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.podcast-episodes--rows .podcast-episodes__item {
  --text: var(--ink, #121412);
  --muted: var(--ink-2);

  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  flex: 1;
  padding: 1.5rem;
  background: var(--bg-invert, #ffffff);
  color: var(--ink-2);
}

.podcast-episodes--rows .podcast-episodes__body {
  display: contents;
}

.podcast-episodes--rows .podcast-episodes__desc {
  font-size: 1.125rem;
  line-height: 1.55;
}

.podcast-episodes--rows .podcast-episodes__desc strong { color: var(--ink, #121412); }

.podcast-episodes--rows .podcast-episodes__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6875rem 1.125rem;
  border: 2px solid var(--ink, #121412);
  border-radius: var(--radius);
  color: var(--ink, #121412);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.22s ease, color 0.22s ease;
}

.podcast-episodes--rows .podcast-episodes__link:hover,
.podcast-episodes--rows .podcast-episodes__link:focus-visible {
  background: var(--ink, #121412);
  color: var(--bg-invert, #ffffff);
}

/* Cards — artwork beside a green panel. ----------------------------------------- */

.podcast-episodes--cards .podcast-episodes__list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.podcast-episodes--cards .podcast-episodes__item {
  display: grid;
  grid-template-columns: 29rem 1fr;
  align-items: stretch;
}

.podcast-episodes--cards .podcast-episodes__media { min-height: 27.5rem; }

.podcast-episodes__media picture,
.podcast-episodes__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.podcast-episodes--cards .podcast-episodes__body {
  display: flex;
  flex-direction: column;
  /* The comp hangs the platform row off the bottom of the tile rather than
     centring the whole stack. */
  justify-content: space-between;
  padding: clamp(1.25rem, 2.4vw, 1.5625rem);
  background: var(--accent, #5ad05a);
  color: var(--green-ink, #0e1c0e);
}

.podcast-episodes__number {
  margin: 0 0 0.75rem;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(14, 28, 14, 0.72);
}

.podcast-episodes__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 3.2vw, 2.8125rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--green-ink, #0e1c0e);
}

.podcast-episodes--cards .podcast-episodes__desc {
  max-width: 32.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.3125rem;
  line-height: 1.55;
  color: rgba(14, 28, 14, 0.86);
}

.podcast-episodes--cards .podcast-episodes__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.podcast-episodes__platforms {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.podcast-episodes__platforms a {
  display: flex;
  color: var(--green-ink, #0e1c0e);
  transition: opacity 0.22s ease;
}

.podcast-episodes__platforms a:hover,
.podcast-episodes__platforms a:focus-visible { opacity: 0.7; }

.podcast-episodes--cards .podcast-episodes__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9375rem 1.625rem;
  border: 2px solid var(--bg-invert, #ffffff);
  border-radius: var(--radius);
  background: var(--bg-invert, #ffffff);
  color: var(--ink, #121412);
  font-size: 1.03125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.22s ease;
}

.podcast-episodes--cards .podcast-episodes__link:hover,
.podcast-episodes--cards .podcast-episodes__link:focus-visible { background: var(--bg-invert-h); }

/* Responsive --------------------------------------------------------------------- */

@media (max-width: 820px) {
  .podcast-episodes--cards .podcast-episodes__item { grid-template-columns: 1fr; }
  .podcast-episodes--cards .podcast-episodes__media { min-height: 0; aspect-ratio: 16 / 9; }
}

@media (max-width: 760px) {
  .podcast-episodes--rows .podcast-episodes__layout { grid-template-columns: 1fr; }
  .podcast-episodes__artwork { aspect-ratio: 16 / 9; }

  .podcast-episodes--rows .podcast-episodes__item { grid-template-columns: 1fr; gap: 1rem; }
  .podcast-episodes--rows .podcast-episodes__link { width: 100%; }
}

@media (max-width: 480px) {
  .podcast-episodes--cards .podcast-episodes__foot { align-items: stretch; }
  .podcast-episodes--cards .podcast-episodes__link { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .podcast-episodes__platforms a,
  .podcast-episodes__link { transition: none; }
}

/* newsletter */
/**
 * Newsletter Block styles.
 *
 * Three layouts over one DOM. The CF7 form is styled here too — CF7 emits its own
 * markup, so the rules target its classes (.wpcf7-form-control) rather than ours.
 * autop is switched off in app/filters.php, so the fields sit directly in the grid.
 */

.newsletter {
  background: var(--bg-base, #121412);
  color: var(--text, #ffffff);
}

/* Band — everything centred, fields in one row. --------------------------- */

.newsletter--band { text-align: center; }

.newsletter--band .newsletter__copy { margin-bottom: 3rem; }

.newsletter--band .newsletter__intro {
  max-width: 39rem;
  margin-inline: auto;
}

/* The comps run this row from x=203 to x=1715 — 1512px, not 1194. */
.newsletter--band .newsletter__form {
  max-width: 71rem;
  margin-inline: auto;
  text-align: left;
}

.newsletter--simple .newsletter__form {
  max-width: 56rem;
  margin-inline: auto;
  text-align: left;
}

/* Simple — plain uppercase heading, no intro. ----------------------------- */

.newsletter--simple { text-align: center; }

.newsletter--simple .newsletter__heading {
  margin: 0 0 3rem;
  font-size: clamp(1.35rem, 3.2vw, 2.8125rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Split — copy left, form right. ------------------------------------------ */

.newsletter--split {
  padding-block: 3rem;
  border-top: 1px solid var(--border);
}

.newsletter--split .newsletter__inner {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  /* 85px between the columns in the comps. A wider gap squeezes the left column
     under the bracketed heading's measure and breaks it onto two lines. */
  gap: clamp(2rem, 6vw, 4rem);
  align-items: start;
}

.newsletter--split .newsletter__heading { margin-bottom: 1.5rem; }

.newsletter__statement {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 2.4vw, 2.0625rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text, #ffffff);
}

.newsletter__intro {
  margin: 0;
  font-size: 1.3125rem;
  color: var(--text, #ffffff);
}

/* Form ---------------------------------------------------------------------
   CF7 emits the fields as sibling <p> elements inside .wpcf7-form and autop is
   off (app/filters.php), so the form itself is the grid and those paragraphs are
   its items. Split stacks them; band and simple put name, email and the submit
   in one row with the consent line spanning underneath — which means the form
   template has to order its tags name, email, submit, consent.

   The submit carries `class:btn class:btn--outline-light` in the CF7 template, so
   the button treatment comes from buttons.css like every other CTA; the spinner
   is taken out of flow in shared.css, otherwise it steals a column of width. */

.newsletter__form .wpcf7-form {
  display: grid;
  gap: 1.25rem;
}

.newsletter__form .wpcf7-form > p { margin: 0; }

/* Field label sits above its input. The consent label is nested deeper, inside
   CF7's acceptance markup, so `> p > label` leaves it alone. */
.newsletter__form .wpcf7-form > p > label {
  display: block;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text, #ffffff);
}

.newsletter__form .wpcf7-form-control-wrap { display: block; }

.newsletter__form :where(input[type="text"], input[type="email"]) {
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  color: var(--text, #ffffff);
  font-family: inherit;
  font-size: 1.125rem;
  line-height: 1.3;
  transition: border-color 0.22s ease;
}

.newsletter__form :where(input[type="text"], input[type="email"])::placeholder { color: var(--muted, #c9cfc9); }

.newsletter__form :where(input[type="text"], input[type="email"]):focus {
  border-bottom-color: var(--accent, #5ad05a);
  outline: none;
}

.newsletter__form input[type="submit"] {
  min-width: 11.25rem;
  white-space: nowrap;
}

/* Consent ------------------------------------------------------------------ */

.newsletter__form .wpcf7-list-item { margin: 0; }

.newsletter__form .wpcf7-acceptance,
.newsletter__consent {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted, #c9cfc9);
}

.newsletter__form .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

/* The design runs the privacy-policy link in with the consent text; the underline
   is kept for hover and keyboard focus so it is still identifiable as a link. */
.newsletter__form .wpcf7-list-item-label a {
  color: inherit;
  text-decoration: none;
}

.newsletter__form .wpcf7-list-item-label a:hover,
.newsletter__form .wpcf7-list-item-label a:focus-visible { text-decoration: underline; }

.newsletter__form input[type="checkbox"] {
  flex: none;
  width: 0.9375rem;
  height: 0.9375rem;
  margin: 0;
  accent-color: var(--bg-invert, #ffffff);
}

/* Inline field row for band + simple. */
@media (min-width: 761px) {
  .newsletter--band .newsletter__fallback,
  .newsletter--simple .newsletter__fallback,
  .newsletter--band .newsletter__form .wpcf7-form,
  .newsletter--simple .newsletter__form .wpcf7-form {
    /* The comps set the two fields equal and the button on a fixed 301px, with a
       ~47px gutter — `auto` sized the button to its label and left the fields wide. */
    grid-template-columns: 1fr 1fr 14.1rem;
    column-gap: 2.2rem;
    row-gap: 0.875rem;
    align-items: end;
  }

  .newsletter--band .newsletter__fallback,
  .newsletter--simple .newsletter__fallback { display: grid; }

  /* The button fills its column rather than sizing to its label — 301px in the comps. */
  .newsletter--band .newsletter__form input[type="submit"],
  .newsletter--simple .newsletter__form input[type="submit"] { width: 100%; }

  /* The consent line and CF7's response message each take a row of their own. */
  .newsletter--band .newsletter__consent,
  .newsletter--simple .newsletter__consent,
  .newsletter--band .wpcf7-form > .form__consent,
  .newsletter--simple .wpcf7-form > .form__consent,
  .newsletter--band .wpcf7-form > .wpcf7-response-output,
  .newsletter--simple .wpcf7-form > .wpcf7-response-output { grid-column: 1 / -1; }
}

/* Placeholder fallback ------------------------------------------------------
   Mirrors the CF7 layout so the editor sees the real proportions. Inert. */

.newsletter__field { margin: 0; }

.newsletter__input {
  display: block;
  padding: 0.625rem 0.125rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted, #c9cfc9);
  font-size: 1.125rem;
}

.newsletter__fallback .newsletter__consent { margin-top: 0.25rem; }

.newsletter__hint {
  margin: 1rem 0 0;
  font-size: 1.125rem;
  font-style: italic;
  color: var(--muted, #c9cfc9);
}

/* Responsive ---------------------------------------------------------------- */

@media (max-width: 860px) {
  .newsletter--split .newsletter__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 760px) {
  .newsletter__field--submit .btn,
  .newsletter__form input[type="submit"] { width: 100%; }
  .newsletter__fallback { display: grid; gap: 1.5rem; }
}

/* Submit treatment per variant ------------------------------------------------
   A single CF7 form is shared by all three variants, so its [submit] can only carry
   one class. The comps set the split variant's Subscribe as a full-width green
   block and the band/simple variants' as a compact light button, so the split
   override lands here rather than in the form template. */

.newsletter--split .newsletter__form input[type="submit"] {
  width: 100%;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--green-ink);
}

.newsletter--split .newsletter__form input[type="submit"]:hover,
.newsletter--split .newsletter__form input[type="submit"]:focus-visible {
  background: var(--accent-l);
  border-color: var(--accent-l);
}

/* The split variant runs its heading in a 682px column, where the band variant has
   the full measure. At the shared 45px the bracketed heading needs 785px and breaks
   onto two lines, so this variant takes a step down. */
.newsletter--split .newsletter__heading {
  font-size: clamp(1.25rem, 2.6vw, 2.4rem);
}

