/* =========================================================
   Trees A Crowd — Episodes 2026
   Loaded only by episodes-2026.php, after homepage-2026.css
   (which supplies the colours, buttons and base resets).
   ========================================================= */

/* Photo banner under the header, with the page title in white over it.
   The hanging logo from menu.php overlaps the top-left corner, so the title
   sits at the bottom-left, and a soft shade behind it keeps it readable
   whatever photo is used. */
.tac-eps-banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 200px;
  background-color: var(--tac-brown);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
.tac-eps-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(40, 30, 20, 0.55) 0%, rgba(40, 30, 20, 0.2) 45%, rgba(40, 30, 20, 0) 75%);
  pointer-events: none;
}
.tac-eps-banner .tac-banner-inner {
  position: relative;
  padding-bottom: 16px;
}
.tac-home .tac-eps-title {
  font-size: clamp(40px, 10.5vw, 68px);
  line-height: 1;
  color: var(--tac-white);
  margin: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.3);
}
.tac-eps-intro {
  padding-top: 24px;
  padding-bottom: 8px;
}
.tac-home .tac-eps-lede {
  max-width: 34em;
  font-size: 18px;
  line-height: 1.45;
  color: var(--tac-text);
}

/* ---------- Latest episodes carousel ---------- */

.tac-eps-latest {
  padding-top: 32px;
}
.tac-carousel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.tac-carousel-head .tac-heading {
  margin-bottom: 0;
}
.tac-carousel-nav {
  display: flex;
  gap: 8px;
}
.tac-home .tac-carousel-nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--tac-brown);
  background: var(--tac-white);
  color: var(--tac-brown);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.tac-home .tac-carousel-nav button:hover {
  background: var(--tac-brown);
  color: var(--tac-white);
}
.tac-home .tac-carousel-nav button[disabled] {
  opacity: 0.35;
  cursor: default;
  background: var(--tac-white);
  color: var(--tac-brown);
}
.tac-home .tac-carousel-hint {
  margin: 6px 0 14px;
  font-size: 15px;
  color: var(--tac-brown);
}
.tac-home .tac-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 240px;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 -16px;
  padding: 0 16px 10px;
  scroll-padding-left: 16px;
}
.tac-carousel > li {
  scroll-snap-align: start;
  display: flex;
}
.tac-home a.tac-card,
.tac-home a.tac-card:visited {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--tac-white);
  color: var(--tac-brown);
  text-decoration: none;
}
.tac-card__art {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--tac-peach);
}
.tac-card__art--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}
.tac-card__art--empty img {
  width: 42%;
  height: auto;
  border-radius: 50%;
  background: var(--tac-white);
}
.tac-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 18px;
}
.tac-card__title {
  font-size: 18px;
  line-height: 1.22;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tac-card__cta {
  margin-top: auto;
  padding-top: 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--tac-orange);
}
.tac-home a.tac-card:hover .tac-card__title {
  color: var(--tac-orange);
}

/* ---------- Search and collections ---------- */

.tac-eps-archive {
  padding-top: 40px;
  padding-bottom: 32px;
}
.tac-home .tac-eps-label {
  display: block;
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--tac-text);
}
.tac-home .tac-eps-label--gap {
  margin-top: 22px;
}
.tac-search {
  position: relative;
  max-width: 560px;
  color: var(--tac-brown);
}
.tac-search svg {
  position: absolute;
  left: 16px;
  top: 14px;
}
.tac-home .tac-search input {
  box-sizing: border-box; /* the theme's normalize.css makes search boxes content-box */
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 16px 0 46px;
  border: 2px solid var(--tac-brown);
  border-radius: 999px;
  background: var(--tac-white);
  color: var(--tac-text);
  font-family: inherit;
  font-size: 16px;
  box-shadow: none;
}

.tac-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tac-home .tac-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(93, 74, 54, 0.3);
  background: var(--tac-white);
  color: var(--tac-brown);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}
.tac-home .tac-chip-btn span {
  font-weight: 400;
  font-size: 13px;
}
.tac-home .tac-chip-btn[aria-pressed="true"] {
  background: var(--tac-brown);
  border-color: var(--tac-brown);
  color: var(--tac-white);
}
.tac-home .tac-chip-btn:hover {
  border-color: var(--tac-brown);
}
.tac-chips--small .tac-chip-btn {
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
}

.tac-coll-panel {
  margin-top: 14px;
  padding: 14px;
  background: var(--tac-white);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tac-coll-panel[hidden] {
  display: none;
}
.tac-home .tac-coll-desc {
  font-size: 15px;
  line-height: 1.45;
}
.tac-home .tac-coll-panel .tac-eps-label {
  margin: 4px 0 0;
  font-size: 14px;
}

/* ---------- Results ---------- */

.tac-results-wrap {
  margin-top: 24px;
  scroll-margin-top: 16px;
}
.tac-idle {
  padding: 20px;
  background: var(--tac-white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.tac-idle[hidden],
.tac-results-head[hidden],
.tac-none[hidden],
.tac-results > li[hidden] {
  display: none;
}
.tac-home .tac-btn--outline {
  border-color: var(--tac-brown);
  background: transparent;
  color: var(--tac-brown);
  font-size: 15px;
  min-height: 44px;
  white-space: normal;
}
.tac-results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 8px;
}
.tac-home .tac-results-label {
  font-weight: 700;
  color: var(--tac-text);
}
.tac-home .tac-clear {
  min-height: 44px;
  padding: 0 16px;
  background: transparent;
  color: var(--tac-brown);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.tac-home .tac-none {
  padding: 16px 0;
  border-top: 1px solid rgba(93, 74, 54, 0.22);
}
.tac-home .tac-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  column-gap: 32px;
}
.tac-results > li {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 0 16px;
  border-top: 1px solid rgba(93, 74, 54, 0.22);
}
.tac-home .tac-result__title {
  font-size: 18px;
  line-height: 1.25;
}
.tac-home .tac-result__title a,
.tac-home .tac-result__title a:visited {
  color: var(--tac-brown);
  text-decoration: none;
}
.tac-home .tac-result__title a:hover {
  color: var(--tac-orange);
}
.tac-home .tac-result__who {
  font-size: 15px;
  line-height: 1.4;
}
.tac-home .tac-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.tac-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--tac-peach);
  color: var(--tac-brown);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

/* ---------- People & organisations A–Z ---------- */

.tac-eps-index {
  background: var(--tac-white);
  padding: 40px 16px 48px;
}
.tac-eps-index__inner {
  max-width: 1088px;
  margin: 0 auto;
}
.tac-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.tac-tabs .tac-chip-btn[hidden] {
  display: none;
}
.tac-index {
  margin-bottom: 32px;
}
.tac-index[hidden] {
  display: none;
}
.tac-home .tac-index-title {
  font-size: 22px;
  color: var(--tac-text);
  margin-bottom: 6px;
}
.tac-js .tac-index-title {
  display: none;
}
.tac-home .tac-index-hint {
  font-size: 15px;
  line-height: 1.45;
  margin-bottom: 12px;
}
.tac-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: 20px;
}
.tac-letters a,
.tac-letters span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 40px;
  font-size: 16px;
}
.tac-home .tac-letters a,
.tac-home .tac-letters a:visited {
  font-weight: 700;
  color: var(--tac-brown);
  text-decoration: none;
}
.tac-letters span {
  color: rgba(93, 74, 54, 0.3);
}
.tac-index-cols {
  column-width: 150px;
  column-gap: 24px;
}
.tac-index-block {
  break-inside: avoid;
  margin-bottom: 18px;
  scroll-margin-top: 16px;
}
.tac-home .tac-index-letter {
  margin-bottom: 2px;
  font-size: 22px;
  font-weight: 700;
  color: var(--tac-orange);
}
.tac-home .tac-index-block a,
.tac-home .tac-index-block a:visited {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--tac-brown);
  text-decoration: none;
}
.tac-home .tac-index-block a:hover {
  color: var(--tac-orange);
}
.tac-home .tac-index-block a strong {
  font-weight: 700;
}
.tac-index-count {
  font-size: 13px;
  margin-left: 4px;
}

@media (min-width: 40em) {
  .tac-eps-banner {
    height: 280px;
  }
  .tac-eps-banner .tac-banner-inner {
    padding-bottom: 24px;
  }
  .tac-eps-intro {
    padding-top: 32px;
  }
  .tac-home .tac-carousel {
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }
}
@media (min-width: 64em) {
  .tac-eps-banner {
    height: 380px;
  }
}
