/* ── LIGHT PALETTE ────────────────────────────────────
     bg:        #faf9f7  (warm off-white)
     bg2:       #f3f1ed  (subtle warm gray)
     bg3:       #ede9e2  (input / hover)
     card:      #ffffff
     border:    rgba(0,0,0,0.08)
     border-md: rgba(0,0,0,0.14)
     text:      #1a1714
     muted:     #6b6560
     muted2:    #9b938a
     gold:      #2563eb   (darker for legibility on white)
     gold-bg:   rgba(37,99,235,0.10)
     jade:      #2563eb
     jade-bg:   rgba(37,99,235,0.10)
     rose:      #b83232
     sky:       #2d6eaa
  ─────────────────────────────────────────────────── */

body { background: #faf9f7; font-family: Arial, sans-serif; }
.font-serif { font-family: Arial, sans-serif; }
.font-mono  { font-family: Arial, sans-serif; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track  { background: #faf9f7; }
::-webkit-scrollbar-thumb  { background: #d5cfc6; border-radius: 3px; }

.progress-fill::after {
  content: '';
  position: absolute;
  right: -5px; top: -4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #2563eb;
}

.wave-bar        { width: 3px; border-radius: 2px; background: rgba(37,99,235,0.18); }
.wave-bar.played { background: #2563eb; }

.play-tri  { width:0; height:0; border-left:12px solid #fff; border-top:7px solid transparent; border-bottom:7px solid transparent; margin-left:2px; }
.mini-tri  { width:0; height:0; border-left:8px solid #2563eb; border-top:5px solid transparent; border-bottom:5px solid transparent; margin-left:2px; }

.ticker-track { display:flex; gap:3rem; animation:ticker 36s linear infinite; white-space:nowrap; }
@keyframes ticker { from { transform:translateX(0); } to { transform:translateX(-50%); } }

.tag-chip { transition: all 0.18s; }
.tag-chip.active        { background:rgba(37,99,235,0.12); border-color:rgba(37,99,235,0.35); color:#2563eb; }
.tag-chip:hover:not(.active) { border-color:rgba(37,99,235,0.4); color:#2563eb; }

.page-podcast .tag-chip.active        { background:rgba(37,99,235,0.12); border-color:rgba(37,99,235,0.35); color:#2563eb; }
.page-podcast .tag-chip:hover:not(.active) { border-color:rgba(37,99,235,0.4); color:#2563eb; }

.cat-chip { transition: all 0.18s; }
.cat-chip.active { background:rgba(37,99,235,0.12); border-color:rgba(37,99,235,0.35); color:#2563eb; }
.cat-chip:hover:not(.active) { border-color:rgba(37,99,235,0.4); color:#2563eb; }

.article-card:hover .card-title { color: #2563eb; }
.episode-row:hover .ep-title    { color: #2563eb; }
.episode-row.is-playing { background: #eef3ff; }
.episode-row.is-playing .ep-title { color: #2563eb; }

.page-podcast .episode-row:hover .ep-title { color: #2563eb; }
.page-podcast .series-card:hover { border-color: rgba(37,99,235,0.35); }

.list-row:hover .list-title { color: #2563eb; }
.related-row:hover .related-title { color: #2563eb; }

.animate-fadein { animation: fadein 0.5s ease both; }
@keyframes fadein { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }

#read-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: #2563eb; width: 0; z-index: 60;
  transition: width 0.1s linear;
}

.prose-page h2 { font-family: Arial, sans-serif; font-size: 1.35rem; font-weight: 700; margin: 2rem 0 0.75rem; color: #1a1714; }
.prose-page p, .prose-page li { font-size: 15px; line-height: 1.75; color: #6b6560; }
.prose-page ul { list-style: disc; padding-left: 1.25rem; margin: 0.5rem 0 1rem; }

.legal h2 { font-family: Arial, sans-serif; font-size: 1.25rem; font-weight: 700; margin: 2rem 0 0.75rem; color: #1a1714; }
.legal h3 { font-size: 1rem; font-weight: 600; margin: 1.25rem 0 0.5rem; color: #1a1714; }
.legal p, .legal li { font-size: 15px; line-height: 1.75; color: #6b6560; margin-bottom: 0.75rem; }
.legal ul { list-style: decimal; padding-left: 1.35rem; margin: 0.5rem 0 1rem; }
.legal a { color: #2563eb; }
.legal a:hover { text-decoration: underline; }

.page-private-policy .legal ul { list-style: disc; }

.article-prose h2 {
  font-family: Arial, sans-serif;
  font-size: 1.35rem; font-weight: 700;
  margin: 2.25rem 0 0.85rem;
  color: #1a1714; line-height: 1.3;
}
.article-prose h3 {
  font-size: 1.1rem; font-weight: 700;
  margin: 1.75rem 0 0.65rem;
  color: #1a1714;
}
.article-prose p {
  font-size: 16px; line-height: 1.85;
  color: #3d3834; margin-bottom: 1.25rem;
}
.article-prose ul, .article-prose ol {
  font-size: 16px; line-height: 1.75;
  color: #3d3834; margin: 0 0 1.25rem 1.25rem;
}
.article-prose ul { list-style: disc; }
.article-prose ol { list-style: decimal; }
.article-prose li { margin-bottom: 0.5rem; }
.article-prose a { color: #2563eb; text-decoration: underline; text-underline-offset: 2px; }
.article-prose a:hover { color: #002e8e; }
.article-prose blockquote {
  border-left: 3px solid #2563eb;
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin: 1.75rem 0;
  font-family: Arial, sans-serif;
  font-size: 1.15rem; font-style: italic;
  line-height: 1.6; color: #1a1714;
}
.article-prose figure { margin: 2rem 0; }
.article-prose figcaption {
  font-family: Arial, sans-serif;
  font-size: 12px; color: #9b938a;
  margin-top: 0.5rem; text-align: center;
}

.nav-podcast {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.35rem 0.75rem 0.35rem 0.65rem;
  border-radius: 9999px; font-size: 13.5px; font-weight: 600;
  color: #2563eb;
  background: linear-gradient(135deg, rgba(37,99,235,0.16) 0%, rgba(37,99,235,0.08) 100%);
  border: 1px solid rgba(37,99,235,0.35);
  box-shadow: 0 1px 12px rgba(37,99,235,0.15);
  transition: all 0.2s ease;
}
.nav-podcast:hover {
  background: rgba(37,99,235,0.2); border-color: rgba(37,99,235,0.55);
  box-shadow: 0 3px 16px rgba(37,99,235,0.22); transform: translateY(-1px);
}
.nav-podcast--active {
  background: #2563eb; color: #fff; border-color: #2563eb;
  box-shadow: 0 2px 18px rgba(37,99,235,0.38);
}
.nav-podcast--active:hover { background: #2563eb; color: #fff; transform: translateY(-1px); }
.nav-podcast__pill {
  font-size: 9px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 9999px; background: #2563eb; color: #fff; line-height: 1.3;
  animation: nav-podcast-glow 2.4s ease-in-out infinite;
}
.nav-podcast--active .nav-podcast__pill { background: rgba(255,255,255,0.28); animation: none; }
@keyframes nav-podcast-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0.45); }
  50% { box-shadow: 0 0 0 5px rgba(37,99,235,0); }
}

.podcast-sticky-player {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: rgba(250, 249, 247, 0.97);
  border-top: 1px solid rgba(37, 99, 235, 0.22);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(100%);
  transition: transform 0.28s ease, opacity 0.28s ease;
  opacity: 0;
  pointer-events: none;
}
.podcast-sticky-player.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.podcast-sticky-player__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0.65rem 1rem  calc(0.65rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.podcast-sticky-player__info {
  flex: 1;
  min-width: 0;
}
.podcast-sticky-player__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: #1a1714;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.35rem;
}
.podcast-sticky-player__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.podcast-sticky-player__time {
  font-family: Arial, sans-serif;
  font-size: 10px;
  color: #6b6560;
  min-width: 72px;
  flex-shrink: 0;
}
.podcast-sticky-player__progress {
  flex: 1;
  height: 4px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 9999px;
  cursor: pointer;
  position: relative;
}
.podcast-sticky-player__progress-fill {
  height: 100%;
  background: #2563eb;
  border-radius: 9999px;
  width: 0;
}
.podcast-sticky-player .play-tri {
  border-left-width: 10px;
  border-top-width: 6px;
  border-bottom-width: 6px;
}
@media (max-width: 1023px) {
  .podcast-sticky-player { display: block; }
  body.podcast-sticky-active { padding-bottom: 4.75rem; }
}
@media (min-width: 1024px) {
  .podcast-sticky-player { display: none !important; }
  body.podcast-sticky-active { padding-bottom: 0; }
}
