/* Extravaganza episode pages — scoped to article.post-content (overrides main.css + Dark Reader) */

/* --- Header: visitor counter + share row --- */

.post-header .extravaganza-counter {
  margin: 1.25rem auto 0;
  padding: 0.55rem 1rem;
  width: 100%;
  max-width: 28rem;
  box-sizing: border-box;
  font-family: "Inconsolata", "Courier New", monospace;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: #8b4513;
  background: #faf8f4;
  border: 1px solid #d8d4cc;
  border-radius: 3px;
  box-shadow:
    inset 0 2px 4px rgba(42, 38, 34, 0.12),
    inset 0 -1px 0 rgba(255, 255, 255, 0.65),
    0 1px 0 rgba(255, 255, 255, 0.5);
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

.post-header .extravaganza-counter[hidden] {
  display: none;
}

.post-header .extravaganza-share {
  margin: 1.1rem auto 0;
  width: 100%;
  max-width: 28rem;
  box-sizing: border-box;
}

.post-header .extravaganza-share__lead {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  font-style: italic;
  color: #5c5650;
  line-height: 1.45;
}

.post-header .extravaganza-share__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.post-header button.extravaganza-share__btn {
  padding: 0.45rem 1rem;
  font-size: 0.84rem;
  font-weight: 600;
  font-family: inherit;
  color: #2a2622;
  background: #faf8f4;
  border: 1px solid #d8d4cc;
  border-radius: 4px;
  box-sizing: border-box;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.post-header button.extravaganza-share__btn:hover,
.post-header button.extravaganza-share__btn:focus {
  background: #f3efe8;
  border-color: #8b4513;
  color: #8b4513;
  outline: none;
}

.post-header button.extravaganza-share__btn[hidden] {
  display: none;
}

/* --- Player --- */

article.post-content .extravaganza-player {
  margin: 1.5rem 0 0;
}

article.post-content .extravaganza-player iframe {
  display: block;
  max-width: 100%;
}

/* --- Teaser ("In this episode") --- */

article.post-content .extravaganza-teaser {
  margin: 2.5rem 0 0;
  padding: 0;
  text-align: left;
  max-width: 100%;
}

article.post-content h2.extravaganza-teaser__heading,
article.post-content h2.extravaganza-transcript__heading {
  font-size: 1.15rem;
  font-weight: 600;
  font-variant: normal;
  letter-spacing: 0.02em;
  margin: 0 0 1.75rem;
  padding: 0 0 0.5rem;
  border-bottom: 1px solid #d8d4cc;
  color: #3a342e;
  text-align: left;
}

article.post-content .extravaganza-teaser__section {
  margin: 0 0 2.25rem;
}

article.post-content .extravaganza-teaser__section:last-child {
  margin-bottom: 0;
}

article.post-content .extravaganza-teaser__section + .extravaganza-teaser__section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e8e4dc;
}

article.post-content h3.extravaganza-teaser__label {
  font-size: 0.92rem;
  font-weight: 600;
  font-variant: normal;
  letter-spacing: 0.03em;
  text-transform: none;
  margin: 0 0 1rem;
  color: #5c5650;
  text-align: left;
}

article.post-content ul.extravaganza-teaser__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

article.post-content li.extravaganza-teaser__item {
  position: relative;
  display: block;
  margin: 0 0 0.85em;
  padding: 0 0 0 1.15em;
  line-height: 1.55;
  text-align: left;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

article.post-content li.extravaganza-teaser__item::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #8b4513;
  font-weight: 600;
}

article.post-content li.extravaganza-teaser__item:last-child {
  margin-bottom: 0;
}

article.post-content p.extravaganza-teaser__prose {
  margin: 0;
  line-height: 1.65;
  color: #2a2622;
  text-align: left;
  overflow-wrap: anywhere;
}

article.post-content p.extravaganza-teaser__prose--beyond {
  font-style: italic;
  color: #3a342e;
}

/* --- Transcript --- */

article.post-content .extravaganza-transcript {
  margin: 3.25rem 0 0;
  padding: 0;
  border: none;
  text-align: left;
  max-width: 100%;
}

article.post-content p.extravaganza-transcript__note {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  font-style: italic;
  color: #6b6560;
  line-height: 1.5;
  text-align: left;
}

article.post-content .extravaganza-transcript__body {
  margin: 0;
  padding: 1.35rem 1.5rem;
  background: #faf8f4;
  border: 1px solid #e8e4dc;
  border-radius: 3px;
  box-sizing: border-box;
  max-width: 100%;
}

article.post-content .extravaganza-transcript__line {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  margin: 0;
  padding: 0.85rem 0;
  text-align: left;
  border-bottom: 1px solid #ece8e0;
}

article.post-content .extravaganza-transcript__line:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

article.post-content .extravaganza-transcript__line:first-child {
  padding-top: 0;
}

article.post-content a.extravaganza-transcript__ts-link {
  flex: 0 0 3.75em;
  width: 3.75em;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  margin-top: 0.12em;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

article.post-content a.extravaganza-transcript__ts-link:hover time.extravaganza-transcript__ts,
article.post-content a.extravaganza-transcript__ts-link:focus time.extravaganza-transcript__ts {
  color: #8b4513;
  text-decoration: underline;
}

article.post-content time.extravaganza-transcript__ts {
  display: inline-block;
  font-family: "Inconsolata", "Courier New", monospace;
  font-size: 0.8rem;
  color: #6b6560;
  font-variant-numeric: tabular-nums;
  background: transparent !important;
}

article.post-content p.extravaganza-transcript__text {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #2a2622;
  text-align: left;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

@media (max-width: 640px) {
  .post-header .extravaganza-counter {
    max-width: 100%;
    margin-top: 1rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    line-height: 1.5;
  }

  .post-header .extravaganza-share {
    max-width: 100%;
    margin-top: 0.9rem;
  }

  .post-header .extravaganza-share__lead {
    font-size: 0.84rem;
    margin-bottom: 0.75rem;
  }

  .post-header .extravaganza-share__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .post-header button.extravaganza-share__btn {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.6rem 1rem;
    font-size: 0.88rem;
  }

  article.post-content aside.extravaganza-cta {
    padding: 1.15rem 0.75rem;
  }

  article.post-content p.extravaganza-cta__creed {
    font-size: 0.86rem;
    line-height: 1.6;
  }

  article.post-content .extravaganza-transcript__body {
    padding: 1rem 1.1rem;
  }

  article.post-content .extravaganza-transcript__line {
    gap: 0.65rem;
  }

  article.post-content a.extravaganza-transcript__ts-link {
    flex-basis: 3.25em;
    width: 3.25em;
  }

  article.post-content time.extravaganza-transcript__ts {
    font-size: 0.75rem;
  }

  article.post-content li.extravaganza-teaser__item {
    padding-left: 1em;
  }
}

/* --- Self-sponsor CTA --- */

article.post-content aside.extravaganza-cta {
  margin: 0;
  padding: 1.35rem 1rem;
  text-align: center;
  border-top: 1px solid #d8d4cc;
  border-bottom: 1px solid #d8d4cc;
  max-width: 100%;
}

article.post-content aside.extravaganza-cta--top {
  margin-bottom: 1.75rem;
}

article.post-content aside.extravaganza-cta--closing {
  margin-top: 2.75rem;
}

article.post-content p.extravaganza-cta__lead {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  color: #5c5650;
  line-height: 1.5;
}

article.post-content p.extravaganza-cta__creed {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.55;
  color: #3a342e;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

article.post-content p.extravaganza-cta__action {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

article.post-content a.extravaganza-cta__link {
  font-weight: 600;
  color: #2a2622;
  text-decoration: none;
}

article.post-content a.extravaganza-cta__link:hover,
article.post-content a.extravaganza-cta__link:focus {
  text-decoration: underline;
  color: #8b4513;
}

article.post-content a.extravaganza-cta__link strong {
  font-weight: 700;
}

/* --- More from the show --- */

article.post-content aside.extravaganza-more {
  margin: 0;
  padding: 1.75rem 1rem 2rem;
  text-align: center;
  border-bottom: 1px solid #d8d4cc;
  max-width: 100%;
}

article.post-content p.extravaganza-more__show {
  margin: 0 0 1.1rem;
  font-size: 0.78rem;
  font-variant: small-caps;
  letter-spacing: 0.05em;
  color: #6b6560;
  line-height: 1.45;
}

article.post-content p.extravaganza-more__browse {
  margin: 0 0 1rem;
  line-height: 1.5;
}

article.post-content a.extravaganza-more__btn {
  display: inline-block;
  padding: 0.55rem 1.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #2a2622;
  text-decoration: none;
  background: #faf8f4;
  border: 1px solid #d8d4cc;
  border-radius: 4px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

article.post-content a.extravaganza-more__btn:hover,
article.post-content a.extravaganza-more__btn:focus {
  background: #f3efe8;
  border-color: #8b4513;
  color: #8b4513;
}

article.post-content p.extravaganza-more__follow {
  margin: 0;
  font-size: 0.84rem;
  color: #6b6560;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

article.post-content a.extravaganza-more__link {
  font-weight: 600;
  color: #5c5650;
  text-decoration: none;
}

article.post-content a.extravaganza-more__link:hover,
article.post-content a.extravaganza-more__link:focus {
  text-decoration: underline;
  color: #8b4513;
}
