/* ============================================================
   THE FLEX CULT — Certifications Module
   theflexcult.com/assets/certifications.css

   Shared styles for /certifications/ — the certification exam-prep
   section (distinct from /courses/). Loaded alongside style.css
   and courses.css, which supply the base course-hero/lesson-hero/
   lesson-list/author-card/faq/related-grid components this module
   builds on top of.
   ============================================================ */

/* NOTE: no per-course color theme here by design. Header, footer, and every
   course-hero on the site share the standard amber brand palette from
   style.css — /certifications/ pages intentionally don't override --amber,
   so the header/footer injected via components/ never pick up a different
   color than the rest of the site. */

/* ============================================================
   EXAM SNAPSHOT BOX
   The single source of truth for volatile exam facts (format,
   cost, domain weights, textbook edition). Lives once per course
   on the course overview page — never repeated in lesson prose.
   ============================================================ */
.exam-snapshot {
  background: var(--ink);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.exam-snapshot-title {
  font-family: var(--font-headline);
  font-size: 1.3rem; letter-spacing: .03em; color: var(--cream);
  margin-bottom: .35rem;
}
.exam-snapshot-verified {
  font-size: 12px; color: var(--amber-mid); font-weight: 600; margin-bottom: 1.4rem;
  display: flex; align-items: center; gap: 7px;
}
.exam-snapshot-verified::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: #4a9e6b; flex-shrink: 0;
}
.exam-snapshot-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}
@media (max-width: 760px) { .exam-snapshot-grid { grid-template-columns: repeat(2, 1fr); } }
.exam-snapshot-item { border-left: 2px solid rgba(255,255,255,.12); padding-left: .9rem; }
.exam-snapshot-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(250,248,243,.4); margin-bottom: .35rem;
}
.exam-snapshot-value { font-size: 1rem; font-weight: 600; color: var(--cream); line-height: 1.3; }
.exam-snapshot-note {
  font-size: 12.5px; color: rgba(250,248,243,.4); font-weight: 300; line-height: 1.6;
  margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.1);
}

/* ============================================================
   DOMAIN-GROUPED SYLLABUS
   ============================================================ */
.syllabus-domain {
  margin-bottom: 2rem;
}
.syllabus-domain-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--border);
}
.syllabus-domain-name {
  font-family: var(--font-headline); font-size: 1.25rem; letter-spacing: .02em; color: var(--ink);
}
.syllabus-domain-weight {
  font-size: 12px; font-weight: 700; color: var(--amber-dark); background: var(--amber-light);
  padding: 3px 10px; border-radius: 99px; white-space: nowrap;
}

.lesson-item.locked {
  cursor: default; opacity: .55; pointer-events: none;
}
.lesson-item.locked .lesson-item-arrow { display: none; }
.lesson-item-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 99px; margin-top: .4rem;
}
.lesson-item-status.status-building {
  background: var(--amber-light); color: var(--amber-dark); opacity: 1;
}
.lesson-item-status.status-building::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--amber-dark);
}
.lesson-item-status.status-soon {
  background: var(--cream2); color: var(--muted-light); border: 1px solid var(--border);
}

/* ============================================================
   PROGRESS WIDGET (localStorage-driven, JS-rendered)
   ============================================================ */
.progress-widget {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: clamp(1.5rem, 4vw, 2rem); margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  display: none; /* JS reveals this once localStorage has data */
}
.progress-widget.has-progress { display: block; }
.progress-widget-title {
  font-family: var(--font-headline); font-size: 1.1rem; letter-spacing: .02em; color: var(--ink);
  margin-bottom: .9rem;
}
.progress-widget-track { height: 8px; background: var(--cream2); border-radius: 99px; overflow: hidden; margin-bottom: .9rem; }
.progress-widget-fill { height: 100%; background: var(--amber); border-radius: 99px; transition: width .3s ease; }
.progress-widget-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.progress-widget-stat { font-size: 13px; color: var(--muted); }
.progress-widget-stat strong { color: var(--ink); font-weight: 600; }
.progress-widget-cta {
  font-size: 13px; font-weight: 700; color: var(--amber-dark); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.progress-widget-cta:hover { text-decoration: underline; }

/* ============================================================
   VIDEO EMBED (YouTube, responsive 16:9)
   ============================================================ */
.lesson-video-wrap {
  position: relative; width: 100%; padding-top: 56.25%;
  border-radius: var(--radius-md); overflow: hidden; margin: 1.75rem 0;
  background: var(--ink);
}
.lesson-video-wrap iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}
.lesson-video-caption { font-size: 12px; color: var(--muted); font-weight: 300; margin: -1.25rem 0 1.75rem; font-style: italic; }

/* Placeholder shown until a lesson's real video is recorded — same 16:9 shape
   as .lesson-video-wrap so nothing shifts when the real embed replaces it. */
.lesson-video-placeholder {
  position: relative; width: 100%; padding-top: 42%;
  border-radius: var(--radius-md); margin: 1.75rem 0;
  background: var(--cream2); border: 1px dashed var(--border-dark);
}
.lesson-video-placeholder-inner {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 1.5rem;
}
.lesson-video-placeholder-icon { font-size: 2rem; margin-bottom: .6rem; }
.lesson-video-placeholder-title { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--ink2); margin-bottom: .3rem; }
.lesson-video-placeholder-sub { font-size: 12px; color: var(--muted); font-weight: 300; max-width: 360px; }

/* ============================================================
   DOWNLOADS BLOCK (per-lesson PDF + PPTX)
   ============================================================ */
.cert-downloads {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin: 1.75rem 0;
}
@media (max-width: 560px) { .cert-downloads { grid-template-columns: 1fr; } }
.cert-download-btn {
  display: flex; align-items: center; gap: .75rem;
  background: var(--cream2); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 1rem 1.1rem; text-decoration: none; transition: border-color .2s, background .2s;
  white-space: normal; text-align: left; box-sizing: border-box;
}
.cert-download-btn:hover { border-color: var(--amber-mid); background: var(--white); }
.cert-download-icon { font-size: 1.4rem; flex-shrink: 0; }
.cert-download-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cert-download-title { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.35; }

/* ============================================================
   DOMAIN CHEAT SHEET BUTTON (syllabus overview page)
   ============================================================ */
.domain-cheat-btn {
  display: inline-flex; align-items: center; gap: .8rem;
  background: var(--amber-light); border: 1px solid var(--amber-mid); border-radius: var(--radius-md);
  padding: .85rem 1.15rem; margin-top: 1rem; text-decoration: none;
  transition: border-color .2s, background .2s, transform .15s;
  box-sizing: border-box; max-width: 100%;
}
.domain-cheat-btn:hover { background: var(--white); border-color: var(--amber); transform: translateX(2px); }
.domain-cheat-icon { font-size: 1.6rem; flex-shrink: 0; }
.domain-cheat-body { display: flex; flex-direction: column; gap: 1px; }
.domain-cheat-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-dark); }
.domain-cheat-title { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.3; }
@media (max-width: 560px) {
  .domain-cheat-btn { display: flex; }
}

/* ============================================================
   KNOWLEDGE-CHECK QUIZ (adapted from the career-fit quiz pattern —
   scored right/wrong instead of a personality spectrum)
   ============================================================ */
.kc-progress-track { height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; margin-bottom: 1.5rem; }
.kc-progress-fill { height: 100%; background: var(--amber); border-radius: 99px; width: 0%; transition: width .3s ease; }
.kc-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.5rem; }
.kc-qnum { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-dark); margin-bottom: .6rem; }
.kc-qtext { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-bottom: 1.1rem; line-height: 1.45; }
.kc-options { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.1rem; }
.kc-opt {
  display: block; width: 100%; text-align: left; padding: .85rem 1.1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--cream2);
  color: var(--ink2); font-size: .92rem; cursor: pointer; transition: all .15s ease;
  line-height: 1.5; font-family: inherit;
}
.kc-opt:hover:not(:disabled) { border-color: var(--amber-mid); }
.kc-opt.selected { border-color: var(--amber); background: var(--amber-light); color: var(--ink); font-weight: 600; }
.kc-opt.correct { border-color: #4a9e6b; background: #e7f5ec; color: #235c37; font-weight: 600; }
.kc-opt.incorrect { border-color: #c2554a; background: #fbeae8; color: #7a2b22; font-weight: 600; }
.kc-opt:disabled { cursor: default; }
.kc-rationale {
  font-size: 13px; line-height: 1.65; color: var(--ink2); background: var(--cream2);
  border-radius: var(--radius); padding: .9rem 1.1rem; margin-bottom: 1.1rem;
}
.kc-rationale strong { color: var(--ink); }
.kc-nav-row { display: flex; gap: .75rem; }
.kc-btn { padding: .85rem 1.4rem; border-radius: var(--radius); border: none; font-size: .9rem; font-weight: 700; cursor: pointer; font-family: inherit; letter-spacing: .02em; transition: background .2s, border-color .2s, color .2s; }
.kc-btn-primary { background: var(--ink); color: var(--cream); flex: 1; }
.kc-btn-primary:disabled { background: var(--border); color: var(--muted); cursor: not-allowed; }
.kc-result-hero { text-align: center; padding: 1.75rem 1.5rem; background: var(--ink); border-radius: var(--radius-md); margin-bottom: 1.5rem; }
.kc-result-emoji { font-size: 3rem; line-height: 1; margin-bottom: .4rem; }
.kc-result-type { font-family: var(--font-headline); font-size: 1.5rem; color: var(--cream); letter-spacing: .03em; margin-bottom: .3rem; }
.kc-result-pct { font-size: .9rem; color: var(--amber-mid); font-weight: 600; }
.kc-result-desc { font-size: .9rem; color: rgba(250,248,243,.75); margin-top: .65rem; line-height: 1.6; max-width: 520px; margin-inline: auto; }
.kc-retake { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; color: var(--amber-dark); font-size: .85rem; font-weight: 600; cursor: pointer; padding: 0; font-family: inherit; text-decoration: underline; text-underline-offset: 2px; margin-top: 1.25rem; }
.kc-hidden { display: none !important; }

/* ============================================================
   DISCLAIMER BANNER (shared copy, every hub + lesson footer)
   ============================================================ */
.cert-disclaimer {
  background: var(--cream2); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem; margin: 2.5rem 0; font-size: 12.5px; color: var(--muted); font-weight: 300; line-height: 1.7;
}
.cert-disclaimer strong { color: var(--ink2); font-weight: 600; }

/* ============================================================
   RECOMMENDED ORDER NOTE (syllabus is domain-grouped for exam
   reference; this points students to the numeric 1→20 reading order)
   ============================================================ */
.order-note {
  background: var(--cream2); border-left: 3px solid var(--amber-mid); border-radius: var(--radius-md);
  padding: 1rem 1.3rem; margin: 1.25rem 0 2rem; font-size: 13.5px; color: var(--ink2); line-height: 1.7;
}
.order-note strong { color: var(--ink); font-weight: 700; }

/* ============================================================
   MOCK EXAM ENGINE (assets/cert-mock-exam.js)
   ============================================================ */
.mx-intro { max-width: 720px; margin: 0 auto; }
.mx-intro-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
@media (max-width: 640px) { .mx-intro-grid { grid-template-columns: repeat(2, 1fr); } }
.mx-intro-stat { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.1rem; text-align: center; }
.mx-intro-stat-val { font-family: var(--font-headline); font-size: 1.6rem; color: var(--ink); }
.mx-intro-stat-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: .25rem; }

.mx-domain-breakdown { background: var(--cream2); border-radius: var(--radius-md); padding: 1.5rem; margin-bottom: 1.5rem; }
.mx-domain-breakdown-title { font-family: var(--font-headline); font-size: 1.05rem; color: var(--ink); margin-bottom: .9rem; }
.mx-domain-row { display: flex; justify-content: space-between; gap: 1rem; font-size: 13.5px; padding: .5rem 0; border-bottom: 1px solid var(--border); }
.mx-domain-row:last-child { border-bottom: none; }
.mx-domain-name { color: var(--ink2); }
.mx-domain-pct { color: var(--muted); font-weight: 600; white-space: nowrap; }

.mx-resume-banner { background: var(--amber-light); border: 1px solid var(--amber-mid); border-radius: var(--radius); padding: .9rem 1.1rem; font-size: 13px; color: var(--ink2); margin-bottom: 1.25rem; }

.mx-intro-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.mx-btn { padding: .9rem 1.6rem; border-radius: var(--radius); border: none; font-size: .9rem; font-weight: 700; cursor: pointer; font-family: inherit; letter-spacing: .02em; transition: background .2s, border-color .2s, color .2s; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.mx-btn-primary { background: var(--ink); color: var(--cream); }
.mx-btn-primary:hover { background: var(--ink2); }
.mx-btn-secondary { background: var(--white); color: var(--ink); border: 1.5px solid var(--border); }
.mx-btn-secondary:hover { border-color: var(--amber-mid); }
.mx-btn-submit { background: var(--amber-dark); color: var(--white); margin-left: auto; }
.mx-btn-submit:hover { background: var(--amber-darker, var(--amber-dark)); }
.mx-btn-cert { background: #4a9e6b; color: var(--white); margin-top: 1.25rem; }
.mx-btn-cert:hover { background: #3d8558; }
.mx-btn:disabled { opacity: .4; cursor: not-allowed; }

.mx-history { border-top: 1px solid var(--border); padding-top: 1.25rem; margin-bottom: 1.5rem; }
.mx-history-title { font-family: var(--font-headline); font-size: 1rem; color: var(--ink); margin-bottom: .75rem; }
.mx-history-row { display: flex; align-items: center; gap: .9rem; font-size: 13px; padding: .5rem 0; color: var(--ink2); }
.mx-history-badge { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; }
.mx-history-badge.pass { background: #e7f5ec; color: #235c37; }
.mx-history-badge.fail { background: var(--cream2); color: var(--muted); }
.mx-history-score { font-weight: 600; }
.mx-history-date { color: var(--muted); margin-left: auto; }

.mx-intro-note { font-size: 12px; color: var(--muted); font-weight: 300; line-height: 1.6; padding-top: 1rem; border-top: 1px solid var(--border); }

/* ── exam-in-progress ── */
.mx-running { max-width: 780px; margin: 0 auto; }
.mx-topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: .9rem 1.1rem; margin-bottom: 1.25rem; box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.mx-topbar-progress { font-size: 12.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.mx-timer { font-family: var(--font-headline); font-size: 1.15rem; color: var(--ink); background: var(--cream2); padding: .3rem .8rem; border-radius: 99px; white-space: nowrap; }
.mx-timer.mx-timer-low { background: #fbeae8; color: #7a2b22; }

.mx-nav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 6px; margin-bottom: 1.5rem; max-height: 160px; overflow-y: auto; padding: .9rem; background: var(--cream2); border-radius: var(--radius-md); }
.mx-navbtn { width: 34px; height: 34px; border-radius: 7px; border: 1.5px solid var(--border); background: var(--white); color: var(--muted); font-size: 11.5px; font-weight: 700; cursor: pointer; font-family: inherit; }
.mx-navbtn:hover { border-color: var(--amber-mid); }
.mx-navbtn.answered { background: var(--amber-light); border-color: var(--amber-mid); color: var(--amber-dark); }
.mx-navbtn.current { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.mx-qcard { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.75rem; margin-bottom: 1.25rem; }
.mx-qmeta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .9rem; flex-wrap: wrap; }
.mx-qnum { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-dark); }
.mx-qdomain { font-size: 11px; font-weight: 600; color: var(--muted); background: var(--cream2); padding: 2px 9px; border-radius: 99px; }
.mx-qtext { font-size: 1.1rem; font-weight: 600; color: var(--ink); margin-bottom: 1.25rem; line-height: 1.5; }
.mx-options { display: flex; flex-direction: column; gap: .6rem; }
.mx-opt { display: block; width: 100%; text-align: left; padding: .9rem 1.1rem; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--cream2); color: var(--ink2); font-size: .92rem; cursor: pointer; transition: all .15s ease; line-height: 1.5; font-family: inherit; }
.mx-opt:hover { border-color: var(--amber-mid); }
.mx-opt.selected { border-color: var(--amber); background: var(--amber-light); color: var(--ink); font-weight: 600; }
.mx-qnav-row { display: flex; justify-content: space-between; gap: .75rem; }

/* ── results / review ── */
.mx-results { max-width: 780px; margin: 0 auto; }
.mx-results-hero { text-align: center; padding: 2rem 1.5rem; border-radius: var(--radius-md); margin-bottom: 1.75rem; background: var(--ink); }
.mx-results-hero.pass { background: #1c3b28; }
.mx-results-emoji { font-size: 3rem; margin-bottom: .5rem; }
.mx-results-title { font-family: var(--font-headline); font-size: 1.75rem; color: var(--cream); letter-spacing: .02em; margin-bottom: .4rem; }
.mx-results-sub { font-size: .95rem; color: rgba(250,248,243,.75); }
.mx-results-encourage { font-size: .88rem; color: rgba(250,248,243,.7); max-width: 460px; margin: 1rem auto 0; line-height: 1.6; }

.mx-domain-results { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.5rem; margin-bottom: 1.5rem; }
.mx-domain-result-row { margin-bottom: 1rem; }
.mx-domain-result-row:last-child { margin-bottom: 0; }
.mx-domain-result-top { display: flex; justify-content: space-between; gap: 1rem; font-size: 13px; color: var(--ink2); margin-bottom: .4rem; }
.mx-domain-result-track { height: 7px; background: var(--cream2); border-radius: 99px; overflow: hidden; }
.mx-domain-result-fill { height: 100%; background: var(--amber); border-radius: 99px; }

.mx-review-toggle-row { text-align: center; margin-bottom: 1.25rem; }
.mx-review-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.mx-review-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.25rem; }
.mx-review-qhead { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; flex-wrap: wrap; }
.mx-review-qnum { font-size: 11px; font-weight: 700; color: var(--amber-dark); letter-spacing: .06em; }
.mx-review-domain { font-size: 10.5px; color: var(--muted); background: var(--cream2); padding: 2px 8px; border-radius: 99px; }
.mx-review-status { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 9px; border-radius: 99px; margin-left: auto; }
.mx-review-status.correct { background: #e7f5ec; color: #235c37; }
.mx-review-status.incorrect { background: #fbeae8; color: #7a2b22; }
.mx-review-qtext { font-size: .95rem; font-weight: 600; color: var(--ink); margin-bottom: .75rem; line-height: 1.5; }
.mx-review-opts { display: flex; flex-direction: column; gap: .4rem; margin-bottom: .75rem; }
.mx-review-opt { font-size: 12.5px; padding: .55rem .8rem; border-radius: var(--radius); background: var(--cream2); color: var(--ink2); border: 1px solid var(--border); }
.mx-review-opt.correct { background: #e7f5ec; border-color: #4a9e6b; color: #235c37; font-weight: 600; }
.mx-review-opt.incorrect { background: #fbeae8; border-color: #c2554a; color: #7a2b22; font-weight: 600; }
.mx-review-rationale { font-size: 12.5px; line-height: 1.6; color: var(--muted); border-top: 1px solid var(--border); padding-top: .75rem; }

.mx-hidden { display: none !important; }

@media (max-width: 640px) {
  .mx-topbar { flex-wrap: wrap; }
  .mx-btn-submit { margin-left: 0; width: 100%; order: 3; }
}

/* ============================================================
   YOUTUBE SUBSCRIBE CTA (below each lesson video)
   ============================================================ */
.cert-yt-subscribe {
  display: flex; align-items: center; gap: .9rem;
  background: var(--amber-light); border: 1px solid var(--amber-mid); border-radius: var(--radius-md);
  padding: .85rem 1.1rem; margin: 0 0 1.75rem; text-decoration: none;
  transition: border-color .2s, background .2s; box-sizing: border-box;
}
.cert-yt-subscribe:hover { background: var(--white); border-color: var(--amber); }
.post-content a.cert-yt-subscribe { text-decoration: none; color: inherit; }
.cert-yt-icon {
  flex-shrink: 0; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--white); font-size: .8rem; padding-left: 2px; box-sizing: border-box;
}
.cert-yt-body { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.cert-yt-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-dark); }
.cert-yt-title { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.cert-yt-cta {
  flex-shrink: 0; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  background: var(--amber); color: var(--ink); border-radius: var(--radius); padding: .45rem .8rem;
}
@media (max-width: 480px) { .cert-yt-cta { display: none; } }

/* ══ Support card — certificate pages (Phase 1, Sept 2026) ══
   Order of asks: newsletter (primary) → YouTube → Buy Me a Coffee (secondary).
   Rendered by the inline script on certifications/<course>/certificate.html,
   only after a passing attempt exists. */
.support-card { background: var(--ink); color: var(--cream); border-radius: var(--radius-md); padding: clamp(1.5rem, 5vw, 2.25rem); margin: 0 0 1.75rem; position: relative; overflow: hidden; }
.support-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 70% at 100% 0%, rgba(232,160,32,.14), transparent 70%); pointer-events: none; }
.support-card > * { position: relative; }
.support-kicker { font-family: var(--font-headline); font-size: 1rem; letter-spacing: .12em; color: var(--amber); margin-bottom: .35rem; }
.support-title { font-family: var(--font-display); font-size: clamp(1.4rem, 4vw, 1.75rem); line-height: 1.2; color: var(--cream); margin-bottom: .6rem; }
.support-sub { font-size: .95rem; line-height: 1.65; color: rgba(250,248,243,.72); margin-bottom: 1.25rem; max-width: 520px; }
.support-form { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .5rem; }
.support-form input[type="email"] { flex: 1 1 220px; min-width: 0; padding: .85rem 1rem; border-radius: var(--radius); border: 1px solid rgba(250,248,243,.18); background: rgba(250,248,243,.06); color: var(--cream); font: inherit; font-size: .95rem; }
.support-form input[type="email"]::placeholder { color: rgba(250,248,243,.4); }
.support-form input[type="email"]:focus { outline: none; border-color: var(--amber); }
.support-form button { flex: 0 0 auto; padding: .85rem 1.3rem; border-radius: var(--radius); border: none; background: var(--amber); color: var(--ink); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.support-form button:hover { background: var(--amber-mid); }
.support-note { font-size: 11.5px; color: rgba(250,248,243,.4); margin-bottom: 1.4rem; }
.support-divider { height: 1px; background: rgba(250,248,243,.1); margin: 0 0 1.2rem; }
.support-links { display: flex; gap: .6rem; flex-wrap: wrap; }
.support-link { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1rem; border-radius: var(--radius); border: 1px solid rgba(250,248,243,.16); color: var(--cream); text-decoration: none; font-size: .88rem; font-weight: 600; transition: border-color .2s, background .2s; }
.support-link:hover { border-color: var(--amber); background: rgba(232,160,32,.08); }
.support-link .yt-dot { width: 18px; height: 13px; border-radius: 3px; background: #ff0000; display: inline-flex; align-items: center; justify-content: center; }
.support-link .yt-dot::after { content: ''; border-left: 5px solid #fff; border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent; margin-left: 1px; }
.support-link.coffee { border-color: transparent; color: rgba(250,248,243,.65); font-weight: 500; }
.support-link.coffee:hover { color: var(--cream); }
.support-fine { font-size: 11px; color: rgba(250,248,243,.35); margin-top: 1.1rem; line-height: 1.55; }

/* Beat .post-content h2 / p / a article styles inside the dark card */
.post-content .support-card h2.support-title { font-family: var(--font-display); font-size: clamp(1.4rem, 4vw, 1.75rem); font-weight: 400; line-height: 1.2; color: var(--cream); margin: 0 0 .6rem; padding: 0; border: none; letter-spacing: 0; text-transform: none; display: block; }
.post-content .support-card h2.support-title::before, .post-content .support-card h2.support-title::after { content: none; display: none; }
.post-content .support-card p.support-sub { font-size: .95rem; font-weight: 400; line-height: 1.65; color: rgba(250,248,243,.72); margin: 0 0 1.25rem; }
.post-content .support-card a.support-link { color: var(--cream); text-decoration: none; }
.post-content .support-card a.support-link.coffee { color: rgba(250,248,243,.65); }
.post-content .support-card a.support-link.coffee:hover { color: var(--cream); }

/* Mock-exam pass screen — one quiet line under the certificate button */
.mx-results-support { margin-top: 1rem; font-size: .85rem; color: rgba(250,248,243,.6); }
.mx-results-support a { color: var(--amber-mid); text-decoration: underline; text-underline-offset: 2px; }

@media print { .support-card, .mx-results-support { display: none !important; } }
