/* ============================================================================
   Agility Ops — blog (Console design system)
   1. Blog index: page head, featured card, article grid, data-visual panels.
   2. Article template for the `art-` family (agentic defence, CAIO, Claude Code
      tips, state of AI): light head, 720px reading column, hairline stat row,
      console-framed charts / figures, mono sources, light closing panel.
   Tokens come from /css/styles.css; load this file directly after it.
   ============================================================================ */

:root {
  --art-col:   760px;            /* reading column incl. gutters (matches blog-classic.css) */
  /* Data-viz marks (semantic, small: dots, 2px rules, bars) */
  --mark-ok:   #2f8f4f;
  --mark-warn: #b7791f;
  --mark-risk: #b4513f;
  --mark-info: var(--accent);
  --mark-mute: var(--faint);
  --viz-2:     #6d28d9;          /* second chart series ("violet" in chart legends) */
}

/* ============================================================================
   1. Blog index
   ============================================================================ */

.blog-hero .breadcrumb { margin-bottom: var(--s-5); }
.blog-hero .breadcrumb a + span::before {
  content: "/";
  color: var(--faint);
  margin-right: var(--s-2);
}

/* Featured article: one wide hairline card, visual + text */
.featured-article {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--s-10) var(--gutter) 0;
}
.featured-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  color: inherit;
  transition: border-color var(--dur) var(--ease);
}
.featured-card:hover { border-color: var(--hair-strong); }
@media (min-width: 880px) {
  .featured-card { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}
.featured-visual { min-height: 260px; }
@media (min-width: 880px) {
  .featured-visual { min-height: 360px; border-bottom: 0; border-right: 1px solid var(--hair); }
}
.featured-content {
  padding: var(--s-8) var(--s-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 880px) { .featured-content { padding: var(--s-10) var(--s-10); } }
.featured-content h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.6px;
  line-height: 1.15;
  margin-bottom: var(--s-4);
}
.featured-content p { color: var(--muted); line-height: 1.6; margin-bottom: var(--s-5); max-width: 58ch; }
.featured-content code {
  font-size: 12px;
  background: var(--surface-2);
  border: 1px solid var(--hair);
  border-radius: 3px;
  padding: 1px 5px;
  color: var(--ink);
}
.featured-meta,
.article-card-meta {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .04em;
  color: var(--muted);
}
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-text);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: gap var(--dur) var(--ease);
}
.featured-card:hover .read-more { gap: 10px; text-decoration: underline; text-underline-offset: 2px; }

/* Mono tag (category) */
.featured-tag {
  display: inline-block;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--accent-text);
  background: var(--accent-soft);
  padding: 3px 7px;
  border-radius: 3px;
  margin-bottom: var(--s-4);
}

/* Article grid */
.articles-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--s-16) var(--gutter) 0;
}
.articles-section > h2 {
  font-size: var(--fs-xl);
  letter-spacing: -0.5px;
  padding-bottom: var(--s-4);
  margin-bottom: var(--s-6);
  border-bottom: 1px solid var(--hair);
}
.articles-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-5); }
@media (min-width: 640px) { .articles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .articles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.article-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  color: inherit;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.article-card:hover { border-color: var(--hair-strong); transform: translateY(-2px); }
.article-card .cv { min-height: 188px; }
.article-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: var(--s-5);
}
.article-card-body .featured-tag { margin-bottom: var(--s-3); }
.article-card-body h3 {
  font-size: var(--fs-lg);
  letter-spacing: -0.3px;
  line-height: 1.25;
  margin-bottom: var(--s-2);
}
.article-card:hover h3 { color: var(--accent-text); }
.article-card-body p { color: var(--muted); font-size: var(--fs-sm); line-height: 1.6; margin-bottom: var(--s-4); }
.article-card-meta { margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--hair); }

/* Data-visual card headers: light console mini panels (no imagery) */
.cv {
  --cv-mark: var(--accent);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: var(--s-2);
  padding: var(--s-10) var(--s-5) var(--s-4);
  min-height: 200px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--hair);
}
.cv::before {                     /* category mark: one short 2px rule */
  content: "";
  position: absolute;
  top: var(--s-5);
  left: var(--s-5);
  width: 22px;
  height: 2px;
  background: var(--cv-mark);
}
.cv::after {                      /* console dots, top right */
  content: "";
  position: absolute;
  top: calc(var(--s-5) - 3px);
  right: var(--s-5);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hair-strong);
  box-shadow: -13px 0 0 var(--hair-strong), -26px 0 0 var(--hair-strong);
}
.cv .cv-stat {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.cv .cv-stat span { color: var(--muted); }
.cv .cv-label { font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-2); max-width: 36ch; }
.cv .cv-src {
  align-self: stretch;
  margin-top: var(--s-2);
  padding-top: var(--s-2);
  border-top: 1px solid var(--hair);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.featured-visual { padding: var(--s-12) var(--s-6) var(--s-5); justify-content: center; }
.featured-visual::before { top: var(--s-6); left: var(--s-6); }
.featured-visual::after { top: calc(var(--s-6) - 3px); right: var(--s-6); }
.featured-visual .cv-stat { font-size: clamp(34px, 4vw, 48px); }
.featured-visual .cv-label { font-size: var(--fs-base); max-width: 44ch; }

.cv-blue   { --cv-mark: var(--accent); }
.cv-violet { --cv-mark: var(--viz-2); }
.cv-cyan   { --cv-mark: #0891b2; }
.cv-green  { --cv-mark: #10b981; }
.cv-amber  { --cv-mark: #c2410c; }
.cv-au     { --cv-mark: var(--mark-warn); }

/* Mini bar glyph (analytics topics) */
.cv-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 40px;
  margin-bottom: var(--s-1);
  padding-bottom: 1px;
  border-bottom: 1px solid var(--hair-strong);
}
.cv-bars i { display: block; width: 11px; border-radius: 2px 2px 0 0; background: var(--hair-strong); }
.cv-bars i.hi { background: var(--cv-mark); }

/* ============================================================================
   2. Article template (`art-` family)
   ============================================================================ */

.art-wrap,
.art-narrow {
  width: 100%;
  max-width: var(--art-col);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.art-narrow .art-narrow { max-width: none; padding-inline: 0; }

/* ---- Head (light, on canvas, hairline below) ---------------------------- */
.art-hero {
  padding-block: var(--s-8) var(--s-8);
  border-bottom: 1px solid var(--hair);
}
@media (min-width: 880px) { .art-hero { padding-block: var(--s-12) var(--s-10); } }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  margin-bottom: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--dur) var(--ease);
}
.back-link:hover { color: var(--accent-text); }
.art-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.art-eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 1px;
  background: currentColor;
  margin-right: var(--s-2);
  vertical-align: 1px;
  opacity: .8;
}
.art-hero h1 {
  font-size: clamp(32px, 4.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -1.2px;
  margin: var(--s-4) 0 var(--s-5);
}
.art-hero .stand { font-size: var(--fs-lg); line-height: 1.6; color: var(--ink-2); }
.art-byline {
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid var(--hair);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.7;
  color: var(--muted);
}
.art-byline b { font-weight: 500; color: var(--ink-2); }

/* ---- Hero stat row: hairline-separated cells ---------------------------- */
.hero-stats {
  max-width: var(--art-col);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.hero-stats-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--hair);
}
@media (min-width: 880px) { .hero-stats-inner { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hs {
  --hs-mark: var(--mark-info);
  position: relative;
  min-width: 0;
  padding: var(--s-6) var(--s-4) var(--s-5);
  border-left: 1px solid var(--hair);
}
.hs::before {
  content: "";
  position: absolute;
  top: -1px;
  left: var(--s-4);
  width: 22px;
  height: 2px;
  background: var(--hs-mark);
}
.hs.warn { --hs-mark: var(--mark-warn); }
.hs.risk { --hs-mark: var(--mark-risk); }
.hs:nth-child(odd) { border-left: 0; padding-left: 0; }
.hs:nth-child(odd)::before { left: 0; }
.hs:nth-child(n+3) { border-top: 1px solid var(--hair); }
@media (min-width: 880px) {
  .hs:nth-child(odd) { border-left: 1px solid var(--hair); padding-left: var(--s-4); }
  .hs:nth-child(odd)::before { left: var(--s-4); }
  .hs:first-child { border-left: 0; padding-left: 0; }
  .hs:first-child::before { left: 0; }
  .hs:nth-child(n+3) { border-top: 0; }
}
.hs .n {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hs .n small { font-size: .5em; letter-spacing: -0.01em; color: var(--muted); }
.hs .l {
  margin-top: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .02em;
  line-height: 1.55;
  color: var(--muted);
}
.hs .l b { font-weight: 500; color: var(--ink); }
.hero-stats-src {
  padding-block: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .02em;
  line-height: 1.55;
  color: var(--muted);
}

/* ---- Reading column ------------------------------------------------------ */
.art-body {
  padding-top: var(--s-10);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
}
.art-body p { margin: 0 0 var(--s-5); }
.art-body p.lead { font-size: 19px; line-height: 1.6; color: var(--ink); }
.art-body ul, .art-body ol { margin: 0 0 var(--s-5); padding-left: 1.4em; }
.art-body ul { list-style: disc; }
.art-body ol { list-style: decimal; }
.art-body li { margin-bottom: var(--s-2); }
.art-body li::marker { color: var(--muted); }
.art-body p a,
.art-body li a,
.src-i a,
.sources p a {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-color: var(--hair-strong);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--dur) var(--ease);
}
.art-body p a:hover,
.art-body li a:hover,
.src-i a:hover,
.sources p a:hover { color: var(--accent-hover); text-decoration-color: currentColor; }
.art-body code {
  font-family: var(--font-mono);
  font-size: .82em;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--hair);
  border-radius: 3px;
  padding: 1px 5px;
}
.art-body kbd {
  font-family: var(--font-mono);
  font-size: .78em;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hair-strong);
  border-bottom-width: 2px;
  border-radius: var(--r-1);
  padding: 1px 6px;
  white-space: nowrap;
}

/* Section kicker: mono eyebrow above each h2 */
.art-kick {
  display: block;
  margin-top: var(--s-12);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.art-kick::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 1px;
  background: currentColor;
  margin-right: var(--s-2);
  vertical-align: 1px;
  opacity: .8;
}
.art-body h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  letter-spacing: -0.6px;
  line-height: 1.2;
  margin: var(--s-2) 0 var(--s-4);
}
.art-body h3 {
  font-size: clamp(18px, 2vw, 21px);
  letter-spacing: -0.3px;
  margin: var(--s-8) 0 var(--s-3);
}
.art-body h4 { font-size: 16px; letter-spacing: -0.2px; }

/* ---- Pull quote ---------------------------------------------------------- */
.pull {
  margin: var(--s-8) 0;
  padding: var(--s-1) 0 var(--s-1) var(--s-6);
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2.3vw, 24px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.pull span {
  display: block;
  margin-top: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.55;
  color: var(--muted);
}

/* ---- Callout (formerly the dark box) ------------------------------------- */
.dark-box {
  margin: var(--s-8) 0;
  padding: var(--s-6);
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-3) var(--r-3) 0;
  color: var(--ink-2);
}
.dark-box h3 { margin: 0 0 var(--s-3); font-size: var(--fs-lg); letter-spacing: -0.3px; }
.dark-box p { font-size: 16px; line-height: 1.65; margin-bottom: var(--s-3); }
.dark-box p:last-child { margin-bottom: 0; }
.dark-box b { color: var(--ink); }
.dark-box code { background: var(--surface); }

/* ---- Stat callout -------------------------------------------------------- */
.stat-callout {
  margin: var(--s-8) 0;
  padding: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-1);
}
.stat-callout .stat-number {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 56px);
  line-height: 1;
  letter-spacing: -1.5px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-callout .stat-label { margin-top: var(--s-3); font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.stat-callout .stat-source {
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--hair);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--muted);
}

/* ---- Posture / status cards ---------------------------------------------- */
.posture-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  margin: var(--s-8) 0;
}
@media (min-width: 560px) { .posture-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.posture {
  --p-mark: var(--mark-info);
  position: relative;
  min-width: 0;
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-1);
}
.posture::before {
  content: "";
  position: absolute;
  top: -1px;
  left: var(--s-5);
  width: 22px;
  height: 2px;
  background: var(--p-mark);
}
.posture.p1 { --p-mark: var(--mark-ok); }
.posture.p2 { --p-mark: var(--mark-warn); }
.posture.p3 { --p-mark: var(--mark-info); }
.posture.p4 { --p-mark: var(--mark-mute); }
.posture h4 {
  margin: 0 0 var(--s-1);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.posture .pshare {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.posture p { margin: var(--s-2) 0 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.posture p b { color: var(--ink); }
/* Without a big figure (.pshare) the title is the headline */
.posture h4:not(:has(+ .pshare)) {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  letter-spacing: -0.3px;
  text-transform: none;
  color: var(--ink);
}

/* ---- Bar charts: console panel ------------------------------------------- */
.chart {
  margin: var(--s-8) 0;
  padding-bottom: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--hair-strong);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.chart > * { padding-inline: var(--s-5); }
.chart h4 {
  margin: 0;
  padding-block: 10px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--hair);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--ink);
}
.chart .csub {
  margin: var(--s-4) 0 var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .02em;
  line-height: 1.55;
  color: var(--muted);
}
.chart .csub:last-child {
  margin: var(--s-4) 0 calc(var(--s-4) * -1);
  padding-block: 9px;
  background: var(--surface-2);
  border-top: 1px solid var(--hair);
}
.bar-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: var(--s-3);
  align-items: center;
  margin: var(--s-2) 0;
}
.bar-row .bl { font-size: var(--fs-sm); line-height: 1.35; color: var(--ink-2); text-align: right; }
.track {
  position: relative;
  height: 24px;
  background: var(--canvas-2);
  border: 1px solid var(--hair);
  border-radius: 3px;
  overflow: hidden;
}
.fill {
  height: 100%;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: var(--s-2);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.fill.c2 { background: var(--viz-2); }
@media (max-width: 559.98px) {
  .bar-row { grid-template-columns: 104px minmax(0, 1fr); }
  .bar-row .bl { font-size: 12px; }
  .chart > * { padding-inline: var(--s-4); }
}

/* ---- Futurist / timeline band (light) ------------------------------------ */
.future {
  margin: var(--s-12) 0;
  padding-block: var(--s-12);
  background: var(--canvas-2);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.art-narrow .future {           /* nested inside the column: a panel, not a band */
  padding: var(--s-6);
  border: 1px solid var(--hair);
  border-radius: var(--r-3);
}
.future .art-kick { margin-top: 0; }
.future h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  letter-spacing: -0.6px;
  line-height: 1.2;
  margin: var(--s-2) 0 var(--s-4);
}
.future p { margin: 0 0 var(--s-4); }
.future p:last-child { margin-bottom: 0; }
.disclaimer {
  margin: 0 0 var(--s-6);
  padding: var(--s-4) var(--s-5);
  background: var(--sand);
  border-radius: var(--r-2);
  color: var(--sand-ink);
  font-size: 15px;
  line-height: 1.65;
}
.disclaimer b { color: var(--sand-ink); }
.horizon {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  margin: var(--s-6) 0;
}
@media (min-width: 560px) { .horizon { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hz {
  min-width: 0;
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-3);
}
.hz .yr {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.hz h4 { margin: var(--s-2) 0; font-size: 17px; letter-spacing: -0.3px; }
.hz p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }

/* ---- Action list --------------------------------------------------------- */
.act {
  margin: var(--s-8) 0;
  padding: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-1);
}
.act h3 { margin: 0 0 var(--s-2); }
.art-body .act ol { margin: var(--s-3) 0 0; padding-left: 1.6em; list-style: decimal-leading-zero; }
.act li { margin: var(--s-3) 0; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.act li::marker { font-family: var(--font-mono); font-size: 12px; color: var(--accent-text); }
.act li b { color: var(--ink); }

/* ---- Key table ----------------------------------------------------------- */
.keys {
  width: 100%;
  margin: var(--s-6) 0;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-3);
  overflow: hidden;
  font-size: 15px;
}
.keys th {
  padding: 10px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--hair);
  text-align: left;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.keys td { padding: 12px 16px; border-top: 1px solid var(--hair); vertical-align: top; line-height: 1.6; }
.keys tbody tr:first-child td { border-top: 0; }
.keys td:first-child { width: 1%; white-space: nowrap; }
.keys td b { color: var(--ink); }
@media (max-width: 559.98px) {
  .keys td:first-child { white-space: normal; }
  .keys td, .keys th { padding: 10px 12px; }
}

/* ---- Figures (self-made SVG) in a console frame --------------------------- */
.fig {
  margin: var(--s-8) 0;
  background: var(--surface);
  border: 1px solid var(--hair-strong);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.fig svg { display: block; width: calc(100% - 2 * var(--s-5)); height: auto; margin: var(--s-5); }
.fig figcaption,
.shot figcaption {
  padding: 10px var(--s-5);
  background: var(--surface-2);
  border-top: 1px solid var(--hair);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .01em;
  line-height: 1.6;
  color: var(--muted);
}
.fig figcaption b,
.shot figcaption b { font-weight: 500; color: var(--ink); }
.fig figcaption code,
.shot figcaption code { font-size: 1em; background: var(--surface); }
.fig .fh   { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; fill: var(--ink); }
.fig .fh-w { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; fill: var(--surface); }
.fig .fb   { font-family: var(--font-body); font-size: 12.5px; fill: var(--ink-2); }
.fig .fb-w { font-family: var(--font-body); font-size: 12.5px; fill: var(--hair-solid); }
.fig .fs   { font-family: var(--font-body); font-size: 11px; fill: var(--muted); }
.fig .fk   { font-family: var(--font-mono); font-weight: 500; font-size: 10.5px; letter-spacing: .06em; fill: var(--accent-text); }
.fig .fn   { font-family: var(--font-display); font-weight: 500; font-size: 30px; letter-spacing: -0.03em; fill: var(--ink); }
.fig .fn-w { font-family: var(--font-display); font-weight: 500; font-size: 30px; letter-spacing: -0.03em; fill: var(--surface); }
/* Former dark figures: light like the rest (one light page, no dark panels) */
.fig.dark rect { fill: var(--surface-2); stroke: var(--hair-solid); }
.fig.dark rect[fill^="url"] { fill: var(--sky); stroke: none; }
.fig.dark .fh-w, .fig.dark .fn-w { fill: var(--ink); }
.fig.dark .fb-w { fill: var(--ink-2); }
/* Phones: keep figure text legible, scroll the drawing inside its frame */
@media (max-width: 640px) {
  .fig { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .fig svg { width: 620px; min-width: 620px; max-width: none; margin: var(--s-4); }
  .fig figcaption {
    position: sticky;
    left: 0;
    width: calc(100vw - 2 * var(--gutter) - 2px);
    padding-inline: var(--s-4);
  }
}

/* ---- Screenshots in a console frame -------------------------------------- */
.shot {
  margin: var(--s-8) 0;
  background: var(--surface);
  border: 1px solid var(--hair-strong);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.shot a { display: block; }
.shot img { display: block; width: 100%; height: auto; }

/* ---- Claude box (editorial reference) ------------------------------------ */
.claude-box {
  margin: var(--s-8) 0;
  padding: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-1);
}
.claude-box .cb-mark { display: inline-flex; color: var(--ink); margin-bottom: var(--s-4); }
.claude-box .cb-mark svg { height: 24px; width: auto; }
.claude-box h3 { margin: 0 0 var(--s-3); }
.claude-box p { font-size: 16px; }
.art-body .claude-box ul { margin: var(--s-3) 0 0; padding-left: 1.3em; }
.claude-box li { margin: var(--s-2) 0; font-size: 16px; line-height: 1.65; }
.claude-box a:not(.cb-mark) {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-color: var(--hair-strong);
  text-underline-offset: 3px;
}
.claude-box a:not(.cb-mark):hover { color: var(--accent-hover); text-decoration-color: currentColor; }
.art-body .cred {
  margin: var(--s-5) 0 0;
  padding-top: var(--s-3);
  border-top: 1px solid var(--hair);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .02em;
  line-height: 1.6;
  color: var(--muted);
}

/* ---- Offer cards ---------------------------------------------------------- */
.offer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  margin: var(--s-6) 0 var(--s-2);
}
@media (min-width: 620px) { .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.offer {
  --o-mark: var(--accent);
  position: relative;
  display: block;
  min-width: 0;
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-1);
  color: inherit;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.offer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: var(--s-5);
  width: 22px;
  height: 2px;
  background: var(--o-mark);
}
.offer.o2 { --o-mark: var(--ink-2); }
.offer:hover { border-color: var(--hair-strong); transform: translateY(-2px); }
.offer .ok {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.offer h4 { margin: var(--s-2) 0; font-size: 17px; letter-spacing: -0.3px; }
.offer p { margin: 0 0 var(--s-3); font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.offer .go {
  display: inline-flex;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--accent-text);
}
.offer:hover .go { text-decoration: underline; text-underline-offset: 2px; }

/* ---- Sources: mono-labelled hairline list -------------------------------- */
.sources {
  margin-top: var(--s-12);
  padding-block: var(--s-12);
  background: var(--canvas-2);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.sources h2 {
  margin: 0 0 var(--s-3);
  font-size: var(--fs-xl);
  letter-spacing: -0.5px;
}
.sources > .art-wrap > p { font-size: 15px; line-height: 1.7; color: var(--ink-2); margin-bottom: var(--s-3); }
.sources > .art-wrap > p.src-note,
.sources .src-note {
  margin-top: var(--s-4);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .02em;
  line-height: 1.65;
  color: var(--muted);
}
.srcs { margin-top: var(--s-6); border-top: 1px solid var(--hair-strong); }
.src-i {
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--hair);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.src-i b {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- Closing call to action (light panel) -------------------------------- */
.article-cta {
  margin: var(--s-12) 0 var(--s-16);
  padding: var(--s-8);
  background: var(--canvas-2);
  border: 1px solid var(--hair);
  border-radius: var(--r-3);
  text-align: left;
}
.article-cta h3 { margin: 0 0 var(--s-3); font-size: var(--fs-xl); }
.article-cta p { margin: 0 0 var(--s-5); font-size: 16px; line-height: 1.6; color: var(--muted); }
.article-cta a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 18px;
  background: var(--btn-dark);
  color: var(--btn-dark-ink);
  border: 1px solid var(--btn-dark);
  border-radius: var(--r-1);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: background var(--dur) var(--ease);
}
.article-cta a:hover { background: var(--ink-2); border-color: var(--ink-2); color: var(--btn-dark-ink); }

@media (max-width: 600px) {
  .art-body { font-size: 16.5px; }
  .article-cta, .stat-callout, .act, .dark-box, .claude-box { padding: var(--s-5); }
}
