/* ===== צרות בהייטק: podcast pages (/podcast/ and /podcast/<slug>/) =====
   Loaded only by the pages that scripts/build_podcast.mjs generates. Tokens come from style.css.
   Bump ?v= in scripts/build_podcast.mjs (ASSET_V) when this file changes, then rebuild. */

/* ---------- shared bits ---------- */
.crumbs { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; margin: 0 0 var(--sp-6); font-size: var(--fs-body-sm); color: var(--text-muted); }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--cherry-4); }
.crumbs .sep { color: var(--ink-4); }
.kicker { display: flex; align-items: center; gap: var(--sp-3); margin: 0 0 var(--sp-4); font-size: var(--fs-body-sm); color: var(--text-muted); letter-spacing: var(--ls-caps); }
.kicker::before { content: ""; width: 40px; height: 2px; background: var(--ink-1); border-radius: var(--radius-pill); }
.ts { font-family: var(--font-mono); font-size: var(--fs-body-sm); direction: ltr; unicode-bidi: isolate; }
.ep-meta { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; margin: 0; font-size: var(--fs-body-sm); color: var(--text-muted); }
.tags { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border: 1px solid var(--border-default); border-radius: var(--radius-pill); background: var(--surface-card); font-size: var(--fs-body-sm); color: var(--text-secondary); }

/* ---------- episode cards (index + "more episodes") ---------- */
.eps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--sp-5); }
.ep-card { display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; padding: var(--sp-5); background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-lg); color: inherit; text-decoration: none; transition: all var(--dur-base) var(--ease-out); }
.ep-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--ink-1); color: inherit; }
.ep-card:focus-visible { border-radius: var(--radius-lg); }
.ep-card h3 { margin: 0; font-size: var(--fs-h4); line-height: 1.3; text-wrap: pretty; }
.ep-card .who { margin: 0; font-size: var(--fs-body-sm); color: var(--text-secondary); }
.ep-card .more { margin-top: auto; padding-top: var(--sp-2); font-size: var(--fs-body-sm); color: var(--accent-strong); }

/* ---------- /podcast/ index ---------- */
/* style.css gives every <section> 48px of vertical padding; the podcast pages set their own rhythm */
.pod-hero { padding: var(--sp-12) 0 var(--sp-10); }
.pod-sec, section.pod-sec + section.pod-sec { padding: 0 0 var(--sp-12); }
.pod-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--sp-12); align-items: center; }
.pod-hero h1 { font-size: clamp(36px, 5.4vw, 56px); line-height: var(--lh-display); margin: 0 0 var(--sp-4); }
.pod-hero .lead { margin-bottom: var(--sp-6); }
.pod-hero .cover { width: 100%; height: auto; border: 2px solid var(--ink-1); border-radius: var(--radius-lg); display: block; }
.pod-sec h2 { margin-bottom: var(--sp-5); }
.ep-feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--sp-8); align-items: center; padding: var(--sp-5); background: var(--surface-card); border: 2px solid var(--ink-1); border-radius: var(--radius-lg); color: inherit; text-decoration: none; transition: all var(--dur-base) var(--ease-out); }
.ep-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); color: inherit; }
.ep-feature:focus-visible { border-radius: var(--radius-lg); }
.ep-feature .thumb { aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; background: var(--paper-3); }
.ep-feature .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-feature .thumb.square { aspect-ratio: 1 / 1; max-width: 300px; }
.ep-feature h3 { margin: var(--sp-3) 0 var(--sp-2); font-size: clamp(22px, 2.6vw, var(--fs-h2)); line-height: var(--lh-heading); text-wrap: pretty; }
.ep-feature .who { margin: 0 0 var(--sp-3); color: var(--ink-1); }
.ep-feature .lede { margin: 0 0 var(--sp-5); color: var(--text-secondary); }
.eps-year { margin: var(--sp-10) 0 var(--sp-4); font-size: var(--fs-h3); color: var(--text-muted); }
.eps-year:first-of-type { margin-top: 0; }
.ep-card h4 { margin: 0; font-size: var(--fs-h4); line-height: 1.3; text-wrap: pretty; }
.ep-body a.url, .ep-lede a.url { direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }
.archive-note { margin: var(--sp-6) 0 0; color: var(--text-muted); font-size: var(--fs-body-sm); }
.pod-partner { display: flex; gap: var(--sp-6); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.pod-partner h2 { margin: 0 0 var(--sp-2); font-size: var(--fs-h3); }
.pod-partner p { margin: 0; color: var(--paper-2); }

/* ---------- episode page ---------- */
.ep-page { padding: var(--sp-10) 0 0; }
.ep-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--sp-12); align-items: start; }
.ep-head h1 { margin: var(--sp-4) 0 var(--sp-3); }
.ep-guest { margin: 0 0 var(--sp-3); font-size: var(--fs-body-lg); color: var(--ink-1); }
.ep-lede { margin: 0 0 var(--sp-6); max-width: 60ch; font-size: var(--fs-h4); line-height: 1.5; color: var(--text-secondary); }

/* click-to-load video: nothing is requested from YouTube's player until the click */
.ep-video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-1); border: 2px solid var(--ink-1); border-radius: var(--radius-lg); }
.ep-video img, .ep-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; object-fit: cover; }
.ep-video-btn { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.ep-video-btn:focus-visible { box-shadow: inset 0 0 0 4px var(--cherry-3); border-radius: var(--radius-lg); }
.ep-play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; background: var(--accent-strong); color: var(--white); border: 3px solid var(--white); border-radius: var(--radius-pill); transition: all var(--dur-base) var(--ease-out); }
.ep-play svg { width: 34px; height: 34px; margin-inline-end: -4px; }
.ep-video-btn:hover .ep-play { background: var(--cherry-4); transform: scale(1.06); }
.ep-video-cap { margin: var(--sp-2) 0 0; font-size: var(--fs-caption); color: var(--text-muted); }

/* no video id yet: cover + listen buttons */
.ep-cover { display: flex; gap: var(--sp-5); align-items: center; padding: var(--sp-5); background: var(--surface-card); border: 2px solid var(--ink-1); border-radius: var(--radius-lg); }
.ep-cover img { flex: none; width: 128px; height: 128px; border-radius: var(--radius-md); display: block; }
.ep-cover .t { margin: 0 0 var(--sp-3); font-size: var(--fs-h4); }
.ep-cover-main { flex: 1; min-width: 0; }
.ep-audio { display: block; width: 100%; margin: 0 0 var(--sp-3); }

.ep-listen, .ep-share { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; margin: var(--sp-5) 0 0; }
.ep-listen .lbl, .ep-share .lbl { margin-inline-end: var(--sp-1); font-size: var(--fs-body-sm); color: var(--text-muted); }
.spot-embed { margin-top: var(--sp-5); }
.spot-embed iframe { width: 100%; height: 152px; border: 0; display: block; }

.ep-sec { margin-top: var(--sp-10); padding: 0; }
.ep-sec > h2 { margin-bottom: var(--sp-4); font-size: var(--fs-h3); }
.ep-body p { max-width: 65ch; font-size: var(--fs-body-lg); }
.ep-body p:last-child { margin-bottom: 0; }

.ep-chapters { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: var(--sp-8); }
.ep-chapters li { break-inside: avoid; border-bottom: 1px solid var(--border-default); }
.ep-chapters .ch { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: var(--sp-3); align-items: baseline; padding: 10px var(--sp-2); color: var(--ink-1); text-decoration: none; border-radius: var(--radius-sm); transition: background var(--dur-fast) var(--ease-out); }
button.seek { margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: start; cursor: pointer; }
.ep-chapters button.ch { width: 100%; }
.ep-chapters a.ch:hover, .ep-chapters button.ch:hover { background: var(--paper-2); color: var(--ink-1); }
.ep-chapters a.ch .ts, .ep-chapters button.ch .ts { color: var(--accent-strong); }
.ep-chapters .ts { color: var(--text-muted); }
.ep-topics { margin: 0; padding: 0; list-style: none; max-width: 65ch; }
.ep-topics li { position: relative; padding: 10px 0; padding-inline-start: var(--sp-6); border-bottom: 1px solid var(--border-default); font-size: var(--fs-body-lg); }
.ep-topics li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 21px; width: 8px; height: 8px; background: var(--cherry-3); border-radius: var(--radius-pill); }
.ep-links { margin: 0; padding: 0; list-style: none; }
.ep-links li { padding: 6px 0; }
.ep-credit { margin: var(--sp-8) 0 var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--border-default); font-size: var(--fs-body-sm); color: var(--text-muted); }

.ep-transcript { background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-lg); }
.ep-transcript summary { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); padding: var(--sp-4) var(--sp-5); font-size: var(--fs-body-lg); cursor: pointer; list-style: none; }
.ep-transcript summary h2 { margin: 0; font-size: inherit; line-height: inherit; }
.ep-transcript summary::-webkit-details-marker { display: none; }
.ep-transcript summary::after { content: "+"; flex: none; color: var(--accent-strong); font-size: var(--fs-h3); line-height: 1; transition: transform var(--dur-base) var(--ease-out); }
.ep-transcript[open] summary::after { transform: rotate(45deg); }
.ep-transcript .t-body { padding: 0 var(--sp-5) var(--sp-5); color: var(--text-secondary); }
.ep-transcript .t-note { margin: 0 0 var(--sp-4); font-size: var(--fs-body-sm); color: var(--text-muted); }
.t-turn { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 0 var(--sp-3); align-items: baseline; padding: 5px 0; }
.t-turn.new { margin-top: var(--sp-3); }
.t-turn p { margin: 0; max-width: 70ch; }
.t-who { color: var(--ink-1); }
.t-turn .seek .ts { color: var(--text-muted); }
.t-turn button.seek .ts { color: var(--accent-strong); }
.t-turn button.seek:hover .ts { text-decoration: underline; }
.t-turn button.seek:focus-visible { border-radius: var(--radius-sm); }

.ep-aside { display: flex; flex-direction: column; gap: var(--sp-4); }
.ep-aside .block h2 { margin: 0 0 var(--sp-2); font-size: var(--fs-h4); }
.ep-aside .block p { margin: 0 0 var(--sp-4); font-size: var(--fs-body-sm); color: var(--text-secondary); }
.ep-aside .block.inverted p { color: var(--paper-2); }
.ep-aside .block .mark { width: 48px; height: auto; margin-bottom: var(--sp-3); display: block; }
.ep-aside .stack { display: flex; flex-direction: column; gap: var(--sp-2); }
.ep-aside .stack .btn { width: 100%; }
.ep-aside .alt { margin: var(--sp-3) 0 0 !important; }
@media (min-width: 961px) and (min-height: 820px) { .ep-aside { position: sticky; top: 112px; } }

.ep-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin-top: var(--sp-12); }
.ep-nav a { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: var(--sp-4) var(--sp-5); background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-lg); color: inherit; text-decoration: none; transition: all var(--dur-base) var(--ease-out); }
.ep-nav a:hover { border-color: var(--ink-1); box-shadow: var(--shadow-2); color: inherit; }
.ep-nav .dir { font-size: var(--fs-caption); color: var(--text-muted); letter-spacing: var(--ls-caps); }
.ep-nav .next { grid-column: 2; text-align: end; }
.ep-nav .prev { grid-column: 1; }
.ep-nav a:only-child { grid-column: 1 / -1; }
.ep-more-all { margin: var(--sp-6) 0 0; }

@media (max-width: 960px) {
  .ep-layout { grid-template-columns: 1fr; gap: var(--sp-10); }
  .pod-hero { padding-top: var(--sp-8); }
  .pod-hero .wrap { grid-template-columns: 1fr; gap: var(--sp-6); }
  .pod-hero .cover { width: 160px; order: -1; }
  .ep-feature { grid-template-columns: 1fr; gap: var(--sp-5); }
}
@media (max-width: 640px) {
  .ep-page { padding-top: var(--sp-6); }
  .ep-lede { font-size: var(--fs-body-lg); }
  .ep-chapters { columns: 1; }
  .ep-cover { flex-direction: column; align-items: stretch; }
  .t-turn { grid-template-columns: 46px minmax(0, 1fr); gap: 0 var(--sp-2); }
  .ep-cover img { width: 96px; height: 96px; }
  .ep-play { width: 64px; height: 64px; }
  .ep-play svg { width: 26px; height: 26px; }
  .ep-nav { grid-template-columns: 1fr; }
  .ep-nav .next, .ep-nav .prev { grid-column: 1; text-align: start; }
  .ep-listen .lbl { display: none; }
  .ep-listen .btn, .pod-hero .cta-row .btn { padding: 0 14px; }
  .pod-hero .cta-row { gap: var(--sp-2); }
}

/* home page: the three newest episodes (block generated into site/index.html) */
.home-pod.pod-sec { padding: var(--sp-16) 0; border-top: 1px solid var(--border-default); }
