/* Designing Inclusive Digital Solutions — open-source guide
   Tokens and layout follow the "Designing Inclusive Digital Solutions" design canvas. */

/* ---------------------------------------------------------------- tokens */

:root {
  --bg: #0a0a0b;
  --panel: #101013;
  --border: #232327;
  --text: #f4f4f5;
  --body: #a1a1aa;
  --muted: #8b8b94;
  --faint: #5a5a63;
  --activeBg: #141418;
  --inv: #f4f4f5;
  --invText: #0a0a0b;
  --accent: #1f5fff;
  --onAccent: #ffffff;

  /* Full-bleed hero sits on a dark photo in both themes, so its colours are
     fixed here rather than swapped per theme. */
  --heroGreen: #3d9c53;
  --heroGreenHover: #35894a;

  --tip: #d9f0d3;
  --voice: #e4dcff;
  --caution: #fbe8c4;
  --highlight: #eef264;
  --onTint: #111111;

  /* Project-journey diagram — Phase 1 (blue) / Phase 2 (green) / carry (amber).
     Dark-theme values here; light overrides below. */
  --p1: #7cb0ff;
  --p1-box: rgba(31, 95, 255, 0.12);
  --p1-border: rgba(124, 176, 255, 0.32);
  --p1-num: #1f5fff;
  --p2: #6fd08c;
  --p2-box: rgba(47, 158, 90, 0.14);
  --p2-border: rgba(111, 208, 140, 0.32);
  --p2-num: #2f9e5a;
  --carry: #d7a13c;

  /* Outfit for titles/headings, DM Sans for body and UI text. */
  --display: 'Outfit', 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --hdr-h: 72px;
  --sidebar-w: 304px;
  --rail-w: 272px;

  /* Shared content column for the home page: the centred max-width and the
     side gutter. The hero content and the below-hero menu both derive their
     left edge from these, so they line up. --gutter narrows on small screens. */
  --content-max: 1280px;
  --gutter: 40px;
}

:root[data-theme="light"] {
  --bg: #ffffff;
  --panel: #f7f7f5;
  --border: #e4e4e0;
  --text: #0a0a0b;
  --body: #3f3f46;
  --muted: #71717a;
  --faint: #a1a1aa;
  --activeBg: #f2f2ee;
  --inv: #0a0a0b;
  --invText: #ffffff;
  --accent: #1f5fff;
  --onAccent: #ffffff;

  --p1: #1c5fa8;
  --p1-box: #eaf3fc;
  --p1-border: #bcd8f2;
  --p1-num: #2b6cb0;
  --p2: #1f7a3d;
  --p2-box: #eafaf0;
  --p2-border: #bce3c9;
  --p2-num: #2f855a;
  --carry: #b7791f;
}

/* ------------------------------------------------------------------ base */

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

html { scroll-behavior: auto; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--muted); }
.xref {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
::selection { background: var(--text); color: var(--bg); }

button { font-family: var(--sans); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.mono { font-family: var(--mono); }

/* Titles use the display face (Outfit). Everything else inherits DM Sans from
   body; the mono labels keep var(--mono). */
h1, h2, h3, h4,
.hero-stat-num, .stat-num, .sec-row-num, .finding-num,
.sec-row-title, .finding-title, .cta-title, .drawer-title, .qs-panel-title {
  font-family: var(--display);
}

.noscript { max-width: 640px; margin: 80px auto; padding: 0 24px; line-height: 1.6; }

/* --------------------------------------------------------- back to top */

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--inv);
  color: var(--invText);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--accent); color: var(--onAccent); }
.back-to-top:active { transform: translateY(1px); }

/* ---------------------------------------------------------------- header */

.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: var(--hdr-h);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 40px;
}

.hdr-menu {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0;
  border: none;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
}
.hdr-menu:hover { background: var(--activeBg); color: var(--text); }

.hdr-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.hdr-brand:hover { color: var(--text); }

.hdr-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--inv);
  color: var(--invText);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.hdr-name { font-weight: 600; font-size: 15px; letter-spacing: -0.018em; white-space: nowrap; }
.hdr-rule { width: 1px; height: 18px; background: var(--border); }
.hdr-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hdr-searchwrap { flex: 1; display: flex; justify-content: center; }

.hdr-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 480px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0 16px;
  color: var(--faint);
  cursor: text;
  background: var(--panel);
  font-size: 16px;
  line-height: 1;
}
.hdr-search:hover { border-color: var(--accent); }
.hdr-search-label { font-size: 14px; flex: 1; text-align: left; }

.kbd {
  font-size: 11.5px;
  font-family: var(--mono);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 6px;
  background: var(--bg);
}

.hdr-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}
.icon-btn:hover { background: var(--activeBg); color: var(--text); }
#theme-btn { font-size: 18px; }

.btn-accent {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 20px;
  border-radius: 99px;
  white-space: nowrap;
  background: var(--accent);
  color: var(--onAccent);
  font-size: 13.5px;
  font-weight: 600;
}
.btn-accent:hover { opacity: 0.86; color: var(--onAccent); }

/* ---------------------------------------------------------------- layout */

.shell {
  display: flex;
  max-width: 1440px;
  margin: 0 auto;
  align-items: flex-start;
}

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: var(--hdr-h);
  height: calc(100vh - var(--hdr-h));
  overflow-y: auto;
  padding: 32px 20px 48px 28px;
}

.main {
  flex: 1;
  min-width: 0;
  padding: 44px 40px 80px;
}
.main:focus { outline: none; }

.rail {
  width: var(--rail-w);
  flex-shrink: 0;
  position: sticky;
  top: var(--hdr-h);
  height: calc(100vh - var(--hdr-h));
  overflow-y: auto;
  padding: 44px 28px 48px 8px;
}
.rail[hidden] { display: none; }

/* ------------------------------------------------------------ sidebar nav */

.nav-group { margin-bottom: 26px; }

.nav-group-label {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--faint);
  padding: 0 10px;
  margin-bottom: 10px;
}

.nav-list { display: flex; flex-direction: column; gap: 2px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 450;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
  user-select: none;
}
.nav-item:hover { color: var(--text); }
.nav-item.is-active { color: var(--accent); font-weight: 600; }

.nav-item i { font-size: 16px; line-height: 1; flex-shrink: 0; opacity: 0.75; }
.nav-item span { line-height: 1.35; flex: 1; min-width: 0; }

.nav-caret {
  font-size: 10px;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.7;
  transition: transform 0.18s ease;
}
.nav-caret.is-open { transform: rotate(90deg); }

.nav-subs {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 2px 0 6px 13px;
  padding-left: 13px;
  border-left: 1px solid var(--border);
}

.nav-sub {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  width: 100%;
  padding: 6px 8px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 450;
  letter-spacing: -0.005em;
  text-align: left;
  cursor: pointer;
  user-select: none;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}
.nav-sub:hover { background: var(--activeBg); color: var(--accent); transform: translateX(2px); }
.nav-sub.is-active { background: var(--activeBg); color: var(--accent); font-weight: 600; }
.nav-sub.is-active:hover { transform: none; }
.nav-sub .num {
  flex-shrink: 0;
  width: 12px;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.35;
  opacity: 1;
}
.nav-sub span:last-child { line-height: 1.35; }
:root[data-theme="light"] .nav-item:not(.is-active),
:root[data-theme="light"] .nav-sub:not(.is-active) { color: #000000; }
:root[data-theme="light"] .nav-sub:not(.is-active):hover { color: var(--accent); }

.nav-scrim {
  display: none;
  position: fixed;
  inset: var(--hdr-h) 0 0;
  z-index: 39;
  background: rgba(0, 0, 0, 0.45);
}
.nav-scrim[hidden] { display: none; }

/* -------------------------------------------------------------- home page */

.home { max-width: 1440px; margin: 0 auto; }

.home h1 {
  margin: 0;
  font-size: clamp(44px, 5.4vw, 104px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.9;
}
.home h1 .nowrap { white-space: nowrap; }
.home h1 .mark {
  background: var(--accent);
  color: var(--onAccent);
  padding: 0 14px 6px;
  display: inline-block;
  line-height: 0.86;
}

.home h2 {
  margin: 104px 0 10px;
  font-size: clamp(28px, 3.1vw, 40px);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.lede-block { margin-top: 44px; }
.lede {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  color: var(--body);
  letter-spacing: -0.012em;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.btn-lg {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 99px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.btn-lg--solid { background: var(--inv); color: var(--invText); }
.btn-lg--solid:hover { background: var(--accent); color: var(--onAccent); }
.btn-lg--ghost { border: 1px solid var(--border); background: transparent; color: var(--text); }
.btn-lg--ghost:hover { border-color: var(--text); }

.hero-photo {
  height: 520px;
  margin-top: 52px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--panel);
}
.hero-photo img, .cta-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 28px;
}
.stat { background: var(--bg); padding: 24px; }
.stat:first-child { padding-left: 0; }
.stat-num {
  font-size: clamp(30px, 3.2vw, 52px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
}
.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
}

/* ------------------------------------------------------- full-bleed hero */

/* Breaks out of .main's 44px/40px padding to sit flush under the header and
   edge-to-edge across the reading column. Overridden per breakpoint below to
   match .main's padding at each width. */
.hero-full {
  position: relative;
  margin: -44px -40px 0;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  isolation: isolate;
  /* Left edge of the centred content column. On the full-bleed home hero this
     equals the below-hero menu's left edge, so the two align. */
  --hero-inset: max(var(--gutter), calc(50% - var(--content-max) / 2 + var(--gutter)));
}

.hero-full-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 26%;
  z-index: 0;
}

.hero-full-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right,
      rgba(10, 10, 11, 0.92) 0%,
      rgba(10, 10, 11, 0.72) 38%,
      rgba(10, 10, 11, 0.34) 70%,
      rgba(10, 10, 11, 0.16) 100%),
    linear-gradient(to bottom,
      rgba(10, 10, 11, 0.25) 0%,
      rgba(10, 10, 11, 0) 26%,
      rgba(10, 10, 11, 0) 58%,
      rgba(10, 10, 11, 0.42) 100%);
}

.hero-full-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.hero-full-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 60px var(--hero-inset) 40px;
}

.hero-kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 99px;
  padding: 6px 14px;
  margin-bottom: 24px;
}

.hero-full .hero-full-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(44px, 6.3vw, 116px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
}
/* "Designing inclusive" stays together; the word is boxed in the accent. */
.hero-full-title .hero-nowrap { white-space: nowrap; }
.hero-full-title .hero-mark {
  display: inline-block;
  background: var(--accent);
  color: var(--onAccent);
  line-height: 0.86;
  padding: 0 0.16em 0.05em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-full-lede {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  max-width: 52em;
}

.btn-lg--green { background: var(--accent); color: var(--onAccent); }
.btn-lg--green:hover { background: var(--accent); color: var(--onAccent); filter: brightness(1.1); }
.btn-lg--onphoto {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  backdrop-filter: blur(2px);
}
.btn-lg--onphoto:hover { border-color: #ffffff; background: rgba(255, 255, 255, 0.14); color: #ffffff; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(10, 10, 11, 0.55);
  backdrop-filter: blur(3px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  /* Band stays full-bleed; its content aligns to the column via padding, and
     the outer cells drop their outer padding so the first/last land on it. */
  padding: 0 var(--hero-inset);
}
.hero-stat { padding: 22px 28px; }
.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child { padding-right: 0; }
.hero-stat + .hero-stat { border-left: 1px solid rgba(255, 255, 255, 0.12); }
.hero-stat-num {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #ffffff;
}
.hero-stat-label {
  margin-top: 9px;
  font-size: 12.5px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.62);
}

/* ---- home layout: full-width hero, menu below it -----------------------

   On the home page the persistent left sidebar is hidden and the shell
   collapses to one full-width column, so the hero can span the whole page.
   The nav is re-rendered inside a left column beneath the hero. */

.is-home .shell { display: block; max-width: none; }
.is-home .home { max-width: none; }
.is-home .sidebar { display: none; }
.is-home .main { padding: 0; }
.is-home .hero-full { margin: 0; }

.home-below {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 72px var(--gutter) 80px;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.home-nav {
  position: sticky;
  top: calc(var(--hdr-h) + 16px);
  align-self: start;
}

.home-body { min-width: 0; }
/* The first section heading aligns to the top of the menu instead of carrying
   the 104px inter-section gap the design uses between later sections. The
   negative top margin cancels its line-height leading so its cap sits on the
   same line as the menu's first label. */
.home-body > div:first-child > h2:first-child { margin-top: 3px; line-height: 1.1; }

.section-note {
  margin: 0 0 22px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 56em;
}
.section-note--body { color: var(--body); max-width: none; }

/* section index rows */

.sec-rows { border-bottom: 1px solid var(--border); }

.sec-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) minmax(0, 210px);
  gap: 24px;
  align-items: center;
  width: 100%;
  padding: 26px 14px;
  border: none;
  border-top: 1px solid var(--border);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
.sec-row:hover { background: var(--panel); }
.sec-row-num {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--faint);
  line-height: 1;
}
.sec-row-title {
  display: block;
  font-size: clamp(19px, 1.7vw, 25px);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.2;
}
.sec-row-tag {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 8px;
}
.sec-row-desc { font-size: 14px; line-height: 1.55; color: var(--muted); }

/* about */

.about { margin-top: 76px; }
.about h2 { margin: 0 0 24px; line-height: 1.05; }
.about-lead {
  margin: 0;
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.4;
  color: var(--text);
  letter-spacing: -0.02em;
  font-weight: 500;
}
.about-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 52px;
  margin-top: 40px;
  align-items: start;
}
.about-cols p {
  margin: 0 0 16px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--body);
}

/* roles accordion */

.roles {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
}
.role { border-top: 1px solid var(--border); }
.role:first-child { border-top: none; }
.role.is-open { background: var(--bg); }

.role-head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 15px 18px;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  user-select: none;
}
.role-head:hover { background: var(--activeBg); }
.role-caret {
  font-size: 11px;
  line-height: 1;
  flex-shrink: 0;
  color: var(--faint);
  transition: transform 0.18s ease;
}
.role.is-open .role-caret { color: var(--accent); transform: rotate(90deg); }
.role-icon { font-size: 16px; line-height: 1; flex-shrink: 0; color: var(--muted); }
.role-label { font-size: 15px; line-height: 1.45; letter-spacing: -0.01em; color: var(--body); font-weight: 450; }
.role.is-open .role-label { color: var(--text); font-weight: 600; }

.role-body {
  padding: 2px 18px 20px 46px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.role-key {
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 4px;
}
.role-val { font-size: 14.5px; line-height: 1.6; color: var(--body); }

.legend {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--muted);
  flex-wrap: wrap;
}
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 11px; height: 11px; border-radius: 3.5px; }

/* journey — inserted as the source figure */

.journey-figure {
  margin: 48px 0 0;
  scroll-margin-top: 88px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  padding: 28px 0;
}
.journey-figure img { display: block; width: 100%; height: auto; }

.journey { border: 1px solid var(--border); border-radius: 16px; padding: 28px; }

.phase-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
/* Room for the dashed "challenges & insights" connector hanging under Phase 1. */
.phase-head--two { margin-top: 52px; }
.phase-label {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.phase-head--one .phase-label { color: var(--p1); }
.phase-head--two .phase-label { color: var(--p2); }
.phase-div { width: 1px; height: 16px; background: var(--border); }
.phase-note { font-size: 15px; color: var(--body); }

.jflow { display: grid; gap: 10px; align-items: stretch; }
.jflow--4 { grid-template-columns: 1fr 22px 1fr 22px 1fr 22px 1fr; }
.jflow--3 { grid-template-columns: 1fr 22px 1fr 22px 1fr; }
.jflow--3 { max-width: calc(75% + 11px); }

.jflow-arrow { display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 16px; }

.jstep {
  position: relative;
  border: 1.5px solid;
  border-radius: 12px;
  padding: 30px 16px 16px;
  text-align: center;
}
.jstep--one { background: var(--p1-box); border-color: var(--p1-border); }
.jstep--two { background: var(--p2-box); border-color: var(--p2-border); }

.jstep-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.jstep--one .jstep-num { background: var(--p1-num); }
.jstep--two .jstep-num { background: var(--p2-num); }

.jstep-title { font-family: var(--display); font-size: 15px; font-weight: 700; line-height: 1.2; }
.jstep--one .jstep-title { color: var(--p1); }
.jstep--two .jstep-title { color: var(--p2); }
.jstep-rule { height: 1px; background: var(--border); margin: 10px auto; width: 62%; }
.jstep-ref { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.jstep-ref a { color: inherit; }

/* Dashed "challenges & insights" connector hanging below its step. */
.jstep-carry {
  position: absolute;
  top: calc(100% + 6px);
  left: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  color: var(--carry);
}
.jstep-carry i { font-size: 16px; }
.jstep-carry span { font-size: 13px; font-weight: 600; font-style: italic; white-space: nowrap; }

.journey-foot { margin-top: 44px; font-size: 13px; color: var(--faint); font-style: italic; text-align: right; }

/* findings */

.findings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.finding {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.finding-num { font-size: 30px; font-weight: 600; letter-spacing: -0.035em; color: var(--accent); line-height: 1; }
.finding-title { font-size: 16.5px; font-weight: 600; line-height: 1.35; letter-spacing: -0.012em; }
.finding-desc { font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.finding-ref {
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: auto;
}

/* quick start */

.qs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.qs-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.qs-tab {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--bg);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.qs-tab:hover { border-color: var(--faint); }
.qs-tab.is-active { border-color: var(--text); background: var(--inv); color: var(--invText); }

.qs-check-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 9px 15px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--panel);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.qs-check-btn:hover { border-color: var(--faint); }
.qs-check-btn i { font-size: 16px; line-height: 1; }
.qs-check-count { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

.qs-panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  background: rgba(0, 0, 0, 0.04);
}
:root[data-theme="dark"] .qs-panel { background: rgba(255, 255, 255, 0.02); }
.qs-panel-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.qs-panel-title { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.qs-panel-day { font-size: 11.5px; font-family: var(--mono); color: var(--faint); }
.qs-panel ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.qs-panel li { font-size: 14.5px; line-height: 1.6; color: var(--body); }
.qs-deeper {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  font-family: var(--mono);
  color: var(--muted);
}
.qs-deeper .label { letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-right: 12px; }

.qs-strip { margin: 22px 0 0; }
.qs-strip img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.qs-caption { margin-top: 12px; font-size: 13px; color: var(--faint); text-align: center; font-style: italic; }

.caution-box {
  display: flex;
  gap: 13px;
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--caution);
  color: var(--onTint);
}
.caution-box > i { font-size: 18px; line-height: 1; flex-shrink: 0; margin-top: 1px; }
.caution-title { font-size: 14.5px; font-weight: 600; margin-bottom: 3px; }
.caution-body { font-size: 14px; line-height: 1.6; opacity: 0.75; }

.qs-outro { margin: 20px 0 0; font-size: 14.5px; line-height: 1.7; color: var(--muted); }

/* licence cta */

.cta {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
  margin-top: 104px;
  border-radius: 24px;
  padding: 44px;
  background: var(--accent);
  color: var(--onAccent);
  align-items: center;
}
.cta-kicker {
  font-size: 11.5px;
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 14px;
}
.cta-title { font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.028em; line-height: 1.15; }
.cta p { margin: 14px 0 0; font-size: 15.5px; line-height: 1.65; color: rgba(255, 255, 255, 0.78); }
.cta a.xref {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.cta a.xref:hover { color: #ffffff; opacity: 0.84; }
.cta-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.btn-md {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 99px;
  border: none;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.btn-md--white { background: #ffffff; color: #0a0a0b; }
.btn-md--white:hover { opacity: 0.88; color: #0a0a0b; }
.btn-md--outline { border: 1px solid rgba(255, 255, 255, 0.45); background: transparent; color: #ffffff; }
.btn-md--outline:hover { border-color: #ffffff; color: #ffffff; }
.cta-photo {
  align-self: stretch;
  height: auto;
  margin-top: 30px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.page-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 44px;
  font-size: 13px;
  color: var(--faint);
  gap: 16px;
  flex-wrap: wrap;
}

/* ----------------------------------------------------------- article page */

.article { max-width: 860px; margin: 0 auto; }

.article-kicker {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 10px;
}
.article-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.article h1 { margin: 0; font-size: 40px; font-weight: 650; letter-spacing: -0.03em; line-height: 1.12; }
.article-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.copy-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 6px;
  text-decoration: none;
}
.copy-btn:hover { color: var(--text); border-color: var(--faint); }
.copy-btn i { font-size: 14px; line-height: 1; }

.article-desc { margin: 14px 0 0; font-size: 17px; line-height: 1.6; color: var(--muted); }

.skeleton { margin-top: 40px; display: flex; flex-direction: column; gap: 14px; }
.skeleton div { height: 14px; border-radius: 6px; background: var(--activeBg); }

.doc h2 { margin: 46px 0 12px; font-size: 24px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; scroll-margin-top: 88px; }
.doc h3 { margin: 32px 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; scroll-margin-top: 88px; }
.doc p { margin: 16px 0; font-size: 15.5px; line-height: 1.75; color: var(--body); }
.doc p > strong:first-child { color: var(--text); font-size: 16px; }
:root[data-theme="light"] .doc p > strong:first-child { color: #000000; }
.doc p.lead {
  margin: 38px 0 10px;
  font-size: 16.5px;
  line-height: 1.5;
  letter-spacing: -0.012em;
  font-weight: 600;
  color: var(--text);
}
.doc ul, .doc ol { margin: 16px 0; padding-left: 22px; display: flex; flex-direction: column; gap: 9px; }
.doc ul { list-style-type: square; }
.doc ul.checklist {
  list-style: none;
  padding-left: 0;
  gap: 8px;
}
.doc ul.checklist li { margin: 0; }
.doc ul.checklist label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.doc ul.checklist input {
  width: 17px;
  height: 17px;
  margin: 4px 0 0;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.doc ul.checklist input:checked + span { color: var(--muted); text-decoration: line-through; }
.doc li { font-size: 15.5px; line-height: 1.65; color: var(--body); }
.doc li > strong:first-child { color: var(--text); font-size: 16px; }
:root[data-theme="light"] .doc li > strong:first-child { color: #000000; }
.doc ol > li:has(> strong:first-child) {
  padding: 6px 0 12px 4px;
}
.doc ol > li:has(> strong:first-child) + li:has(> strong:first-child) {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.doc ol > li:has(> strong:first-child) > strong:first-child {
  display: block;
  margin-bottom: 4px;
  line-height: 1.35;
}
.doc blockquote {
  margin: 26px 0;
  padding: 16px 20px;
  border-left: 2px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: var(--panel);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  font-weight: 500;
}
.doc code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--activeBg);
  padding: 1px 5px;
  border-radius: 5px;
}
.doc a { text-decoration: underline; text-underline-offset: 3px; }
.doc a.xref { color: var(--accent); }

.admon {
  --admon-accent: var(--accent);
  margin: 28px 0;
  overflow: hidden;
  border: 1px solid var(--admon-accent);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
}
.admon-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--admon-accent) 10%, var(--bg));
  border-bottom: 1px solid color-mix(in srgb, var(--admon-accent) 22%, transparent);
}
.admon-head > i { flex-shrink: 0; color: var(--admon-accent); font-size: 20px; line-height: 1; }
.admon-title { font-size: 15px; font-weight: 600; line-height: 1.4; }
.admon-body { padding: 14px 16px 16px; }
.admon p { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--body); }
.admon p + p { margin-top: 10px; }
.admon--tip { --admon-accent: #2f9e5a; }
.admon--voice { --admon-accent: #1f5fff; }
.admon--caution { --admon-accent: #c47a00; }
.admon--plain { --admon-accent: var(--muted); }
.admon a { color: var(--admon-accent); }

.figure {
  display: grid;
  gap: 10px;
  margin: 32px 0;
}
.figure-frame {
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
}
.figure-frame img { display: block; width: 100%; height: auto; }
.figure figcaption { margin: 0; font-size: 13px; color: var(--faint); line-height: 1.5; }

.tablewrap { margin: 22px 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.tablescroll { overflow-x: auto; }
.tbl { min-width: 100%; }
.tbl-row { display: grid; }
.tbl-row + .tbl-row { border-top: 1px solid var(--border); }
.tbl-row .cell + .cell { border-left: 1px solid var(--border); }
.tbl-head { background: var(--panel); border-bottom: 1px solid var(--border); }
.tbl-head .cell { padding: 10px 14px; font-weight: 600; font-size: 13px; color: var(--text); }
.cell { padding: 10px 14px; font-size: 14px; line-height: 1.55; color: var(--body); }

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.pager-btn {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.pager-btn:hover { border-color: var(--faint); }
.pager-btn--next { text-align: right; }
.pager-dir { font-size: 12.5px; color: var(--faint); margin-bottom: 4px; }
.pager-title { font-size: 14.5px; font-weight: 600; }

/* ------------------------------------------------------------------- rail */

.rail-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.rail-head i { font-size: 16px; line-height: 1; }
.rail-list { display: flex; flex-direction: column; gap: 4px; }
.rail-item {
  border: none;
  background: none;
  padding: 3px 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}
.rail-item:hover { color: var(--text); }
.rail-item--sub { padding-left: 12px; font-size: 14px; color: var(--faint); }
.rail-item--sub:hover { color: var(--text); }

/* ----------------------------------------------------------------- drawer */

.drawer-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.drawer-scrim.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 90vw;
  background: var(--bg);
  border-left: 1px solid var(--border);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.18);
  z-index: 91;
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  overflow-y: auto;
  transform: translateX(105%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}
.drawer.is-open { transform: translateX(0); }

.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.drawer-kicker {
  font-size: 10.5px;
  font-family: var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 8px;
}
.drawer-title { font-size: 20px; font-weight: 650; letter-spacing: -0.015em; }
.drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
  flex-shrink: 0;
}
.drawer-close:hover { color: var(--text); border-color: var(--faint); }
.drawer-intro { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.drawer-count {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 20px 0 8px;
  font-size: 11.5px;
  font-family: var(--mono);
  color: var(--muted);
}
.drawer-bar { height: 4px; border-radius: 99px; background: var(--border); margin-bottom: 14px; overflow: hidden; flex-shrink: 0; }
.drawer-bar span {
  display: block;
  height: 100%;
  background: var(--text);
  border-radius: 99px;
  transition: width 0.3s ease;
}
.drawer-checks { display: flex; flex-direction: column; gap: 8px; }
.check {
  display: flex;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: inherit;
  cursor: pointer;
  user-select: none;
  text-align: left;
  transition: background 0.2s, border-color 0.2s;
}
.check.is-on { border-color: var(--text); background: var(--activeBg); }
.check-box {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1.5px solid var(--faint);
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
}
.check.is-on .check-box { background: var(--inv); border-color: var(--inv); color: var(--invText); }
.check-text { font-size: 13.5px; line-height: 1.55; color: var(--body); }
.drawer-note { margin-top: 16px; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.drawer-done {
  margin-top: 20px;
  height: 40px;
  border: none;
  border-radius: 99px;
  background: var(--inv);
  color: var(--invText);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}
.drawer-done:hover { opacity: 0.85; }

/* ----------------------------------------------------------------- search */

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 88px 20px 20px;
}
.search-overlay[hidden] { display: none; }

.search-dialog {
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.search-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.search-input-row > i { font-size: 18px; line-height: 1; color: var(--faint); }
.search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: -0.01em;
}
.search-esc {
  font-size: 11px;
  font-family: var(--mono);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 3px 7px;
  background: none;
  color: var(--faint);
  cursor: pointer;
  flex-shrink: 0;
}
.search-results { overflow-y: auto; padding: 8px; }
.search-result {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.search-result.is-sel { background: var(--activeBg); }
.search-result > i { font-size: 16px; line-height: 1; flex-shrink: 0; margin-top: 2px; color: var(--faint); }
.search-result.is-sel > i { color: var(--accent); }
.search-result-body { min-width: 0; flex: 1; }
.search-result-title { display: block; font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; }
.search-result-snippet { display: block; font-size: 12.5px; line-height: 1.5; color: var(--muted); margin-top: 3px; }
.search-result mark { background: transparent; color: var(--accent); font-weight: 600; }
.search-crumb {
  flex-shrink: 0;
  font-size: 10.5px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 3px;
  white-space: nowrap;
}
.search-empty { padding: 36px 18px; text-align: center; color: var(--muted); font-size: 14px; }
.search-foot {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.search-foot .count { margin-left: auto; }

/* ------------------------------------------------------------- responsive */

@media (max-width: 1280px) {
  .rail { display: none; }
}

@media (max-width: 1100px) {
  :root { --gutter: 24px; }
  .hdr { padding: 0 20px; gap: 16px; }
  .hdr-menu { display: flex; }
  .hdr-kicker, .hdr-rule { display: none; }

  .sidebar {
    position: fixed;
    top: var(--hdr-h);
    left: 0;
    bottom: 0;
    height: auto;
    z-index: 40;
    background: var(--bg);
    border-right: 1px solid var(--border);
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  }
  .sidebar.is-open { transform: translateX(0); }
  .nav-scrim:not([hidden]) { display: block; }

  .main { padding: 36px 24px 72px; }
  .hero-full { margin: -36px -24px 0; min-height: 560px; }
  .hero-full-content { padding: 48px var(--hero-inset) 32px; }
  /* Keep the grouped guide navigation available from the header on mobile,
     including the home page where the same links also appear below the hero. */
  .is-home .sidebar { display: block; }
  .home-below { padding-bottom: 72px; gap: 32px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat, .stat:first-child { padding: 20px; }
  .findings { grid-template-columns: repeat(2, 1fr); }
  .about-cols { grid-template-columns: 1fr; gap: 0; }
  .cta { grid-template-columns: 1fr; gap: 28px; padding: 32px; }
  .cta-photo { height: 220px; margin-top: 0; }
}

@media (max-width: 820px) {
  .back-to-top { right: 16px; bottom: 16px; }
  .hdr-name { display: none; }
  .hdr-search-label { display: none; }
  .hdr-search { max-width: 44px; padding: 0 13px; justify-content: center; }
  .hdr-search .kbd { display: none; }
  .hdr-cta { display: none; }

  .home h1 { font-size: clamp(34px, 9vw, 44px); }
  /* The design's nowrap keeps "Designing inclusive" on one line; below ~820px
     there is no room for it, so let it wrap rather than overflow. */
  .home h1 .nowrap { white-space: normal; }
  .home h1 .mark { padding: 0 8px 4px; }
  .home h2 { margin-top: 72px; }
  .lede { font-size: 17px; }
  .hero-actions .btn-lg { width: 100%; justify-content: center; }
  .hero-photo { height: 300px; margin-top: 36px; }

  .hero-full { min-height: 0; }
  .hero-full-content { padding: 40px var(--hero-inset) 28px; }
  .hero-full .hero-full-title { font-size: clamp(46px, 8.5vw, 52px); }
  .hero-full-lede { font-size: 16px; }
  /* Let the boxed line wrap on narrow screens rather than overflow. */
  .hero-full-title .hero-nowrap { white-space: normal; }

  /* The same grouped navigation is available from the mobile hamburger. */
  .home-below { grid-template-columns: 1fr; gap: 12px; padding-top: 44px; }
  .home-nav { display: none; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat { padding: 18px 20px; }
  .hero-stat + .hero-stat { border-left: none; }
  /* Left column flush to the content inset, right column flush to the far inset. */
  .hero-stat:nth-child(odd) { padding-left: 0; }
  .hero-stat:nth-child(even) { padding-right: 0; border-left: 1px solid rgba(255, 255, 255, 0.12); }
  .hero-stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.12); }
  .sec-row { grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 20px 4px; }
  .sec-row-num { font-size: 30px; }
  .sec-row-desc { grid-column: 2; }
  .findings { grid-template-columns: 1fr; }
  .jflow--4, .jflow--3 { grid-template-columns: 1fr; max-width: none; }
  .jflow-arrow { transform: rotate(90deg); height: 16px; }
  .jstep-carry { display: none; }
  .journey-foot { text-align: left; margin-top: 20px; }
  .flow-arrow { transform: rotate(90deg); height: 14px; }
  .article h1 { font-size: 30px; }
  .article-head { flex-direction: column; gap: 12px; }
  .article-actions { flex-wrap: wrap; }
  .copy-btn { margin-top: 0; }
  .pager { grid-template-columns: 1fr; }
  .pager-btn--next { text-align: left; }
  .search-overlay { padding: 20px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
