/* Helix GTM Consulting design layer, B2 (run 11, 28 September 2026; owner decisions D6, D11, D12 in decisions-run11.md).
   ONE layer: it replaces the run 7 to run 10 helix.css (every old rule is listed in design/run11/css-changes.md) and folds in
   the rules main, hub and connector pages took from brand.css and app.css, so those pages load fonts.css and this file only.
   Reference: design/run11/helix-b2-home.html and helix-b2-inner.html. Brand: oxblood #641220, signal #C1121F, paper #FAF8F6,
   ink #1A0E10, clay #EAD9D5; added: muted #5A4B4E, white, rose #F6D4D8, rose-mid #F2AAB3, sky #CFE6F5.
   Fonts (self-hosted, fonts.css): Archivo (display and text), IBM Plex Mono (labels), VT323 (window bars and tags, 20 px or more).
   Dark mode follows the device setting only: one prefers-color-scheme block at the end swaps the tokens. */

/* ================= 1. tokens ================= */
:root {
  --ox: #641220; --signal: #C1121F; --paper: #FAF8F6; --ink: #1A0E10; --clay: #EAD9D5;
  --muted: #5A4B4E; --white: #FFFFFF; --rose: #F6D4D8; --rose-mid: #F2AAB3; --sky: #CFE6F5;
  --line: rgba(26, 14, 16, .16); --edge: var(--ink); --shadow: var(--ink); --link: var(--ink);
  --bar-1: var(--ox); --bar-2: var(--signal); --bar-3: rgba(26, 14, 16, .55);
  --display: "Archivo", Arial, sans-serif; --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace; --pixel: "VT323", "VT323 Fallback", "IBM Plex Mono", monospace;
  --gut: clamp(16px, 3.2vw, 48px); --maxw: 1440px;
  --h1-home: clamp(50px, 9.2vw, 140px); /* D6 says 144 px at most; 140 keeps "Agencies sell hours." on one line in the 1,308 px measure (R11-16: 2 lines from 1366 px) */ --h1: clamp(44px, 7vw, 112px); --h2: clamp(40px, 6.8vw, 104px);
  --stat: clamp(72px, 10vw, 152px); --tile: clamp(34px, 3.6vw, 56px); --card: clamp(26px, 2.3vw, 34px);
  --body: 18px; --lead: clamp(20px, 1.6vw, 24px);
  /* the names app.css, brand.css and older markup use, pointed at the B2 tokens */
  --hx-ox: var(--ox); --hx-signal: var(--signal); --hx-paper: var(--paper); --hx-ink: var(--ink); --hx-clay: var(--clay);
  --hx-ink-72: var(--muted); --hx-ink-55: rgba(26, 14, 16, .55); --hx-paper-80: rgba(250, 248, 246, .8);
  --h7-ox: var(--ox); --h7-signal: var(--signal); --h7-paper: var(--paper); --h7-ink: var(--ink); --h7-clay: var(--clay);
  --h7-ink-70: var(--muted); --h7-ink-12: var(--line); --h7-mono: var(--mono); --h7-display: var(--display);
  --fs-h1: var(--h1); --fs-h2: var(--h2); --fs-body: var(--body); --fs-lead: var(--lead);
}

/* ================= 2. base ================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 93px; } /* R11-A2-18: the 77 px sticky bar plus 16 px (80 px on phones, below) */
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--body)/1.55 var(--display); overflow-wrap: break-word; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-color: var(--signal); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
code, pre, kbd, samp { font-family: var(--mono); }
code { background: var(--clay); color: var(--ink); padding: 1px 5px; font-size: .9em; }
pre { background: var(--white); color: var(--ink); border: 2px solid var(--edge); padding: 14px 16px; overflow-x: auto; white-space: pre; font-size: 14px; }
pre code { background: none; padding: 0; }
hr { border: 0; border-top: 1.5px solid var(--line); }
.hx-wrap, .hx-body, .wrap { max-width: var(--maxw); margin-left: auto; margin-right: auto; padding-left: var(--gut); padding-right: var(--gut); }
.hx-skip, .skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 90; }
.hx-skip:focus, .skip:focus { left: 16px; }
.hx-sr-only, .vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hx-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ================= 3. type: one rule per heading level; contexts change the variables ================= */
h1, h2, h3, h4 { font-family: var(--display); color: inherit; margin: 0; text-wrap: balance; }
/* R11-22, corrected in R11-A2-8: while Archivo is not yet loaded (font-display optional keeps the fallback on a first visit), headings use Arial Bold (local, nothing downloaded) scaled to Archivo 800's width. Measured on this PC in Chrome and Edge (evidence/run11/a2/fallback-*.json): without this face a weight-800 "Arial" heading renders in Arial Black, 12% wider than Archivo; Arial Bold is 97.1% of Archivo's width (median of the 37 H1 and H2 strings of the 9 homes), so size-adjust 103% puts the median within 1%. */
/* R11-A3-11, corrected in R11-A3-13: while VT323 is not yet loaded (font-display optional keeps the fallback on a first visit), window
   titles and tags use a local monospace face scaled to VT323's width: 66% (VT323 advances 0.4 em per character; Courier New, Menlo,
   Droid Sans Mono, Noto Sans Mono and DejaVu Sans Mono 0.6 em; Consolas, narrower, comes last). Nothing is downloaded. */
@font-face { font-family: "VT323 Fallback"; src: local("Courier New"), local("CourierNewPSMT"), local("Menlo"), local("Courier"), local("Droid Sans Mono"), local("Noto Sans Mono"), local("DejaVu Sans Mono"), local("Cutive Mono"), local("Consolas"); size-adjust: 66%; }  /* R11-A3-13: VT323 advances 0.4 em per character, Courier New, Menlo and Noto Sans Mono 0.6 em (0.4 / 0.6 = 66.7%, measured on hub /tools/); 66% keeps the fallback about 1% narrower so no tag gains a line */
@font-face { font-family: "Archivo Fallback Heavy"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial"); font-weight: 700 900; size-adjust: 103%; ascent-override: 88%; descent-override: 21%; line-gap-override: 0%; }
h1, h2 { font-family: "Archivo", "Archivo Fallback Heavy", Arial, sans-serif; }
h1 { font-weight: 800; font-size: var(--h1); line-height: .93; letter-spacing: -.045em; }
h2 { font-weight: 800; font-size: var(--h2); line-height: .94; letter-spacing: -.04em; }
h3 { font-weight: 800; font-size: var(--card); line-height: 1.04; letter-spacing: -.03em; }
h4 { font-weight: 700; font-size: 20px; line-height: 1.2; }
.hx9-home { --h1: var(--h1-home); }
/* documents (privacy, terms, docs reference) and tool answers: their H2 and H3 are sub-headings of one text */
.hx-prose-block, .hx-result-body, .hx-output, .doc { --h2: clamp(28px, 2.6vw, 38px); --card: clamp(22px, 1.8vw, 26px); }
.hx-result-body h4, .hx-result-body h5, .hx-result-body h6 { font-size: 18px; margin: 16px 0 6px; }
p { margin: 0 0 1em; }
.hx-lead, .lede, .sub { font-size: var(--lead); line-height: 1.45; max-width: 40ch; margin: 0; }
.hx-sub, .hx-prose, .hx-prose-block p, .hx-prose-block li { color: var(--muted); max-width: 72ch; }
.hx-sub { font-size: 20px; line-height: 1.5; margin: 18px 0 0; }
.hx-help, .note { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 8px 0 0; max-width: 72ch; }
.hx-mono, .idx, .hx7-label { font: 600 13px/1.2 var(--mono); letter-spacing: .06em; color: var(--ox); text-transform: uppercase; }
.hx-byline { font: 500 14px/1.5 var(--mono); color: var(--muted); margin: 18px 0 0; }
.hx-byline a { color: var(--ink); }

/* ================= 4. labels: pixel tag, chips ================= */
.tag, .hx-eyebrow { display: inline-block; font: 400 22px/1 var(--pixel); letter-spacing: .02em; padding: 5px 10px 4px; background: var(--ink); color: var(--paper); text-transform: none; }
.chip, .hx11-chip, .hx-card-kicker, .h7-dev { display: inline-block; font: 600 13px/1.25 var(--mono); letter-spacing: .04em; padding: 5px 9px; background: var(--rose); color: #1A0E10; text-transform: none; }
.chip.sky { background: var(--sky); }
.chip.ox, .h7-dev { background: var(--ox); color: var(--paper); }
.hx10-kick2 { display: block; font: 500 13px/1.3 var(--mono); color: var(--muted); margin-top: 6px; }

/* ================= 5. buttons and links: one filled button per card or section; secondary actions are underlined links ================= */
.btn, .hx-btn, button.hx-btn, a.hx-btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 50px; padding: 12px 24px;
  background: var(--ox); color: var(--paper); border: 2px solid var(--ox); border-radius: 0; box-shadow: none; cursor: pointer;
  font: 600 14px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.btn:hover, .hx-btn:hover, .btn:focus-visible, .hx-btn:focus-visible { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-sm { min-height: 44px; padding: 10px 16px; font-size: 13px; }
.tlink, .hx-btn.hx-btn-ghost, .hx-btn.hx10-outline, .slink { display: inline-flex; align-items: center; min-height: 44px; padding: 0; background: none; border: 0;
  color: var(--ink); font: 700 18px/1.3 var(--display); letter-spacing: 0; text-transform: none; text-align: left;
  text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.slink { font-size: 16px; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.tlink:hover, .hx-btn.hx-btn-ghost:hover, .hx-btn.hx10-outline:hover, .slink:hover { color: var(--ox); background: none; }
.hx-cta-row, .ctas, .hx-actions, .hx10-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin: 28px 0 0; }
.hx11-tool-acts { margin-top: 18px; } /* R11-A1-5: the tool page hero buttons */

/* ================= 6. header (every page of every site): row 1 (logo, four links, Work with Shashwat) is a sticky bar (addendum 2, A2-D6);
   row 2 (site tag, breadcrumb, site links) follows the header and scrolls away. Phones: logo, Work with Shashwat and Menu in one row ================= */
header.hx-header, .hx9-mm { display: none; }
.hx9-gh { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.hx9-row1 { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; min-height: 76px; }
.hx9-logo { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--ink); text-decoration: none; }
.hx9-mark { width: 40px; height: 40px; display: grid; place-items: center; background: var(--signal); color: #FFFFFF; font: italic 700 30px/1 Georgia, "DejaVu Serif", serif; padding-bottom: 3px; }
.hx9-word { font: 600 15px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.hx9-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; margin-left: auto; }
.hx9-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font: 600 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.hx9-nav a:hover, .hx9-nav a[aria-current="page"], .hx9-nav a.hx9-on { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.hx9-cta { min-height: 44px; padding: 10px 16px; font-size: 13px; }
.hx9-row2 { border-bottom: 1px solid var(--line); background: var(--paper); } /* R11-A2-18: after the header now, so the line moves to its foot (same look) */
.hx9-menu { display: none; }
.hx9-row2-in { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; min-height: 52px; }
.hx9-row2 .tag { font-size: 22px; }
.hx9-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; font: 500 14px/1.3 var(--mono); color: var(--muted); min-width: 0; }
.hx9-crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 4px; }
.hx9-crumbs [aria-current] { color: var(--ink); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx9-sep { color: var(--muted); }
/* R11-A1-9: short header and footer links (FAQ, Docs, Home, RSS) are at least 44 px wide too; R11-A3-6 c: only on touch screens
   and narrow windows, where tapping needs it (on laptops it widened row 2 so it wrapped at 1366 on 3 tool pages) */
@media (pointer: coarse), (max-width: 760px) { .hx9-nav a, .hx9-site a, .hx9-crumbs a, .hx-footer a, .hx-footer-bottom a { min-width: 44px; } }
.hx9-logo { min-width: 44px; } /* R11-A3-6 b */
.hx9-site { display: flex; flex-wrap: wrap; gap: 0 14px; margin-left: auto; }
.hx9-site a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; font: 600 13px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.hx9-site a:hover, .hx9-site a[aria-current="page"], .hx9-site a.hx9-on { text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 5px; }
@media (max-width: 900px) {
  /* R11-A2-18 e: one row of at most 64 px: logo, Work with Shashwat, Menu; the four links are in the Menu panel */
  html { scroll-padding-top: 80px; }
  .hx9-row1 { min-height: 63px; padding-top: 0; padding-bottom: 0; flex-wrap: nowrap; gap: 8px; }
  .hx9-nav { display: none; }
  .hx9-cta { margin-left: auto; font-size: 12px; padding: 10px 12px; white-space: nowrap; }
  .hx9-menu { display: block; flex: none; }
  .hx9-menu > summary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 12px; border: 2px solid var(--ink); font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); cursor: pointer; list-style: none; }
  .hx9-menu > summary::-webkit-details-marker { display: none; }
  .hx9-menu-nav { position: absolute; right: 16px; top: 100%; z-index: 51; display: flex; flex-direction: column; min-width: 200px; max-height: calc(100dvh - 64px); overflow-y: auto; padding: 8px 0; background: var(--paper); border: 1px solid var(--line); }
  .hx9-menu-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 16px; font: 600 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
  .hx9-menu-nav a[aria-current="page"], .hx9-menu-nav a.hx9-on { text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 5px; }
  .hx9-menu:not([open]) .hx9-menu-nav { display: none; }
  .hx9-row2-in { padding-top: 4px; padding-bottom: 4px; }
  .hx9-site { margin-left: 0; gap: 0 12px; }
  .hx9-site a { font-size: 12px; }
  .hx9-crumbs > :not(:nth-last-child(-n+3)) { display: none; }
  /* R12-10 (R11-A5-9, owner yes; replaces the R11-A3-7 wrap): row 2 keeps only the site tag and the breadcrumb, on one line; this
     site's own links are in the Menu panel under "This site" (chrome.py gheader), so none is lost */
  .hx9-row2-in { flex-wrap: nowrap; min-height: 48px; gap: 0 14px; }
  .hx9-row2 .hx9-site { display: none; }
  .hx9-row2-linksonly { display: none; }
  .hx9-row2 .tag { flex: none; }
  .hx9-crumbs { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
  .hx9-crumbs > * { flex: none; }
  .hx9-crumbs > [aria-current] { flex: 0 1 auto; }
  .hx9-menu-site { display: flex; flex-direction: column; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .hx9-menu-lbl { padding: 6px 16px 2px; font: 500 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .hx9-row2 .tag { font-size: 20px; }
  /* R11-A3-6 b: the wordmark stays at 13 px (helix-b2-inner.html .logo-word); the button and Menu are a little tighter so one row fits */
  .hx9-logo { gap: 8px; } .hx9-mark { width: 34px; height: 34px; font-size: 26px; } .hx9-word { font-size: 13px; letter-spacing: .12em; }
  .hx9-row1 { gap: 6px; } .hx9-menu > summary { padding: 0 8px; }
  /* a.hx-btn outranks .hx9-cta, so the phone button kept 14 px text and 24 px padding; this selector wins (helix-b2-inner.html: 12 px on phones) */
  .hx9-row1 a.hx9-cta { min-height: 44px; font-size: 12px; padding: 10px 8px; letter-spacing: .04em; }
  /* R11-A3-12: a figure around a window (the gtmhelix.com hero chat) had the browser's 40 px side margins; phones use the full column */
  .hx-fig { margin-left: 0; margin-right: 0; }
}

/* R11-A2-18 f and g: short windows (landscape phones, 200% zoom) and print keep the bar in the flow, so it never covers much */
/* R11-A2-18 e, R11-A3-6 b and the R11-A3 verifier fix: under 390 px wide the logo shows its "h" mark only (the link keeps its name);
   below that, logo, Work with Shashwat and Menu do not fit one row with the 13 px wordmark (measured in evidence/run11/a3/) */
@media (max-width: 389px) { .hx9-word { display: none; } }  /* R11-A3 verifier: with IBM Plex Mono cached the phone button is 158 px and HELIX GTM wraps at 380 (1 line from 389 up); under 390 the h mark alone shows */
@media (max-height: 500px) { .hx9-gh { position: static; } html { scroll-padding-top: 16px; } }
@media print { .hx9-gh { position: static; } .hx9-menu { display: none; } }

/* ================= 7. hero: gradient, dot texture at the edges, crop marks around the H1 ================= */
.hx-hero, .hero { position: relative; overflow: hidden; padding: clamp(20px, 2.4vw, 32px) 0 clamp(36px, 4vw, 56px);
  background: linear-gradient(165deg, #F4B9C0 0%, #F8DADD 38%, #EEF1F6 62%, #CFE6F5 100%); color: var(--ink); }
.hx-hero::before, .hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(193, 18, 31, .72) 1.2px, transparent 1.7px); background-size: 7px 7px;
  -webkit-mask-image: radial-gradient(38% 42% at 6% 14%, #000 0%, rgba(0, 0, 0, .6) 45%, transparent 75%), radial-gradient(34% 40% at 96% 8%, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 75%), radial-gradient(50% 36% at 88% 104%, #000 0%, rgba(0, 0, 0, .5) 40%, transparent 75%);
  mask-image: radial-gradient(38% 42% at 6% 14%, #000 0%, rgba(0, 0, 0, .6) 45%, transparent 75%), radial-gradient(34% 40% at 96% 8%, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 75%), radial-gradient(50% 36% at 88% 104%, #000 0%, rgba(0, 0, 0, .5) 40%, transparent 75%); }
.hx-hero::after, .hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(26, 14, 16, .38) 1px, transparent 1.4px); background-size: 5px 5px;
  -webkit-mask-image: radial-gradient(30% 30% at 2% 96%, #000, transparent 70%); mask-image: radial-gradient(30% 30% at 2% 96%, #000, transparent 70%); }
.hx-hero > *, .hero > * { position: relative; z-index: 1; }
.hx-hero .hx-eyebrow, .hero .eyebrow { margin: 0 0 14px; }
.hx-hero-inner { max-width: none; }
.hx-hero .hx-lead, .hx-hero-inner > p { max-width: 44ch; }
.crop { position: relative; padding: clamp(16px, 1.8vw, 26px) clamp(8px, 1.2vw, 18px); }
.cm { position: absolute; width: 18px; height: 18px; border: 0 solid var(--ink); pointer-events: none; }
.cm.tl { top: 0; left: 0; border-width: 2px 0 0 2px; } .cm.tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.cm.bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; } .cm.br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }
.hero-grid, .hx10-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; margin-top: clamp(18px, 2vw, 28px); }
.hx10-split-text { min-width: 0; }
.figcap { font: 500 13px/1.5 var(--mono); color: var(--muted); margin: 12px 0 0; max-width: 60ch; }
.hx10-answer, .aeo p { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 92ch; margin: 0; }
.aeo { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.aeo p { padding: 16px 0; }
.hx-hero .hx10-answer { margin-top: 22px; }
@media (max-width: 900px) {
  .hero-grid, .hx10-split { grid-template-columns: minmax(0, 1fr); }
  .hx-hero::after, .hero::after { display: none; }
  .hx-hero::before, .hero::before { -webkit-mask-image: radial-gradient(45% 12% at 100% 0%, #000, transparent 75%); mask-image: radial-gradient(45% 12% at 100% 0%, #000, transparent 75%); }
}

/* ================= 8. sections: headings full width above their content ================= */
.hx-section, .sec { padding: clamp(56px, 7vw, 112px) 0 0; margin: 0; }
#main > .hx-section:last-child:not(.band-rose), .hx-body > .hx-section:last-child, main > .sec:last-child { padding-bottom: clamp(56px, 7vw, 112px); }
.hx-section > h2, .sh h2 { max-width: 20ch; margin: 0 0 clamp(24px, 3vw, 40px); }
.hx-section > h2 + .hx-sub, .sh .lede { margin-top: calc(-1 * clamp(8px, 1.5vw, 20px)); margin-bottom: clamp(24px, 3vw, 40px); }
.hx-section > h3, .hx-section h3 { margin: 32px 0 12px; }
.band-rose { background: var(--rose-mid); }
.band-rose .hx-sub, .band-rose .hx-help, .band-rose .lede, .band-rose .note, .band-rose .srcnote { color: var(--ink); }
.band-rose .hx-wrap, .band-rose > .hx-wrap { padding-top: clamp(56px, 7vw, 112px); padding-bottom: clamp(56px, 7vw, 112px); }
.hx-section.band-rose { padding: 0; margin-top: clamp(56px, 7vw, 112px); }
.field { position: relative; padding: clamp(40px, 5vw, 72px) clamp(14px, 3vw, 48px); border-left: 2px solid var(--ink); background-image: radial-gradient(circle, rgba(26, 14, 16, .30) 1px, transparent 1.3px); background-size: 8px 8px; }
.field > .tag { position: absolute; top: 0; left: 0; }

/* ================= 9. windows: every demo, example answer, diagram, form and the photo ================= */
.win, .hx-form, .hx8-sc, .hx-result, .hx10-ex, .hx8-vis, .hx9-term, .hx-panel { background: var(--white); border: 2px solid var(--edge); box-shadow: 6px 6px 0 var(--shadow); }
.win-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--ink); color: var(--paper); font: 400 22px/1.1 var(--pixel); letter-spacing: .02em; padding: 5px 10px 4px; }
.win-bar .t { min-width: 0; overflow-wrap: anywhere; }
.wb { display: flex; gap: 5px; flex: none; } .wb i { display: block; width: 12px; height: 12px; border: 2px solid var(--paper); }
.win-body { padding: 20px 22px; }
.win-foot { border-top: 1.5px solid var(--edge); padding: 10px 22px; font: 500 14px/1.4 var(--mono); color: var(--muted); background: var(--paper); }
.win .hx-form, .win .hx8-sc, .win .hx8-vis, .win .hx10-ex, .card .win { box-shadow: none; }
.win .hx-form, .win .hx8-sc, .win .hx10-ex { border: 0; }
.hx8-sc, .hx-result, .hx10-ex, .hx-panel { padding: 20px 22px; }
.hx-form { padding: 22px; margin: 0; }
.win .hx-form { padding: 22px; }
.hx8-vis { padding: 14px; margin: 24px 0; max-width: 480px; }
.hx8-vis figcaption, .hx8-sc figcaption { font: 500 13px/1.5 var(--mono); color: var(--muted); margin-top: 10px; }

/* ================= 10. numbers block and result tiles ================= */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { border-left: 2px solid var(--ink); padding: 10px 20px 34px 22px; }
.stat .idx { display: block; margin-bottom: 14px; }
.stat b { display: block; font: 800 var(--stat)/.9 var(--display); letter-spacing: -.05em; }
.stat .cap { display: block; font-size: 20px; line-height: 1.35; margin-top: 12px; }
.srcnote { font: 500 13px/1.5 var(--mono); color: var(--muted); margin: 18px 0 0; max-width: 80ch; }
.tiles, .hx8-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: clamp(32px, 4vw, 56px) 0 0; padding: 0; list-style: none; }
.tile, .hx8-tiles li { background: var(--white); border: 1.5px solid var(--edge); border-top: 6px solid var(--ox); padding: 16px 20px 20px; }
.tile .co, .hx8-tile-co { display: block; font: 600 13px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ox); }
.tile b, .hx8-tiles b { display: block; font: 800 var(--tile)/1 var(--display); letter-spacing: -.04em; margin: 10px 0 8px; }
.tile .l, .hx8-tiles p, .hx8-tile-l { display: block; font-size: 16px; line-height: 1.45; margin: 0; color: var(--ink); }
.recog, .hx8-awards { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.recog li, .hx8-awards li { background: var(--clay); color: #1A0E10; font: 500 16px/1.35 var(--display); padding: 8px 12px; border: 1.5px solid var(--edge); }
.links, .hx7-links { display: flex; flex-wrap: wrap; gap: 4px 26px; margin: 22px 0 0; }
.hx7-links a { font: 600 16px/1.3 var(--display); color: var(--ink); text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }

/* ================= 11. Shashwat (story, credentials band, Built by strip) ================= */
.sh-grid, .hx8-story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.photo img, .hx9-photo img, .hx7-cred-photo img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; background: var(--clay); display: block; }
.hx9-photo, .hx7-cred-photo { display: block; max-width: 560px; }
.who-name, .hx8-name { font: 800 26px/1.15 var(--display); margin: 28px 0 4px; }
.who-role, .hx8-role, .hx7-role { font: 500 14px/1.5 var(--mono); color: var(--ox); margin: 0; }
.statement, .hx8-narr { font-size: clamp(20px, 1.7vw, 25px); line-height: 1.42; margin: 22px 0 0; max-width: 44ch; }
.hx7-cred { padding: clamp(40px, 5vw, 72px) 0; background: var(--rose-mid); color: var(--ink); }
.hx7-cred-grid { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.hx7-cred h2 { font-size: var(--card); margin: 8px 0 6px; }
.hx7-facts, .hx7-results, .hx7-awards, .hx7-list { list-style: none; margin: 0; padding: 0; }
.hx7-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 12px 0 16px; }
.hx7-facts b { display: block; font: 800 clamp(34px, 3.4vw, 52px)/1 var(--display); letter-spacing: -.04em; }
.hx7-facts span { font-size: 15px; }
.hx7-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; border-top: 2px solid var(--ink); }
.hx7-results li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.hx7-awards li { padding: 4px 0 4px 16px; position: relative; font-size: 15px; }
.hx7-awards li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 7px; background: var(--ox); }
.hx7-strip { background: var(--paper); border-bottom: 1px solid var(--line); }
.hx7-strip-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.hx7-strip-photo, .hx7-built-photo { flex: none; display: block; width: 44px; height: 44px; }
.hx7-strip-photo img, .hx7-built-photo img { width: 44px; height: 44px; display: block; border: 1.5px solid var(--edge); }
.hx7-strip p { margin: 0; flex: 1 1 260px; font-size: 16px; }
.hx7-strip a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 4px; }
/* R11-16: standalone links are tap targets too (D6: at least 44 px): list links, card title links, the link after a FAQ */
.hx7-list li > a:first-child, .card h3 > a, details + p > a { display: inline-flex; align-items: center; min-height: 44px; }
.hx7-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .sh-grid, .hx8-story, .hx7-cred-grid { grid-template-columns: minmax(0, 1fr); } .hx9-photo, .hx7-cred-photo { max-width: 320px; } .tiles, .hx8-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .hx7-results { grid-template-columns: minmax(0, 1fr); } .tiles, .hx8-tiles { gap: 10px; } .tile, .hx8-tiles li { padding: 12px; } .tile b, .hx8-tiles b { font-size: 30px; } }

/* ================= 12. cards: jobs, tools, connectors, plugins (3 across from 1100 px, 2 from 700 px, 1 below) ================= */
.chips, .hx9-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.chip-btn, .hx9-chip { font: 700 16px/1 var(--display); padding: 12px 18px; min-height: 46px; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.chip-btn[aria-pressed="true"], .hx9-chip[aria-pressed="true"] { background: var(--ox); border-color: var(--ox); color: var(--paper); }
.cards, .hx9-jobs, .hx-cards, .icp-cards, .hx-whos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 28px 0 0; padding: 0; list-style: none; }
.card, .hx9-job, .hx10-card, .hx-card-static, .hx-who { display: flex; flex-direction: column; gap: 14px; position: relative; background: var(--white); color: var(--ink);
  border: 1.5px solid var(--edge); border-top: 6px solid var(--ox); padding: 20px 22px 22px; box-shadow: 6px 6px 0 var(--shadow); }
.card > p, .hx9-job > p, .hx10-card > p, .hx-card-static > p, .hx-who > p { margin: 0; font-size: 17px; line-height: 1.45; }
.card h3, .hx9-job h3, .hx10-card h3, .hx-card-static h3, .hx-who h3 { margin: 0; font-size: var(--card); }
.card h3 a, .hx10-card h3 a, .hx-card-static h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover, .hx10-card h3 a:hover, .hx-card-static h3 a:hover { text-decoration: underline; text-decoration-color: var(--signal); }
.card > .chip, .hx9-job > .chip, .hx10-card .chip { align-self: flex-start; }
.card.is-match, .hx9-job.is-hit { outline: 4px solid var(--signal); outline-offset: 3px; order: -1; }
.card .fy { display: none; position: absolute; top: -16px; right: 14px; } .card.is-match .fy { display: inline-block; }
.get { margin: 0; font-size: 17px; line-height: 1.45; }
.get b { font: 600 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ox); margin-right: 6px; }
.acts, .card .hx10-actions, .hx9-job .hx10-actions, .hx10-card .hx10-actions { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 6px; }
.acts .btn, .card .hx10-actions .hx-btn:not(.hx10-outline):not(.hx-btn-ghost), .hx9-job .hx10-actions .hx-btn:not(.hx10-outline), .hx10-card .hx10-actions .hx-btn:not(.hx10-outline) { width: 100%; }
.hx9-job-who, .hx10-card .hx-help { font-size: 15px; color: var(--muted); margin: 0; }
.hx9-job dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 16px; }
.hx9-job dt { font: 600 12px/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ox); }
.hx9-job dd { margin: 0; }
.hx9-all, .more { margin: 28px 0 0; }
.hx9-all a { font: 700 18px/1.3 var(--display); color: var(--ink); text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 3px; text-underline-offset: 6px; display: inline-flex; min-height: 44px; align-items: center; }
.hx10-card-fit { background: var(--rose); }
.h7-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.h7-icon { width: 36px; height: 36px; flex: none; }
.h7-icon .st { fill: none; stroke: var(--ox); stroke-width: 2; stroke-linecap: square; } .h7-icon .fl { fill: var(--signal); }
@media (max-width: 1100px) { .cards, .hx9-jobs, .hx-cards, .icp-cards, .hx-whos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .cards, .hx9-jobs, .hx-cards, .icp-cards, .hx-whos { grid-template-columns: minmax(0, 1fr); } }

/* example blocks inside cards (built from the tools' real answers) */
.hx10-ex { font-size: 16px; line-height: 1.45; }
.hx10-ex-k { margin: 0 0 10px; font: 600 13px/1.3 var(--mono); color: var(--muted); }
.hx10-ex-q { font-weight: 700; margin: 0 0 6px; }
.hx10-ex-l { margin: 0 0 6px; }
.hx10-ex-big { font: 800 22px/1.2 var(--display); color: var(--ox); margin: 0 0 8px; }
.hx10-ex-list, .bars, .hx10-bars, .kv { list-style: none; margin: 0; padding: 0; }
.hx10-ex-list li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.hx10-ex-n { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.hx10-bars { display: grid; gap: 8px; } .hx10-bars li { display: grid; gap: 4px; font-size: 15px; }
.hx10-bar { display: block; height: 12px; border: 1.5px solid var(--edge); }
.hx10-bar-0 { width: 100%; background: var(--bar-1); } .hx10-bar-1 { width: 64%; background: var(--bar-2); } .hx10-bar-2 { width: 30%; background: var(--bar-3); }
/* the EPIC scorecard */
.hx8-sc { margin: 0; }
.hx8-sc-k { font: 600 13px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ox); margin: 0 0 10px; }
.hx8-sc-in { font: 500 14px/1.45 var(--mono); color: var(--muted); margin: 0 0 12px; }
.hx8-sc-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hx8-sc-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: 15px; align-items: center; }
.hx8-sc-l { font-weight: 600; }
.hx8-sc-bar { grid-column: 1 / -1; grid-row: 2; height: 12px; border: 1.5px solid var(--edge); background: var(--white); position: relative; overflow: hidden; }
.hx8-sc-bar i { position: absolute; inset: 0 auto 0 0; background-color: var(--white); background-image: radial-gradient(circle, var(--ox) 1.1px, transparent 1.4px); background-size: 4px 4px; }
.hx8-sc-rows li.is-lead .hx8-sc-bar i { background: var(--bar-1); }
.hx8-sc-rows li b { font: 600 14px/1.3 var(--mono); white-space: nowrap; }
.hx8-sc-rows li b small { font-size: 13px; font-weight: 400; color: var(--muted); }
.hx8-sc-v { margin: 14px 0 0; font: 800 20px/1.2 var(--display); color: var(--ox); }
.hx8-sc-cta { display: inline-flex; min-height: 44px; align-items: center; margin-top: 8px; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.hx8-v0 { width: 0%; } .hx8-v1 { width: 10%; } .hx8-v2 { width: 20%; } .hx8-v3 { width: 30%; } .hx8-v4 { width: 40%; } .hx8-v5 { width: 50%; } .hx8-v6 { width: 60%; } .hx8-v7 { width: 70%; } .hx8-v8 { width: 80%; } .hx8-v9 { width: 90%; } .hx8-v10 { width: 100%; }
.w0 { width: 0; } .w10 { width: 10%; } .w20 { width: 20%; } .w30 { width: 30%; } .w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w64 { width: 64%; } .w65 { width: 65%; } .w66 { width: 66%; } .w70 { width: 70%; } .w71 { width: 71%; } .w76 { width: 76%; } .w80 { width: 80%; } .w90 { width: 90%; } .w100 { width: 100%; }

/* ================= 13. D12 tool lists: every row is one link to its tool ================= */
.tools { list-style: none; margin: 0; padding: 0; }
.tools li.th { display: grid; grid-template-columns: 56px minmax(0, 1.05fr) minmax(0, 1.35fr) minmax(0, 1.6fr) 84px; gap: 6px 20px; padding: 4px 12px 12px; font: 600 13px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ox); border-bottom: 2px solid var(--ink); }
.trow { display: grid; grid-template-columns: 56px minmax(0, 1.05fr) minmax(0, 1.35fr) minmax(0, 1.6fr) 84px; gap: 6px 20px; align-items: center; min-height: 56px; padding: 14px 12px;
  border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.45; color: inherit; text-decoration: none; cursor: pointer; }
.tools.cols3 li.th, .tools.cols3 .trow { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.8fr) 84px; }
.trow .idx { align-self: start; padding-top: 4px; }
.trow .nm { font-weight: 800; font-size: 18px; line-height: 1.3; text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.trow .k { display: none; font: 600 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ox); margin-bottom: 2px; }
.trow .open { justify-self: end; display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ox); white-space: nowrap; }
.trow .arr { font: 700 22px/1 var(--display); }
.trow:hover, .trow:focus-visible { background: var(--rose); outline: none; }
.trow:focus-visible { box-shadow: inset 0 0 0 3px var(--signal); }
.trow:hover .nm, .trow:focus-visible .nm { text-decoration-thickness: 3px; }
.tools li:last-child .trow { border-bottom: 0; }
.tools.jobs li.th { display: none; }
.tools.jobs li.jrow { display: grid; grid-template-columns: minmax(0, 1fr) 200px; align-items: center; border-bottom: 1px solid var(--line); }
.tools.jobs li.jrow .trow { border-bottom: 0; }
.tools.jobs .trow .k { display: block; }
@media (max-width: 900px) { .tools.jobs li.jrow { grid-template-columns: minmax(0, 1fr); border-bottom: 0; } .tools.jobs .sample { padding-left: 0; } }
.hx-card-kicker .hx10-kick2 { color: #5A4B4E; }
.tools .sample { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font: 600 15px/1.3 var(--display); color: var(--ink); text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 4px; }
@media (max-width: 900px) {
  .tools li.th { display: none; }
  .tools li + li { margin-top: 12px; }
  .trow, .tools.cols3 .trow { grid-template-columns: 40px minmax(0, 1fr); gap: 8px 12px; align-items: start; padding: 16px 14px; border: 1.5px solid var(--edge); background: var(--white); }
  .tools.cols3 .trow { grid-template-columns: minmax(0, 1fr); }
  .tools li:last-child .trow { border-bottom: 1.5px solid var(--edge); }
  .trow .gv, .trow .rv, .trow .open { grid-column: 2; }
  .tools.cols3 .trow .gv, .tools.cols3 .trow .rv, .tools.cols3 .trow .open { grid-column: 1; }
  .trow .k { display: block; }
  .trow .open { justify-self: start; margin-top: 4px; min-height: 44px; padding: 0 14px; background: var(--ox); color: var(--paper); }
}

/* ================= 14. tables, code, panels, steps ================= */
.hx-table { max-width: 100%; overflow-x: auto; margin: 16px 0; }
.hx-table table, main table { border-collapse: collapse; width: 100%; font-size: 16px; background: var(--white); }
.hx-table-wide table { min-width: 640px; }
.hx-table th, .hx-table td, main table th, main table td { border: 1.5px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; overflow-wrap: normal; word-break: normal; }
.hx-table th, main table th { font: 600 13px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: var(--clay); border-bottom: 2px solid var(--edge); }
.hx-table code, main table code { white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.hx-table td a, main table td a { overflow-wrap: anywhere; }
@media (max-width: 600px) { main table { display: block; max-width: 100%; overflow-x: auto; } }
.hx-addr, .hx-code-block { background: var(--white); color: var(--ink); border: 2px solid var(--edge); padding: 14px 16px; overflow-x: auto; white-space: pre; font-size: 14px; margin: 12px 0; }
.hx-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.hx-two > * { min-width: 0; }
.hx-panel ol { margin: 8px 0 0; padding-left: 20px; }
.hx-panel li { margin: 6px 0; }
.hx-steps li, .hx9-steps li { margin: 8px 0; }
.hx-quote, blockquote { border-left: 4px solid var(--signal); margin: 12px 0; padding: 6px 14px; font-style: italic; max-width: 72ch; }
.hx-pn { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 24px; }
.hx-pn a, .hx9-next a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 4px; }
.hx9-next { margin: 22px 0 0; padding-top: 14px; border-top: 1.5px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: center; font-size: 17px; }
.hx9-example-note { margin: 12px 0 0; padding: 10px 14px; background: var(--rose); color: #1A0E10; border-left: 4px solid var(--signal); font-size: 17px; }

/* ================= 15. forms ================= */
.hx-field { margin: 0 0 20px; max-width: 640px; }
.hx-field label, .hx-field legend { display: block; font-weight: 700; margin-bottom: 6px; }
.hx-field input:not([type=hidden]):not([type=checkbox]):not([type=radio]), .hx-field select, .hx-field textarea, .hx-form input:not([type=hidden]):not([type=checkbox]):not([type=radio]), .hx-form textarea, .hx-form select {
  width: 100%; min-height: 50px; font: inherit; font-size: 17px; color: var(--ink); background: var(--white); border: 2px solid var(--edge); border-radius: 0; padding: 10px 12px; }
.hx-field textarea.hx-code { font-family: var(--mono); font-size: 14px; }
.hx-check { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hx-check input { width: 22px; height: 22px; accent-color: var(--ox); }
.hx-check label { margin: 0; min-height: 44px; display: inline-flex; align-items: center; }
/* R11-A1-9: the label is a 44 px box that covers the 22 px checkbox, so a tap anywhere on it toggles the box */
.hx-check { position: relative; } .hx-check input { position: absolute; left: 11px; top: 11px; margin: 0; } .hx-check label { padding-left: 44px; min-width: 44px; }
.hx-check .hx-help { flex-basis: 100%; }
.hx-req { color: var(--signal); }
.hx-opt { color: var(--muted); font-weight: 400; font-size: 15px; }
.hx10-choice { border: 0; padding: 0; margin: 0 0 20px; }
.hx10-choice label { display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 400; margin: 0; }
.hx10-choice input[type=radio] { width: 22px; height: 22px; flex: 0 0 22px; margin: 0; accent-color: var(--ox); }
.hx-error { border: 2px solid var(--signal); padding: 12px 14px; }

/* ================= 16. tool results ================= */
.hx-result { margin-top: 24px; }
.hx-result-actions { margin: 0 0 12px; }
.hx-result-body { overflow-wrap: break-word; }
.hx-result-body h2, .hx-result-body h3, .hx-result-body h4 { margin: 20px 0 8px; }
.hx-result-body pre { background: var(--paper); }
.hx-result-body blockquote { font-style: normal; }
.hx-output { margin-top: 12px; }
.hx-run { border-top: 1.5px solid var(--line); padding: 8px 0; }
.hx-run > summary, .hx8-dev > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font: 600 15px/1.3 var(--mono); color: var(--ink); }
.hx8-dev { margin-top: 32px; border: 1.5px solid var(--line); background: var(--white); }
.hx8-dev > summary { padding: 0 16px; } .hx8-dev > div { padding: 0 16px 16px; }

/* ================= 17. questions and answers (collapsed) ================= */
.hx-qa details, .faq details { border-bottom: 1.5px solid var(--edge); max-width: 980px; }
.hx-qa details:first-of-type, .faq details:first-of-type { border-top: 2px solid var(--edge); }
.hx-qa summary, .faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; padding: 16px 0; font: 600 17px/1.35 var(--mono); }
.hx-qa summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.hx-qa summary::after, .faq summary::after { content: "+"; flex: none; width: 34px; height: 34px; display: grid; place-items: center; background: var(--ox); color: var(--paper); font: 600 22px/1 var(--mono); }
.hx-qa details[open] summary::after, .faq details[open] summary::after { content: "x"; font-size: 18px; }
.hx-qa details p, .faq details p { margin: 0 0 18px; font-size: 18px; line-height: 1.5; max-width: 60ch; color: var(--ink); }
.hx-qa > p a { display: inline-flex; min-height: 44px; align-items: center; }

/* ================= 18. not the right fit ================= */
.nf, .hx-nf { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--edge); counter-reset: nf; }
.nf li, .hx-nf li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.4; }
.hx-nf li::before { counter-increment: nf; content: "[0" counter(nf) "]"; font: 600 13px/1.2 var(--mono); color: var(--ox); padding-top: 5px; }
.nf-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.close { font-size: 20px; margin: 28px 0 18px; }
@media (max-width: 900px) { .nf-grid { grid-template-columns: minmax(0, 1fr); } }

/* ================= 19. connectors and plugins in two windows ================= */
.duo, .hx10-diagrams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); align-items: start; }
.hx10-diagrams .hx8-vis { max-width: none; margin: 0; }
.win-sub { font: 500 14px/1.4 var(--mono); color: var(--muted); margin: 0 0 8px; }
.dl { list-style: none; padding: 0; margin: 0; }
.dl li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
.dl .nm { font-weight: 700; font-size: 17px; } .dl .c { font: 600 14px/1.3 var(--mono); }
.dl .bar, .bars .bar { grid-column: 1 / -1; height: 10px; border: 1.5px solid var(--edge); background: var(--white); }
.bar i { display: block; height: 100%; background-color: var(--bar-1); }
.bar i.d { background-color: var(--white); background-image: radial-gradient(circle, var(--ox) 1.1px, transparent 1.4px); background-size: 4px 4px; }
.bar i.s { background-color: var(--bar-2); }
.pl li { align-items: center; }
.bars { display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: 15px; line-height: 1.3; }
.bars .n { font: 600 14px/1.3 var(--mono); }
.verdict { font: 800 20px/1.2 var(--display); color: var(--ox); margin: 14px 0 0; }
.kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.kv dt, .kv dd { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.kv dd { font-weight: 800; font-size: 20px; text-align: right; }
.wyg { list-style: none; margin: 0; padding: 0; }
.wyg li { position: relative; padding: 9px 0 9px 26px; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.4; }
.wyg li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 10px; height: 10px; background: var(--ox); }
.chat .who { font: 500 15px/1.3 var(--mono); color: var(--ox); margin: 0; }
.chat .q { font: 700 19px/1.35 var(--display); margin: 2px 0 16px; }
.chat .res { list-style: none; padding: 0; margin: 8px 0 0; font-size: 18px; line-height: 1.45; }
.chat .res li { padding: 3px 0; }
.chat .ex { font: 500 15px/1.4 var(--mono); color: var(--signal); margin: 10px 0 0; }
.cur { display: inline-block; width: 12px; height: 20px; background: var(--ox); margin-top: 10px; vertical-align: middle; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts div { padding: 4px 14px 6px 0; } .facts div + div { padding-left: 14px; border-left: 1.5px solid var(--edge); }
.facts b { display: block; font: 800 clamp(34px, 3.4vw, 52px)/1 var(--display); letter-spacing: -.04em; }
.facts span { display: block; font-size: 15px; line-height: 1.35; margin-top: 8px; }
@media (max-width: 1023px) { .duo, .hx10-diagrams { grid-template-columns: minmax(0, 1fr); } .hx10-diagrams .hx8-vis { max-width: 560px; } }
@media (max-width: 900px) { .facts { grid-template-columns: minmax(0, 1fr); } .facts div, .facts div + div { padding: 10px 0; border-left: 0; border-top: 1.5px solid var(--edge); } .facts div:first-child { border-top: 0; padding-top: 0; } }

/* ================= 20. footer: rose band, link columns, giant wordmark in crop marks ================= */
footer.hx-footer, .ft { background: var(--rose-mid); color: var(--ink); margin: 0; padding: clamp(40px, 6vw, 80px) 0 28px; font-size: 15px; }
.hx-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 24px; }
.hx-footer .hx-foot-h { font: 600 13px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 0 0 8px; }
.hx-footer p { margin: 8px 0; color: var(--ink); }
.hx-footer a { display: flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.hx-footer a:hover { text-decoration: underline; text-decoration-color: var(--signal); }
.hx-footer .hx-lockup { display: inline-flex; gap: 11px; font: 600 14px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.hx-footer .hx-alpha { width: 38px; height: 38px; display: grid; place-items: center; background: var(--signal); color: #FFFFFF; font: italic 700 24px/1 Georgia, serif; }
.hx-footer .hx-wordmark { font: 600 14px/1 var(--mono); letter-spacing: .12em; }
.hx7-built { display: flex; gap: 16px; align-items: flex-start; padding: 0 0 28px; margin: 0 0 28px; border-bottom: 1.5px solid var(--line); }
.hx7-built-h { font-weight: 800; font-size: 20px; }
.hx7-built-links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.ft-crop, .hx-footer .crop { margin: clamp(28px, 4vw, 48px) 0 0; padding: clamp(16px, 2.4vw, 36px) clamp(10px, 1.6vw, 24px); }
.giant, .hx7-giant { display: block; width: 100%; height: auto; }
.giant text { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; fill: var(--ink); }
.hx-footer-bottom, .ft-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 24px; font: 500 14px/1.5 var(--mono); }
.hx-footer-bottom a { display: inline-flex; min-height: 44px; }
@media (max-width: 980px) { .hx-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .hx-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ================= 21. tool visuals and diagrams (work/run8/visuals.py, tool_visuals.py): SVG classes ================= */
.hx8-svg text { font-family: var(--display); fill: var(--ink); }
.hx8-svg .v-t { font-size: 14px; } .hx8-svg .v-ts, .hx8-svg .v-tp, .hx8-svg .v-tm, .hx8-svg .v-k, .hx8-svg .v-tmp { font-size: 13px; }
.hx8-svg .v-tb { font-size: 14px; font-weight: 700; }
.hx8-svg .v-tm, .hx8-svg .v-k, .hx8-svg .v-tmp { font-family: var(--mono); }
.hx8-svg .v-k { font-weight: 600; letter-spacing: .08em; fill: var(--ox); text-transform: uppercase; }
.hx8-svg .v-tp, .hx8-svg .v-tmp { fill: var(--paper); }
.hx8-svg .v-letter { font-size: 22px; font-weight: 800; fill: var(--paper); }
.hx8-svg .v-big { font-size: 26px; font-weight: 800; }
.hx8-svg .v-oxt { fill: var(--ox); } .hx8-svg .v-sigt { fill: var(--signal); }
.hx8-svg .v-strike { text-decoration: line-through; fill: var(--muted); }
.hx8-svg .v-ox { fill: var(--bar-1); } .hx8-svg .v-sig { fill: var(--bar-2); } .hx8-svg .v-ink7 { fill: #5A4B4E; } /* R11-A1-4: paper text on it 7.8:1 (was 3.92:1) */
.hx8-svg .v-clay { fill: var(--clay); } .hx8-svg .v-clayd { fill: var(--clay); stroke: var(--ox); stroke-width: 1.5; } .hx8-svg .v-paper { fill: var(--paper); }
.hx8-svg .v-paperb { fill: var(--white); stroke: var(--line); stroke-width: 1.5; }
.hx8-svg .v-line { stroke: var(--line); stroke-width: 1.5; fill: none; }
.hx8-svg .v-link { stroke: var(--ox); stroke-width: 2; fill: none; }
.hx8-svg .v-spine { stroke: var(--ink); stroke-width: 3; fill: none; }
.hx8-svg .v-arc { stroke: var(--clay); stroke-width: 18; fill: none; } .hx8-svg .v-arcv { stroke: var(--bar-2); stroke-width: 18; fill: none; }
.hx8-svg .v-needle { stroke: var(--ox); stroke-width: 4; }
.hx8-svg .v-ringseg, .hx8-svg .v-ringseg.v-ink7s { fill: none; stroke-width: 26; } /* R11-A2-7: .v-ink7s also sets a fill, which painted a grey half-disc behind the ring's centre label (text at about 3:1) */
.hx8-svg .v-oxs { stroke: var(--bar-1); } .hx8-svg .v-sigs { stroke: var(--bar-2); } .hx8-svg .v-ink7s { stroke: var(--bar-3); fill: var(--bar-3); } .hx8-svg .v-clayds { stroke: var(--clay); }
.hx8-svg .v-clays { fill: var(--clay); stroke: var(--ox); stroke-width: 1.5; }
.hx8-svg .v-grow, .hx8-svg .v-grow-y, .hx8-svg .v-pop, .hx8-svg .v-drop, .hx8-svg .v-slide, .hx8-svg .v-fall { transform-box: fill-box; }
.hx8-svg .v-grow { transform-origin: left center; animation: hx-grow .9s cubic-bezier(.2, .7, .2, 1) both; }
.hx8-svg .v-grow-y { transform-origin: center bottom; animation: hx-growy .9s cubic-bezier(.2, .7, .2, 1) both; }
.hx8-svg .v-pop { transform-origin: center; animation: hx-pop .6s cubic-bezier(.2, .8, .3, 1.2) both; }
.hx8-svg .v-drop { animation: hx-drop .6s ease-out both; } .hx8-svg .v-slide { animation: hx-slide .7s ease-out both; }
.hx8-svg .v-fall { animation: hx-fall 1.2s ease-in both; } .hx8-svg .v-fade { animation: hx-fade .8s ease-out both; }
.hx8-svg .v-draw { stroke-dasharray: 600; animation: hx-draw 1.2s ease-out both; }
.hx8-svg .v-tilt { transform-box: view-box; transform-origin: 180px 70px; animation: hx-tilt 1.6s ease-in-out both; }
.hx8-svg .v-blink { animation: hx-blink 1s steps(2, start) 6; }
.hx8-svg .d1 { animation-delay: .1s; } .hx8-svg .d2 { animation-delay: .2s; } .hx8-svg .d3 { animation-delay: .3s; } .hx8-svg .d4 { animation-delay: .4s; } .hx8-svg .d5 { animation-delay: .5s; }
.hx8-svg .d6 { animation-delay: .6s; } .hx8-svg .d7 { animation-delay: .7s; } .hx8-svg .d8 { animation-delay: .8s; } .hx8-svg .d9 { animation-delay: .9s; }
@keyframes hx-grow { from { transform: scaleX(0); } } @keyframes hx-growy { from { transform: scaleY(0); } }
@keyframes hx-pop { from { transform: scale(.4); opacity: 0; } } @keyframes hx-drop { from { transform: translateY(-14px); opacity: 0; } }
@keyframes hx-slide { from { transform: translateX(-18px); opacity: 0; } } @keyframes hx-fall { from { transform: translateY(0); opacity: 1; } to { transform: translateY(70px); opacity: 0; } }
@keyframes hx-fade { from { opacity: 0; } } @keyframes hx-draw { from { stroke-dashoffset: 600; } }
@keyframes hx-tilt { 0% { transform: rotate(-6deg); } 100% { transform: rotate(0); } } @keyframes hx-blink { to { visibility: hidden; } }
@keyframes hx-cur { 50% { opacity: 0; } }

/* ================= 22. page-specific pieces kept from earlier runs (content, not a second layer) ================= */
.h7-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: 28px; }
.h7-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.h7-col { border-left: 2px solid var(--ox); padding: 2px 0 2px 18px; }
.h7-col h3 { font-size: 22px; margin: 8px 0 6px; }
.h7-col p { margin: 0; color: var(--muted); }
.h7-col a { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink); font-weight: 700; text-decoration-color: var(--signal); }
@media (max-width: 980px) { .h7-cols, .h7-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .h7-cols, .h7-cols-4 { grid-template-columns: minmax(0, 1fr); } }
.h7-fit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; margin-top: 28px; }
.hx8-motions { list-style: none; margin: 20px 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.hx8-motions li { background: var(--white); border: 1.5px solid var(--edge); border-top: 6px solid var(--ox); padding: 20px; box-shadow: 6px 6px 0 var(--shadow); }
.hx8-letter { display: inline-grid; place-items: center; width: 44px; height: 44px; background: var(--ox); color: var(--paper); font: 800 24px/1 var(--display); margin-bottom: 8px; }
.hx8-proof { margin-top: 24px; padding: 14px 16px; background: var(--rose); color: #1A0E10; border-left: 4px solid var(--signal); font-size: 17px; }
.hx10-fw dt { font: 800 var(--card)/1.1 var(--display); margin: 22px 0 6px; color: var(--ox); }
.hx10-fw dd { margin: 0; max-width: 70ch; }
.hx10-term-row { max-width: 480px; margin: 12px 0 0; }
.hx10-dl { font: 500 14px/1.5 var(--mono); color: var(--muted); }
@media (max-width: 700px) { .hx8-motions, .h7-fit, .hx-two { grid-template-columns: minmax(0, 1fr); } }

/* ================= 23. phones ================= */
@media (max-width: 600px) {
  body { font-size: 17px; }
  :root { --body: 17px; }
  .hx9-word { font-size: 13px; letter-spacing: .12em; }
  .hx9-mark { width: 34px; height: 34px; font-size: 26px; }
  .win-body, .hx8-sc, .hx-result, .hx10-ex, .hx-panel, .hx-form { padding: 16px 14px; }
  .win-foot { padding: 10px 14px; }
  .win, .hx-form, .hx8-sc, .hx-result, .hx10-ex, .hx8-vis, .hx9-term, .hx-panel, .card, .hx9-job, .hx10-card, .hx-card-static, .hx-who, .hx8-motions li { box-shadow: 4px 4px 0 var(--shadow); }
  .card, .hx9-job, .hx10-card, .hx-card-static, .hx-who { padding: 18px 16px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat { padding: 8px 12px 24px 16px; }
  .field { padding: 40px 10px 24px; border-left: 0; }
  .nf li, .hx-nf li { grid-template-columns: 44px minmax(0, 1fr); }
  .hx-qa summary, .faq summary { font-size: 15px; }
  .recog li, .hx8-awards li { font-size: 15px; }
  .hx-lead, .lede, .hx-sub { font-size: 18px; }
}

/* ================= 24. motion: nothing blinks, animates or scrolls smoothly when reduced motion is asked for ================= */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .cur { animation: hx-cur 1.1s steps(1) infinite; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ================= 25. dark mode: the device setting only (no toggle, no script); tokens swap ================= */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #FAF8F6; --paper: #1A0E10; --white: #261619; --muted: #CBB9BC; --ox: #F2AAB3;
    --line: rgba(250, 248, 246, .18); --edge: rgba(250, 248, 246, .35); --shadow: rgba(242, 170, 179, .35); --link: #F6D4D8;
    --rose-mid: #2A1216; --bar-1: #F2AAB3; --bar-2: #E0303D; --bar-3: #9A8A8D;
    --hx-ink-55: rgba(250, 248, 246, .55); --hx-paper-80: rgba(26, 14, 16, .8);
    color-scheme: dark;
  }
  body { background: #1A0E10; color: #FAF8F6; }
  :focus-visible { outline-color: #F2AAB3; }
  .btn, .hx-btn, button.hx-btn, a.hx-btn { background: #F2AAB3; border-color: #F2AAB3; color: #1A0E10; }
  .btn:hover, .hx-btn:hover, .btn:focus-visible, .hx-btn:focus-visible { background: #F6D4D8; border-color: #F6D4D8; color: #1A0E10; }
  .tlink, .slink, .hx-btn.hx-btn-ghost, .hx-btn.hx10-outline, .hx7-links a, .hx9-all a, .hx9-next a, .hx-pn a, .h7-col a, .hx8-sc-cta, .hx7-strip a, .tools .sample { color: #F6D4D8; }
  .tag, .hx-eyebrow { background: #FAF8F6; color: #1A0E10; }
  .chip.ox, .h7-dev { background: #F2AAB3; color: #1A0E10; }
  .win-bar { background: #FAF8F6; color: #1A0E10; }
  .wb i { border-color: #1A0E10; }
  .hx9-mark, .hx-footer .hx-alpha { color: #FAF8F6; }
  .cm { border-color: #F2AAB3; }
  .giant text { fill: #F2AAB3; }
  .hx-hero, .hero { background: linear-gradient(165deg, #3A0F1A 0%, #2A1020 38%, #15182A 66%, #0E1B2B 100%); }
  .hx-hero::before, .hero::before { background-image: radial-gradient(circle, rgba(242, 170, 179, .30) 1.2px, transparent 1.7px); }
  .hx-hero::after, .hero::after { background-image: radial-gradient(circle, rgba(207, 230, 245, .22) 1px, transparent 1.4px); }
  .band-rose, footer.hx-footer, .ft, .hx7-cred { background: #2A1216; }
  .field { border-left-color: #F2AAB3; background-image: radial-gradient(circle, rgba(250, 248, 246, .20) 1px, transparent 1.3px); }
  .stat, .h7-col { border-left-color: #F2AAB3; }
  .card, .hx9-job, .hx10-card, .hx-card-static, .hx-who, .tile, .hx8-tiles li, .hx8-motions li { border-top-color: #F2AAB3; }
  .card.is-match, .hx9-job.is-hit { outline-color: #F2AAB3; }
  .chat .ex { color: #F2AAB3; }
  .bar i.d, .hx8-sc-bar i { background-color: #261619; background-image: radial-gradient(circle, #9A8A8D 1.1px, transparent 1.4px); }
  .hx-table th, main table th { background: #3A2226; color: #FAF8F6; }
  code { background: #3A2226; color: #FAF8F6; }
  .photo img, .hx9-photo img, .hx7-cred-photo img { background: #EAD9D5; }
  .trow:hover, .trow:focus-visible { background: #F6D4D8; color: #1A0E10; }
  .trow:hover .k, .trow:hover .open, .trow:hover .idx, .trow:focus-visible .k, .trow:focus-visible .open, .trow:focus-visible .idx { color: #641220; }
  .trow:focus-visible { box-shadow: inset 0 0 0 3px #C1121F; }
  .trow .nm { text-decoration-color: #E0303D; }
  .hx10-card-fit { background: #3A2226; }
  .hx8-svg .v-tp, .hx8-svg .v-tmp, .hx8-svg .v-letter { fill: #1A0E10; }
  /* R11-A1-4: dark text pairs at AA: Tier B tile 6.3:1 (was 4.18), Tier C tile, "Data gap" label 12.7:1 (was 2.79), required asterisk 9.2:1 (was 2.79), placeholders 9.3:1 (were 3.76) */
  .hx8-svg .v-sig { fill: #EE6A76; } .hx8-svg .v-ink7 { fill: #9A8A8D; } .hx8-svg .v-sigt { fill: #F6D4D8; }
  .hx-req { color: #F2AAB3; }
  ::placeholder { color: #CBB9BC; opacity: 1; }
  .hx8-svg .v-clay, .hx8-svg .v-clayd, .hx8-svg .v-clays, .hx8-svg .v-arc { fill: #3A2226; }
  .hx8-svg .v-arc { fill: none; stroke: #3A2226; }
  .hx8-proof, .hx9-example-note { background: #3A2226; color: #FAF8F6; }
}
@media (prefers-color-scheme: dark) and (max-width: 900px) {
  .trow .open { background: #F2AAB3; color: #1A0E10; }
  .trow:hover .open, .trow:focus-visible .open { background: #641220; color: #FAF8F6; }
}
/* code inside a window: the window is the frame (no second border) */
.win pre.hx11-in-win, .win-body > pre { border: 0; margin: 0; box-shadow: none; }
