/* ═══════════════════════════════════════════════════════════════════════
   Thursology page — builds on css/teachings.css (player, rows, buttons)
   ═══════════════════════════════════════════════════════════════════════ */

main[data-thursology] { --tile-accent: var(--accent-green); }

/* Episode titles run long, so a step smaller than sermon titles. */
main[data-thursology] .now__title { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.05; }

/* Player art: the Thursology background with the logo on top. */
.thx-art { position: absolute; inset: 0; display: grid; place-items: center; }
.thx-art__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thx-art::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.35); }
.thx-art__logo {
  position: relative;
  z-index: 1;
  width: min(62%, 420px);
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.5));
}
/* Play button sits under the logo rather than on top of it. */
.player__facade .player__cta { margin-top: 42%; }
.player__note a { color: var(--gold); font-weight: 700; }

/* Episode description: three lines, "Read more" for the rest. */
.now__desc { margin-top: 1rem; max-width: 62ch; }
.now__desc[hidden] { display: none; }
.now__desc-text {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  white-space: pre-line;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.now__desc.is-open .now__desc-text { display: block; -webkit-line-clamp: unset; line-clamp: unset; }
.now__more {
  margin-top: 0.35rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold);
  cursor: pointer;
}
.now__more[hidden] { display: none; }
.now__more:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* ── Join live ────────────────────────────────────────────────────────── */
.thx-live {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--accent-green) 18%, transparent), transparent 60%),
    var(--bg-card);
  border: 1px solid var(--line);
}
.thx-live__date {
  width: 92px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: color-mix(in srgb, var(--accent-green) 16%, rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-green) 45%, transparent);
}
.thx-live__mon { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-green); }
.thx-live__day { font-family: var(--font-display); font-weight: 900; font-size: 2.6rem; line-height: 1; }
.thx-live .eyebrow { color: var(--accent-green); }
.thx-live__title { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.1; letter-spacing: -0.02em; margin-top: 0.35rem; }
.thx-live__lead { margin-top: 0.5rem; color: var(--fg-muted); max-width: 60ch; }
.thx-live__actions { display: flex; flex-direction: column; gap: 0.6rem; }
.thx-live__actions .btn { justify-content: center; }

/* ── All episodes, by year ────────────────────────────────────────────── */
.thx-all { padding-top: clamp(2.5rem, 5vw, 4rem); }
.thx-years { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.thx-ghosts { display: grid; gap: 6px; }
.thx-year { border-top: 1px solid var(--line); }
.thx-year__head {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 1.1rem 0.25rem;
  cursor: pointer;
  list-style: none;
}
.thx-year__head::-webkit-details-marker { display: none; }
.thx-year__head::after { /* chevron */
  content: '';
  margin-left: auto;
  align-self: center;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--fg-muted);
  border-bottom: 2px solid var(--fg-muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.25s var(--ease);
}
.thx-year[open] > .thx-year__head::after { transform: rotate(225deg) translateY(-3px); }
.thx-year__head:hover .thx-year__label { color: var(--gold); }
.thx-year__head:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
.thx-year__label { font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; transition: color 0.2s var(--ease); }
.thx-year__count { font-size: 0.85rem; color: var(--fg-muted); }
.tlist--cols {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 6px 18px;
  padding-bottom: 1.25rem;
}

.is-error .thx-all { display: none; }

@media (max-width: 760px) {
  .thx-live { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .thx-live__date { justify-self: start; }
  .thx-live__actions { flex-direction: row; flex-wrap: wrap; }
  .thx-art__logo { width: 54%; }
  .player__facade .player__cta { margin-top: 36%; }
  .thx-live__actions .btn { flex: 1 1 auto; }
  .thx-live__date { width: 72px; height: 80px; }
  .thx-live__day { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .thx-year__head::after { transition: none; }
}
