/* Two Goats and a Donkey — Podcast transcripts: Autumn Homestead */
:root {
  --pod-chestnut: #76513B;
  --pod-copper: #AC7145;
  --pod-wheat: #D6A65C;
  --pod-cream: #FFF0D5;
  --pod-burgundy: #833D43;
  --pod-ink: #34271D;
}
body.podcast-episode {
  background: #76513B !important;
  background-image: linear-gradient(145deg,#76513B 0%, #8F6748 55%, #684531 100%) !important;
  color: var(--pod-ink);
  margin: 0;
  min-height: 100vh;
}
body.podcast-episode .page {
  width: min(1400px,calc(100% - 36px));
  margin: 26px auto;
  display: grid;
  grid-template-columns: 228px minmax(0,1fr);
  align-items: start;
  gap: 24px;
}
body.podcast-episode .sidebar {
  position: sticky; top: 18px;
  border: 2px solid var(--pod-wheat);
  border-radius: 12px;
  background: #5A3B2B;
  color: var(--pod-cream);
  padding: 14px;
  box-sizing: border-box;
  min-width: 0;
  box-shadow: 0 5px 20px #24150d3b;
}
body.podcast-episode .sidebar-image { width:100%;height:auto;display:block;border-radius:7px;border:2px solid #b68c52;box-sizing:border-box; }
body.podcast-episode .site-nav-heading {color:#F6D9A3;font-size:1.15rem;margin:18px 0 10px;}
body.podcast-episode .sidebar .site-nav a {color:#FFF0D5;}
body.podcast-episode .sidebar .site-nav a:hover,
body.podcast-episode .sidebar .site-nav a:focus {color:#FFE1A0;}
body.podcast-episode .content-panel {
  box-sizing:border-box;
  min-width:0;
  background:var(--pod-cream);
  border:3px solid var(--pod-wheat);
  border-radius:16px;
  padding:clamp(22px,4vw,50px);
  box-shadow:0 12px 25px #27180d44;
}
body.podcast-episode .podcast-heading {text-align:center;border-bottom:2px solid #d6a65c;padding-bottom:20px;margin-bottom:22px;}
body.podcast-episode .podcast-heading h1 {color:#76513B;font-size:clamp(1.6rem,3vw,2.4rem);margin:0 0 14px;}
body.podcast-episode .podcast-heading .subtitle {color:#833D43;line-height:1.5;margin:0;}
body.podcast-episode .transcript {font: 1.07rem/1.8 Georgia,'Times New Roman',serif;overflow-wrap:anywhere;}
body.podcast-episode .transcript h1,
body.podcast-episode .transcript h2,
body.podcast-episode .transcript h3 {color:#833D43;line-height:1.3;}
body.podcast-episode .transcript p {margin:1.1em 0;}
body.podcast-episode .transcript a {color:#833D43;text-decoration:underline;text-underline-offset:2px;}
body.podcast-episode .transcript a:hover {color:#5b2530;}
body.podcast-episode .transcript img {max-width:100%;height:auto;}
body.podcast-episode .transcript hr {border:0;border-top:2px solid #d6a65c;margin:25px 0;}
body.podcast-episode .episode-ornament {display:block;max-width:100%;height:auto;margin:18px auto 24px;}
body.podcast-episode .episode-ending {border-top:1px solid #d6a65c;margin-top:28px;padding-top:10px;}
body.podcast-episode .site-footer {color:var(--pod-cream);}
@media (max-width:780px) {
  body.podcast-episode .page {grid-template-columns:minmax(0,1fr);width:min(100% - 22px,750px);gap:14px;margin:12px auto;}
  body.podcast-episode .sidebar {position:static;}
  body.podcast-episode .sidebar-image {width:min(200px,100%);margin:auto;}
  body.podcast-episode .content-panel {padding:20px 16px;}
}


/* Podcast index — same Autumn Homestead palette as transcript detail pages */
body.podcast-index {
  background:#76513B !important;
  background-image:linear-gradient(145deg,#76513B 0%,#8F6748 55%,#684531 100%) !important;
  color:#34271D; margin:0; min-height:100vh;
}
body.podcast-index .page {
  box-sizing:border-box; width:min(1400px,calc(100% - 36px));
  margin:26px auto; display:grid; grid-template-columns:228px minmax(0,1fr);
  align-items:start; gap:24px;
}
body.podcast-index .sidebar {
  position:sticky;top:18px;box-sizing:border-box;min-width:0;
  padding:14px;background:#5A3B2B;color:#FFF0D5;
  border:2px solid #D6A65C;border-radius:12px;
  box-shadow:0 5px 20px #24150d3b;
}
body.podcast-index .sidebar-image {
  width:100%;height:auto;display:block;border-radius:7px;
  border:2px solid #b68c52;box-sizing:border-box;
}
body.podcast-index .site-nav-heading {color:#F6D9A3;font-size:1.15rem;margin:18px 0 10px;}
body.podcast-index .sidebar .site-nav a {color:#FFF0D5;}
body.podcast-index .sidebar .site-nav a:hover,
body.podcast-index .sidebar .site-nav a:focus {color:#FFE1A0;}
body.podcast-index main {
  box-sizing:border-box;min-width:0;background:#FFF0D5;
  border:3px solid #D6A65C;border-radius:16px;
  padding:clamp(22px,4vw,48px);box-shadow:0 12px 25px #27180d44;
}
body.podcast-index .intro {text-align:center;padding-bottom:24px;border-bottom:2px solid #D6A65C;margin-bottom:28px;}
body.podcast-index .site-title {color:#76513B;margin:0 0 18px;font-size:clamp(1.5rem,3vw,2.4rem);}
body.podcast-index .hero {display:block;max-width:100%;height:auto;margin:0 auto 20px;border-radius:8px;}
body.podcast-index .intro h2 {color:#833D43;font-size:clamp(1.3rem,2.6vw,2rem);margin:10px 0;}
body.podcast-index .intro p {color:#76513B;margin:8px 0;}
body.podcast-index .year-section {margin:30px 0 12px;}
body.podcast-index .year-section h3 {
  margin:0 0 15px;color:#76513B;font-size:1.65rem;
  padding-bottom:8px;border-bottom:2px solid #D6A65C;
}
body.podcast-index .count {color:#833D43;font-size:.85rem;font-weight:normal;margin-left:8px;white-space:nowrap;}
body.podcast-index .episodes {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
body.podcast-index .episode-card {
  display:flex;flex-direction:column;gap:9px;min-width:0;box-sizing:border-box;
  padding:19px 20px;background:#FFF9EA;
  border:1px solid #D6A65C;border-left:5px solid #AC7145;border-radius:9px;
  text-decoration:none;color:#34271D;
  box-shadow:0 2px 8px #76513b1c;
  transition:background-color .15s ease,transform .15s ease;
}
body.podcast-index .episode-card:hover,
body.podcast-index .episode-card:focus-visible {background:#FAE6C4;transform:translateY(-2px);outline-color:#833D43;}
body.podcast-index .episode-meta {display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:.8rem;color:#76513B;}
body.podcast-index .episode-number {color:#833D43;font-weight:700;letter-spacing:.07em;}
body.podcast-index .episode-title {font:700 1.15rem/1.35 Georgia,'Times New Roman',serif;color:#493025;}
body.podcast-index .episode-action {margin-top:auto;color:#833D43;font-weight:700;font-size:.9rem;}
body.podcast-index .bottom-image {display:block;max-width:min(90%,700px);height:auto;margin:18px auto;}
body.podcast-index .site-footer {color:#FFF0D5;}
@media(max-width:900px){body.podcast-index .episodes {grid-template-columns:1fr;}}
@media(max-width:780px){
 body.podcast-index .page {grid-template-columns:minmax(0,1fr);width:min(100% - 22px,750px);gap:14px;margin:12px auto;}
 body.podcast-index .sidebar {position:static;}
 body.podcast-index .sidebar-image {width:min(200px,100%);margin:auto;}
 body.podcast-index main {padding:20px 16px;}
}


/* Podcast-only navigation contrast fix.
   Shared navigation.css sets link and heading colors with !important.
   These higher-specificity rules deliberately override those colors
   without changing link display or the current-section hiding logic. */
body.podcast-index nav.site-nav a,
body.podcast-index nav.site-nav a:visited,
body.podcast-episode nav.site-nav a,
body.podcast-episode nav.site-nav a:visited {
  color: #FFF0D5 !important;
  background: transparent !important;
}
body.podcast-index nav.site-nav a:hover,
body.podcast-index nav.site-nav a:focus-visible,
body.podcast-episode nav.site-nav a:hover,
body.podcast-episode nav.site-nav a:focus-visible {
  color: #FFE1A0 !important;
  background: #833D43 !important;
}
body.podcast-index .site-nav-heading,
body.podcast-episode .site-nav-heading {
  color: #F6D9A3 !important;
  border-bottom-color: #D6A65C !important;
}

/* Consistent sidebar and navigation across the podcast index and transcripts.
   Use both page classes so one rule controls every podcast sidebar.
   Shared site navigation styles still control layout and current-page hiding. */
body:is(.podcast-index, .podcast-episode) .page > aside.sidebar {
  position: sticky;
  top: 18px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 14px;
  background: #5A3B2B;
  border: 2px solid #D6A65C;
  border-radius: 12px;
  box-shadow: 0 5px 20px #24150d3b;
}
body:is(.podcast-index, .podcast-episode) .sidebar .sidebar-image {
  width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
  border: 2px solid #B68C52;
  border-radius: 7px;
}
body:is(.podcast-index, .podcast-episode) nav.site-nav {
  width: 100%;
  box-sizing: border-box;
}
body:is(.podcast-index, .podcast-episode) nav.site-nav a,
body:is(.podcast-index, .podcast-episode) nav.site-nav a:visited {
  color: #FFF0D5 !important;
  background: transparent !important;
}
body:is(.podcast-index, .podcast-episode) nav.site-nav a:hover,
body:is(.podcast-index, .podcast-episode) nav.site-nav a:focus-visible {
  color: #FFE1A0 !important;
  background: #833D43 !important;
}
body:is(.podcast-index, .podcast-episode) .site-nav-heading {
  color: #F6D9A3 !important;
  border-bottom-color: #D6A65C !important;
}
@media (max-width: 780px) {
  body:is(.podcast-index, .podcast-episode) .page > aside.sidebar { position: static; }
  body:is(.podcast-index, .podcast-episode) .sidebar .sidebar-image {
    width: min(200px,100%);
    margin: auto;
  }
}
