/* ==========================================================================
   HH Science Podcast :: overview page + single episodes
   Loaded only on templates/template.podcast-overview.php and single-podcasts.php
   ========================================================================== */

:root {
	--podcast-charcoal: #414449;
	--podcast-gray-heading: #6e7075;
	--podcast-light-bg: #f5f5f5;
	--podcast-border: #c9cacc;
	--podcast-placeholder: #e4e5e7;
	--podcast-video: #2b2d31;
	--podcast-magenta: #a0004a;
	--podcast-teal: #0f6b37;
	--podcast-shadow: 0 2px 14px rgba(65, 68, 73, 0.08);
}

/* ---------- Layout ---------- */
.podcast-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.podcast-section { padding: 90px 0; background: var(--podcast-light-bg); }
.podcast-section--white { background: #fff; }
.podcast-center { display: flex; justify-content: center; margin-top: 40px; }
.podcast-grid { display: grid; gap: 32px 28px; }
.podcast-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.podcast-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.podcast-section .podcast-wrap > *:last-child { margin-bottom: 0; }

/* ---------- Type ---------- */
.podcast-section-heading { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-bottom: 40px; }
.podcast-section-heading h2 { margin: 0; font-family: "Avenir Next Regular", sans-serif; font-weight: 400; font-size: 32px; line-height: 51.2px; letter-spacing: 2px; text-transform: uppercase; color: var(--podcast-gray-heading); text-align: center; }
.podcast-divider { display: block; width: 140px; height: 1px; background: var(--podcast-charcoal); }
.podcast-divider--left { margin: 12px 0 0; }
.podcast-subheading { margin: 12px 0 0; font-family: "Avenir Light", sans-serif; font-weight: 300; font-size: 22px; line-height: 35.2px; letter-spacing: 2px; text-transform: uppercase; color: var(--podcast-gray-heading); }
.podcast-subheading--center { text-align: center; margin: 48px 0 24px; }
.podcast-eyebrow { margin: 0; font-family: "Avenir Heavy", sans-serif; font-size: 12px; line-height: 19.2px; letter-spacing: 2px; text-transform: uppercase; color: var(--podcast-teal); }
.podcast-eyebrow--lg { font-size: 13px; line-height: 20.8px; letter-spacing: 3px; }
.podcast-eyebrow--md { font-size: 13px; line-height: 20.8px; }
.podcast-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.podcast-badge { display: inline-flex; align-items: center; padding: 5px 12px 1px; border-radius: 14.4px; background: var(--podcast-teal); color: #fff; font-family: "Avenir Medium", sans-serif; font-size: 13px; line-height: 20.8px; letter-spacing: 1px; text-transform: uppercase; }
.podcast-meta { font-family: "Avenir Medium", sans-serif; font-size: 13px; line-height: 20.8px; letter-spacing: 1px; text-transform: uppercase; color: var(--podcast-gray-heading); }

/* ---------- Buttons + links ---------- */
.podcast-btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.podcast-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 22px; border: 1px solid transparent; border-radius: 22px; font-family: "Avenir Heavy", sans-serif; font-size: 12px; line-height: 19.2px; letter-spacing: 2px; text-transform: uppercase; text-decoration: none !important; white-space: nowrap; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; box-sizing: border-box; background: none; }
.podcast-btn .podcast-icon { flex-shrink: 0; }
.podcast-btn--magenta { background: var(--podcast-magenta); color: #fff !important; }
.podcast-btn--magenta:hover { background: var(--podcast-charcoal); }
.podcast-btn--outline { border-color: var(--podcast-charcoal); color: var(--podcast-charcoal) !important; }
.podcast-btn--outline:hover { background: var(--podcast-charcoal); color: #fff !important; }
.podcast-btn--outline-magenta { min-height: 48px; padding: 0 35px; border-radius: 24px; border-color: var(--podcast-magenta); color: var(--podcast-magenta) !important; }
.podcast-btn--outline-magenta:hover { background: var(--podcast-magenta); color: #fff !important; }
.podcast-btn--white { background: #fff; color: var(--podcast-charcoal) !important; }
.podcast-btn--white:hover { background: var(--podcast-light-bg); }
.podcast-btn--outline-white { border-color: #fff; color: #fff !important; }
.podcast-btn--outline-white:hover { background: #fff; color: var(--podcast-teal) !important; }
.podcast-text-link { display: inline-flex; align-items: center; min-height: 44px; font-family: "Avenir Heavy", sans-serif; font-size: 12px; line-height: 19.2px; letter-spacing: 2px; text-transform: uppercase; color: var(--podcast-magenta) !important; text-decoration: none !important; }
.podcast-text-link:hover { color: var(--podcast-charcoal) !important; }
.podcast-underline-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-family: "Avenir Medium", sans-serif; font-size: 14px; line-height: 22.4px; color: var(--podcast-charcoal) !important; text-decoration: underline !important; }
.podcast-underline-link:hover { color: var(--podcast-magenta) !important; }
.podcast-pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.podcast-pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 19px; border: 1px solid var(--podcast-border); border-radius: 20px; background: #fff; font-family: "Avenir Medium", sans-serif; font-size: 14px; line-height: 22.4px; color: var(--podcast-charcoal) !important; text-decoration: none !important; }
.podcast-pill:hover { border-color: var(--podcast-magenta); color: var(--podcast-magenta) !important; }

/* ---------- Video ---------- */
.podcast-video { position: relative; width: 100%; padding-top: 56.25%; border-radius: 4px; overflow: hidden; background: var(--podcast-video); }
.podcast-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Headshots ---------- */
.podcast-headshot { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 130px; height: 130px; border-radius: 50%; overflow: hidden; background: var(--podcast-placeholder); }
.podcast-headshot img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.podcast-headshot--empty { font-family: "Playfair Display", serif; font-size: 34px; color: var(--podcast-gray-heading); }
.podcast-headshot--lg { width: 140px; height: 140px; }
.podcast-headshot--sm { width: 96px; height: 96px; }
.podcast-headshot--sm.podcast-headshot--empty { font-size: 26px; }

/* ---------- Episode cards ---------- */
.podcast-card.is-hidden { display: none; }
.podcast-card__media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: var(--podcast-video); }
.podcast-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.podcast-card__media:hover img { transform: scale(1.03); }
.podcast-card__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); line-height: 0; transition: transform .2s; }
.podcast-card__media:hover .podcast-card__play { transform: translate(-50%, -50%) scale(1.08); }
.podcast-card__title { margin: 0; }
.podcast-card__title a { color: var(--podcast-charcoal) !important; text-decoration: none !important; }
.podcast-card__title a:hover { color: var(--podcast-magenta) !important; }
.podcast-card__desc, .podcast-card__guest { margin: 0; color: var(--podcast-charcoal); }

/* Grid card (All Episodes, More Episodes) */
.podcast-card--grid { display: flex; flex-direction: column; gap: 14px; }
.podcast-card--grid .podcast-card__body { display: flex; flex-direction: column; gap: 14px; }
.podcast-card--grid .podcast-card__title { font-family: "Avenir Medium", sans-serif; font-weight: 500; font-size: 18px; line-height: 24.3px; letter-spacing: 0; text-transform: none; }
.podcast-card--grid .podcast-card__desc { font-family: "Avenir Light", sans-serif; font-size: 15px; line-height: 24px; }

/* Featured card (overview, under Latest Episode) */
.podcast-card--featured { display: flex; flex-direction: column; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: var(--podcast-shadow); }
.podcast-card--featured .podcast-card__media { border-radius: 0; }
.podcast-card--featured .podcast-card__body { display: flex; flex-direction: column; gap: 10px; padding: 26px 28px 30px; flex: 1; }
.podcast-card--featured .podcast-card__title { font-family: "Playfair Display", serif; font-weight: 400; font-size: 26px; line-height: 41.6px; letter-spacing: 0; text-transform: none; }
.podcast-card--featured .podcast-card__guest { font-family: "Avenir Medium", sans-serif; font-size: 14px; line-height: 22.4px; }
.podcast-card--featured .podcast-card__desc { font-family: "Avenir Light", sans-serif; font-size: 16px; line-height: 25.6px; }
.podcast-card--featured .podcast-text-link { margin-top: auto; padding-top: 8px; }

/* ---------- Overview :: Show Intro ---------- */
.podcast-intro__row { display: flex; align-items: center; gap: 64px; }
.podcast-intro__cover { flex: 0 0 400px; max-width: 400px; }
.podcast-intro__cover img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; }
.podcast-intro__content { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.podcast-intro__heading { margin: 0; font-family: "Playfair Display", serif; font-weight: 400; font-size: 46px; line-height: 52.9px; letter-spacing: -1px; text-transform: none; color: var(--podcast-charcoal); }
.podcast-intro__text, .podcast-intro__text p { font-family: "Avenir Light", sans-serif; font-size: 18px; line-height: 28.8px; color: var(--podcast-charcoal); }
.podcast-intro__text p { margin: 0 0 20px; }
.podcast-intro__text p:last-child { margin-bottom: 0; }
.podcast-intro .podcast-btn-row { padding-top: 8px; }

/* ---------- Overview :: Latest Episode ---------- */
.podcast-latest__card { display: flex; align-items: center; gap: 48px; padding: 32px; background: #fff; border-radius: 6px; box-shadow: var(--podcast-shadow); }
.podcast-latest__media { flex: 1; min-width: 0; }
.podcast-latest__content { flex: 0 0 441px; display: flex; flex-direction: column; gap: 14px; }
.podcast-latest__title { margin: 0; font-family: "Playfair Display", serif; font-weight: 400; font-size: 34px; line-height: 40.8px; letter-spacing: 0; text-transform: none; }
.podcast-latest__title a { color: var(--podcast-charcoal) !important; text-decoration: none !important; }
.podcast-latest__title a:hover { color: var(--podcast-magenta) !important; }
.podcast-latest__guest { margin: 0; font-family: "Avenir Medium", sans-serif; font-size: 15px; line-height: 24px; color: var(--podcast-charcoal); }
.podcast-latest__desc { margin: 0; font-family: "Avenir Light", sans-serif; font-size: 17px; line-height: 27.2px; color: var(--podcast-charcoal); }
.podcast-latest .podcast-btn-row { padding-top: 6px; }
.podcast-featured { margin-top: 80px; }

/* ---------- Overview :: All Episodes ---------- */
.podcast-filters { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin: 0 0 40px; }
.podcast-select { position: relative; flex: 1; max-width: 420px; margin: 0; }
.podcast-select select { width: 100%; height: 48px; padding: 0 44px 0 19px; border: 1px solid var(--podcast-border); border-radius: 24px; background: #fff; font-family: "Avenir Light", sans-serif; font-size: 16px; color: var(--podcast-charcoal); -webkit-appearance: none; appearance: none; cursor: pointer; }
.podcast-select .podcast-icon-chevron { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--podcast-charcoal); }
.podcast-search { display: flex; flex: 1; max-width: 420px; border: 1px solid var(--podcast-border); border-radius: 25px; overflow: hidden; background: #fff; }
.podcast-search input[type="search"] { flex: 1; min-width: 0; height: 48px; padding: 0 20px; border: 0 !important; background: transparent; font-family: "Avenir Medium", sans-serif; font-size: 15px; color: var(--podcast-charcoal); box-shadow: none !important; outline-offset: -2px; }
.podcast-search input::placeholder { color: var(--podcast-gray-heading); }
.podcast-search button { padding: 0 20px; border: 0; background: transparent; font-family: "Avenir Heavy", sans-serif; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--podcast-charcoal); cursor: pointer; }
.podcast-search button:hover { color: var(--podcast-magenta); }
.podcast-empty { text-align: center; font-size: 17px; }
.podcast-empty a { color: var(--podcast-magenta); }

/* ---------- Overview :: Subscribe Band ---------- */
.podcast-texture { position: relative; background-color: var(--podcast-teal); isolation: isolate; }
.podcast-texture::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background-image: var(--podcast-texture, none); background-size: cover; background-position: center; mix-blend-mode: color-burn; pointer-events: none; }
.podcast-subscribe { padding: 64px 0; color: #fff; }
.podcast-subscribe .podcast-wrap { max-width: 1300px; }
.podcast-subscribe__row { display: flex; align-items: center; justify-content: space-between; gap: 70px; }
.podcast-subscribe__text { flex: 0 1 441px; display: flex; flex-direction: column; gap: 8px; }
.podcast-subscribe__text h2 { margin: 0; font-family: "Playfair Display", serif; font-weight: 400; font-size: 40px; line-height: 46px; letter-spacing: 0; text-transform: none; color: #fff; }
.podcast-subscribe__text p { margin: 0; font-family: "Avenir Light", sans-serif; font-size: 17px; line-height: 27.2px; color: #fff; }

/* ---------- Overview :: Hosts + Guests ---------- */
.podcast-host { display: flex; align-items: flex-start; gap: 28px; padding: 36px; background: #fff; border-radius: 6px; box-shadow: var(--podcast-shadow); }
.podcast-host__text { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.podcast-host__name { margin: 0; font-family: "Playfair Display", serif; font-weight: 400; font-size: 26px; line-height: 41.6px; letter-spacing: 0; text-transform: none; color: var(--podcast-charcoal); }
.podcast-host__bio { margin: 0; font-family: "Avenir Light", sans-serif; font-size: 16px; line-height: 25.6px; color: var(--podcast-charcoal); }
.podcast-guests { gap: 24px; }
.podcast-guest { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px; background: #fff; border-radius: 6px; text-align: center; }
.podcast-guest__name { margin: 0; font-family: "Avenir Medium", sans-serif; font-size: 18px; line-height: 28.8px; color: var(--podcast-charcoal); }
.podcast-guest__meta { margin: 0; font-family: "Avenir Light", sans-serif; font-size: 14px; line-height: 22.4px; color: var(--podcast-charcoal); }
.podcast-guest .podcast-text-link { margin-top: auto; }

/* ---------- Single :: Banner ---------- */
.podcast-episode-banner .podcast-banner-title { margin: 0; font-family: "Avenir Next Regular", sans-serif; font-weight: 300; font-size: 32px; line-height: 40px; letter-spacing: 4px; text-transform: uppercase; color: #f5f5f5; }

/* ---------- Single :: Episode Body ---------- */
.podcast-episode { padding: 64px 0 90px; background: var(--podcast-light-bg); }
.podcast-episode__grid { display: flex; align-items: flex-start; gap: 48px; }
.podcast-episode__main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.podcast-episode__main > .podcast-video { width: 100%; }
.podcast-episode__main .podcast-meta-row { padding-top: 10px; }
.podcast-episode__title { margin: 0; font-family: "Playfair Display", serif; font-weight: 400; font-size: 44px; line-height: 50.6px; letter-spacing: -1px; text-transform: none; color: var(--podcast-charcoal); }
.podcast-episode__byline { margin: 0; font-family: "Avenir Medium", sans-serif; font-size: 16px; line-height: 25.6px; color: var(--podcast-charcoal); }
.podcast-episode__content { width: 100%; }
.podcast-episode__content, .podcast-episode__content p, .podcast-episode__content li { font-family: "Avenir Light", sans-serif; font-size: 18px; line-height: 28.8px; color: var(--podcast-charcoal); }
.podcast-episode__content p { margin: 0 0 18px; }
.podcast-episode__content > *:last-child { margin-bottom: 0; }
.podcast-episode__content a { color: var(--podcast-magenta); }
.podcast-episode__sidebar { flex: 0 0 320px; display: flex; flex-direction: column; gap: 24px; }

.podcast-sidecard { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 32px; border-radius: 6px; }
.podcast-sidecard__heading { margin: 0; font-family: "Playfair Display", serif; font-weight: 400; font-size: 26px; line-height: 41.6px; letter-spacing: 0; text-transform: none; color: var(--podcast-light-bg); }
.podcast-sidecard__heading--lg { font-size: 30px; line-height: 36px; color: #fff; }
.podcast-sidecard__text { margin: 0; font-family: "Avenir Light", sans-serif; font-size: 15px; line-height: 24px; }
.podcast-sidecard--guest { align-items: center; gap: 12px; background: #fff; box-shadow: var(--podcast-shadow); text-align: center; }
.podcast-sidecard--guest .podcast-sidecard__text { color: var(--podcast-charcoal); }
.podcast-sidecard__name { margin: 0; font-family: "Playfair Display", serif; font-weight: 400; font-size: 24px; line-height: 38.4px; letter-spacing: 0; text-transform: none; color: var(--podcast-charcoal); }
.podcast-sidecard--dark { background: var(--podcast-charcoal); color: var(--podcast-light-bg); }
.podcast-sidecard__phone { font-family: "Avenir Medium", sans-serif; font-size: 16px; line-height: 25.6px; color: var(--podcast-light-bg) !important; text-decoration: none !important; }
.podcast-sidecard__phone:hover { text-decoration: underline !important; }
.podcast-sidecard--green { color: #fff; }

/* ---------- Single :: More Episodes ---------- */
.podcast-more .podcast-center { margin-top: 48px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199px) {
	.podcast-intro__row { gap: 48px; }
	.podcast-intro__cover { flex-basis: 340px; }
	.podcast-latest__content { flex-basis: 380px; }
	.podcast-subscribe__row { flex-direction: column; align-items: flex-start; gap: 28px; }
}

@media (max-width: 991px) {
	.podcast-section { padding: 64px 0; }
	.podcast-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.podcast-intro__row { flex-direction: column; align-items: flex-start; }
	.podcast-intro__cover { flex: none; width: 100%; max-width: 400px; }
	.podcast-latest__card { flex-direction: column; align-items: stretch; gap: 28px; }
	.podcast-latest__content { flex: none; }
	.podcast-episode__grid { flex-direction: column; align-items: stretch; }
	.podcast-episode__sidebar { flex: none; width: 100%; }
	.podcast-hosts__grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
	.podcast-wrap { padding: 0 20px; }
	.podcast-section { padding: 48px 0; }
	.podcast-grid--2, .podcast-grid--3 { grid-template-columns: 1fr; gap: 32px; }
	.podcast-section-heading { gap: 18px; margin-bottom: 32px; }
	.podcast-section-heading h2 { font-size: 24px; line-height: 34px; }
	.podcast-intro__cover { max-width: none; }
	.podcast-intro__heading { font-size: 34px; line-height: 40px; }
	.podcast-intro__text, .podcast-intro__text p { font-size: 17px; line-height: 27.2px; }
	.podcast-intro .podcast-btn-row .podcast-btn { flex: 1 1 calc(50% - 6px); }
	.podcast-intro .podcast-btn-row .podcast-btn--magenta { flex-basis: 100%; }
	.podcast-latest__card { padding: 22px; }
	.podcast-latest__title { font-size: 28px; line-height: 34px; }
	.podcast-featured { margin-top: 48px; }
	.podcast-filters { flex-direction: column; align-items: stretch; }
	.podcast-select, .podcast-search { max-width: none; }
	.podcast-subscribe { padding: 48px 0; }
	.podcast-subscribe__text h2 { font-size: 32px; line-height: 38px; }
	.podcast-subscribe .podcast-btn-row .podcast-btn { flex: 1 1 calc(50% - 6px); }
	.podcast-host { flex-direction: column; align-items: center; text-align: center; padding: 28px 22px; }
	.podcast-episode { padding: 32px 0 56px; }
	.podcast-episode-banner .podcast-banner-title { font-size: 22px; line-height: 30px; letter-spacing: 2px; }
	.podcast-episode__title { font-size: 34px; line-height: 40px; }
	.podcast-episode__main .podcast-btn-row .podcast-btn { flex: 1 1 calc(50% - 6px); padding: 0 12px; }
	.podcast-episode__content, .podcast-episode__content p, .podcast-episode__content li { font-size: 17px; line-height: 27.2px; }
	.podcast-subheading { font-size: 19px; line-height: 30px; }
}

/* Sidebar card text colors (override global p color) */
.podcast-sidecard--dark .podcast-sidecard__text { color: var(--podcast-light-bg); }
.podcast-sidecard--green .podcast-sidecard__text { color: #fff; }

/* Card eyebrow */
.podcast-card__eyebrow { margin: 0; font-family: "Avenir Heavy", sans-serif; font-size: 12px; line-height: 19.2px; letter-spacing: 2px; text-transform: uppercase; color: var(--podcast-teal); }
.podcast-card p { margin-top: 0; margin-bottom: 0; }

/* Show Intro buttons: fit three across the 700px column */
.podcast-intro .podcast-btn { padding: 0 20px; }

/* Single host card centers; guest cards center when fewer than three */
.podcast-hosts__grid > .podcast-host:only-child { grid-column: 1 / -1; justify-self: center; width: 100%; max-width: 584px; }
.podcast-guests { display: flex; flex-wrap: wrap; justify-content: center; }
.podcast-guest { flex: 0 1 calc((100% - 48px) / 3); box-sizing: border-box; }
@media (max-width: 991px) { .podcast-guest { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 767px) { .podcast-guest { flex-basis: 100%; } }

/* Subscribe band stacks on smaller screens */
@media (max-width: 1199px) { .podcast-subscribe__text { flex: none; max-width: 600px; } }
