/* ============================================================
   Blog post v2 — restyled long-form article
   Loaded after blog-styles.css; scoped to .v2-* so other posts are unaffected.
   Palette matches the blog cover images.
   ============================================================ */
:root {
  --v2-navy: #002658;
  --v2-blue: #486CA8;
  --v2-blue2: #064699;
  --v2-ink: #1F2333;
  --v2-body: #363B4E;
  --v2-ink2: #4B506D;
  --v2-muted: #7A8199;
  --v2-green: #09BC8A;
  --v2-green2: #089970;
  --v2-bg: #F6F8FB;
  --v2-line: #DDE3EC;
  --v2-wash: #EDF2FA;
  --v2-measure: 720px;
}

.v2-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 12px;
}

/* ---------- hero ---------- */
.v2-hero {
  background:
    linear-gradient(to right, rgba(72,108,168,.075) 1px, transparent 1px) 0 0/40px 40px,
    linear-gradient(to bottom, rgba(72,108,168,.075) 1px, transparent 1px) 0 0/40px 40px,
    radial-gradient(1100px 600px at 80% 0%, #FFFFFF 0%, var(--v2-bg) 60%);
  border-bottom: 1px solid var(--v2-line);
}
.v2-hero-inner {
  max-width: var(--v2-measure);
  margin: 0 auto;
  padding: 72px 0 52px;
}
.v2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--v2-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.v2-eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--v2-green);
}
.v2-hero h1 {
  margin: 18px 0 0;
  color: var(--v2-navy);
  font-size: 48px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.022em;
  text-wrap: balance;
}
.v2-deck {
  margin: 20px 0 0;
  color: var(--v2-ink2);
  font-size: 20px;
  line-height: 1.5;
  font-weight: 500;
  max-width: 640px;
}
.v2-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--v2-line);
}
.v2-byline img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--v2-line);
}
.v2-byline-name {
  color: var(--v2-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}
.v2-byline-role {
  color: var(--v2-muted);
  font-size: 13px;
  font-weight: 600;
  margin-top: 2px;
}
.v2-byline-meta {
  margin-left: auto;
  color: var(--v2-muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.v2-byline-meta span + span::before {
  content: "·";
  margin: 0 8px;
}

/* ---------- layout: optional left rail + article ---------- */
.v2-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--v2-measure));
  justify-content: center;
  padding: 56px 0 72px;
}
.v2-rail {
  display: none;
}
@media (min-width: 1200px) {
  .v2-layout {
    grid-template-columns: 200px var(--v2-measure) 200px;
    column-gap: 40px;
  }
  .v2-rail {
    display: block;
  }
}
.v2-rail-inner {
  position: sticky;
  top: 28px;
}
.v2-rail-label {
  color: var(--v2-muted);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.v2-rail ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--v2-line);
}
.v2-rail li a {
  display: block;
  padding: 6px 0 6px 14px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--v2-muted);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition: color .15s, border-color .15s;
}
.v2-rail li a:hover {
  color: var(--v2-navy);
}
.v2-rail li a.is-active {
  color: var(--v2-navy);
  border-left-color: var(--v2-green);
  font-weight: 700;
}

/* ---------- article typography ---------- */
article.v2-post {
  min-width: 0;
}
article.v2-post p,
article.v2-post li {
  color: var(--v2-body);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
}
article.v2-post p {
  margin: 0 0 22px;
}
article.v2-post strong {
  color: var(--v2-ink);
  font-weight: 700;
}
article.v2-post a {
  color: var(--v2-blue2);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(72,108,168,.35);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: text-decoration-color .15s;
}
article.v2-post a:hover {
  text-decoration-color: var(--v2-blue2);
}
article.v2-post h2 {
  margin: 52px 0 16px;
  color: var(--v2-navy);
  font-size: 27px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.015em;
}
article.v2-post h2::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--v2-green);
  margin-bottom: 14px;
}
article.v2-post h2 + p {
  margin-top: 0;
}
article.v2-post ul {
  margin: 0 0 24px;
  padding-left: 0;
  list-style: none;
}
article.v2-post ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}
article.v2-post ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--v2-green);
}
article.v2-post ul li:last-child {
  margin-bottom: 0;
}
/* list items that lead with a bold term */
article.v2-post ul.v2-terms li {
  padding-left: 0;
  margin-bottom: 16px;
}
article.v2-post ul.v2-terms li::before {
  display: none;
}
article.v2-post ul.v2-terms li strong {
  display: block;
  color: var(--v2-navy);
  font-size: 17px;
  margin-bottom: 2px;
}
article.v2-post ul.v2-terms {
  border-top: 1px solid var(--v2-line);
}
article.v2-post ul.v2-terms li {
  padding: 16px 0;
  border-bottom: 1px solid var(--v2-line);
  margin: 0;
}

/* ---------- callout (quiet, note-style) ---------- */
.v2-callout {
  margin: 26px 0;
  padding: 13px 18px 13px 20px;
  background: #F8FAFC;
  border: 1px solid var(--v2-line);
  border-left: 3px solid var(--v2-blue);
  border-radius: 6px;
}
article.v2-post .v2-callout p {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--v2-ink2);
}
article.v2-post .v2-callout p:last-child {
  margin-bottom: 0;
}
article.v2-post .v2-callout a {
  color: var(--v2-blue2);
  text-decoration: none;
}
article.v2-post .v2-callout a:hover {
  text-decoration: underline;
  text-decoration-color: var(--v2-blue2);
}

/* ---------- pull line (standalone bold takeaway) ---------- */
.v2-pull {
  margin: 34px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--v2-green);
}
article.v2-post .v2-pull p {
  margin: 0;
  color: var(--v2-navy);
  font-size: 22px;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: -.01em;
}
article.v2-post .v2-pull p strong {
  font-weight: 700;
  color: inherit;
}

/* ---------- figure cards (flow diagram, matchup) ---------- */
.v2-figure {
  margin: 34px 0;
  padding: 26px 24px 24px;
  background: #fff;
  border: 1px solid var(--v2-line);
  border-radius: 14px;
  box-shadow: 0 18px 44px -28px rgba(0,38,88,.35), 0 1px 3px rgba(0,38,88,.05);
}
.v2-figure .blog-flow,
.v2-figure .blog-matchup {
  margin: 0;
}
.v2-figure .blog-flow .matchup-chip,
.v2-figure .blog-matchup .matchup-chip {
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 800;
  color: var(--v2-navy);
  background: var(--v2-wash);
  border-color: #D4DEEE;
  letter-spacing: .01em;
}
.v2-figure .matchup-chip.good {
  background: #E8F8F2;
  border-color: #BFEADC;
  color: var(--v2-green2);
}
.v2-figure .matchup-chip.excel {
  background: #FCF6E9;
  border-color: #EBD3A0;
  color: #7A5411;
}
.v2-figure .matchup-chip.ui {
  background: var(--v2-wash);
  border-color: #B9C9E6;
  color: #2E4A78;
}
.v2-figure .blog-flow .flow-caption {
  color: var(--v2-muted);
  font-size: 11.5px;
  letter-spacing: .14em;
  margin-bottom: 12px;
}
.v2-figure .blog-flow .flow-side:last-child .flow-caption {
  color: var(--v2-blue);
}
.v2-figure .matchup-vs {
  color: var(--v2-muted);
  font-style: normal;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.v2-figure .blog-flow svg path { stroke: #B8C4D9; }
.v2-figure .blog-flow svg polygon { fill: #B8C4D9; }
.v2-figure .blog-matchup .matchup-plus {
  color: var(--v2-green2);
  font-weight: 900;
}
.v2-figcaption {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--v2-line);
  color: var(--v2-muted);
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}

/* ---------- two-sided matchup (LLM vs LLM + DSL + tool + harness) ---------- */
.v2-figure .blog-matchup.matchup-sides {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.3fr);
  align-items: stretch;
  gap: 0 12px;
}
.v2-figure .matchup-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 14px 18px;
  border: 1px solid var(--v2-line);
  border-radius: 10px;
  background: var(--v2-bg);
}
.v2-figure .matchup-side.win {
  border-color: #BFEADC;
  background: #F3FBF8;
}
.v2-figure .matchup-caption {
  margin-bottom: 12px;
  color: var(--v2-muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 18px;
  white-space: nowrap;
}
.v2-figure .matchup-side.win .matchup-caption {
  color: var(--v2-blue);
}
.v2-figure .matchup-stack {
  display: grid;
  grid-template-columns: 14px max-content;
  column-gap: 6px;
  row-gap: 8px;
  align-items: center;
}
.v2-figure .matchup-stack .matchup-chip {
  justify-self: start;
}
.v2-figure .blog-matchup.matchup-sides .matchup-plus {
  text-align: center;
  font-size: 15px;
  line-height: 1;
}
.v2-figure .blog-matchup.matchup-sides .matchup-vs {
  margin: 0;
  align-self: center;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--v2-line);
  box-shadow: 0 1px 3px rgba(0,38,88,.08);
  color: var(--v2-navy);
  font-size: 11px;
}
@media (max-width: 575.98px) {
  .v2-figure .blog-matchup.matchup-sides {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px 0;
  }
  .v2-figure .matchup-side {
    width: 100%;
  }
}

/* ---------- closing + related ---------- */
.v2-related {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--v2-line);
}
.v2-related-label {
  color: var(--v2-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.v2-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 720px) {
  .v2-related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.v2-card {
  display: block;
  background: #fff;
  border: 1px solid var(--v2-line);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none !important;
  box-shadow: 0 1px 3px rgba(0,38,88,.05);
  transition: transform .18s ease, box-shadow .18s ease;
}
.v2-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -24px rgba(0,38,88,.35), 0 2px 6px rgba(0,38,88,.06);
}
.v2-card img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  border-bottom: 1px solid var(--v2-line);
}
.v2-card-body {
  padding: 14px 16px 16px;
}
.v2-card-title {
  color: var(--v2-navy);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}
.v2-card-tag {
  margin-top: 6px;
  color: var(--v2-ink2);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
}
.v2-card-more {
  margin-top: 10px;
  color: var(--v2-green2);
  font-size: 13px;
  font-weight: 800;
}

/* ---------- responsive ---------- */
@media (max-width: 767.98px) {
  .v2-hero-inner { padding: 44px 0 34px; }
  .v2-hero h1 { font-size: 34px; }
  .v2-deck { font-size: 17.5px; }
  .v2-byline { flex-wrap: wrap; }
  .v2-byline-meta { margin-left: 56px; width: 100%; white-space: normal; }
  .v2-layout { padding: 36px 0 56px; }
  article.v2-post p, article.v2-post li { font-size: 15.5px; line-height: 1.65; }
  article.v2-post h2 { font-size: 23px; margin-top: 40px; }
  article.v2-post .v2-pull p { font-size: 19px; }
  .v2-figure { padding: 20px 16px 18px; }
}

/* ============================================================
   Walkthrough components (screenshots, prompt copy, file downloads)
   ============================================================ */
.v2-shot {
  margin: 22px 0 30px;
  text-align: center;
}
.v2-shot img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  box-shadow: 0 14px 34px -22px rgba(0,38,88,.35), 0 1px 3px rgba(0,38,88,.05);
  cursor: zoom-in;
}
/* wide captures bleed into the empty right column on large screens (the left rail stays clear) */
@media (min-width: 1200px) {
  .v2-shot--wide {
    width: calc(100% + 240px);
  }
}
.v2-prompt-copy {
  margin-top: 10px;
}
.v2-copy-btn {
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  border: 1px solid var(--v2-line);
  border-radius: 999px;
  padding: 4px 12px;
  color: var(--v2-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.v2-copy-btn i { margin-right: 6px; }
.v2-copy-btn:hover {
  color: var(--v2-navy);
  border-color: var(--v2-blue);
}
.v2-copy-btn.v2-copied {
  color: var(--v2-green2);
  border-color: #BFEADC;
  background: #E8F8F2;
  cursor: default;
}
article.v2-post .v2-prompt-text {
  margin: 10px auto 0;
  max-width: 459px;
  text-align: left;
  color: var(--v2-ink2);
  font-size: 14px;
  line-height: 1.5;
  background: #F8FAFC;
  border: 1px solid var(--v2-line);
  border-radius: 6px;
  padding: 10px 14px;
  user-select: all;
  -webkit-user-select: all;
}
.v2-prompt-text[hidden] { display: none; }

.v2-dl-line { margin: 22px 0 30px; }
article.v2-post .v2-dl-line p { margin-bottom: 10px; }
.v2-files {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
article.v2-post a.v2-file {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 10px 16px 10px 12px;
  border: 1px solid var(--v2-line);
  border-radius: 10px;
  background: #fff;
  color: var(--v2-ink);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,38,88,.04);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
article.v2-post a.v2-file:hover {
  text-decoration: none;
  border-color: var(--v2-blue);
  box-shadow: 0 12px 28px -18px rgba(0,38,88,.4);
  transform: translateY(-1px);
}
.v2-file-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #E6F8F2;
  color: #06714F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.v2-file-body { display: flex; flex-direction: column; min-width: 0; }
.v2-file-name { color: var(--v2-ink); font-size: 14.5px; font-weight: 700; line-height: 1.25; }
.v2-file-meta { color: var(--v2-muted); font-size: 12px; font-weight: 600; letter-spacing: .02em; margin-top: 2px; }
.v2-file-dl { flex-shrink: 0; margin-left: 6px; color: var(--v2-muted); font-size: 14px; transition: color .15s ease; }
article.v2-post a.v2-file:hover .v2-file-dl { color: var(--v2-blue); }

/* ============================================================
   Essay extras: captions, bleed utility, compare cards, code, ordered lists
   ============================================================ */
.v2-shot-caption {
  margin: 10px auto 0;
  max-width: 620px;
  color: var(--v2-muted);
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 600;
}
@media (min-width: 1200px) {
  .v2-bleed { width: calc(100% + 240px); }
}
article.v2-post ol {
  margin: 0 0 24px;
  padding-left: 1.5em;
}
article.v2-post ol li {
  margin-bottom: 10px;
  padding-left: 6px;
}
article.v2-post ol li::marker {
  color: var(--v2-green2);
  font-weight: 800;
}
article.v2-post ol li:last-child { margin-bottom: 0; }

/* compare cards (side-by-side on wide screens) */
.v2-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
  margin: 30px 0;
}
@media (min-width: 992px) {
  .v2-compare { grid-template-columns: 1fr 1fr; }
}
.v2-compare-card {
  background: #fff;
  border: 1px solid var(--v2-line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 14px 34px -22px rgba(0,38,88,.28), 0 1px 3px rgba(0,38,88,.05);
}
.v2-compare-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #F3F5F9;
  border-bottom: 1px solid var(--v2-line);
  color: var(--v2-ink);
  font-size: 14.5px;
  font-weight: 800;
}
.v2-compare-head i { color: var(--v2-muted); }
.v2-compare-count {
  margin-left: auto;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--v2-ink2);
  background: #fff;
  border: 1px solid var(--v2-line);
  white-space: nowrap;
}
.v2-compare-card.is-good .v2-compare-head {
  background: #E8F8F2;
  border-bottom-color: #BFEADC;
  color: #06714F;
}
.v2-compare-card.is-good .v2-compare-head i { color: var(--v2-green); }
.v2-compare-card.is-good .v2-compare-count { color: #06714F; border-color: #BFEADC; }
.v2-compare-body { padding: 16px 18px 14px; }
article.v2-post .v2-compare-body ol { margin: 0; padding-left: 1.4em; }
article.v2-post .v2-compare-body li {
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 9px;
}
article.v2-post .v2-compare-body li::marker { color: var(--v2-muted); font-weight: 800; }
article.v2-post .v2-compare-card.is-good .v2-compare-body li::marker { color: var(--v2-green2); }

/* code block */
article.v2-post .v2-code {
  margin: 10px 0 4px;
  padding: 12px 16px;
  background: #F6F8FA;
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  font-family: 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--v2-ink);
  overflow-x: auto;
  white-space: pre;
}
.v2-code .code-key { color: var(--v2-blue2); font-weight: 600; }
.v2-code .code-val { color: #06714F; }

/* ---------- inline footnote popover ---------- */
.v2-fn {
  position: relative;
  border-bottom: 1px dotted var(--v2-blue);
  cursor: help;
  outline: none;
}
.v2-fn sup {
  color: var(--v2-blue);
  font-weight: 700;
  font-size: 12px;
}
.v2-fn-note {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  width: 320px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1px solid var(--v2-line);
  border-left: 3px solid var(--v2-blue);
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(31, 35, 51, 0.14);
  padding: 11px 14px;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--v2-ink2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease 0.2s, visibility 0s linear 0.35s;
  z-index: 30;
}
/* invisible bridge over the gap between trigger and note so hover survives the crossing */
.v2-fn-note::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}
.v2-fn:hover .v2-fn-note,
.v2-fn:focus .v2-fn-note,
.v2-fn:focus-within .v2-fn-note {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.15s ease;
}
