/* Styles for content generated by tools/build.py (episodes, /podcast/, playbooks).
   Pages sit inside the WordPress theme's own header, footer and typography, so everything
   here is scoped to .phm-content and only fills gaps the theme does not cover. */
.phm-content {
  --orange: #f47323;
  --navy: #1a355d;
  --line: #e2e2e2;
  --bg-alt: #f6f6f4;
  --muted: #555;
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  box-sizing: border-box;
}
.phm-content *, .phm-content *::before, .phm-content *::after { box-sizing: border-box; }
.phm-content img { max-width: 100%; height: auto; }
.phm-content h1 { margin-top: 0; }
.phm-content .meta { color: #777; font-size: 15px; }
.phm-content .back { margin: 0 0 8px; font-size: 15px; }
.phm-content .lede { font-size: 20px; color: #444; }

/* Embeds */
.phm-content iframe { width: 100%; border: 0; height: 200px; display: block; margin: 0 0 1.5em; border-radius: 6px; }
.phm-content iframe[src*="libsyn"] { height: 90px; }
.phm-content iframe[src*="youtube"] { height: auto; aspect-ratio: 16 / 9; }
.phm-content iframe.ghl-form { height: 280px; border-radius: 8px; }

/* Text blocks */
.phm-content blockquote { border-left: 4px solid var(--orange); margin: 1.5em 0; padding: 4px 20px; }
.phm-content .callout { background: var(--bg-alt); border-left: 4px solid var(--navy); border-radius: 4px; padding: 16px 20px; margin: 1.5em 0; }
.phm-content .callout p:last-child { padding-bottom: 0; margin-bottom: 0; }
.phm-content ul.checklist { list-style: none; padding-left: 0; }
.phm-content ul.checklist li { padding-left: 1.6em; position: relative; }
.phm-content ul.checklist li::before { content: "\2610"; position: absolute; left: 0; }
.phm-content .table-wrap { overflow-x: auto; margin: 1.5em 0; }
.phm-content table { border-collapse: collapse; width: 100%; font-size: 16px; }
.phm-content th, .phm-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.phm-content th { background: var(--bg-alt); }
.phm-content td p, .phm-content th p { padding-bottom: 6px; margin: 0; font-size: 16px; }

/* Buttons */
.phm-content .btn, .phm-content .btn-accent {
  display: inline-block; font: inherit; font-weight: 600; background: var(--orange); color: #fff !important;
  border: 0; border-radius: 30px; padding: 14px 26px; text-decoration: none; cursor: pointer; background-image: none !important;
}
.phm-content .btn:hover { opacity: .9; }

/* Podcast list */
.phm-content .ep-search { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #bbb; border-radius: 4px; margin-bottom: 24px; }
.phm-content .ep-list { list-style: none; padding: 0; margin: 0; }
.phm-content .ep-list li { border-bottom: 1px solid var(--line); padding: 0; margin: 0; }
.phm-content .ep-list a { display: flex; gap: 16px; padding: 14px 0; color: inherit; text-decoration: none; align-items: baseline; background-image: none; }
.phm-content .ep-list a:hover .ep-title { color: var(--navy); text-decoration: underline; }
.phm-content .ep-num { color: var(--orange); font-weight: 700; min-width: 3.2em; }
.phm-content .ep-title { flex: 1; font-weight: 500; }
.phm-content .ep-date { color: #777; font-size: 14px; white-space: nowrap; }
@media (max-width: 600px) { .phm-content .ep-date { display: none; } }
.phm-content .ep-nav { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); margin-top: 48px; padding-top: 24px; flex-wrap: wrap; font-size: 16px; }
.phm-content .ep-nav a { max-width: 48%; }

/* Playbooks */
.phm-content.wide { max-width: 1080px; }
.phm-content .card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.phm-content .card { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 24px; color: inherit; text-decoration: none; background-image: none; transition: border-color .15s, box-shadow .15s; }
.phm-content .card:hover { border-color: var(--orange); box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.phm-content .card h3 { margin: 0 0 8px; padding: 0; font-size: 22px; }
.phm-content .card p { color: var(--muted); font-size: 16px; padding-bottom: 12px; }
.phm-content .card-cta { color: var(--orange); font-weight: 600; }
.phm-content .pb-gate { display: none; border: 1px solid var(--line); border-radius: 8px; padding: 24px; margin: 24px 0; }
.locked .phm-content .pb-gate { display: block; }
.locked .phm-content .pb-content { display: none; }
.gate-modal { border: 0; border-radius: 8px; padding: 32px; width: min(520px, calc(100% - 32px)); font-family: Poppins, sans-serif; }
.gate-modal::backdrop { background: rgba(0,0,0,.5); }
.gate-modal h2 { margin: 0 0 8px; font-size: 26px; }
.gate-modal p { margin: 0 0 16px; color: #555; }
.gate-modal iframe { width: 100%; height: 280px; border: 0; }
.modal-close { position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: #555; }

/* Inside the episode template the theme already provides the column and spacing. */
.tcb-post-content .phm-content { max-width: none; padding: 24px 0 0; }
