/* Episode pages + /episodes/ archive. Builds on styles.css and blog.css. */

.ep-hero h1.ep-title { max-width: 22ch; font: 700 clamp(34px, 5vw, 68px)/0.98 var(--serif); text-transform: none; }
.ep-hero .post-byline { margin-top: 18px; font-weight: 700; }
.ep-layout { grid-template-columns: minmax(0, 820px); justify-content: center; }
.ep-prose > p:first-of-type::first-letter { float: none; font: inherit; padding: 0; color: inherit; }
.ep-main { margin-top: 0; }
.ep-listen { display: flex; flex-wrap: wrap; gap: 10px; margin: -0.6em 0 2em; }
.ep-listen .btn { text-decoration: none; }

.ep-chapters { list-style: none; padding: 0 !important; margin: 0 0 1.5em; border-top: 1px solid var(--line); }
.ep-chapters li { margin: 0; border-bottom: 1px solid var(--line); }
.ep-chapters a { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 12px 4px; color: var(--fg); text-decoration: none; font-size: 17px; line-height: 1.4; }
.ep-chapters a:hover { background: var(--surface); }
.ep-chapters time { color: var(--accent); font: 700 15px var(--sans); font-variant-numeric: tabular-nums; padding-top: 1px; }

.ep-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1px; margin: 0 0 2em; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ep-facts div { background: var(--bg); padding: 14px 18px; }
.ep-facts dt { font: 700 11px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--fg-3); margin-bottom: 4px; }
.ep-facts dd { margin: 0; color: var(--fg); font-size: 16px; }

.ep-pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: 2.5em; }
.ep-pager a { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; color: var(--fg); text-decoration: none; font-size: 16px; line-height: 1.35; }
.ep-pager a:hover { border-color: var(--line-2); background: var(--surface); }
.ep-pager a.older { text-align: right; }
.ep-pager .sub { color: var(--sand); font-size: 11px; }

.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--gap); }
.ep-tile { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); color: var(--fg); text-decoration: none; transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s; }
.ep-tile:hover { transform: translateY(-4px); border-color: var(--line-2); }
.ep-tile[hidden] { display: none; }
.ep-thumb { position: relative; display: block; aspect-ratio: 16/9; background: #000; }
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.82); color: var(--cream); font: 700 12px var(--sans); padding: 3px 7px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.ep-tile-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.ep-tile-body strong { font-size: 16px; line-height: 1.35; }
.ep-tile-meta { color: var(--fg-3); font-size: 13px; }

.ep-archive { padding-top: clamp(32px, 5vw, 56px); }
.ep-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 28px; }
.ep-tools .search { flex: 1 1 280px; }
.ep-tools .lib-count { margin: 0 0 0 auto; color: var(--fg-3); }

@media (max-width: 640px) {
  .ep-pager { grid-template-columns: 1fr; }
  .ep-pager a.older { text-align: left; }
  .ep-chapters a { grid-template-columns: 64px 1fr; font-size: 16px; }
}

/* In the press (episode pages) */
.ep-press { list-style: none; padding: 0 !important; margin: 0 0 1em; display: grid; gap: 10px; }
.ep-press li { margin: 0; }
.ep-press a { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--fg); text-decoration: none; font-size: 17px; line-height: 1.35; }
.ep-press a:hover { border-color: var(--line-2); background: var(--surface); }
.ep-press .sub { color: var(--sand); font-size: 11px; }

/* /press/ */
.press-wrap { max-width: 1000px; }
.press-h { font: 700 clamp(26px, 3vw, 38px)/1.1 var(--serif); margin: 2.2em 0 .8em; }
.press-year h2 { font: 700 clamp(26px, 3vw, 38px)/1.1 var(--serif); margin: 2em 0 .6em; color: var(--sand); }
.press-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--gap); }
.press-card { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.press-featured .press-card { background: var(--bg); border-color: var(--line-2); }
.press-outlet { margin: 0; font: 700 13px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.press-card h3 { margin: 0; font: 700 20px/1.3 var(--sans); }
.press-card h3 a { color: var(--fg); text-decoration: none; }
.press-card h3 a:hover { text-decoration: underline; }
.press-meta { margin: 0; display: flex; gap: 10px; color: var(--fg-3); font-size: 13px; }
.press-meta span { color: var(--sand); font-weight: 700; }
.press-sum { margin: 0; color: var(--fg-2); font-size: 15px; line-height: 1.5; flex: 1; }
.press-links { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.press-read { color: var(--yellow); font-weight: 700; text-decoration: none; }
.press-ep { color: var(--fg-2); }
.press-contact { margin-top: 3em; color: var(--fg-2); }
.press-contact a { color: var(--yellow); }

/* Hub pages: /prakhar-gupta/, /guests/, /stats/ */
.hub-photo { margin: 0 auto 2em; max-width: 360px; border-radius: 18px; overflow: hidden; }
.hub-photo img { display: block; width: 100%; height: auto; }
.hub-timeline { list-style: none; padding: 0 !important; margin: 0 0 1.5em; border-left: 2px solid var(--line-2); }
.hub-timeline li { position: relative; margin: 0; padding: 0 0 22px 24px; }
.hub-timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.hub-timeline .sub { color: var(--sand); font-size: 12px; }
.hub-timeline h3 { margin: 4px 0 4px; font-size: 19px; }
.hub-timeline p { margin: 0; font-size: 16px; }
.hub-note { margin-top: 2.5em; color: var(--fg-3); font-size: 14px; }
.hub-note a { color: var(--sand); }
.guests-wrap, .stats-wrap { max-width: 1000px; }
.az { display: flex; flex-wrap: wrap; gap: 6px; margin: 28px 0 10px; position: sticky; top: 72px; z-index: 2; background: var(--bg); padding: 10px 0; }
.az a { display: grid; place-items: center; min-width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; color: var(--fg); text-decoration: none; font-weight: 700; font-size: 14px; }
.az a:hover { border-color: var(--accent); color: var(--accent); }
.guest-letter h2 { font: 700 40px/1 var(--serif); color: var(--sand); margin: 1.4em 0 .4em; scroll-margin-top: 140px; }
.guest-row { padding: 14px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 140px; }
.guest-row h3 { margin: 0 0 6px; font-size: 19px; }
.guest-row ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.guest-row li { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 15px; }
.guest-row li a { color: var(--fg-2); }
.guest-row li span { color: var(--fg-3); font-size: 13px; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--gap); margin: 28px 0 10px; }
.stat-tile { display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.stat-tile strong { font: 700 clamp(30px, 3.4vw, 44px)/1 var(--serif); color: var(--fg); }
.stat-tile span { color: var(--fg-2); font-size: 14px; }
.hub-table { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 1em; }
.hub-table th, .hub-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.hub-table th { color: var(--fg-3); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.hub-table td a { color: var(--fg); }
.hub-table td:last-child, .hub-table th:last-child { text-align: right; white-space: nowrap; }
