/* =========================================================
   Trees A Crowd — Episode page 2026 (single.php)
   Loaded after homepage-2026.css, which supplies the colours, buttons,
   chips, mini player and base resets.
   ========================================================= */

/* ---------- Banner: photo with the title in white ---------- */
.tac-ep-banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 220px;
  background-color: var(--tac-brown);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
.tac-ep-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(40, 30, 20, 0.7) 0%, rgba(40, 30, 20, 0.3) 55%, rgba(40, 30, 20, 0.05) 100%);
  pointer-events: none;
}
.tac-ep-banner .tac-banner-inner {
  position: relative;
  padding-top: 96px; /* clears the hanging logo on phones */
  padding-bottom: 18px;
}
.tac-home .tac-ep-kicker {
  font-size: 15px;
  font-weight: 700;
  color: var(--tac-peach);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  margin-bottom: 6px;
}
.tac-home .tac-ep-title {
  margin: 0;
  color: var(--tac-white);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.3);
  text-wrap: balance;
}
.tac-ep-title__name {
  display: block;
  font-size: clamp(32px, 8vw, 58px);
  line-height: 1.04;
}
.tac-ep-title__tag {
  display: block;
  margin-top: 6px;
  font-size: clamp(20px, 4.6vw, 30px);
  line-height: 1.2;
  font-weight: 700;
}

/* ---------- Listen: artwork, play, share, summary, people, apps ---------- */
.tac-ep-intro {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  grid-template-areas:
    "art listen"
    "about about";
  gap: 16px 16px;
  padding-top: 20px;
  padding-bottom: 24px;
}
.tac-ep-intro--noart {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "listen"
    "about";
}
.tac-ep-art {
  grid-area: art;
  align-self: start;
}
.tac-ep-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.tac-ep-listen {
  grid-area: listen;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.tac-home .tac-ep-meta {
  font-size: 15px;
  font-weight: 700;
  color: var(--tac-brown);
}
.tac-ep-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tac-ep-actions .tac-btn {
  min-height: 48px;
  padding-left: 18px;
  padding-right: 20px;
  font-size: 17px;
}
.tac-home button.tac-ep-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
}
.tac-home .tac-ep-share-msg {
  font-size: 14px;
  min-height: 0;
}
.tac-home .tac-ep-share-msg:empty {
  display: none;
}
.tac-ep-about-top {
  grid-area: about;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.tac-home .tac-ep-lede {
  font-size: 20px;
  line-height: 1.4;
  color: var(--tac-text);
}
.tac-home .tac-ep-people {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.tac-ep-people li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--tac-text);
}
.tac-ep-people img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--tac-peach);
}
.tac-ep-people small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--tac-brown);
}
/* Pages with two episodes (two-parters, bonus episodes) */
.tac-ep-parts {
  padding: 12px 14px;
  background: var(--tac-white);
  border-left: 4px solid var(--tac-orange);
}
.tac-home .tac-ep-parts__head {
  font-size: 14px;
  font-weight: 700;
  color: var(--tac-text);
  margin-bottom: 8px;
}
.tac-home .tac-ep-parts ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tac-ep-part {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tac-home .tac-ep-part .tac-round-play {
  position: static;
  flex: none;
  width: 44px;
  height: 44px;
  text-decoration: none;
}
.tac-ep-part__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.tac-ep-part__text small {
  font-size: 13px;
  font-weight: 700;
  color: var(--tac-orange);
}
.tac-ep-part__text span {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--tac-text);
}
.tac-ep-embed iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}
.tac-home .tac-ep-apps p {
  font-size: 14px;
  font-weight: 700;
  color: var(--tac-text);
  margin-bottom: 8px;
}
.tac-home .tac-ep-apps ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Collection and themes ---------- */
.tac-ep-tags {
  padding-bottom: 8px;
}
.tac-home .tac-ep-tags ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(93, 74, 54, 0.18);
}
.tac-home a.tac-ep-tag,
.tac-home a.tac-ep-tag:visited {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(93, 74, 54, 0.35);
  background: transparent;
  color: var(--tac-brown);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.tac-home a.tac-ep-tag--coll,
.tac-home a.tac-ep-tag--coll:visited {
  background: var(--tac-peach);
  border-color: var(--tac-peach);
}
.tac-home a.tac-ep-tag:hover {
  border-color: var(--tac-orange);
  color: var(--tac-orange);
}

/* ---------- Notes: full width of the page ---------- */
.tac-ep-section {
  padding: 32px 0 36px;
}
.tac-ep-section .tac-heading {
  margin-bottom: 14px;
}
.tac-home .tac-ep-prose p,
.tac-home .tac-ep-prose li {
  font-size: 18px;
  line-height: 1.65;
  color: var(--tac-text);
}
.tac-home .tac-ep-prose p {
  margin: 0 0 1em;
}
.tac-home .tac-ep-prose > :last-child {
  margin-bottom: 0;
}
.tac-home .tac-ep-prose ul,
.tac-home .tac-ep-prose ol {
  list-style: disc;
  margin: 0 0 1em;
  padding-left: 1.3em;
}
.tac-home .tac-ep-prose ol {
  list-style: decimal;
}
.tac-home .tac-ep-prose h3,
.tac-home .tac-ep-prose h4 {
  font-family: inherit;
  font-size: 19px;
  margin: 1.4em 0 0.4em;
  color: var(--tac-text);
}
.tac-home .tac-ep-prose a,
.tac-home .tac-ep-prose a:visited {
  color: var(--tac-brown);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(241, 101, 34, 0.6);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.tac-home .tac-ep-prose a:hover {
  color: var(--tac-orange);
}
.tac-ep-prose img {
  max-width: 100%;
  height: auto;
}
.tac-ep-prose iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
  margin: 0 0 1em;
}
/* Videos keep their shape; audio players keep the height they were given */
.tac-ep-prose iframe[src*="youtube"],
.tac-ep-prose iframe[src*="youtu.be"],
.tac-ep-prose iframe[src*="vimeo"] {
  height: auto;
  aspect-ratio: 16 / 9;
}
.tac-ep-prose blockquote {
  margin: 0 0 1em;
  padding: 2px 0 2px 16px;
  border-left: 4px solid var(--tac-peach);
}
/* David's thoughts: a full-width white band, set apart as a personal note */
.tac-ep-thoughts {
  background: var(--tac-white);
  border-top: 4px solid var(--tac-orange);
}
.tac-ep-signature {
  display: block;
  width: 110px;
  height: auto;
  margin-top: 8px;
}

/* ---------- More like this ---------- */
.tac-ep-more {
  background: var(--tac-cream);
  border-top: 1px solid rgba(93, 74, 54, 0.18);
  padding: 36px 0 32px;
}
.tac-home .tac-ep-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.tac-ep-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 14px;
  align-items: start;
}
.tac-ep-card__art {
  position: relative;
  grid-row: 1 / span 2;
}
.tac-ep-card__art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--tac-cream);
}
.tac-ep-card__art .tac-round-play {
  right: 4px;
  bottom: 4px;
  width: 40px;
  height: 40px;
}
.tac-home .tac-ep-card__meta {
  font-size: 14px;
  font-weight: 700;
  color: var(--tac-orange);
  margin-top: 4px;
}
.tac-home .tac-ep-card__title {
  font-size: 17px;
  line-height: 1.25;
  margin-top: 4px;
}
.tac-home .tac-ep-card__title a,
.tac-home .tac-ep-card__title a:visited {
  color: var(--tac-text);
  text-decoration: none;
}
.tac-home .tac-ep-card__title a:hover {
  color: var(--tac-orange);
}

/* ---------- Newer / older ---------- */
.tac-ep-adjacent {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding-top: 24px;
  padding-bottom: 40px;
}
.tac-home a.tac-ep-adjacent__link,
.tac-home a.tac-ep-adjacent__link:visited {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border: 1.5px solid rgba(93, 74, 54, 0.25);
  color: var(--tac-text);
  text-decoration: none;
}
.tac-home a.tac-ep-adjacent__link:hover {
  border-color: var(--tac-orange);
}
.tac-ep-adjacent__link small {
  font-size: 13px;
  font-weight: 700;
  color: var(--tac-orange);
}
.tac-ep-adjacent__link span {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.tac-ep-adjacent__link--older {
  text-align: right;
}

/* ---------- Larger screens ---------- */
@media (min-width: 40em) {
  .tac-ep-banner {
    min-height: 300px;
  }
  .tac-ep-banner .tac-banner-inner {
    padding-top: 120px;
    padding-bottom: 26px;
  }
  .tac-ep-intro {
    grid-template-columns: 220px minmax(0, 1fr);
    grid-template-areas:
      "art listen"
      "art about";
    grid-template-rows: auto 1fr;
    gap: 16px 32px;
    padding-top: 32px;
    padding-bottom: 32px;
  }
  .tac-ep-intro--noart {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "listen"
      "about";
  }
  .tac-ep-listen {
    align-self: start;
  }
  .tac-ep-section {
    padding: 40px 0 44px;
  }
  .tac-home .tac-ep-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
  .tac-ep-card {
    display: flex;
    flex-direction: column;
  }
  .tac-ep-card__art .tac-round-play {
    right: 8px;
    bottom: 8px;
    width: 48px;
    height: 48px;
  }
  .tac-ep-adjacent {
    grid-template-columns: 1fr 1fr;
  }
  .tac-ep-adjacent__link--older:only-child {
    grid-column: 2;
  }
}
@media (min-width: 64em) {
  .tac-ep-banner {
    min-height: 400px;
  }
  .tac-ep-intro {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 18px 48px;
  }
  .tac-ep-intro .tac-ep-about-top {
    max-width: 44rem;
  }
}
