/*
Theme Name: My Shout
Theme URI: https://myshoutpodcast.com
Author: My Shout
Description: A focused podcast theme for My Shout, built around one-click listening and Captivate episode publishing.
Version: 5.5.7
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: my-shout
*/

:root {
  --ink: #182237;
  --ink-soft: #2c3850;
  --muted: #4f5868;
  --paper: #f7f3eb;
  --white: #ffffff;
  --sky: #77aee7;
  --sky-light: #dceafa;
  --amber: #e7aa4a;
  --line: rgba(24, 34, 55, 0.16);
  --spotify: #1ed760;
  --radius: 18px;
  --shadow: 0 18px 60px rgba(24, 34, 55, 0.14);
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  clip: auto;
  width: auto; height: auto;
  margin: 12px;
  padding: 10px 16px;
  background: var(--white);
  z-index: 9999;
}

:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 6px; }

/* ---------- Header / nav ---------- */

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(255,255,255,.13);
  background: var(--ink);
  color: var(--white);
}

.header-inner {
  width: min(calc(100% - 40px), var(--content));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-branding {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .06em;
}
.site-branding img { width: 52px; height: 52px; object-fit: contain; }
.brand-name { font-size: 1.08rem; }

.main-navigation { display: flex; align-items: center; gap: 26px; }
.nav-list { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.main-navigation a { display: inline-block; color: rgba(255,255,255,.82); text-decoration: none; font-weight: 700; font-size: .9rem; }
.main-navigation a:hover, .main-navigation a:focus { color: var(--white); }

.nav-listen {
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font-weight: 800;
  font-size: .9rem;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.nav-listen:hover, .nav-listen:focus { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.7); }

/* Mobile menu toggle — hidden on desktop, where the nav is always visible */
.nav-toggle { display: none; }
.nav-toggle-bars { display: block; width: 22px; }
.nav-toggle-bars span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: var(--white);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-open .nav-toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Administrator-only configuration nag */
.ms-admin-notice {
  padding: 12px 20px;
  background: var(--amber);
  color: var(--ink);
  font-size: .88rem;
  text-align: center;
}
.ms-admin-notice a { font-weight: 800; }

/* Form error — recoverable, never destroys what was typed */
.ms-form-error {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-left: 3px solid #c0392b;
  border-radius: 0 8px 8px 0;
  background: rgba(192,57,43,.09);
  color: #8e2b21;
  font-size: .92rem;
  font-weight: 700;
}
.ms-form-error[hidden] { display: none; }
.subscribe-section .ms-form-error { background: rgba(255,255,255,.12); color: #ffd9d4; border-left-color: #ff8a7a; }

/* ---------- Hero ---------- */

.hero {
  min-height: calc(100svh - 78px);
  display: grid;
  align-items: center;
  color: var(--white);
  background:
    radial-gradient(circle at 76% 18%, rgba(119,174,231,.23), transparent 32%),
    linear-gradient(135deg, #182237 0%, #202e49 68%, #26334a 100%);
  overflow: hidden;
}

.hero-inner {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding: 46px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr);
  align-items: center;
  gap: clamp(36px, 7vw, 90px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--sky);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.2rem, 4.3vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0;
  color: rgba(255,255,255,.76);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.55;
}

.listen-block { margin-top: 26px; }
.listen-label {
  margin: 0 0 11px;
  color: rgba(255,255,255,.67);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-note { margin: 14px 0 0; color: rgba(255,255,255,.53); font-size: .78rem; }
.hero-note a { text-underline-offset: 3px; }

/* ---------- Platform buttons ---------- */

.listen-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.listen-buttons.stacked { flex-direction: column; }

.platform-button {
  min-height: 58px;
  padding: 11px 22px 11px 16px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 13px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  font-size: .96rem;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
  transition: transform .18s ease, box-shadow .18s ease;
}
.platform-button:hover, .platform-button:focus { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.26); }
.listen-buttons.stacked .platform-button { justify-content: flex-start; width: 100%; }

.pi-wrap { display: inline-flex; }
.pi { width: 27px; height: 27px; display: block; }
.pb-label { line-height: 1; }

/* ---------- Artwork ---------- */

.artwork-wrap { position: relative; justify-self: end; width: min(100%, 440px); }
.artwork-wrap::before {
  content: "";
  position: absolute;
  inset: -18px 24px 24px -18px;
  border: 1px solid rgba(119,174,231,.5);
  border-radius: 24px;
  transform: rotate(-3deg);
}
.show-artwork {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

/* ---------- Sections ---------- */

.section { padding: clamp(70px, 9vw, 120px) 0; }
.section-inner { width: min(calc(100% - 40px), var(--content)); margin: 0 auto; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 34px; }
.section h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.04; letter-spacing: -.045em; }

.text-link {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 5px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 1rem;
}

.latest { background: var(--white); }
.latest-card {
  display: grid;
  grid-template-columns: 230px minmax(0,1fr);
  gap: 34px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.latest-card img { border-radius: 12px; }
.episode-kicker { color: #3f6690; font-size: .75rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.latest-card h3 { margin: 6px 0 10px; font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.1; }
.latest-card p { max-width: 700px; color: var(--muted); }
.episode-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 10px 20px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
}
.button.outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.button.amber { background: var(--amber); color: var(--ink); }

.manifesto { background: var(--sky-light); }
.manifesto-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 8vw, 110px); align-items: start; }
.pullquote { margin: 0; font-size: clamp(2rem, 4.3vw, 4.1rem); font-weight: 900; letter-spacing: -.05em; line-height: 1.03; }
.manifesto-copy { max-width: 680px; font-size: 1.12rem; }
.manifesto-copy p:first-child { margin-top: 0; }

.subscribe-section { background: var(--ink); color: var(--white); }
.subscribe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.subscribe-section p { color: rgba(255,255,255,.69); }
.subscribe-form { display: flex; gap: 10px; padding: 8px; border-radius: 14px; background: var(--white); }
.subscribe-form input { min-width: 0; flex: 1; border: 0; padding: 10px 12px; background: transparent; color: var(--ink); }
.subscribe-form button { border: 0; border-radius: 9px; padding: 11px 18px; background: var(--amber); color: var(--ink); font-weight: 900; cursor: pointer; }
.form-note { margin: 10px 0 0; font-size: .75rem; }
.subscribe-fallback { margin: 0 0 18px; }
.subscribe-alt { margin-top: 18px; font-size: .9rem; }
.text-link.light { color: var(--white); font-size: inherit; }

/* Web3Forms forms (newsletter + contact) */
.ms-form-wrap { width: 100%; }
.ms-form-wrap, .ms-form-wrap * { box-sizing: border-box; }
.ms-name-row { display: flex; gap: 14px; }
.ms-name-row .ms-field { flex: 1 1 0; min-width: 0; }
.ms-field { margin-bottom: 14px; }
.ms-field label { display: block; margin-bottom: 6px; font-weight: 700; font-size: .82rem; color: var(--ink); }
.ms-field input,
.ms-field select,
.ms-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-size: 16px; /* prevents iOS zoom on focus */
}
.ms-field textarea { resize: vertical; min-height: 130px; }
.ms-captcha { margin: 4px 0 16px; }
.ms-submit .button { width: 100%; }
.ms-signup-thankyou { padding: 16px; border-radius: 10px; background: rgba(24,34,55,.07); text-align: center; font-weight: 700; }

/* Dark context (homepage subscribe band) */
.subscribe-section .ms-field label { color: rgba(255,255,255,.82); }
.subscribe-section .ms-field input { border-color: rgba(255,255,255,.24); }
.subscribe-section .ms-signup-thankyou { background: rgba(255,255,255,.1); }

/* Contact page layout */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 70px); align-items: start; margin-top: 40px; }
.contact-aside { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.contact-aside h2,
.content-page .contact-aside h2 { margin: 0 0 10px; font-size: 1.3rem; line-height: 1.25; letter-spacing: -.02em; }
.contact-aside p { color: var(--muted); font-size: .96rem; }
.contact-aside-note { margin-bottom: 0; }

@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .ms-name-row { flex-direction: column; gap: 0; }
}

/* ---------- Host + footer ---------- */

.host-strip { padding: 32px 0; background: var(--white); border-bottom: 1px solid var(--line); }
.host-inner { width: min(calc(100% - 40px), var(--content)); margin: 0 auto; display: flex; align-items: center; gap: 18px; }
.host-inner img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; }
.host-inner p { margin: 0; color: #5b6371; }
.host-inner strong { color: var(--ink); }
.host-link { margin-left: auto; white-space: nowrap; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }

.site-footer { padding: 38px 0 96px; background: var(--white); }
.footer-inner { width: min(calc(100% - 40px), var(--content)); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-copy { color: #69717f; font-size: .82rem; }
.footer-links { display: flex; align-items: center; gap: 20px; font-size: .82rem; font-weight: 750; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-listen { background: none; border: 0; padding: 0; font: inherit; font-weight: 750; color: var(--ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Listen & follow dialog ---------- */

.listen-dialog {
  width: min(92vw, 460px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(0,0,0,.4);
}
.listen-dialog::backdrop { background: rgba(15, 21, 34, .62); backdrop-filter: blur(3px); }
/* Fallback for browsers without dialog.showModal() */
.listen-dialog.is-fallback-open {
  display: block;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}
.listen-dialog[open] { animation: ms-pop .2s ease; }
@keyframes ms-pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.listen-dialog-inner { position: relative; padding: 34px 30px 32px; }
.listen-dialog h2 { margin: 0 0 8px; font-size: 1.7rem; letter-spacing: -.035em; }
.listen-dialog-copy { margin: 0 0 22px; color: var(--muted); font-size: .96rem; }
.listen-dialog .platform-button { box-shadow: 0 6px 18px rgba(24,34,55,.12); border-color: var(--line); }
.listen-dialog-close {
  position: absolute;
  top: 14px; right: 16px;
  width: 38px; height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(24,34,55,.08);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.listen-dialog-close:hover { background: rgba(24,34,55,.16); }

/* ---------- Mobile sticky listen bar ---------- */

.sticky-listen { display: none; }
.sticky-btn {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
}
.sticky-btn .pi { width: 20px; height: 20px; }
.sticky-more { background: rgba(255,255,255,.14); color: var(--white); border: 1px solid rgba(255,255,255,.28); }

/* ---------- Content pages ---------- */

.content-page { width: min(calc(100% - 40px), 850px); margin: 0 auto; padding: 70px 0 110px; }
.content-page h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -.05em; }
.content-page h2 { margin-top: 2.4em; font-size: clamp(1.55rem, 3vw, 2.35rem); line-height: 1.15; letter-spacing: -.035em; }
.content-page h3 { margin-top: 1.8em; margin-bottom: .4em; font-size: 1.2rem; letter-spacing: -.02em; }
.content-page blockquote { margin: 2em 0; }
.content-page .entry-content { max-width: 760px; }
.content-page .entry-content p { color: var(--ink-soft); }
.content-page .entry-content ul { padding-left: 1.2em; color: var(--ink-soft); }
.content-page .entry-content li { margin: .35em 0; }
.content-page .entry-content a { text-underline-offset: 3px; }
.content-page .entry-content ol { padding-left: 1.3em; color: var(--ink-soft); }
.content-page .entry-content ol li { margin: .9em 0; }

/* Guest release page */
.release-terms { padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.content-page .release-terms h2,
.content-page .release-terms h3 { margin-top: 0; font-size: 1.25rem; letter-spacing: -.02em; }
/* The terms card keeps a white surface on the dark release page, so force dark
   text on it — otherwise the heading inherits the page's white text (only h2
   gets a dark-page colour override) and vanishes on the white card. */
.release-page .release-terms { color: var(--ink-soft); }
.release-page .release-terms h2,
.release-page .release-terms h3 { color: var(--ink); }
.release-list li strong { color: var(--ink); }
.release-questions { margin-bottom: 0; font-size: .95rem; }
.release-form-section { margin-top: 48px; }
/* ---------- Guest release page: dark, on-brand ---------- */
.release-page {
  color: var(--white);
}
/* Full-page dark theme: the gradient goes on <body> so it spans edge to edge and
   flows from the dark header into the dark footer, rather than only filling the
   centred, width-capped content column (which left light gutters on desktop). */
body.release-onboarding {
  background:
    radial-gradient(circle at 82% 12%, rgba(119,174,231,.20), transparent 40%),
    linear-gradient(160deg, #182237 0%, #202e49 62%, #26334a 100%);
  background-repeat: no-repeat;
}
.release-page h1 { color: var(--white); }
.release-page .page-lead { color: rgba(255,255,255,.78); }
.release-page .onboard-step { border-top-color: rgba(255,255,255,.14); }
.release-page .content-page h2,
.release-page .onboard-step h2 { color: var(--white); }
/* These live inside .entry-content, so beat .content-page .entry-content p */
.release-page.content-page .entry-content .onboard-step-num { color: var(--sky); }
.release-page.content-page .entry-content .onboard-step-intro { color: rgba(255,255,255,.72); }
.release-page.content-page .entry-content .ms-hint { color: rgba(255,255,255,.6); }
.release-page.content-page .entry-content .listen-label { color: rgba(255,255,255,.67); }
.release-page .shout-picker legend,
.release-page .shout-summary-label,
.release-page .ms-field label,
.release-page .ms-unlock-label { color: rgba(255,255,255,.82); }
/* Optional WordPress editor content renders directly on the dark page, so its
   text must be light — otherwise it inherits the .content-page .entry-content
   dark colour and disappears. Specificity here beats that rule. */
.release-page .entry-content .release-intro p,
.release-page .entry-content .release-intro ul,
.release-page .entry-content .release-intro ol,
.release-page .entry-content .release-intro li { color: rgba(255,255,255,.82); }
.release-page .entry-content .release-intro h2,
.release-page .entry-content .release-intro h3,
.release-page .entry-content .release-intro strong { color: var(--white); }
.release-page .entry-content .release-intro a { color: var(--sky); }
.release-page .shout-summary { color: var(--white); }
.release-page .ms-unlock-note { color: rgba(255,255,255,.6); }
.release-page .ms-field input,
.release-page .ms-field select,
.release-page .ms-field textarea,
.release-page .ms-unlock-row input { border-color: rgba(255,255,255,.24); }
.release-page .ms-signup-thankyou { background: rgba(255,255,255,.12); color: var(--white); }
.release-thankyou { text-align: center; padding: 28px 24px; }
.release-page.content-page .entry-content .release-thankyou p { color: rgba(255,255,255,.85); }
.release-thankyou-msg { margin: 0 0 18px; font-size: 1.05rem; }
.release-thankyou-cta { margin: 0 0 14px; }
.release-page.content-page .entry-content .release-thankyou-note { margin: 0; color: rgba(255,255,255,.6); font-size: .88rem; }
.release-page .ms-form-error { background: rgba(255,255,255,.12); color: #ffd9d4; border-left-color: #ff8a7a; }
/* Cards keep their own light surfaces (they read well on the dark page):
   .release-terms, .shout-why, .ms-consent, .shout-chip, form inputs. */
.release-page .ms-consent { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
.release-page .ms-checkbox { color: rgba(255,255,255,.9); }
.release-page .ms-checkbox input[type="checkbox"] { accent-color: var(--amber); }
.release-page .ms-unlock-note a { color: var(--sky); }

/* Follow-the-show step */
.follow-grid { display: grid; grid-template-columns: 1fr auto; gap: clamp(24px, 5vw, 48px); align-items: start; margin-bottom: 24px; }
.follow-apps { min-width: 0; }
.follow-qr { text-align: center; }
.follow-qr img { width: 150px; height: 150px; padding: 12px; border-radius: 14px; background: var(--white); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.release-page.content-page .entry-content .follow-qr p { margin: 12px auto 0; max-width: 180px; color: rgba(255,255,255,.7); font-size: .84rem; }
@media (max-width: 620px) {
  .follow-grid { grid-template-columns: 1fr; }
  .follow-qr { justify-self: start; }
}

/* Guest release: branded unlock (locked state) */
.ms-unlock { max-width: 460px; margin: 30px 0 0; }
.ms-unlock-label { display: block; margin-bottom: 8px; font-weight: 800; font-size: .82rem; color: var(--ink); }
.ms-unlock-row { display: flex; gap: 10px; }
.ms-unlock-row input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
}
.ms-unlock-row .button { flex: 0 0 auto; }
.ms-unlock-note { margin: 12px 0 0; color: var(--muted); font-size: .88rem; }
@media (max-width: 480px) {
  .ms-unlock-row { flex-direction: column; }
  .ms-unlock-row .button { width: 100%; }
}

/* Guest onboarding: four steps */
.content-page--wide { width: min(calc(100% - 40px), 940px); }
.onboard-step { margin-top: 56px; padding-top: 34px; border-top: 1px solid var(--line); }
.onboard-step:first-of-type { margin-top: 34px; }
.onboard-step-num { margin: 0 0 4px; color: var(--sky); font-size: .72rem; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
.content-page .onboard-step h2 { margin: 0 0 8px; font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.03em; }
.onboard-step-intro { margin: 0 0 24px; color: var(--muted); }

/* Why the shout matters */
.shout-why { margin: 0 0 30px; padding: 22px 24px; border-left: 3px solid var(--amber); background: var(--white); border-radius: 0 12px 12px 0; }
.shout-why p { margin: 0 0 12px; color: var(--ink-soft); font-size: .98rem; line-height: 1.6; }
.shout-why p:last-child { margin-bottom: 0; }

/* Branching picker */
.shout-picker fieldset { margin: 0 0 20px; padding: 0; border: 0; }
.shout-picker legend { padding: 0; margin-bottom: 10px; color: var(--muted); font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.shout-tier[hidden] { display: none; }
.shout-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.shout-chip { position: relative; display: inline-flex; }
.shout-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.shout-chip span {
  display: inline-block;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink); /* explicit: the chip sits on a white pill, but the dark release page sets white text */
  font-size: .93rem;
  font-weight: 700;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.shout-chip input:hover + span { border-color: var(--ink); }
.shout-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.shout-chip input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }

.shout-summary-wrap { margin: 4px 0 26px; font-size: .95rem; }
.shout-summary-label { color: var(--muted); font-weight: 700; }
.shout-summary { font-weight: 800; }
.shout-summary[hidden] { display: none; }

.ms-hint { margin: 6px 0 0; color: var(--muted); font-size: .85rem; }
.ms-consent { margin-top: 22px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.ms-checkbox { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; font-size: .92rem; line-height: 1.5; cursor: pointer; }
.ms-checkbox input[type="checkbox"] { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); }
.content-page .ms-form-wrap--release { margin-top: 8px; }

/* Bot-hardened email — readable, copyable, not a mailto link */
.ms-email { font-weight: 800; white-space: nowrap; }
.ms-email.is-ready { cursor: copy; border-bottom: 1px dashed currentColor; }
.ms-email.is-ready:hover, .ms-email.is-ready:focus-visible { color: #2b5c8a; }
.ms-email.is-copied { color: #2b5c8a; border-bottom-color: transparent; }
.page-lead { max-width: 760px; margin: 18px 0 26px; color: var(--muted); font-size: 1.2rem; line-height: 1.55; }

/* ---------- Episode archive + single ---------- */

.episode-archive { width: min(calc(100% - 40px), var(--content)); margin: 0 auto; padding: 70px 0 110px; }
.episode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.episode-card { padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.episode-card img { margin-bottom: 18px; border-radius: 12px; width: 100%; }
.episode-card h2 { font-size: 1.4rem; line-height: 1.2; margin: 6px 0 8px; }
.episode-card h2 a { text-decoration: none; }
.episode-card p { color: var(--muted); }

.episode-archive .page-lead { margin: 10px 0 0; font-size: 1.05rem; }

.listen-options { margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--line); }
.listen-options h2 { margin: 6px 0 24px; font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.03em; }
.listen-options .platform-button { color: var(--ink); }

.pagination { margin-top: 44px; display: flex; justify-content: center; gap: 8px; }
.pagination .page-numbers {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
}
.pagination .page-numbers.current { background: var(--ink); color: var(--white); border-color: var(--ink); }

.episode-single { width: min(calc(100% - 40px), 820px); margin: 0 auto; padding: 56px 0 96px; }
.episode-single h1 { margin: 8px 0 24px; font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -.04em; }
.episode-content { font-size: 1.08rem; }
.episode-content p { color: var(--ink-soft); }
.episode-content iframe { display: block; width: 100%; border-radius: 12px; }
.episode-follow { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); }
.episode-follow .listen-label { color: var(--muted); }
.episode-tags { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.episode-tags a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; font-weight: 800; text-decoration: none; }

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

@media (max-width: 900px) {
  /* Collapse into the toggle menu from here down */
  .nav-toggle { display: block; margin-left: auto; padding: 8px; border: 0; background: none; cursor: pointer; }
  .main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 18px;
    background: var(--ink);
    border-bottom: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 18px 40px rgba(0,0,0,.3);
  }
  .main-navigation:not(.is-open) { display: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .main-navigation a { display: block; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 1rem; }
  .main-navigation .nav-listen { margin-top: 14px; text-align: center; }
  .hero { min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-copy { margin: 16px 0; }
  .artwork-wrap { width: min(72vw, 360px); justify-self: center; }
  .latest-card { grid-template-columns: 160px 1fr; }
  .manifesto-grid, .subscribe-grid { grid-template-columns: 1fr; gap: 34px; }
  .episode-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  body { font-size: 16px; padding-bottom: 78px; }
  /* On the release page the sticky bar's same-tab Apple/Spotify links would
     discard a half-filled form. The onboarding has its own new-tab follow step,
     so drop the bar (and its reserved padding) here. */
  body.release-onboarding { padding-bottom: 0; }
  body.release-onboarding .sticky-listen { display: none; }
  .header-inner { min-height: 62px; width: min(calc(100% - 28px), var(--content)); }
  .site-branding img { width: 40px; height: 40px; }
  .brand-name { font-size: .92rem; }
  .header-inner { position: relative; }

  /* Hero: keep platform buttons above the fold on a phone */
  .hero-inner { width: min(calc(100% - 28px), var(--content)); padding: 24px 0 34px; gap: 26px; }
  .hero h1 { font-size: clamp(2rem, 8.6vw, 2.6rem); line-height: 1.02; }
  .hero-copy { font-size: .95rem; margin: 14px 0; }
  .listen-block { margin-top: 20px; }
  .listen-buttons { flex-direction: column; }
  .platform-button { width: 100%; justify-content: flex-start; }
  .hero-note { display: none; }

  .artwork-wrap { width: min(78vw, 320px); }
  .section { padding: 60px 0; }
  .section-inner { width: min(calc(100% - 28px), var(--content)); }
  .section-heading { align-items: start; flex-direction: column; margin-bottom: 22px; }
  .latest-card { grid-template-columns: 1fr; padding: 16px; }
  .latest-card > img { width: 120px; }
  .episode-grid { grid-template-columns: 1fr; }
  .subscribe-form { flex-direction: column; }
  .host-inner { align-items: flex-start; flex-wrap: wrap; }
  .host-link { width: 100%; margin-left: 0; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .episode-archive { padding: 48px 0 90px; }

  .sticky-listen {
    position: fixed;
    left: 10px; right: 10px; bottom: 10px;
    z-index: 50;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
    padding: 8px;
    background: rgba(24,34,55,.96);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 15px;
    box-shadow: 0 12px 40px rgba(0,0,0,.28);
    backdrop-filter: blur(12px);
  }
}

/* Short phones (iPhone SE and similar): tighten the hero so all three
   platform buttons stay clear of the sticky listen bar. */
@media (max-width: 620px) and (max-height: 700px) {
  .hero-inner { padding: 16px 0 28px; gap: 20px; }
  .hero h1 { font-size: clamp(1.75rem, 7.4vw, 2.1rem); }
  .hero-copy { font-size: .88rem; margin: 10px 0; }
  .listen-block { margin-top: 14px; }
  .listen-label { margin-bottom: 8px; }
  .platform-button { min-height: 52px; }
  .listen-buttons { gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
