:root {
  --blue: #0f3d8c;
  --blue-dark: #082a63;
  --blue-light: #e8eef8;
  --gold: #c9a227;
  --gold-light: #f5ecd3;
  --bg: #f4f6fa;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #5c6470;
  --border: #d5dce8;
  --yes: #0b6e4f;
  --no: #6b7280;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--blue); }

.page {
  max-width: 72rem;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  border-bottom: 3px solid var(--gold);
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.logo {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
  flex-shrink: 0;
}

.brand-text { min-width: 0; }

.eyebrow {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.brand-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.content {
  flex: 1;
  padding: 1.75rem 1.5rem 2.5rem;
}

.site-footer {
  padding: 1.5rem 1.5rem 1.75rem;
  border-top: 1px solid var(--border);
  background: var(--blue-light);
  text-align: center;
}

.site-footer a { font-weight: 600; }

.footer-section {
  margin-bottom: 1.25rem;
}

.footer-heading {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.footer-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--blue);
  text-decoration: none;
  font-size: 1.15rem;
  transition: border-color 0.15s, color 0.15s, transform 0.15s;
}

.footer-icon:hover {
  border-color: var(--gold);
  color: var(--blue-dark);
  transform: translateY(-1px);
}

.footer-icon img {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.footer-tagline {
  margin: 0.5rem 0 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-credit {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--blue);
}

h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--blue);
}

.lead {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 42rem;
}

.section {
  margin-bottom: 2.25rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero {
  margin-bottom: 2rem;
  padding: 1.75rem 1.5rem;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  border-radius: 12px;
  color: #fff;
}

.hero h1 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.25rem;
  max-width: 40rem;
}

.hero-subtitle {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover { text-decoration: underline; }

.episode-detail-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.episode-detail-art {
  width: 100%;
  max-width: 16rem;
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
  background: var(--blue-light);
}

.listen-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.listen-btn {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.listen-btn:hover {
  border-color: var(--gold);
  background: var(--gold-light);
}

.show-notes {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.show-notes h2 {
  margin-bottom: 0.75rem;
}

.show-notes p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.show-notes p:last-child { margin-bottom: 0; }

.episode-rss-link {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-cta {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  background: var(--gold);
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s, transform 0.15s;
}

.hero-cta:hover {
  background: #d4ad2a;
  transform: translateY(-1px);
}

.featured-episode {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(15, 61, 140, 0.06);
}

.episode-art {
  width: 8rem;
  height: 8rem;
  border-radius: 10px;
  object-fit: cover;
  background: var(--blue-light);
}

.episode-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-preview { background: #dbeafe; color: #1e40af; }
.badge-review { background: #dcfce7; color: #166534; }
.badge-interview { background: #fce7f3; color: #9d174d; }
.badge-special { background: var(--gold-light); color: #854d0e; }
.badge-default { background: var(--blue-light); color: var(--blue); }

.episode-title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue);
}

.episode-title a {
  color: inherit;
  text-decoration: none;
}

.episode-title a:hover { text-decoration: underline; }

.episode-date {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.episode-excerpt {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.episode-listen-link {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}

.episode-listen-link:hover {
  text-decoration: underline;
}

.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1rem;
}

.episode-card {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.episode-card .episode-art {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  margin-bottom: 0.75rem;
}

.episode-card .episode-excerpt {
  -webkit-line-clamp: 2;
  flex: 1;
}

.cta-box {
  padding: 1.25rem;
  background: var(--gold-light);
  border: 1px solid var(--gold);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
}

.cta-box a { font-weight: 600; }

.progress-bar {
  height: 0.5rem;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.75rem 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--gold) 100%);
  border-radius: 999px;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1rem 0;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.announcement {
  margin: 0 0 1.75rem;
  padding: 1rem 1.25rem;
  background: var(--gold-light);
  border: 1px solid var(--gold);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.55;
}

.completed-section { margin-bottom: 2rem; }

.pending-section {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th, td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

th {
  position: sticky;
  top: 0;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

tr:hover td { background: #f8fafc; }
tr.interviewed td { background: #f0f7f4; }

.crest {
  max-width: 2.75rem;
  max-height: 2.75rem;
  object-fit: contain;
}

.interviewed-cell { font-weight: 600; white-space: nowrap; }
tr.interviewed .interviewed-cell { color: var(--yes); }
tr:not(.interviewed) .interviewed-cell { color: var(--no); }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.filter-btn {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}

.about-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: start;
}

.about-photo {
  width: 100%;
  max-width: 14rem;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 12px;
  border: 3px solid var(--gold);
  box-shadow: 0 8px 24px rgba(15, 61, 140, 0.12);
}

.about-hero-text .lead {
  margin-bottom: 0.75rem;
}

.about-hero-text p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  max-width: 40rem;
}

.about-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.about-fact {
  padding: 0.35rem 0.75rem;
  background: var(--blue-light);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-dark);
}

.about-story {
  margin-bottom: 2rem;
  max-width: 44rem;
}

.about-story h2 {
  margin-bottom: 0.75rem;
}

.about-story p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.about-story p:last-child {
  margin-bottom: 0;
}

.about-cta .about-social {
  justify-content: flex-start;
  margin: 0.75rem 0 1rem;
}

.kofi-card {
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
  border: 1px solid #ffb8b6;
  border-left: 4px solid #ff5e5b;
  border-radius: 10px;
}

.kofi-card-inner {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.kofi-logo {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
}

.kofi-card-text h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: #c43d3a;
}

.kofi-card-text p {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 40rem;
}

.kofi-btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  background: #ff5e5b;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s, transform 0.15s;
}

.kofi-btn:hover {
  background: #e84e4b;
  transform: translateY(-1px);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.about-card {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.about-card h2 { margin-bottom: 0.5rem; }
.about-card p { margin: 0 0 0.75rem; color: var(--muted); }
.about-card p:last-child { margin-bottom: 0; }

.text-link {
  font-weight: 600;
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .about-hero {
    grid-template-columns: 14rem 1fr;
    gap: 2rem;
  }

  .about-photo {
    max-width: none;
  }

  .about-grid { grid-template-columns: 1fr 1fr; }

  .episode-detail-header {
    grid-template-columns: 16rem 1fr;
    align-items: start;
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }

  .site-nav { justify-content: center; }
  .content { padding: 1.25rem 1rem 2rem; }

  .featured-episode {
    grid-template-columns: 1fr;
  }

  .episode-art {
    width: 100%;
    height: auto;
    max-width: 12rem;
  }

  th:nth-child(3), td:nth-child(3) { display: none; }

  .kofi-card-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
