/* Tokens: design.md §8 (type scale from §8, chosen 2026-11-26 over tokens.json and the mockups). */
:root {
  --bg: #0A0E1A;
  --surface: #0F1629;
  --card: #141D35;
  --border: #1E2D50;
  --blue-700: #0D2461;
  --blue-500: #1A4FBF;
  --blue-400: #2563EB;
  --blue-300: #3B82F6;
  --blue-200: #60A5FA;
  --signal-cyan: #22D3EE;
  --signal-green: #10B981;
  --signal-amber: #F59E0B;
  --gold: #EAB308;
  --text-primary: #F0F4FF;
  --text-secondary: #8B9CC8;
  --text-tertiary: #4A5A80;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-18: 72px; --space-28: 112px;

  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px; --radius-pill: 999px;

  --font: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --accent: var(--signal-cyan);

  --fs-display: 26px; --lh-display: 1.18;
  --fs-h2: 22px;
  --fs-h3: 17px;
  --fs-lead: 17px;
  --fs-body: 17px;
  --fs-small: 14px;
  --fs-eyebrow: 12px;
  --fs-button: 15px;

  --tap: 44px;
  --section-pad: var(--space-8);
  --header-h: 49px;  /* below 960px, once scrolled: the nav row only (the logo row scrolls away) */
  --bar-h: calc(var(--tap) + 2 * var(--space-2) + 1px + env(safe-area-inset-bottom));
}

@media (min-width: 960px) {
  :root {
    --fs-display: 44px; --lh-display: 1.15;
    --fs-h3: 19px;
    --fs-lead: 19px;
    --section-pad: var(--space-12);
    --header-h: 64px;
    --bar-h: 0px;
  }
}

/* A page's subject sets its accent; so does a card's, so a pillar eyebrow on an index page takes its subject's
   colour (Zeeshan, 2026-11-30). Operations and AI in operations are cyan, the default. */
[data-pillar="ma"] { --accent: var(--blue-200); }
[data-pillar="leadership"] { --accent: var(--blue-300); }
[data-pillar="cs"] { --accent: var(--signal-green); }
[data-pillar="operations"], [data-pillar="ai"] { --accent: var(--signal-cyan); }

/* Base */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: calc(var(--header-h) + var(--space-2));
  scroll-padding-bottom: var(--bar-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  text-align: left;
  padding-bottom: var(--bar-h); /* the fixed bar never covers the footer */
}

h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-200); text-underline-offset: 4px; transition: color 150ms; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--signal-cyan);
  outline-offset: 2px;
}
main:focus { outline: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section { padding: var(--section-pad) 0; }

.display {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  font-weight: 800;
}

h2 { font-size: var(--fs-h2); line-height: 1.25; font-weight: 800; }
/* No line breaks the width does not force (Zeeshan, 2026-11-30): running text fills its column, with no 680px cap. */

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--text-secondary);
  margin-top: var(--space-4);
}

.eyebrow {
  display: inline-block;
  font-size: var(--fs-eyebrow);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: var(--space-1);
  border-bottom: 3px solid var(--accent);
}

/* Buttons. Exactly one filled button is ever on screen: the persistent-action one. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--tap);
  padding: 0 18px;
  border-radius: var(--radius-md);
  font-size: var(--fs-button);
  line-height: 1.2;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms, background-color 150ms, border-color 150ms;
}
/* Buttons change colour on hover; only text links underline (Zeeshan, 2026-11-27). An outline button never fills
   with cyan on hover, so the persistent filled button stays the only cyan-filled one on screen. */
.btn:hover { text-decoration: none; }
.btn-outline {
  border: 1px solid var(--text-secondary);
  color: var(--text-primary);
  background: transparent;
}
.btn-outline:hover { background: var(--card); border-color: var(--accent); color: var(--accent); }
.btn-filled {
  border: 1px solid var(--signal-cyan);
  background: var(--signal-cyan);
  color: var(--bg);
}
.btn-filled:hover {
  --btn-hover: color-mix(in srgb, var(--signal-cyan) 75%, var(--text-primary));
  background: var(--btn-hover);
  border-color: var(--btn-hover);
  color: var(--bg);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 20;
  padding: var(--space-3) var(--space-4);
  background: var(--signal-cyan);
  color: var(--bg);
  font-weight: 700;
  border-radius: var(--radius-md);
}
.skip-link:focus { top: var(--space-2); }

/* Header: sticky at every width. Two rows below 960px, one row from 960px. Below 960px the header sticks at a
   negative top the height of the logo row, so the logo scrolls away and only the nav links stay pinned; at the top of
   the page both rows show (Zeeshan, 2026-11-30: more room for the content on phones). */
.site-header {
  position: sticky;
  top: calc(-1 * (var(--space-1) + var(--tap)));
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 22px;
  padding-top: var(--space-1);
  padding-bottom: var(--space-1);
}
/* Below 960px the logo line and the nav links are centred (Zeeshan, 2026-11-30). */
.header-logo {
  flex: 1 1 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
}
.header-nav { flex: 1 1 100%; display: flex; justify-content: center; align-items: center; column-gap: var(--space-2); }
.header-logo { gap: var(--space-2); color: var(--text-primary); text-decoration: none; }
.header-logo:hover { text-decoration: none; } /* the logo never underlines (Zeeshan, 2026-11-27); beats the global a:hover */
.header-logo img { width: auto; height: 32px; flex: none; } /* the ZG mark is 96 : 86, not square */
/* Below 960px the mark moves from the logo row (which scrolls away) to the pinned nav row, so Home is one tap from
   anywhere on the page; the logo row keeps the name, still linked home (Zeeshan, 2026-11-30). Below 360px the row has
   no room for a 44px mark, so it is left out: Home is the logo at the top of the page and the footer's first link. */
.header-logo img { display: none; }
.header-nav .header-home { display: none; }
@media (min-width: 360px) {
  .header-nav .header-home { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: var(--tap); min-height: var(--tap); }
}
.header-home img { width: auto; height: 28px; }
/* Mark + name as text (copy.md §12, 2026-11-27): larger than the 14px nav, capitals like the lockup. */
.header-name {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
/* Four links fit one row at 320px. Below 400px the gaps are 8px, so the mark and the four links fit at 360px. */
.header-nav ul { display: flex; flex-wrap: wrap; justify-content: center; column-gap: var(--space-2); }
@media (min-width: 400px) {
  .header-nav { column-gap: var(--space-3); }
  .header-nav ul { column-gap: var(--space-3); }
}
.header-nav a,
.footer-links a,
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--text-primary);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
}
.text-link { gap: var(--space-1); } /* keeps the space before a link's arrow */
.header-nav a:hover,
.footer-links a:hover,
.text-link:hover { text-decoration: underline; }
.header-nav a[aria-current="page"] {
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.header-actions { display: none; }

@media (min-width: 960px) {
  .header-row { flex-wrap: nowrap; }
  .site-header { top: 0; }
  .header-logo { flex: 1 1 auto; justify-content: flex-start; }
  .header-nav { flex: none; }
  .header-logo img { display: block; }
  .header-nav .header-home { display: none; }
  .header-name { font-size: 20px; }
  .header-actions { display: flex; align-items: center; gap: var(--space-3); }
  .header-nav ul { column-gap: 22px; }
}

/* Bottom action bar: below 960px only, fixed from page load, never hides. */
.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3) calc(var(--space-2) + env(safe-area-inset-bottom)); /* 8px above and below 44px buttons (Zeeshan, 2026-11-30) */
  background: var(--surface);
  border-top: 1px solid var(--text-tertiary); /* stronger than --border so the bar stands off the content (decoration, not text) */
}
.action-bar .btn { flex: 1 1 0; min-width: 0; padding: 0 var(--space-1); } /* equal thirds even at 320px */

@media (min-width: 960px) {
  .action-bar { display: none; }
}

/* Newsletter block that closes a page: the same block as Home's, on the page background (Zeeshan, 2026-11-29). */
.subscribe-band {
  border-top: 1px solid var(--border);
  padding: var(--section-pad) 0;
}

/* Footer: one column on phones, three from 640px. */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--section-pad) 0;
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-8) var(--space-4); }
.footer-group { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.footer-name { font-weight: 700; }
.footer-meta { color: var(--text-secondary); font-size: 15px; }
.footer-small { margin-top: var(--space-8); font-size: var(--fs-small); }
.footer-links { display: flex; flex-wrap: wrap; column-gap: 20px; }

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ── Home and shared page components (build step 2) ── */
.section + .section { border-top: 1px solid var(--border); }
.stack { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-6); }
.stack > .grid { align-self: stretch; }
.stack > .lead { margin-top: 0; }  /* the stack gap already spaces it */
.btn-block { align-self: stretch; }

/* Grids: mobile first, no orphan cards (design.md §8 Layout). */
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-half { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-12); align-items: start; }
}

/* Hero: one column below 960px, 1.3 : 1 from 960px. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
.hero-main { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.hero-main .lead { margin-top: 0; }
.hero-side { display: flex; flex-direction: column; gap: var(--space-6); }
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: center; }
}
/* Searching, from 960px: the job box (taller with its fit labels) takes the right column alone, and the numbers
   sit under the headline. CSS only, keyed on the box being there, so the landed hero and all markup are unchanged. */
@media (min-width: 960px) {
  .hero:has(.job-box) { align-items: start; row-gap: var(--space-6); grid-template-rows: auto auto 1fr; }
  .hero:has(.job-box) .hero-side { display: contents; }
  .hero:has(.job-box) .hero-main { grid-column: 1; grid-row: 1; }
  .hero:has(.job-box) .job-box { grid-column: 2; grid-row: 1 / span 3; }
  .hero:has(.job-box) .hero-side > .stats { grid-column: 1; grid-row: 2; max-width: 440px; }
  .hero:has(.job-box) .hero-side > .caption { grid-column: 1; grid-row: 3; max-width: 440px; }
}

/* Job-search box: only ever inside {% jobsearch %}. */
.job-box {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--card);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
}
.job-title { font-size: var(--fs-h3); line-height: 1.3; font-weight: 700; }
.job-text { color: var(--text-secondary); }
.job-box .eyebrow { align-self: flex-start; }
.closing-question { font-size: var(--fs-h2); line-height: 1.3; font-weight: 700; }
/* The closing question is the same card as the job-search box, beside the newsletter from 960px (Zeeshan, 2026-11-29). */
.closing-box { padding: var(--space-6); background: var(--card); border: 1px solid var(--accent); border-radius: var(--radius-lg); }
.closing-box { display: flex; flex-direction: column; justify-content: center; gap: var(--space-6); }
.close-row { row-gap: var(--space-8); }
.close-row .closing-box { order: -1; } /* below 960px the question comes first (Zeeshan, 2026-11-30) */
@media (min-width: 960px) {
  .close-row { align-items: stretch; }
  .close-row .closing-box { order: 0; } /* newsletter left, question right */
}
/* Where I fit labels (copy.md §3.1, 2026-11-27): plain text in a list, never links; nothing changes on hover. */
.fit-label { margin-top: var(--space-2); }
.fit-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.fit-tags li {
  font-size: var(--fs-small);
  line-height: 1.3;
  color: var(--text-secondary);
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: default;
}
.wide-only { display: none; }
.button-pair { gap: var(--space-3); }
.button-pair .btn { flex: 1 1 0; }
@media (min-width: 960px) {
  .wide-only { display: flex; }
}

/* Stats */
/* Columns size to their content so a label never overflows into its neighbour at 320px; labels never wrap (§8). */
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; column-gap: var(--space-2); }
.stat { display: flex; flex-direction: column; gap: var(--space-1); }
.stat-number { font-size: 28px; line-height: 1; font-weight: 800; }
.stat-label { font-size: 13px; color: var(--text-secondary); white-space: nowrap; }
.caption { font-size: var(--fs-small); color: var(--text-secondary); }
@media (min-width: 960px) {
  .stat-number { font-size: 40px; }
  .stat-label { font-size: var(--fs-small); }
}

/* Cards */
.card {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-4);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
}
/* The card is one link; only one line underlines on hover: the cue on text cards, the title on story cards. */
.card:hover { text-decoration: none; }
.story-card:hover .card-title,
.text-card:hover .card-cue { text-decoration: underline; }
.text-card { flex-direction: column; gap: var(--space-2); }
.card-text { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.card-title { font-size: var(--fs-h3); line-height: 1.3; font-weight: 700; } /* same size as an h2 or an h3 */
.card-line { font-size: 15px; line-height: 1.55; color: var(--text-secondary); }
.card-cue { font-size: 13px; color: var(--text-secondary); }
.card-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
/* A framework diagram is dark on a dark card: it sits in a frame, and is scaled to fit, never cropped. Where a card
   thumbnail is small it takes a wide box, not a square (Zeeshan, 2026-11-30). The diagrams are 1.84 : 1, so `contain`
   leaves a hairline of page background above and below in a 16:9 box rather than cutting the sides. */
.card-thumb.thumb-diagram { width: 112px; height: 63px; object-fit: contain; border: 1px solid var(--text-tertiary); background: var(--bg); }
.card-thumb-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-700);
  border: 1px solid var(--border);
}
.card-thumb-logo img { width: 40%; height: auto; max-width: 64px; }
/* From the grid's column breakpoint, the story card stacks: 16:9 image on top, text below. */
@media (min-width: 640px) {
  .grid .story-card { flex-direction: column; }
  .grid .story-card .card-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}
@media (min-width: 960px) {
  .card { padding: var(--space-6); }
}

.edge-line { color: var(--text-secondary); } /* one line on desktop: no 680px cap */
.newsletter-block { gap: var(--space-4); }

/* Screen-reader-only text, e.g. "(opens in a new tab)". */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Framework and result pages (design.md §5.3): top block, then a 2 : 1 body from 960px. */
.stack-tight { gap: var(--space-4); }
.tagline { color: var(--text-secondary); }
.page-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-12); }
.page-main, .page-side { display: flex; flex-direction: column; gap: var(--space-8); min-width: 0; }
.block { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.block > :not(.eyebrow) { align-self: stretch; }
.block > p { color: var(--text-secondary); }
@media (min-width: 960px) {
  .page-body { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  /* In the side column the story card stacks like the mockup: image on top, text below. */
  .page-side .story-card { flex-direction: column; }
  .page-side .story-card .card-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  /* The article cards under it stack the same way (design.md §8: "Card, article: as story card"). */
  .page-side .article-card { flex-direction: column; align-items: stretch; }
  .page-side .article-card .article-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}

.breadcrumb { font-size: var(--fs-small); color: var(--text-secondary); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; padding: 0 var(--space-2); }
.breadcrumb a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--text-primary); font-weight: 600; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.diagram { width: 100%; height: auto; border-radius: var(--radius-md); }

.layers { display: flex; flex-direction: column; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.layer-card { flex-direction: column; gap: var(--space-2); }
.layer-number { color: var(--accent); margin-right: var(--space-1); }

.signals { display: flex; flex-direction: column; gap: var(--space-2); color: var(--text-secondary); }
.signals li { position: relative; padding-left: var(--space-6); }
.signals li::before { content: ""; position: absolute; left: 4px; top: 0.75em; width: 8px; height: 2px; background: var(--accent); }

.pull-quote {
  margin: 0;
  padding: var(--space-2) 0 var(--space-2) var(--space-6);
  border-left: 3px solid var(--accent);
  font-size: var(--fs-h3);
  line-height: 1.45;
  font-weight: 700;
}

.article-card { align-items: center; }
.article-card:hover .card-title { text-decoration: underline; }
.article-thumb { flex-shrink: 0; width: 128px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); background: var(--bg); }
/* A carousel slide is 4:5: it shows whole in its frame, so its title is never cut (copy.md §10 T1; Zeeshan,
   2026-11-28), with an outline that sets the dark slide off the dark frame (Zeeshan, 2026-11-29). */
.slide-frame { position: relative; display: block; overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.slide-frame .slide {
  position: absolute; top: 6%; left: 50%; transform: translateX(-50%);
  height: 88%; width: auto; max-width: none;
  border: 1px solid var(--text-secondary); border-radius: 2px;
}

/* Type labels on cards, where cards of different types sit together: one colour per type (Zeeshan, 2026-11-29). */
.kind-framework { color: var(--signal-cyan); border-color: var(--signal-cyan); }
.kind-result { color: var(--signal-green); border-color: var(--signal-green); }
.kind-article { color: var(--blue-200); border-color: var(--blue-200); }
.kind-carousel { color: var(--signal-amber); border-color: var(--signal-amber); }
.nowrap { white-space: nowrap; }

/* ── All remaining pages (2026-11-28) ── */

/* Pillar eyebrow inside a story card (index pages): as wide as its text, like every eyebrow. */
.card-text .eyebrow { align-self: flex-start; }

/* Result images (copy.md §10): the subject is centred in a 16:9 picture (remade 2026-11-30), so every crop is
   centred, and a card that stacks its image shows the whole picture in the shared 16:9 frame. */
.thumb-result { object-position: 50% 50%; }
@media (min-width: 640px) {
  /* Pairs (design.md §8): two columns from 640px. .grid-half is the 960px two-column layout, with a wider gap. */
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* The five frameworks stay one column until 960px, so their cards stay horizontal until then. */
  .grid-5 .story-card { flex-direction: row; }
  .grid-5 .story-card .card-thumb { width: 72px; height: 72px; aspect-ratio: auto; }
  .grid-5 .story-card .thumb-diagram { width: 112px; height: 63px; }
}
@media (min-width: 960px) {
  .grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .grid-5 .story-card { flex-direction: column; padding: var(--space-4); }
  .grid-5 .eyebrow { letter-spacing: 0.08em; } /* the pillar name stays on one line in a 200px card */
  .grid-5 .story-card .card-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}

/* Home's featured results and frameworks (Zeeshan, 2026-11-30): one column of horizontal cards below 960px,
   three in a row from 960px, image on top. */
@media (min-width: 640px) {
  .grid-feature .story-card { flex-direction: row; }
  .grid-feature .story-card .card-thumb { width: 72px; height: 72px; aspect-ratio: auto; }
  .grid-feature .story-card .thumb-diagram { width: 112px; height: 63px; }
}
@media (min-width: 960px) {
  .grid-feature { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-feature .story-card { flex-direction: column; }
  .grid-feature .story-card .card-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}

/* Stats on framework and result pages: labels run longer than Home's, so below 640px each stat is one row. */
/* The numbers share one column as wide as the widest of them ("$400M"), so the labels share a left edge. */
.stats-wide { grid-template-columns: auto minmax(0, 1fr); justify-content: start; align-items: baseline; column-gap: var(--space-3); row-gap: var(--space-3); }
.stats-wide .stat { display: contents; }
@media (min-width: 640px) {
  .stats-wide { grid-template-columns: repeat(3, auto); column-gap: var(--space-12); }
  .stats-wide .stat { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); }
}

/* Framework pages: the foundation list names each item in the primary text colour; The Leadership Contract's two columns. */
.signals strong { color: var(--text-primary); }
.commitments { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
.commitment-card { flex-direction: column; gap: var(--space-3); }
.commitment-card .signals { font-size: 15px; line-height: 1.55; }
@media (min-width: 640px) {
  .commitments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Result page (design.md §5.5). */
.result-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-md); }
.before-after { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.before-after th {
  width: 50%;
  padding: 0 var(--space-4) var(--space-2) 0;
  text-align: left;
  font-size: var(--fs-small);
  font-weight: 700;
}
.before-after td {
  padding: var(--space-3) var(--space-4) var(--space-3) 0;
  vertical-align: top;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
}
.before-after td:last-child { color: var(--text-primary); }
.block > .picture-it { font-size: var(--fs-h3); line-height: 1.5; color: var(--text-primary); }

/* Articles (design.md §5.6): heading with the newsletter panel beside it from 960px. */
.articles-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
.newsletter-panel { flex-direction: column; gap: var(--space-3); }
.newsletter-panel .btn { align-self: stretch; }
/* The subject links are outline buttons, pill-shaped, so they read as something to press (Zeeshan, 2026-11-30). */
.jump-links { margin-top: var(--space-6); }
.jump-links ul { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.jump-links .btn { border-radius: var(--radius-pill); font-size: var(--fs-small); padding: 0 var(--space-4); }
/* Every card in an article grid shows its cover full width on top, at every width: on phones too, so the cards all
   look alike (Zeeshan, 2026-11-30; until then only the six covers with a headline ran full width on phones). */
.article-grid .article-card { flex-direction: column; align-items: stretch; gap: var(--space-4); }
.article-grid .article-card .article-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; }
/* A framework card in the same grid (About, How I lead) stacks the same way. */
.article-grid .story-card { flex-direction: column; align-items: stretch; }
.article-grid .story-card .card-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; }
@media (min-width: 960px) {
  .articles-top { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; align-items: start; }
}

/* About (design.md §5.7): the top block is two columns from 960px only while the job-search box is there. */
.about-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
.about-text { color: var(--text-secondary); }
.about-head { display: flex; align-items: center; gap: var(--space-4); }
.about-head .lead { margin-top: var(--space-2); }
.portrait { flex: none; width: 96px; height: 96px; border-radius: var(--radius-lg); border: 1px solid var(--border); object-fit: cover; }
.career-card, .quote-card { flex-direction: column; gap: var(--space-2); margin: 0; }
.career-roles { color: var(--text-primary); }
/* Career entries run to a paragraph each, so they stay one column until 960px (a departure from the design.md §8
   grid table, which gives sets of three their columns at 640px: three 150px columns of this text do not read). */
.career-grid { grid-template-columns: minmax(0, 1fr); }
main .text-link { color: var(--blue-200); } /* text links use blue-200 (design.md §8); the header's stays white */
.quote-card blockquote { margin: 0; }
@media (min-width: 960px) {
  .about-top:has(.job-box) { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: start; }
  .career-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-head { gap: var(--space-6); }
  .portrait { width: 144px; height: 144px; }
}
