/*
Theme Name: TALTarang
Theme URI: https://taltarang.org
Author: Touch-A-Life Foundation
Author URI: https://touchalife.org
Description: Custom theme for TALTarang, a weekly radio show on Bolly 92.3FM. Ported from the original React/TanStack Start site. Elementor Free compatible.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: taltarang
*/

/* =========================================================
   Design tokens (ported 1:1 from the original src/styles.css)
   ========================================================= */
:root {
  --radius: 0.9rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 8px);
  --radius-3xl: calc(var(--radius) + 12px);

  --background: oklch(0.9860 0.0055 40.00);
  --foreground: oklch(0.1900 0.0150 30.00);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.1900 0.0150 30.00);

  --primary: oklch(0.4640 0.1760 26.50);
  --primary-foreground: oklch(0.99 0.004 60);
  --secondary: oklch(0.9500 0.0180 35.00);
  --secondary-foreground: oklch(0.4640 0.1760 26.50);
  --muted: oklch(0.9500 0.0180 35.00);
  --muted-foreground: oklch(0.5250 0.0230 32.00);
  --accent: oklch(0.6300 0.1750 35.00);
  --accent-foreground: oklch(0.99 0.004 60);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.99 0.004 60);
  --border: oklch(0.9200 0.0140 35.00);
  --input: oklch(0.9200 0.0140 35.00);
  --ring: oklch(0.5350 0.1900 27.50);

  --brand: oklch(0.4640 0.1760 26.50);
  --brand-light: oklch(0.5600 0.1950 28.00);
  --pink: oklch(0.6300 0.1750 35.00);
  --gold: oklch(0.7800 0.1350 55.00);
  --ink: oklch(0.1750 0.0130 30.00);
  --ink-foreground: oklch(0.99 0.004 60);
  --ink-muted: oklch(0.7800 0.0140 35.00);
  --live: oklch(0.58 0.21 27);

  --gradient-brand: linear-gradient(135deg, var(--brand), var(--brand-light) 55%, var(--pink));
  --gradient-hero: radial-gradient(circle at 15% 20%, oklch(0.7800 0.1350 55.00 / 0.22), transparent 26%),
    radial-gradient(circle at 85% 16%, oklch(0.4640 0.1760 26.50 / 0.18), transparent 28%),
    linear-gradient(135deg, oklch(1 0 0) 0%, oklch(0.97 0.012 40) 55%, oklch(0.96 0.022 30) 100%);

  --shadow-brand: 0 12px 30px oklch(0.4640 0.1760 26.50 / 0.28);
  --shadow-brand-lg: 0 30px 80px oklch(0.4640 0.1760 26.50 / 0.30);
  --shadow-soft: 0 10px 30px oklch(0.1800 0.0140 30.00 / 0.07);
  --shadow-card: 0 18px 45px oklch(0.1800 0.0140 30.00 / 0.11);

  --font-sans: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Poppins", ui-sans-serif, system-ui, sans-serif;
}

/* =========================================================
   Reset / base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, .font-display { font-family: var(--font-display); margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
span a {
    color: #ee2424;
}
.container { margin: 0 auto; width: 92%; max-width: 1180px; }
.container--narrow { margin: 0 auto; width: 92%; max-width: 980px; }

.section-kicker {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 800;
  color: var(--brand);
}
.section-title {
  margin: 0.5rem 0 1rem;
  font-size: clamp(34px, 4vw, 40px);
  line-height: 1;
  font-weight: 700;
}
.section-lede {
  max-width: 720px;
  font-size: 17px;
  color: var(--muted-foreground);
}

.bg-gradient-brand { background-image: var(--gradient-brand); }
.bg-gradient-hero { background-image: var(--gradient-hero); }
.text-gradient-brand {
  background-image: var(--gradient-brand);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.9rem 1.5rem;
  font-weight: 700;
  border: none;
  transition: transform 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-brand {
  background-image: var(--gradient-brand);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-brand);
}
.btn-card {
  background: var(--card);
  color: var(--brand);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.animate-float { animation: float 5s ease-in-out infinite; }

/* =========================================================
   Header
   ========================================================= */
.announcement-bar {
  background: var(--ink);
  color: var(--ink-muted);
  text-align: center;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}
.announcement-bar strong { color: var(--gold); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  background: color-mix(in oklab, var(--background) 90%, transparent);
  backdrop-filter: blur(10px);
}
.site-header__nav {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-header__logo img { height: 3rem; width: auto; }
.site-header__links {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.site-header__links a {
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.site-header__links a:hover,
.site-header__links a.is-active { color: var(--brand); }
.mobile-menu-toggle {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--brand);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 1rem;
}
/* The menu starts life with the HTML `hidden` attribute (see header.php),
   but `.mobile-menu`'s own `display: flex` above -- an author rule -- beats
   the browser's default `[hidden] { display: none }`, so without this the
   menu was always visible on mobile regardless of the hidden attribute or
   the toggle button. This rule's higher specificity restores it. */
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.mobile-menu a:hover { background: var(--secondary); color: var(--brand); }
.mobile-menu .btn { margin-top: 0.5rem; }

@media (min-width: 768px) {
  .site-header__links { display: flex; }
  .mobile-menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--ink); color: var(--ink-muted); padding: 3.5rem 0; }
.footer-grid { display: grid; gap: 2.25rem; grid-template-columns: 1fr; }
.footer-col img { height: 3rem; width: auto; }
.footer-col p { margin-top: 1rem; max-width: 430px; font-size: 0.875rem; }
.footer-col h4 { margin-bottom: 0.75rem; font-size: 1.125rem; color: var(--ink-foreground); }
.footer-col ul { display: grid; gap: 0.5rem; font-size: 0.875rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
  border-top: 1px solid color-mix(in oklab, var(--ink-foreground) 10%, transparent);
  padding-top: 1.5rem;
  font-size: 13px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  /* Experimental: the abstract wave/circle photo background, layered
     over the existing gradient tokens so nothing breaks if this is
     reverted -- .bg-gradient-hero (shared with the archive and
     single-episode headers) is untouched. */
  background-image: url('assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  gap: 4rem;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.5rem 0.9rem;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  box-shadow: var(--shadow-soft);
}
.hero__badge .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--live);
  box-shadow: 0 0 0 5px color-mix(in oklab, var(--live) 15%, transparent);
}
.hero__title {
  margin: 1.25rem 0;
  font-size: clamp(48px, 7vw, 74px);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero__subtitle { max-width: 650px; font-size: 1.125rem; color: var(--muted-foreground); margin-bottom: 1.75rem; }
.hero__cta { margin-bottom: 1.75rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 1.75rem; font-size: 0.875rem; color: var(--muted-foreground); }
.hero__stats dt, .hero__stats dd { margin: 0; }
.hero__stats dt { font-size: 1rem; font-weight: 700; color: var(--foreground); }
.hero-promo { overflow: hidden; border-radius: 14px; box-shadow: var(--shadow-brand-lg); }
@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: 1.08fr 0.92fr; }
}

/* =========================================================
   About
   ========================================================= */
.about-section { padding: 5rem 0; }
.about-grid { display: grid; align-items: center; gap: 2.75rem; }

.about-schedule {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
}
.about-schedule__icon { width: 20px; height: 20px; color: var(--brand); flex-shrink: 0; }
.about-schedule__dot { color: var(--border); font-weight: 400; }

.feature-grid { margin-top: 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  border-radius: 15px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1rem;
}
.feature-card__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.875rem;
}
.feature-card__icon svg { width: 22px; height: 22px; }
.feature-card__icon--brand { background: oklch(0.4640 0.1760 26.50 / 0.10); color: var(--brand); }
.feature-card__icon--gold { background: oklch(0.7800 0.1350 55.00 / 0.16); color: var(--gold); }
.feature-card__body { display: flex; flex-direction: column; gap: 0.2rem; }
.feature-card__body b { font-size: 0.9375rem; }
.feature-card__body span { font-size: 0.875rem; line-height: 1.2; color: var(--muted-foreground); }
@media (max-width: 639.98px) {
  .feature-card { display: block; }
  .feature-card__icon { margin-bottom: 0.75rem; }
}

.about-quote-panel {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border-radius: 30px;
  /* The photo is cropped just above where its own waveform graphic starts
     (see assets/images/about-photo.jpg), so no vertical cropping happens
     here; the position below just keeps the face/mic/headphones in frame
     while favoring the left side for the quote text. */
  background-image:
    linear-gradient(100deg, oklch(0.08 0.02 30 / 0.65) 0%, oklch(0.08 0.02 30 / 0.30) 45%, oklch(0.08 0.02 30 / 0.05) 75%),
    url('assets/images/about-photo.jpg');
  background-position: 70% center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--ink-foreground);
}
.about-quote-panel__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 490px;
  padding: 2rem;
}
.about-quote-panel .section-kicker { color: var(--gold); }
.about-quote-panel p {
  position: relative;
  z-index: 1;
  margin: 0.75rem 0 0;
  max-width: 480px;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.2;
}
.about-quote-panel__listen {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 0.9375rem;
}
.about-quote-panel__play {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--ink-foreground);
  color: var(--brand);
}
.about-quote-panel__play svg { width: 26px; height: 26px; margin-left: 0px; }
@media (max-width: 639.98px) {
  /* Shorter panel on mobile, with the quote, kicker and listen row all
     scaled down to fit comfortably inside 350px instead of overflowing
     the reduced height. */
  .about-quote-panel { min-height: 350px; }
  .about-quote-panel__content { min-height: 350px; padding: 1.5rem; }
  .about-quote-panel p { font-size: 22px; margin-top: 0.5rem; }
  .about-quote-panel__listen { padding-top: 1rem; gap: 0.625rem; font-size: 0.8125rem; }
  .about-quote-panel__play { width: 2.25rem; height: 2.25rem; }
  .about-quote-panel__play svg { width: 18px; height: 18px; }
}
@media (min-width: 640px) { .feature-grid { gap: 1rem; } }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; } }

/* =========================================================
   Episode cards + grid
   ========================================================= */
.episode-grid { margin-top: 2.25rem; display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .episode-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .episode-grid { grid-template-columns: 1fr 1fr 1fr; } }
/* Homepage preview now shows 4 episodes (see front-page.php), so give
   it its own desktop column count -- a single clean row of 4 instead
   of the archive grid's 3-per-row, which would leave one orphaned. */
@media (min-width: 1024px) { .episodes-section .episode-grid { grid-template-columns: repeat(4, 1fr); } }

.episode-card {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.episode-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.episode-card__thumb {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  padding: 1.25rem;
}
.episode-card__thumb img,
.episode-card__thumb .thumb-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.episode-card__thumb .thumb-fallback { background-image: var(--gradient-brand); }
.episode-card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, color-mix(in oklab, var(--ink) 55%, transparent), transparent);
}
.episode-card__ring {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  border: 20px solid color-mix(in oklab, var(--primary-foreground) 10%, transparent);
  z-index: 1;
}
.episode-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
}
.episode-card:hover .episode-card__play { opacity: 1; }
.episode-card__play span {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-brand);
  font-size: 1.25rem;
}
.episode-card__tag {
  position: relative;
  z-index: 2;
  border-radius: 999px;
  background: color-mix(in oklab, var(--ink) 35%, transparent);
  padding: 0.25rem 0.65rem;
  color: var(--primary-foreground);
  font-size: 0.8125rem;
  font-weight: 600;
}
/* Category badge colors -- cycled per taxonomy term id in
   template-parts/episode-card.php, so each episode_category term gets its
   own consistent color regardless of how many categories exist. */
.episode-card__tag--brand { background: oklch(0.50 0.18 27); color: #fff; }
.episode-card__tag--gold { background: oklch(0.80 0.14 70); color: oklch(0.28 0.04 60); }
.episode-card__tag--teal { background: oklch(0.62 0.12 195); color: #fff; }
.episode-card__tag--purple { background: oklch(0.55 0.16 305); color: #fff; }
.episode-card__tag--green { background: oklch(0.60 0.14 150); color: #fff; }
.episode-card__tag--blue { background: oklch(0.58 0.15 250); color: #fff; }
.episode-card__body { padding: 1.25rem; }
.episode-card__date { display: block; margin-bottom: 0.5rem; font-size: 0.75rem; font-weight: 600; color: var(--brand); }
.episode-card__title { margin-bottom: 0.5rem; font-size: 16px; letter-spacing: -0.5px; line-height: 1.2; font-weight: 700; font-family: var(--font-sans); overflow-wrap: break-word; }
.episode-card__excerpt {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
    line-height: 1.3;
  overflow: hidden;
}
@media (max-width: 639.98px) {
  /* "Featured conversations" preview on the homepage: 2x2 instead of a
     single stacked column, matching the About/Format sections' mobile
     layout. (Scoped to .episodes-section so the /episodes/ archive grid,
     which reuses .episode-grid, is unaffected.) */
  .episodes-section .episode-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .episodes-section .episode-card__body { padding: 1rem; }
  .episodes-section .episode-card__title { font-size: 14px; line-height: 1.2; }
  .episodes-section .episode-card__excerpt { font-size: 0.8125rem; display: none;}
}

.episodes-section { background: var(--card); padding: 5rem 0; }
.episodes-more { margin-top: 2.5rem; display: flex; justify-content: center; }

/* =========================================================
   Format
   ========================================================= */
.format-section { padding: 5rem 0; }
.format-grid { margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.format-card { border-radius: 12px; border: 1px solid var(--border); background: var(--card); padding: 1.5rem; }
.format-card__icon {
  margin-bottom: 1rem;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: var(--secondary);
  font-size: 1.5rem;
}
.format-card h3 { margin-bottom: 0.5rem; font-size: 17px; font-weight: 700; font-family: var(--font-sans); }
.format-card p { font-size: 0.875rem; color: var(--muted-foreground); }
@media (min-width: 640px) { .format-grid { gap: 1rem; } }
@media (min-width: 1024px) { .format-grid { grid-template-columns: repeat(4, 1fr); } }

/* =========================================================
   Listen CTA
   ========================================================= */
.listen-cta { padding-bottom: 5rem; }
.listen-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.75rem;
  border-radius: 15px;
  background-image: var(--gradient-brand);
  padding: 2rem;
  color: var(--primary-foreground);
  box-shadow: var(--shadow-brand-lg);
}
.listen-cta__inner h2 { margin-bottom: 0.5rem; font-size: 2.25rem; font-weight: 700; }
.listen-cta__inner p { color: color-mix(in oklab, var(--primary-foreground) 85%, transparent); }
@media (min-width: 768px) {
  .listen-cta__inner { flex-direction: row; align-items: center; padding: 3rem; }
}

/* =========================================================
   Contact
   ========================================================= */
.contact-section { padding-bottom: 6rem; }
.contact-grid { display: grid; gap: 2.75rem; }
.contact-copy__image {
	/* A fixed, explicit height — not a percentage against the grid row —
	   so it's resolved before layout even starts. A percentage or flex-fill
	   height here depends on the row's own auto-computed height, which in
	   turn depends on this element, a circular reference that was letting
	   the image's intrinsic aspect ratio balloon the row (and drag the form
	   taller along with it) instead of the other way around. */
	margin: 1.25rem 0 1.5rem;
	height: 220px;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: var(--shadow-soft);
}
.contact-copy__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023.98px) {
	.contact-copy__image { height: auto; aspect-ratio: 16 / 9; }
}
.contact-form {
  display: grid;
  gap: 1rem;
  border-radius: 15px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}
.form-row { display: grid; gap: 1rem; }
.form-field { display: grid; font-size: 0.875rem; font-weight: 600; }
.form-field input,
.form-field textarea,
.form-field select {
  border-radius: 0.75rem;
  border: 1px solid var(--input);
  background: var(--background);
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-weight: 400;
  outline: none;
  font-size: 1rem;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 25%, transparent);
}
.form-field textarea { resize: none; height: 130px; }
.form-message-success { font-size: 0.875rem; color: var(--brand); }
.form-message-error { font-size: 0.875rem; color: var(--destructive); }
@media (min-width: 640px) { .contact-form { padding: 2rem; } }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; } }

/* Contact Form 7 output — CF7 renders its own markup/classes, so these
   rules restyle its actual elements (wpcf7-form-control, etc.) to match
   the theme's form-field look, on top of the .form-row/.form-field
   wrapper structure used in the form template pasted into wp-admin. */
.wpcf7 form.wpcf7-form p { margin: 0; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7 .form-field input.wpcf7-form-control,
.wpcf7 .form-field textarea.wpcf7-form-control,
.wpcf7 .form-field select.wpcf7-form-control {
	width: 100%;
	border-radius: 0.75rem;
	border: 1px solid var(--input);
	background: var(--background);
	padding: 0.75rem 1rem;
	font-family: var(--font-sans);
	font-weight: 400;
	font-size: 1rem;
	outline: none;
}
.wpcf7 .form-field input.wpcf7-form-control:focus,
.wpcf7 .form-field textarea.wpcf7-form-control:focus {
	border-color: var(--ring);
	box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 25%, transparent);
}
.wpcf7 .form-field textarea.wpcf7-form-control { resize: none; height: 130px; }
.wpcf7 input.wpcf7-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	border: none;
	padding: 0.9rem 1.5rem;
	font-weight: 700;
	font-family: var(--font-sans);
	font-size: 1rem;
	color: var(--primary-foreground);
	background-image: var(--gradient-brand);
	box-shadow: var(--shadow-brand);
	transition: transform 0.2s ease;
	cursor: pointer;
}
.wpcf7 input.wpcf7-submit:hover { transform: translateY(-2px); }
.wpcf7 input.wpcf7-submit.wpcf7-submit-disabled,
.wpcf7-spinner ~ input.wpcf7-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.wpcf7-not-valid-tip {
	display: block;
	margin-top: 0.35rem;
	color: var(--destructive);
	font-size: 0.8125rem;
	font-weight: 400;
}
.wpcf7-response-output {
	margin: 0.5rem 0 0;
	border-radius: 0.75rem;
	padding: 0.75rem 1rem;
	font-size: 0.875rem;
}
.wpcf7-mail-sent-ok {
	color: var(--brand);
	border: 1px solid color-mix(in oklab, var(--brand) 35%, transparent) !important;
	background: color-mix(in oklab, var(--brand) 8%, transparent);
}
.wpcf7-validation-errors,
.wpcf7-mail-sent-ng,
.wpcf7-spam-blocked,
.wpcf7-aborted {
	color: var(--destructive);
	border: 1px solid color-mix(in oklab, var(--destructive) 35%, transparent) !important;
	background: color-mix(in oklab, var(--destructive) 8%, transparent);
}
.wpcf7 .grecaptcha-badge,
.wpcf7 .g-recaptcha { margin: 0.25rem 0 0; }

/* =========================================================
   Episodes archive
   ========================================================= */
.archive-hero { padding: 4rem 0; }
.archive-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-foreground);
}
.archive-hero__back:hover { color: var(--brand); }
.archive-hero h1 { margin-top: 1.25rem; font-size: clamp(40px, 6vw, 54px); line-height: 0.98; font-weight: 700; }
.archive-hero p { margin-top: 1rem;  font-size: 1.125rem; color: var(--muted-foreground); }

.archive-body { padding: 4rem 0; }
.archive-filters {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
}
.search-input-wrap { position: relative; flex: 1; }
.search-input-wrap svg,
.search-input-wrap .icon {
  position: absolute;
  top: 50%;
  left: 0.9rem;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  pointer-events: none;
}
.search-input {
  height: 3rem;
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--input);
  padding: 0 2.5rem 0 2.75rem;
  color: var(--foreground);
  box-shadow: var(--shadow-soft);
  outline: none;
  font-family: var(--font-sans);
  font-size: 1rem;
}
.search-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 20%, transparent); }
.topic-select {
  height: 3rem;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--input);
  padding: 0 2rem 0 1.25rem;
  color: var(--foreground);
  box-shadow: var(--shadow-soft);
  outline: none;
  font-family: var(--font-sans);
  font-size: 1rem;
}
.results-count { margin-bottom: 1.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.empty-state {
  border-radius: 22px;
  border: 1px dashed var(--border);
  background: var(--card);
  padding: 4rem 1rem;
  text-align: center;
}
.empty-state p:first-child { font-size: 1.125rem; font-weight: 600; }
.empty-state p:last-child { margin-top: 0.25rem; color: var(--muted-foreground); }
.empty-state a { margin-top: 1rem; display: inline-block; color: var(--brand); font-weight: 600; text-decoration: underline; }

.pagination {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  height: 2.5rem;
  min-width: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 0.875rem;
  font-weight: 600;
  justify-content: center;
}
.pagination a:hover { background: var(--muted); }
.pagination .current { border-color: var(--brand); background: var(--brand); color: var(--primary-foreground); }
.pagination .dots { border: none; background: none; }

@media (min-width: 768px) { .archive-filters { flex-direction: row; align-items: center; } }

/* =========================================================
   Single episode
   ========================================================= */
.episode-single-hero { padding: 3rem 0; }
.episode-meta { margin-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; font-size: 0.75rem; font-weight: 600; }
.episode-meta .tag { border-radius: 999px; background: color-mix(in oklab, var(--brand) 10%, transparent); padding: 0.25rem 0.75rem; color: var(--brand); }
.episode-meta .date { color: var(--muted-foreground); }
.episode-single-hero h1 { margin-top: 1rem; font-size: clamp(28px, 4.2vw, 36px); line-height: 1.15; font-weight: 700; }

.episode-media-wrap { padding: 2.5rem 0; }
.episode-media {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--ink);
  box-shadow: var(--shadow-card);
}
.episode-media iframe,
.episode-media img { aspect-ratio: 16 / 9; width: 100%; }
.video-placeholder {
  display: grid;
  aspect-ratio: 16 / 9;
  width: 100%;
  place-items: center;
  color: var(--ink-muted);
}
.episode-description { margin-top: 2rem; font-size: 17px; line-height: 1.7; color: var(--muted-foreground); }
.episode-description.is-plain { white-space: pre-line; }

/* =========================================================
   Rich text (episode description HTML)
   ========================================================= */
.rich-text p { margin: 0 0 0.85em; }
.rich-text h2 { font-size: 1.35em; font-weight: 700; margin: 1.1em 0 0.45em; color: var(--foreground); }
.rich-text h3 { font-size: 1.15em; font-weight: 700; margin: 1em 0 0.4em; color: var(--foreground); }
.rich-text ul, .rich-text ol { margin: 0 0 0.9em 1.35em; list-style: revert; }
.rich-text li { margin: 0.25em 0; }
.rich-text a { color: var(--brand); text-decoration: underline; }
.rich-text blockquote { margin: 0 0 0.9em; padding-left: 1em; border-left: 3px solid var(--brand); font-style: italic; }
.rich-text strong, .rich-text b { font-weight: 700; color: var(--foreground); }

/* =========================================================
   Generic page (Elementor-safe)
   ========================================================= */
.page-content { padding: 4rem 0; }
.page-content h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 1.5rem; }

.not-found { padding: 6rem 0; text-align: center; }
.not-found h1 { font-size: 2rem; font-weight: 700; }
.not-found p { margin-top: 0.75rem; color: var(--muted-foreground); }
