/* Blog + podcast templates (src/content.ts). Built on styles.css tokens. */

/* Header layout, as on the mastermind pages (mastermind.css). */
.ct header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.ct-nav { display: flex; align-items: center; gap: 18px; }
.ct-nav .btn { padding: 11px 20px; font-size: 16px; }
.ct-nav .btn.ghost { padding: 10px 18px; }
@media (max-width: 560px) { .ct header.site .logo { width: 170px; } .ct-nav .btn.ghost { display: none; } }
.ct-nav > a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.ct-nav > a:not(.btn):hover { color: var(--green); }
@media (max-width: 720px) { .ct-nav > a:not(.btn) { display: none; } }

.ct-main { min-height: 50vh; }
.ct-hero { padding: 56px 0 28px; }
.ct-hero h1 { margin: 10px 0 12px; }
.ct-lede { color: var(--ink-2); max-width: 640px; margin: 0; font-size: 18px; }
.ct-muted { color: var(--muted); }
.ct-meta { color: var(--muted); font-size: 14px; }
.ct-subs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* cards */
.ct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; margin: 8px 0 28px; }
.ct-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.ct-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.ct-card img, .ct-card-ph { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--panel-2); }
.ct-card-ph { display: flex; align-items: center; justify-content: center; font: 700 22px/1.1 "Barlow Condensed", sans-serif; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); padding: 16px; text-align: center; }
.ct-card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.ct-card h3 { margin: 0; font-size: 20px; line-height: 1.2; }
.ct-card p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }

.ct-show-block { padding: 26px 0 8px; border-top: 1px solid var(--line); }
.ct-show-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.ct-show-head h2 { margin: 0 0 4px; }
.ct-show-head p { margin: 6px 0 0; max-width: 620px; }

.ct-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 48px; }

/* article + episode */
.ct-article { max-width: 760px; padding: 40px 0 56px; }
.ct-back { color: var(--muted); text-decoration: none; font-size: 14px; }
.ct-back:hover { color: var(--green); }
.ct-article h1 { margin: 14px 0 10px; font-size: clamp(34px, 5vw, 48px); line-height: 1.05; }
.ct-article h2 { font-size: 28px; margin: 36px 0 10px; }
.ct-guest { color: var(--ink-2); margin-bottom: 18px; }
.ct-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; margin: 18px 0 8px; }
.ct-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ct-hero-img { width: 100%; border-radius: var(--radius); margin: 18px 0 8px; }
.ct-audio { width: 100%; height: 128px; border: 0; border-radius: 10px; }
.ct-links { padding-left: 1.2em; }
.ct-links a { color: var(--green); }
.ct-related { margin: 28px 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ct-related p { margin: 0; color: var(--ink-2); }
.ct-transcript { margin-top: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.ct-transcript summary { cursor: pointer; font-weight: 600; }
.ct-transcript > div { max-height: 520px; overflow-y: auto; margin-top: 12px; color: var(--ink-2); font-size: 15px; }

/* imported WordPress article HTML */
.ct-prose { font-size: 18px; line-height: 1.7; color: var(--ink-2); overflow-wrap: anywhere; }
.ct-prose h2, .ct-prose h3 { color: var(--ink); }
.ct-prose h3 { font-size: 22px; margin: 26px 0 8px; }
.ct-prose a { color: var(--green); }
.ct-prose img, .ct-prose iframe { max-width: 100%; }
.ct-prose ul, .ct-prose ol { padding-left: 1.3em; }
.ct-prose li { margin: 6px 0; }
.ct-prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.ct-prose td, .ct-prose th { border: 1px solid var(--line); padding: 8px 10px; }

/* closing offers */
.ct-cta { padding: 40px 0 56px; border-top: 1px solid var(--line); }
.ct-cta .card { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.ct-cta h3 { margin: 0; font-size: 26px; }
.ct-cta p { margin: 0; color: var(--ink-2); max-width: 640px; }

/* footer: the be-a-guest offer */
footer.site .ct-foot-guest { align-items: center; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
footer.site .ct-foot-guest b { color: var(--ink); }
footer.site .ct-foot-guest .btn { color: inherit; }

/* episode depth (study notes) */
.ct-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 22px 18px; margin: 26px 0; }
.ct-box h2 { margin-top: 18px; }
.ct-takeaways { padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); }
.ct-takeaways li::marker { color: var(--green); }
.ct-chapters { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.ct-chapters li { border-bottom: 1px solid var(--line); }
.ct-chapters a { display: flex; gap: 16px; padding: 10px 4px; color: var(--ink-2); text-decoration: none; }
.ct-chapters a:hover { color: var(--ink); }
.ct-chapters .num { font-variant-numeric: tabular-nums; color: var(--green); min-width: 56px; font-weight: 600; }
.ct-quotes { display: grid; gap: 14px; margin: 28px 0; }
.ct-quotes blockquote { margin: 0; padding: 14px 20px; border-left: 3px solid var(--green); background: var(--panel); border-radius: 0 10px 10px 0; }
.ct-quotes blockquote p { margin: 0 0 6px; font-size: 19px; color: var(--ink); }
.ct-quotes cite { color: var(--muted); font-style: normal; font-size: 14px; }
.ct-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.ct-topics span { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--panel-2); color: var(--ink-2); border: 1px solid var(--line); }
.ct-faq h3 { font-size: 19px; margin: 20px 0 6px; font-family: "Inter", sans-serif; text-transform: none; letter-spacing: 0; }
.ct-faq p { margin: 0; color: var(--ink-2); }
/* transcript: on the page (indexable), clipped until expanded */
.ct-transcript { margin-top: 32px; position: relative; }
.ct-transcript-body { max-height: 420px; overflow: hidden; color: var(--ink-2); font-size: 15px; position: relative; }
.ct-transcript:not(.open) .ct-transcript-body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(transparent, var(--bg)); }
.ct-transcript.open .ct-transcript-body { max-height: none; }
.ct-more { margin-top: 12px; }

/* testimonials */
.ct-sec-title { margin: 36px 0 14px; }
.ct-feat { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.ct-feat-item { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ct-feat-quote { margin: 0; font: 700 24px/1.15 "Barlow Condensed", sans-serif; text-transform: uppercase; color: var(--ink); }
.ct-feat-item .ct-meta { margin: 0; }
.ct-vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 26px; }
.ct-vid { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel-2); cursor: pointer; }
.ct-vid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ct-play { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; background: rgba(0,0,0,.6); box-shadow: 0 0 0 2px rgba(255,255,255,.75); }
.ct-play::after { content: ""; position: absolute; left: 23px; top: 18px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent #fff; }
.ct-vid:hover .ct-play { background: var(--green); }
.ct-feat iframe, .ct-vgrid iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; }

/* offer cards (episode pages) — the blog's ctaApply / ctaGuest, as classes */
.ct-offer { margin: 34px 0; border-radius: 10px; overflow: hidden; }
.ct-offer p { margin: 0; }
.ct-offer-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px !important; }
.ct-offer-head { font: 800 23px/1.25 "Inter", sans-serif; color: #fff; margin-bottom: 8px !important; }
.ct-offer-text { font-size: 16px; line-height: 1.55; margin-bottom: 18px !important; }
.ct-offer-btn { display: inline-block; padding: 13px 26px; font-weight: 800; text-decoration: none; border-radius: 4px; }
.ct-offer-mm { display: flex; flex-wrap: wrap; background: #16180f; color: #f2f3ea; border: 1px solid rgba(140,198,63,.45); }
.ct-offer-mm .ct-offer-body { flex: 1 1 320px; min-width: 260px; padding: 26px 28px; }
.ct-offer-mm .ct-offer-eyebrow { color: #8CC63F; }
.ct-offer-mm .ct-offer-text { color: #c2c6b0; }
.ct-offer-mm .ct-offer-btn { background: #8CC63F; color: #16180f; }
.ct-offer-photo { flex: 1 1 210px; min-width: 180px; min-height: 200px; background-size: cover; background-position: center; }
.ct-gauge { display: inline-flex; gap: 3px; vertical-align: middle; margin-right: 8px; }
.ct-gauge i { display: block; height: 6px; border-radius: 1px; }
.ct-offer-guest { background: #141412; color: #f5f3ec; border: 1px solid rgba(232,194,90,.45); }
.ct-offer-rule { height: 4px; background: linear-gradient(90deg,#8a6b17 0%,#e8c25a 38%,#f6e3a1 50%,#e8c25a 62%,#8a6b17 100%); }
.ct-offer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 24px 28px; }
.ct-offer-row > img { width: 112px; height: auto; flex: 0 0 auto; }
.ct-offer-row > div { flex: 1 1 280px; min-width: 240px; }
.ct-offer-guest .ct-offer-eyebrow { color: #e8c25a; }
.ct-offer-guest .ct-offer-text { color: #c9c3b2; }
.ct-offer-guest .ct-offer-btn { background: #e8c25a; color: #141412; }
.ct-offer-btn:hover { filter: brightness(1.08); }
.ct-offer-row > img.ct-offer-wide { width: 190px; }
