/* podcast.css -- the subscribe block and the episode list on /podcasts/secplus/.
 *
 * Loaded only by that page, which is the only page that runs site/js/podcast-page.js. The page
 * chrome (top bar, breadcrumb, theme toggle, section navigation) is in the page itself, the way
 * every Family B page carries it. Everything here is built on the shared tokens and defines no
 * colour of its own, so it follows the theme with the rest of the site.
 *
 * Phone first: laid out for a 390px viewport, every control at least 44px tall, and the read
 * along text set at reading width rather than stretched.
 */

/* ---------------------------------------------------------------- subscribe */

.pod-subscribe {
  margin: 0.6rem 0 1rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-1);
}

.pod-subscribe p {
  margin: 0.15rem 0;
  font-size: 0.86rem;
  line-height: 1.4;
}

.pod-subscribe .pod-apple a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-decoration: none;
}

.pod-subscribe .pod-apple a:hover {
  text-decoration: underline;
}

.pod-subscribe .pod-feed {
  color: var(--muted);
  font-size: 0.8rem;
}

.pod-subscribe code {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text);
  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------- the episode list */

.pod-note {
  color: var(--muted);
  font-size: 0.86rem;
}

.pod-ep {
  margin: 1.3rem 0 0;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border);
}

.pod-ep-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2rem 0.6rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.2rem;
  color: var(--red);
}

.pod-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  font-weight: 400;
  color: var(--faint);
  white-space: nowrap;
}

.pod-len {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: var(--faint);
  margin: 0 0 0.35rem;
}

.pod-audio {
  display: block;
  width: 100%;
  margin: 0 0 0.5rem;
}

/* ---------------------------------------------------------------- read along */

.pod-read {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-1);
  margin: 0 0 0.6rem;
}

.pod-read > summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
}

.pod-read > summary:hover {
  color: var(--text);
}

.pod-read > summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.pod-read[open] > summary {
  border-bottom: 1px solid var(--border);
}

.pod-read-body {
  padding: 0.3rem 0.65rem 0.65rem;
  font-size: 0.93rem;
  line-height: 1.5;
}

.pod-read-body h3 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  margin: 0.9rem 0 0.2rem;
  color: var(--text);
}

.pod-read-body h3:first-child {
  margin-top: 0.3rem;
}

.pod-read-body p {
  margin: 0.45rem 0;
}

/* a practice episode: one block per question, the answer behind its own toggle */
.pod-read-body .q {
  margin: 0.9rem 0;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
}

.pod-read-body .q:first-child {
  border-top: 0;
  padding-top: 0;
}

.pod-read-body ol {
  margin: 0.3rem 0;
  padding-left: 1.6rem;
}

.pod-read-body ol li {
  margin: 0.2rem 0;
}

.pod-read-body details {
  margin: 0.4rem 0 0;
}

.pod-read-body summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--teal);
}

/* ---------------------------------------------------------------- parts and videos */

.pod-parts {
  margin: 0.2rem 0 0.3rem;
  padding-left: 1.3rem;
  font-size: 0.9rem;
}

.pod-parts li {
  margin: 0.35rem 0;
  line-height: 1.35;
}

.pod-part-title {
  display: block;
}

.pod-watch {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--faint);
}

.pod-watch a {
  display: inline-block;
  padding: 0.15rem 0;
  text-decoration: none;
}

.pod-watch a:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .pod-read,
  .pod-read-body details {
    transition: none !important;
    animation: none !important;
  }
}
