/* Blog post styles. Tokens, buttons, forms, header, footer and pop-ups come from /styles.css;
   only blog-specific layout and components live here. */

/* ---------- Layout ---------- */
.blog-main { padding: 32px 0 72px; overflow-x: clip; }
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 0 var(--gutter);
}
.post { max-width: 720px; width: 100%; margin: 0 auto; }
.toc { display: none; }

/* Right-margin jump list from 1200px: article centered at 720px, list in the right gutter */
@media (min-width: 1200px) {
  .blog-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 720px) minmax(0, 1fr); padding: 0; }
  .post { grid-column: 2; }
  .toc {
    display: block; grid-column: 3; align-self: start;
    position: sticky; top: calc(var(--header-h) + 32px);
    width: 210px; margin: 160px 0 0 40px;
    font-size: .84rem; line-height: 1.4;
  }
  .toc-title { margin: 0 0 10px; font: 800 .78rem/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--copper-ink); }
  .toc ol { display: grid; gap: 2px; border-left: 2px solid var(--peach-line); }
  .toc a { display: block; padding: 5px 0 5px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; }
  .toc a:hover { color: var(--ink); border-left-color: var(--copper); }
}

/* ---------- Article header ---------- */
.post-header { margin-bottom: 28px; }
.post-header h1 { font-size: clamp(1.9rem, 1.45rem + 1.9vw, 2.9rem); margin-bottom: 18px; }
.byline { margin: 0; font-weight: 600; color: var(--ink); }
.post-meta { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }

/* ---------- Sections and rhythm ---------- */
.post-section { margin: 56px 0; }
.post-section h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); margin-bottom: .6em; }
.post-section h3 { font-size: 1.25rem; margin: 36px 0 12px; }
.post .lead { font-size: 1.1rem; font-weight: 500; color: var(--ink); }
/* Tinted panels break up the column: full bleed on phones, rounded and a little wider than the text from 760px */
.panel { padding: 40px var(--gutter); margin-inline: calc(var(--gutter) * -1); }
.panel-alt { background: var(--surface-alt); }
.panel-peach { background: var(--peach-wash); }
@media (min-width: 760px) {
  .panel { padding: 44px 40px; margin-inline: -40px; border-radius: 20px; }
}
/* Only the intro and the first section wrap around the Who we are box */
.post-section ~ .post-section, .webinar-cta { clear: both; }

/* ---------- 1. Who we are ---------- */
.who-box {
  margin: 0 0 28px; padding: 22px 22px 18px;
  background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--copper);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
@media (min-width: 1100px) {
  /* Hangs into the left margin so the wrapped text keeps a readable width */
  .who-box { float: left; width: 300px; margin: 6px 32px 20px -150px; }
}
.who-photo { display: block; width: 100%; height: auto; margin: 0 0 12px; border-radius: 12px; background: #fff; }
.who-title { margin: 0 0 10px; font: 800 1.15rem/1.2 var(--font-head); letter-spacing: -0.02em; color: var(--ink); }
.who-bio { position: relative; border-top: 1px solid var(--line); font-size: .9rem; line-height: 1.55; }
.who-bio summary {
  list-style: none; cursor: pointer; padding: 12px 0; border-radius: 6px;
}
.who-bio summary::-webkit-details-marker { display: none; }
.who-bio summary strong { color: var(--ink); }
.who-more { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.who-less { display: none; }
.who-bio summary:hover .who-more, .who-bio summary:hover .who-less { color: var(--blue-hover); }
.who-bio > p { margin: -8px 0 0; padding-bottom: 46px; }
/* Open: teaser hides, full bio shows, and "Show less" (still part of the summary) sits under it */
.who-bio[open] .who-teaser, .who-bio[open] .who-more { display: none; }
.who-bio[open] .who-less {
  display: inline-block; position: absolute; left: 0; bottom: 12px;
  color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.who-bio summary:focus-visible { outline-offset: 2px; }
.who-footer { margin: 4px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: .8rem; line-height: 1.5; color: var(--muted); }

/* ---------- 2. Free vs proctored ---------- */
/* The wrapper is a size container, so the cards stack whenever they're squeezed beside the floated box */
.compare-wrap { container-type: inline-size; }
.compare-cards { display: grid; gap: 16px; }
@container (min-width: 560px) { .compare-cards { grid-template-columns: 1fr 1fr; } }
.compare-card { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.compare-card p:last-child { margin-bottom: 0; }
.compare-free { border-top: 4px solid var(--teal); }
.compare-proctored { border-top: 4px solid var(--copper); }
.tag { display: inline-block; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px; font: 700 .78rem/1.3 var(--font-body); letter-spacing: .04em; text-transform: uppercase; }
.tag-free { background: var(--teal-soft); color: var(--teal-ink); }
.tag-proctored { background: var(--peach); color: var(--copper-ink); }

/* ---------- 3. Cost table ---------- */
.cost-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .95rem; }
.cost-table thead th {
  text-align: left; padding: 10px 14px; font: 700 .76rem/1.3 var(--font-body);
  letter-spacing: .05em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--line);
}
.cost-table tbody th, .cost-table td { padding: 14px; text-align: left; vertical-align: top; background: #fff; border-bottom: 1px solid var(--line); }
.cost-table tbody th { font-weight: 700; color: var(--ink); }
.cost-table .fee { font-weight: 800; font-family: var(--font-head); color: var(--ink); white-space: nowrap; }
.cost-table tbody tr:first-child > * { border-top: 1px solid var(--line); }
.cost-table tbody tr > :first-child { border-left: 1px solid var(--line); }
.cost-table tbody tr > :last-child { border-right: 1px solid var(--line); }
.cost-table tbody tr:first-child > :first-child { border-top-left-radius: var(--radius); }
.cost-table tbody tr:first-child > :last-child { border-top-right-radius: var(--radius); }
.cost-table tbody tr:last-child > :first-child { border-bottom-left-radius: var(--radius); }
.cost-table tbody tr:last-child > :last-child { border-bottom-right-radius: var(--radius); }
.cost-table tr.is-pick > * { background: var(--peach); border-top: 2px solid var(--copper-ink); border-bottom: 2px solid var(--copper-ink); }
.cost-table tr.is-pick > :first-child { border-left: 2px solid var(--copper-ink); }
.cost-table tr.is-pick > :last-child { border-right: 2px solid var(--copper-ink); }
.cost-table tr.is-pick .fee { color: var(--copper-ink); }
.pick-badge {
  display: inline-block; margin: 0 0 6px; padding: 3px 10px; border-radius: 999px;
  background: var(--copper-ink); color: #fff; font: 800 .72rem/1.3 var(--font-body); letter-spacing: .05em; text-transform: uppercase;
}
.table-note { margin-top: 14px; font-size: .86rem; color: var(--muted); }
.table-note p { margin: 0 0 .4em; }

/* Phones: every row becomes its own card; labels come from data-label (same words as the headers) */
@media (max-width: 639px) {
  .cost-table, .cost-table tbody, .cost-table tr, .cost-table th, .cost-table td { display: block; }
  .cost-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cost-table tbody { display: grid; gap: 12px; }
  .cost-table tr { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
  .cost-table tr.is-pick { border: 2px solid var(--copper-ink); background: var(--peach); }
  .cost-table tbody tr > * { border: 0 !important; border-radius: 0 !important; background: transparent !important; padding: 4px 16px; }
  .cost-table tbody th { padding-top: 14px; font-size: 1rem; }
  .cost-table td { display: flex; justify-content: space-between; gap: 16px; }
  .cost-table td:last-child { padding-bottom: 14px; }
  .cost-table td::before { content: attr(data-label); flex: none; font-weight: 600; color: var(--muted); font-size: .85rem; }
  .cost-table td[data-label="Built for"] { display: block; }
  .cost-table td[data-label="Built for"]::before { display: block; }
}

/* ---------- 4/11. Webinar CTA (content: partials/webinar-cta.html) ---------- */
/* Top: one hand-lettered line that jumps down to the box */
.webinar-jump { clear: both; margin: 40px 0; }
.webinar-jump a {
  display: inline-flex; align-items: flex-end; gap: 6px;
  font: 700 clamp(1.75rem, 1.4rem + 1.4vw, 2.4rem)/1.1 var(--font-hand); color: var(--copper-ink); text-decoration: none;
}
.webinar-jump a:hover { color: var(--burnt-start); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.hand-arrow-down, .hand-arrow { flex: none; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.hand-arrow-down { width: .8em; height: 1.1em; translate: 0 .2em; }

/* Bottom: navy box. Desktop: text and photo left, form right. Phones: text, form, photo last. */
.webinar-cta {
  display: grid; grid-template-areas: "text" "form" "photo"; gap: 24px; clear: both;
  margin: 56px 0; padding: 32px 22px 28px; border-radius: 20px; overflow: hidden;
  background: var(--navy); color: var(--navy-text);
  /* The sticky header is already cleared by html's scroll-padding-top (styles.css); this adds a little air */
  scroll-margin-top: 8px;
}
.webinar-cta-text { grid-area: text; }
.webinar-cta-form { grid-area: form; }
/* Framed so it sits cleanly on the navy */
.webinar-cta-photo {
  grid-area: photo; width: 100%; max-width: 440px; height: auto; margin: 0 auto;
  border: 6px solid var(--peach-wash); border-radius: 16px; background: var(--peach-wash);
}
.webinar-cta-pill { margin-bottom: 12px; }
.webinar-cta .status-pill { background: var(--blue); border-color: var(--blue); color: #fff; }
.webinar-cta .status-dot, .webinar-cta .status-dot::after { background: #fff; }
.webinar-cta-heading { margin: 0 0 8px; color: #fff; font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem); }
.webinar-cta-details { margin: 0 0 8px; font-weight: 700; color: #fff; }
.webinar-cta-body { margin: 0; }
/* Same hand-lettered line as the top, in copper (5.2:1 on navy; --copper-ink is only 3.1:1 there); arrow points at the form */
.webinar-hand {
  margin: 22px 0 0; font: 700 clamp(1.75rem, 1.4rem + 1.4vw, 2.4rem)/1.15 var(--font-hand); color: var(--copper);
}
/* Inline after the last word so it travels with it when the line wraps; points down at the form on phones */
.webinar-hand .hand-arrow { display: inline-block; width: 1.7em; height: 1.05em; margin-left: .2em; vertical-align: -.35em; rotate: 80deg; }
.webinar-cta-form {
  gap: 12px; margin: 0; padding: 22px; background: #fff; border-radius: var(--radius);
  color: var(--body); box-shadow: var(--shadow-lift);
}
.webinar-cta .form-submit { width: 100%; font-weight: 700; }
/* The homepage sizes these inside its pop-ups (.modal-body); same look here */
.webinar-cta .consent-intro { margin: 4px 0 0; font-size: .88rem; font-weight: 600; color: var(--ink); }
.webinar-cta .form-fineprint { font-size: .74rem; }
@media (min-width: 860px) {
  .webinar-cta {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "text form" "photo form";
    grid-template-rows: auto 1fr; gap: 0 36px; padding: 44px 40px; margin-inline: -40px; align-items: start;
  }
  .webinar-hand .hand-arrow { rotate: none; vertical-align: -.1em; }
  /* Right under the Caveat line, top-aligned, full column width */
  .webinar-cta-photo { max-width: none; margin-top: 24px; }
}
@media (max-width: 759px) {
  .webinar-cta { border-radius: 0; margin-inline: calc(var(--gutter) * -1); }
}

/* "The first cohort starts November 1." standout line (styled paragraph, not a heading) */
.cohort-callout {
  display: flex; align-items: center; gap: 14px; margin: 24px 0; padding: 18px 22px;
  background: var(--peach); border: 1px solid var(--peach-line); border-left: 5px solid var(--copper); border-radius: var(--radius);
  font: 800 clamp(1.35rem, 1.15rem + .9vw, 1.75rem)/1.2 var(--font-head); letter-spacing: -0.02em; color: var(--copper-ink);
}
.cohort-icon { flex: none; width: 1.3em; height: 1.3em; stroke-width: 2; }

/* ---------- 5. Five reasons ---------- */
.reason-grid { display: grid; gap: 16px; counter-reset: none; }
@media (min-width: 640px) {
  .reason-grid { grid-template-columns: 1fr 1fr; }
  .reason-card:last-child { grid-column: 1 / -1; }
}
.reason-card {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.reason-card p { margin: 0; font-size: .96rem; }
.reason-num { font: 800 2.8rem/1 var(--font-head); color: var(--copper-ink); letter-spacing: -0.04em; min-width: 1ch; }
.reason-title { display: block; margin-bottom: 6px; font: 800 1.08rem/1.3 var(--font-head); letter-spacing: -0.015em; color: var(--ink); }

/* ---------- Galleries: side by side; swipe row with a peek of the second image on phones ---------- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.gallery-item img { width: 100%; border-radius: 16px; box-shadow: var(--shadow-lift); border: 1px solid var(--line); }
@media (max-width: 639px) {
  .gallery {
    display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 16px;
    scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery-item { flex: 0 0 82%; scroll-snap-align: start; }
}
.gallery:focus-visible { outline-offset: 4px; }

/* ---------- 6. Personas ---------- */
.persona-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .persona-grid { grid-template-columns: 1fr 1fr; } }
.persona-card { padding: 24px; border-radius: var(--radius); background: var(--navy); color: var(--navy-text); }
.persona-card p { margin: 0; font-size: .96rem; }
.persona-title { display: block; margin-bottom: 6px; font: 800 1.08rem/1.3 var(--font-head); color: #fff; }
.persona-icon {
  width: 44px; height: 44px; padding: 10px; margin-bottom: 14px;
  border-radius: 12px; background: rgba(255, 255, 255, .08); color: var(--peach); stroke-width: 1.8;
}

/* ---------- 7. Exam format ---------- */
.stat-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; }
@media (min-width: 760px) { .stat-strip { grid-template-columns: repeat(4, 1fr); } }
.stat-tile { display: flex; flex-direction: column; gap: 8px; padding: 18px 16px; background: var(--teal-soft); border: 1px solid var(--teal-line); border-radius: var(--radius); }
.stat-big { font: 800 2.4rem/1 var(--font-head); letter-spacing: -0.04em; color: var(--teal-ink); }
.stat-big-word { font-size: 1.55rem; line-height: 1.12; letter-spacing: -0.02em; }
.stat-text { font-size: .86rem; line-height: 1.45; color: var(--body); }

.domain-table { width: 100%; border-collapse: collapse; }
.domain-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.domain-table tbody th { padding: 12px 0 4px; text-align: left; font-weight: 600; color: var(--ink); font-size: .95rem; }
.domain-table tr { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--line); }
.domain-table td { display: flex; align-items: center; gap: 12px; padding: 0 0 12px; }
@media (min-width: 640px) {
  .domain-table tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; gap: 20px; }
  .domain-table tbody th, .domain-table td { padding: 12px 0; }
}
.bar-track { flex: 1; height: 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.bar { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--copper), var(--copper-ink)); }
/* Bar length = the domain's share of the exam */
.bar-27 { width: 27%; }
.bar-20 { width: 20%; }
.bar-18 { width: 18%; }
.bar-15 { width: 15%; }
.bar-pct { flex: none; width: 3.2ch; text-align: right; font: 800 1.05rem var(--font-head); color: var(--ink); }

.callout { margin: 28px 0; padding: 20px 22px; border-radius: var(--radius); }
.callout p:last-child { margin-bottom: 0; }
.callout-label {
  display: flex; align-items: center; gap: 8px; margin: 0 0 8px;
  font: 800 .78rem/1.2 var(--font-body); letter-spacing: .06em; text-transform: uppercase;
}
.callout-label .icon { width: 18px; height: 18px; }
.callout-peach { background: var(--peach); border: 1px solid var(--peach-line); }
.callout-peach .callout-label { color: var(--copper-ink); }
.callout-indigo { background: var(--blue-soft); border-left: 5px solid var(--blue); }
.callout-indigo .callout-label { color: var(--blue); }

.scenario-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
@media (min-width: 640px) { .scenario-grid { grid-template-columns: repeat(3, 1fr); } }
.scenario-grid li {
  display: flex; flex-direction: column; gap: 10px; padding: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  font: 700 .95rem/1.35 var(--font-head); color: var(--ink);
}
.scenario-num {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: #fff; font: 800 .9rem/1 var(--font-head);
}

.pull-line {
  margin: -4px 0 28px; font: 700 2.3rem/1.1 var(--font-hand); color: var(--copper-ink);
  transform: rotate(-2deg); transform-origin: left center;
}

.link-card {
  position: relative; display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin: 0; padding: 16px 52px 16px 18px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); font-weight: 500;
}
.link-card a { font-weight: 700; }
/* The whole card is the link's hit area */
.link-card a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.link-card-arrow { position: absolute; right: 18px; top: 50%; translate: 0 -50%; color: var(--blue); transition: translate .15s ease; }
.link-card:hover { border-color: var(--blue); }
.link-card:hover .link-card-arrow { translate: 4px -50%; }
.link-card:has(a:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.link-card a:focus-visible { outline: none; }

/* ---------- 9. Story: timeline, steps, study card ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 12px; margin: 32px 0 36px; }
.timeline li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 26px; }
/* Dot on the line */
.timeline li::before {
  content: ""; position: absolute; top: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--copper-ink); box-shadow: 0 0 0 4px var(--peach-wash), 0 0 0 5px var(--peach-line);
}
.timeline-big { font: 800 1.5rem/1.1 var(--font-head); letter-spacing: -0.02em; color: var(--ink); }
.timeline-cap { margin-top: 4px; font-size: .85rem; color: var(--muted); line-height: 1.35; }
@media (min-width: 640px) {
  .timeline { grid-template-columns: repeat(4, 1fr); }
  .timeline::before {
    content: ""; position: absolute; top: 10px; left: 12.5%; right: 12.5%; height: 2px;
    background: repeating-linear-gradient(90deg, var(--copper) 0 8px, transparent 8px 14px);
  }
}

.diff-intro { font-weight: 700; color: var(--ink); font-size: 1.1rem; }
.diff-steps { position: relative; display: grid; gap: 18px; margin-bottom: 36px; }
/* Connecting line behind the numbered circles */
.diff-steps::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: var(--peach-line); }
.diff-steps li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.diff-steps li p { margin: 6px 0 0; }
.diff-num {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--copper-ink); color: #fff; font: 800 1rem/1 var(--font-head);
  box-shadow: 0 0 0 4px var(--peach-wash);
}

.study-card { max-width: 520px; margin: 0 auto; text-align: center; }
.study-card-stage {
  display: grid; gap: 16px; overflow: hidden;
  transition: height .26s ease;
}
.study-card-face { width: 100%; border-radius: 18px; background: #fff; box-shadow: var(--shadow-lift); border: 1px solid var(--line); }
/* Interactive (blog.js ran): one face at a time, quick fade between them */
.study-card.is-interactive .study-card-stage { gap: 0; padding: 4px 4px 28px; margin: -4px -4px -12px; }
.study-card-face { transition: opacity .16s ease; }
.study-card-stage.is-fading .study-card-face { opacity: 0; }
.study-card-face[hidden] { display: none; }
.study-card-btn { margin-top: 4px; min-width: 240px; font-weight: 700; }
.study-card-btn[hidden] { display: none; }
.study-card-more { margin: 12px 0 0; font-size: .9rem; }

/* ---------- 10. FAQ (accordion look from /styles.css) ---------- */
.post .faq-list summary { font-weight: 700; }

/* ---------- 11. Closing + fine print ---------- */
.closing-line {
  clear: both; margin: 48px auto 8px; max-width: 18ch; text-align: center;
  font: 800 clamp(1.8rem, 1.4rem + 1.8vw, 2.6rem)/1.15 var(--font-head); letter-spacing: -0.03em; color: var(--ink);
  text-wrap: balance;
}
.post-rule { margin: 48px 0 24px; border: 0; border-top: 1px solid var(--line); }
.post-fineprint { font-size: .82rem; line-height: 1.55; color: var(--muted); }
.post-disclaimer em { font-style: italic; }
.post-sources h2 { font-size: 1rem; letter-spacing: -0.01em; margin: 20px 0 8px; color: var(--muted); }
.post-sources ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 4px; }

/* Credential line under the gallery with the founders' badge (CLAUDE.md: every new badge placement) */
.gallery-note { margin: 12px 0 0; font-size: .82rem; color: var(--muted); text-align: center; }
