/* Field and file: the buyer's world at blue hour, the product on white paper, and one thread between
   them. The name is set from config.json; nothing here depends on it. Tokens first, then components, then pages.
   Mobile first: 375, then 480, 768, 1024, 1280. The system is written up in site/DESIGN.md. */
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/plexmono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/plexmono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: light;
  /* field (dark) */
  --night: #0A1216; --night-2: #111D23; --night-3: #1B2B33;
  --line-dark: rgba(214, 228, 235, .14); --line-dark-2: rgba(214, 228, 235, .28);
  --fog: #A9B7BE; --fog-2: #8C9BA3;
  /* file (light) */
  --paper: #F4F3EF; --paper-2: #EAE8E1; --sheet: #FFFFFF;
  --ink: #0E171C; --ink-2: #45525A; --steel: #5F6C73; --rule: #D9DBD6; --rule-2: #BFC4C0;
  /* signal: the accent is one token (the thread); --accent-ink is the same hue dark enough for text on paper */
  --accent: #FF7A2F; --accent-hi: #FF9452; --accent-edge: #C2410C; --accent-ink: #A8420D; --on-accent: #0A1216;
  --accent-wash: rgba(255, 122, 47, .13);
  --marker: #F5E663;                       /* the highlighter: proof only, always under ink */
  --amber-ink: #8A4A0B; --amber-wash: #FAEDD8; --amber-line: #E6C99B;
  /* type */
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --fs-display: clamp(2.75rem, 1.5rem + 5.1vw, 6rem);
  --fs-title: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
  --fs-h2: clamp(2.125rem, 1.3rem + 3.3vw, 4rem);
  --fs-h3: clamp(1.25rem, 1.12rem + .55vw, 1.5rem);
  --fs-lead: clamp(1.125rem, 1.04rem + .4vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: 1rem;                        /* 16 px on phones, 15 px from 768 */
  --fs-label: .75rem;
  /* space: 4 px base */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --gutter: clamp(20px, 4.4vw, 64px);
  --section: clamp(72px, 4.6vw + 54px, 152px);
  --max: 1312px;
  --masthead: 64px;
  --bar: 0px;                               /* the phone order bar's height while it shows */
  /* shape, depth */
  --r-1: 3px; --r-2: 6px; --r-3: 12px;
  --shadow-sheet: 0 1px 1px rgba(14, 23, 28, .08), 0 6px 14px -4px rgba(14, 23, 28, .16), 0 28px 56px -22px rgba(14, 23, 28, .38);
  --shadow-sheet-dark: 0 1px 1px rgba(0, 0, 0, .35), 0 12px 24px -8px rgba(0, 0, 0, .55), 0 48px 90px -30px rgba(0, 0, 0, .8);
  /* motion */
  --ease: cubic-bezier(.2, .7, .2, 1); --t1: 160ms; --t2: 320ms;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--masthead) + 16px); scroll-padding-bottom: calc(var(--bar) + 16px); }
body { margin: 0; font: 400 var(--fs-body)/1.55 var(--sans); color: var(--ink); background: var(--paper); font-synthesis: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 720; font-stretch: 76%; letter-spacing: -.018em; line-height: .98; text-wrap: balance; }
h3 { font-size: var(--fs-h3); font-weight: 700; font-stretch: 82%; letter-spacing: -.01em; line-height: 1.12; }
strong, b { font-weight: 650; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: #fff; }
.on-dark .price-main :focus-visible { outline-color: var(--accent-ink); }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(760px + 2 * var(--gutter)); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 16px; background: var(--sheet); color: var(--ink); font-weight: 650; border-radius: var(--r-2); }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.unset { background: var(--amber-wash); color: var(--amber-ink); padding: 0 4px; border-radius: 3px; }
.preview-bar { margin: 0; padding: 8px var(--gutter); background: var(--amber-wash); color: var(--amber-ink); border-bottom: 1px solid var(--amber-line); font: 500 .75rem/1.4 var(--mono); letter-spacing: .04em; text-align: center; }

/* labels: mono, uppercase, tracked; the index number is the section's sheet number */
.label, .eyebrow, .map-title { font: 500 var(--fs-label)/1.35 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 var(--s5); color: var(--accent-ink); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.eyebrow b { font-weight: 500; color: var(--steel); }
.on-dark .eyebrow { color: var(--accent); }
.on-dark .eyebrow b { color: var(--fog); }

/* ---------- mark and wordmark: the name is set in type, the mark carries none ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 0; color: inherit; text-decoration: none; }
.mark { width: 26px; height: 26px; flex: none; }
.mark .m-a { fill: none; stroke: currentColor; stroke-width: 2.6; }
.mark .m-t { fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; }
.mark .m-n { fill: var(--accent); }
.wordmark { font: 760 clamp(.8rem, .72rem + .45vw, .95rem)/1 var(--sans); font-stretch: 122%; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: clip; }

/* ---------- buttons ---------- */
.btn { --b: var(--accent); --e: var(--accent-edge); display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 22px; border: 1.5px solid var(--e); border-radius: var(--r-1); background: var(--b); color: var(--on-accent); font: 640 1rem/1.15 var(--sans); font-stretch: 96%; letter-spacing: .005em; text-align: center; text-decoration: none; cursor: pointer; transition: background var(--t1) var(--ease), border-color var(--t1) var(--ease), color var(--t1) var(--ease), transform var(--t1) var(--ease); }
.btn:hover { --b: var(--accent-hi); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn .arrow { width: 16px; height: 16px; flex: none; transition: transform var(--t1) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-price { display: inline-flex; align-items: center; gap: 12px; font: 500 .95rem/1 var(--mono); letter-spacing: 0; }
.btn-price::before { content: ""; width: 1px; height: 20px; background: currentColor; opacity: .35; }
.btn-ghost { --b: transparent; --e: rgba(14, 23, 28, .34); color: var(--ink); }
.btn-ghost:hover { --b: transparent; --e: var(--ink); }
.on-dark .btn-ghost { --e: rgba(255, 255, 255, .4); color: #fff; }
.on-dark .btn-ghost:hover { --e: #fff; }
.btn-small { min-height: 44px; padding: 0 16px; font-size: .95rem; }
.btn-block { width: 100%; }

/* ---------- masthead ---------- */
.masthead { position: sticky; top: 0; z-index: 50; height: var(--masthead); background: rgba(10, 18, 22, .94); -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px); box-shadow: 0 1px 0 var(--line-dark); color: #fff; transition: background var(--t2) var(--ease), box-shadow var(--t2) var(--ease); }
.js .home .masthead:not(.is-solid) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.masthead-in { height: 100%; display: flex; align-items: center; gap: var(--s4); }
.brand { margin-right: auto; }
.nav { display: none; }
.masthead .btn { flex: none; }
.js .masthead .btn { display: none; }
.menu-btn { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; border: 0; border-radius: var(--r-2); background: none; color: inherit; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .x { display: none; }
.menu-btn[aria-expanded="true"] .bars { display: none; }
.menu-btn[aria-expanded="true"] .x { display: block; }
.menu { position: fixed; inset: var(--masthead) 0 auto; z-index: 49; max-height: calc(100svh - var(--masthead)); overflow-y: auto; background: var(--night); border-top: 1px solid var(--line-dark); padding: var(--s2) var(--gutter) var(--s6); color: #fff; }
.menu > a { display: flex; align-items: center; min-height: 54px; color: #fff; text-decoration: none; font: 600 1.15rem/1 var(--sans); font-stretch: 90%; border-bottom: 1px solid var(--line-dark); }
.menu .btn { display: flex; width: 100%; margin-top: var(--s5); }

/* ---------- hero (phone: a photo band, the title over its foot) ---------- */
.hero { position: relative; margin-top: calc(-1 * var(--masthead)); background: var(--night); color: #fff; isolation: isolate; }
.hero-photo { position: relative; display: block; height: min(104vw, 60svh); min-height: 360px; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 30%; transform-origin: 60% 40%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(10, 18, 22, .82) 0, rgba(10, 18, 22, .5) 12%, rgba(10, 18, 22, 0) 26%, rgba(10, 18, 22, 0) 38%, rgba(10, 18, 22, .9) 70%, var(--night) 88%); }
.hero-in { position: relative; z-index: 1; margin-top: calc(-1 * clamp(108px, 30vw, 230px)); padding-bottom: var(--s8); }
.hero h1 { font-size: var(--fs-display); font-weight: 740; font-stretch: 74%; letter-spacing: -.022em; line-height: .93; max-width: 11.5em; }
.hero .lead { margin: var(--s5) 0 var(--s6); font-size: var(--fs-lead); line-height: 1.5; color: #D5DEE2; max-width: 34em; }
.cta-row { display: grid; gap: var(--s3); margin-bottom: var(--s6); }
.cta-row .btn { width: 100%; }
.hero .also { margin: calc(-1 * var(--s4)) 0 var(--s6); font-size: var(--fs-small); color: var(--fog); }
.hero-check { display: grid; gap: var(--s3); margin: 0 0 var(--s6); padding: var(--s4) var(--s5); border: 1px solid rgba(255, 122, 47, .6); border-radius: var(--r-2); background: rgba(255, 122, 47, .1); }
.hero-check-tag { justify-self: start; margin: 0; padding: 5px 9px 4px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 600 .6875rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.hero-check-text { margin: 0; font-size: var(--fs-small); line-height: 1.45; color: #E6ECEF; }
.hero-check-text strong { display: block; margin-bottom: 2px; color: #fff; font-size: 1.0625rem; }
.hero-check .btn { justify-self: start; }
.hero .also a { color: #fff; }

/* the title block: the terms that matter, set like the block on a drawing */
.titleblock { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--line-dark-2); }
.titleblock > div { min-width: 0; padding: var(--s4) var(--s4) var(--s4) 0; border-bottom: 1px solid var(--line-dark); }
.titleblock > div:nth-child(2) { padding-left: var(--s4); padding-right: 0; border-left: 1px solid var(--line-dark); }
.titleblock .tb-wide { grid-column: 1 / -1; padding-right: 0; }
.titleblock dt { color: var(--fog); margin-bottom: var(--s2); }
.titleblock dd { margin: 0; font-size: var(--fs-small); line-height: 1.45; color: #E6ECEF; }
.titleblock dd strong { display: block; margin-bottom: 6px; font: 700 2.25rem/1 var(--sans); font-stretch: 72%; letter-spacing: -.01em; color: #fff; }
.titleblock dd a { color: #fff; text-decoration-color: var(--accent); }

/* ---------- the worked example: real pages, the clause and its row marked, Detail A set in type ---------- */
.proof { position: relative; background: var(--night); color: #fff; padding: var(--s3) 0 var(--s9); }
.exhibit { display: grid; grid-template-columns: minmax(0, 1fr); }
.map-title { margin: 0 0 var(--s3); color: var(--fog); }
.exhibit > .maptabs { margin-bottom: var(--s5); }
.maptabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 4px; }
.maptabs::-webkit-scrollbar { display: none; }
.maptabs { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }   /* more tabs this way */
.maptabs button { flex: none; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-dark-2); border-radius: 999px; background: transparent; color: #D5DEE2; font: 560 .95rem/1 var(--sans); font-stretch: 92%; cursor: pointer; transition: background var(--t1) var(--ease), color var(--t1) var(--ease), border-color var(--t1) var(--ease); }
.maptabs button:hover { color: #fff; border-color: rgba(255, 255, 255, .6); }
.maptabs button[aria-selected="true"] { background: #fff; border-color: #fff; color: var(--ink); }
.maptabs .dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--fog); vertical-align: 1px; }
.maptabs button[aria-selected="true"] .dot { background: var(--accent-ink); box-shadow: none; }
.exhibit-panel:focus-visible { outline-offset: 8px; }

.stage { position: relative; padding: 22% 0 0; }
.doc { position: relative; margin: 0; background: var(--sheet); box-shadow: var(--shadow-sheet-dark); }
.doc img { width: 100%; height: auto; }
.doc-page { position: relative; display: block; }      /* the image and its marks: percentages are of the page, always */
.doc::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(14, 23, 28, .06); background: linear-gradient(118deg, rgba(255, 255, 255, 0) 58%, rgba(14, 23, 28, .045) 100%); pointer-events: none; }
.doc--map { position: absolute; top: 6%; right: 3%; width: 66%; transform: rotate(2deg); }
.doc--program { z-index: 1; width: 58%; margin-left: 3%; transform: rotate(-1.4deg); }
.hl { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); background: var(--marker); mix-blend-mode: multiply; border-radius: 2px 6px 3px 5px; opacity: .92; }
.js .hl { opacity: 0; transform: scaleX(.15); transform-origin: left center; transition: opacity var(--t2) var(--ease), transform 650ms var(--ease) 150ms; }
.js .is-live .hl { opacity: .92; transform: none; }
.anchor { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); pointer-events: none; }
.detail-box { position: absolute; left: calc(var(--x) - 2%); top: calc(var(--y) - 1%); width: calc(var(--w) + 4%); height: calc(var(--h) + 2%); border: 1.5px solid var(--accent); border-radius: 2px; }
.detail-box span { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font: 500 .6875rem/1 var(--mono); }
.doc-tag { position: absolute; left: 0; top: calc(100% + 10px); white-space: nowrap; color: var(--fog); font: 500 .6875rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.doc--map .doc-tag { top: auto; bottom: calc(100% + 8px); left: auto; right: 0; }
.traces { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.traces path { fill: none; stroke: var(--accent); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.traces .proj { stroke-dasharray: 3 4; opacity: .9; }
.traces .thread { stroke-width: 1.75; }
.js .traces .proj { opacity: 0; transition: opacity 600ms var(--ease) 500ms; }
.js .is-live .traces .proj { opacity: .9; }
.js .traces .thread { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 900ms var(--ease) 600ms; }
.js .is-live .traces .thread { stroke-dashoffset: 0; }
.traces .node { fill: var(--accent); stroke: none; }

.maprow { position: relative; z-index: 2; margin-top: 64px; background: var(--sheet); color: var(--ink); border-radius: var(--r-2); box-shadow: var(--shadow-sheet-dark); }
.maprow-detail { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(100% + 10px); margin: 0; color: var(--accent); font: 500 .6875rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.maprow-part { padding: var(--s4) var(--s4) var(--s5); }
.maprow-label { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px var(--s3); margin: 0 0 var(--s3); padding-bottom: var(--s3); border-bottom: 1px solid var(--rule); color: var(--steel); font: 500 var(--fs-label)/1.35 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.maprow-label span:last-child { color: var(--accent-ink); text-transform: none; letter-spacing: .02em; }
.maprow-text { margin: 0; font-size: 1rem; line-height: 1.55; }
.maprow-rule { background: #FAFAF7; border-top: 1px solid var(--rule); border-radius: 0 0 var(--r-2) var(--r-2); }
.maprow-rule .maprow-text { color: var(--ink-2); font-size: 1rem; }
.maprow-link { position: relative; z-index: 1; height: 0; }
.maprow-link span { position: absolute; right: var(--s4); top: 0; transform: translateY(-50%); padding: 5px 8px 4px; border-radius: 999px; background: var(--ink); color: #fff; font: 500 .6875rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
mark { background: linear-gradient(transparent 10%, var(--marker) 10%, var(--marker) 90%, transparent 90%); color: var(--ink); padding: 0 2px; border-radius: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.cite { font: 500 .8em/1 var(--mono); color: var(--accent-ink); background: var(--accent-wash); padding: 2px 5px; border-radius: 3px; white-space: nowrap; }
.proofs { list-style: none; margin: var(--s5) 0 0; padding: 0; display: grid; gap: var(--s2); font-size: var(--fs-small); color: #C3CED3; }
.proofs li { position: relative; padding-left: 28px; }
.proofs li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .55); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.5L13 6.4' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }

/* ---------- section frame ---------- */
.band { position: relative; padding: var(--section) 0; }
.band-paper { background: var(--paper); }
.band-sheet { background: var(--sheet); }
.band-night { background: var(--night); color: #fff; }
.section-head { max-width: 46rem; margin-bottom: var(--s7); }
.section-head h2 { font-size: var(--fs-h2); }
.section-head h2 + p, .section-head p:last-child:not(.eyebrow) { margin: var(--s5) 0 0; font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); max-width: 38em; }
.band-night .section-head p:not(.eyebrow) { color: #C3CED3; }

/* ---------- samples: the shelf and the reader ---------- */
.shelf { display: grid; gap: var(--s3); margin: 0 0 var(--s7); }
.cover { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: var(--s4); align-items: center; align-content: start; min-height: 44px; padding: var(--s3); border: 1px solid var(--rule); border-radius: var(--r-2); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background var(--t1) var(--ease), border-color var(--t1) var(--ease), box-shadow var(--t1) var(--ease); }
.cover:hover { background: rgba(255, 255, 255, .6); border-color: var(--rule-2); }
.cover[aria-checked="true"] { background: var(--sheet); border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), 0 10px 24px -14px rgba(14, 23, 28, .35); }
.cover-sheets { position: relative; display: block; aspect-ratio: 612 / 792; }
.cover-sheets img, .cover-sheets::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover-sheets::before { content: ""; background: var(--sheet); box-shadow: 0 0 0 1px rgba(14, 23, 28, .08); transform: translate(4px, 4px); }
.cover-sheets img { z-index: 1; object-fit: cover; object-position: top; background: var(--sheet); box-shadow: 0 0 0 1px rgba(14, 23, 28, .08), 0 6px 14px -6px rgba(14, 23, 28, .35); }
.cover-meta { display: grid; gap: 5px; justify-items: start; min-width: 0; }
.cover-name { font: 700 1.25rem/1.1 var(--sans); font-stretch: 80%; letter-spacing: -.01em; }
.cover-rule { font: 400 .8125rem/1.2 var(--mono); color: var(--steel); }
.cover-facts { font-size: .9375rem; line-height: 1.35; color: var(--ink-2); text-wrap: balance; }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px 4px; border: 1px solid var(--rule-2); border-radius: 999px; background: var(--sheet); color: var(--steel); font: 500 .6875rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; }
.status.is-open { background: var(--ink); border-color: var(--ink); color: #fff; }
.status.is-open::before { background: var(--accent); box-shadow: none; }

.samples { padding-bottom: 0; }                /* phone: the full-bleed reading table closes the section */
.reader { display: grid; gap: var(--s5); }
.reader-side { display: grid; gap: var(--s5); align-content: start; }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--paper-2); border-radius: var(--r-2); }
.seg button { min-height: 44px; border: 0; border-radius: 4px; background: transparent; color: var(--ink-2); font: 620 1rem/1 var(--sans); font-stretch: 92%; cursor: pointer; transition: background var(--t1) var(--ease), color var(--t1) var(--ease), box-shadow var(--t1) var(--ease); }
.seg button[aria-checked="true"] { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 2px rgba(14, 23, 28, .12), 0 0 0 1px rgba(14, 23, 28, .06); }
.reader-facts { margin: 0; font-size: var(--fs-small); color: var(--ink-2); }
.reader-facts b { color: var(--ink); font-weight: 650; }
.downloads { display: grid; margin: 0; border-top: 1px solid var(--rule); }
.downloads a { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 52px; border-bottom: 1px solid var(--rule); font-weight: 600; text-decoration: none; }
.downloads a:hover { color: var(--accent-ink); }
.downloads a::after { content: attr(data-kind); font: 400 .8125rem/1 var(--mono); color: var(--steel); }
.reader-note { margin: 0; font-size: var(--fs-small); line-height: 1.5; color: var(--steel); }
.reader-skip { margin: 0; font-size: .9375rem; }
.table { position: relative; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--s3) var(--s5); background: var(--night-2); color: #fff; }
.table:focus-visible { outline-offset: -3px; }
.table-bar { position: sticky; top: var(--masthead); z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: var(--s3); margin: 0 calc(-1 * var(--s3)) var(--s3); padding: var(--s3) var(--s4); background: var(--night-2); border-bottom: 1px solid var(--line-dark); color: var(--fog); font: 500 var(--fs-label)/1.35 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.table-bar b { color: #fff; font-weight: 500; }
.table-bar .tb-prog { display: none; }
.pages { display: grid; gap: var(--s4); }
.pages figure { margin: 0; }
.pages a { display: block; }
.pages img { width: 100%; background: var(--sheet); box-shadow: var(--shadow-sheet-dark); }
.pages figcaption { display: flex; justify-content: space-between; padding-top: var(--s2); color: var(--fog); font: 400 .75rem/1 var(--mono); letter-spacing: .06em; }
.viewer-more { width: 100%; margin-top: var(--s2); }
.viewer-noscript { margin: 0 0 var(--s3); color: #fff; }
.plain-list { margin: 0; padding-left: 1.2em; }
.plain-list li { margin-bottom: var(--s2); }
.plain-list li span { display: block; font-size: .9375rem; color: var(--fog); }
.table .plain-list a { color: #fff; }

/* ---------- how it works: five steps on one thread ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 var(--s6) 52px; counter-increment: step; }
.steps li::before { content: "0" counter(step); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--night); color: #fff; font: 500 .75rem/1 var(--mono); }
.steps li::after { content: ""; position: absolute; left: 16.5px; top: 36px; bottom: 4px; width: 1.5px; background: var(--accent); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { margin: 4px 0 var(--s2); }
.steps p { margin: 0; font-size: var(--fs-small); line-height: 1.55; color: var(--ink-2); max-width: 36em; }

/* ---------- the short version: three beats, one chalk-line drawing each, then one program first ---------- */
.work { padding-top: var(--s9); background: var(--night); color: #fff; border-top: 1px solid var(--line-dark); }
.beats { list-style: none; margin: 0; padding: 0; display: grid; }
.beat { padding: var(--s6) 0; border-top: 1px solid var(--line-dark); }
.beat:first-child { padding-top: 0; border-top: 0; }
.beat-art { display: block; width: 100%; max-width: 440px; height: auto; aspect-ratio: 16 / 5; margin: 0 0 var(--s5); color: var(--fog); overflow: visible; }
.beat-art .tool, .beat-art .string, .beat-art .tick { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.beat-art .tick { opacity: .7; }
.beat-art .pin { fill: currentColor; }
.beat-art .chalk { fill: none; stroke: var(--accent); stroke-width: 2.8; }
.beat-art .dust { fill: var(--accent); opacity: .6; }
.beat .label { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 22px; margin: 0 0 var(--s3); color: var(--fog); }
.chip-soon { padding: 5px 9px 4px; border: 1px solid var(--line-dark-2); border-radius: 999px; font: 500 .6875rem/1 var(--mono); letter-spacing: .1em; }
.beat h3 { margin: 0 0 var(--s3); }
.beat p:not(.label) { margin: 0; color: #C3CED3; max-width: 30em; }
.first { margin-top: var(--s7); padding: var(--s6) var(--s5); border: 1px solid var(--line-dark-2); border-radius: var(--r-2); background: var(--night-2); }
.first .label { margin: 0 0 var(--s4); color: var(--accent); }
.first h3 { margin: 0 0 var(--s3); font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem); font-weight: 720; font-stretch: 76%; letter-spacing: -.018em; line-height: 1.02; }
.first p:not(.label) { margin: 0 0 var(--s5); color: #C3CED3; max-width: 34em; }
.first .btn { width: 100%; }
@media (min-width: 768px) {
  .first { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: var(--s7); padding: var(--s7); }
  .first p:not(.label) { margin-bottom: 0; }
  .first .btn { grid-column: 2; grid-row: 1 / span 3; width: auto; }
}
@media (min-width: 900px) {
  .beats { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s7); }
  .beat, .beat:first-child { padding: 0; border-top: 0; }
  .beat-art { max-width: none; margin-bottom: var(--s6); }
}
@media (prefers-reduced-motion: no-preference) {
  .snap-ready .beat-art .chalk { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 900ms var(--ease) 150ms; }
  .snap-ready .beat-art .dust { opacity: 0; transition: opacity 600ms var(--ease) 700ms; }
  .snap-ready .beat-art.is-snapped .chalk { stroke-dashoffset: 0; }
  .snap-ready .beat-art.is-snapped .dust { opacity: .6; }
}
.step-n { display: none; }

/* ---------- prices: three title blocks on night ---------- */
.prices { display: grid; gap: var(--s4); }
.price { position: relative; display: flex; flex-direction: column; padding: var(--s5) var(--s5) var(--s5); border: 1px solid var(--line-dark-2); border-radius: var(--r-2); color: #E6ECEF; }
.price h3 { color: #fff; }
.price-tag { position: absolute; top: -12px; left: var(--s5); margin: 0; padding: 6px 10px 5px; border-radius: 999px; background: var(--night); border: 1px solid var(--line-dark-2); color: var(--fog); font: 500 .6875rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.price-main { background: var(--sheet); border-color: var(--sheet); color: var(--ink-2); box-shadow: var(--shadow-sheet-dark); }
.price-main h3 { color: var(--ink); }
.price-main .price-tag { background: var(--ink); border-color: var(--ink); color: #fff; }
.price-main .price-tag::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--accent); vertical-align: 0; }
.price-n { margin: var(--s4) 0 var(--s3); font: 720 3.75rem/1 var(--sans); font-stretch: 72%; letter-spacing: -.02em; color: #fff; }
.price-main .price-n { color: var(--ink); }
.price-n small { font: 500 1rem/1 var(--sans); font-stretch: 100%; letter-spacing: 0; color: var(--fog); }
.price-what { margin: 0 0 var(--s4); }
.price ul { list-style: none; margin: 0 0 var(--s5); padding: var(--s4) 0 0; border-top: 1px solid var(--line-dark); display: grid; gap: 10px; font-size: var(--fs-small); }
.price-main ul { border-color: var(--rule); }
.price li { position: relative; padding-left: 26px; }
.price li::before { content: ""; position: absolute; left: 0; top: .32em; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.4l2.8 2.7 6.2-6.4' fill='none' stroke='%23FF7A2F' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.price-main li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.4l2.8 2.7 6.2-6.4' fill='none' stroke='%23A8420D' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.price-check { border-color: var(--accent); }
.price-check .price-tag { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.price .btn { margin-top: auto; width: 100%; }
.price-fine { margin: var(--s4) 0 0; font-size: var(--fs-small); line-height: 1.45; color: var(--fog); }
.fit { margin: var(--s7) 0 0; padding: var(--s5) 0 0; border-top: 1px solid var(--line-dark-2); color: #C3CED3; }
.fit h3 { margin-bottom: var(--s4); color: #fff; }
.fit ul { list-style: none; margin: 0 0 var(--s4); padding: 0; display: grid; gap: var(--s4); font-size: var(--fs-small); }
.fit li { padding-left: var(--s4); border-left: 2px solid var(--line-dark-2); }
.fit li strong { display: block; color: #fff; font-size: 1.0625rem; }
.fit .soon { display: block; margin: 2px 0 6px; color: var(--accent); font: 500 .75rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.fit p { margin: 0; font-size: var(--fs-small); }
.fit a { color: #fff; text-decoration-color: var(--accent); }

/* ---------- what is checked ---------- */
.checked-head { display: grid; gap: var(--s6); margin-bottom: var(--s7); }
.checked-head .section-head { margin: 0; }
.checked-photo { margin: 0 calc(-1 * var(--gutter)); position: relative; overflow: hidden; }
.checked-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 100%; }   /* hasp to lock */
.checks { display: grid; gap: var(--s4); }
.check-card { padding: var(--s5); border-radius: var(--r-2); background: var(--sheet); border: 1px solid var(--rule); }
.check-card h3 { margin-bottom: var(--s4); }
.check-card .label { display: block; margin-bottom: var(--s3); color: var(--steel); }
.check-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); font-size: var(--fs-small); }
.check-card li { position: relative; padding-left: 26px; }
.check-card p { font-size: var(--fs-small); color: var(--ink-2); }
.check-card p:last-child { margin-bottom: 0; }
.check-yes li::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.4 8.3l2.4 2.3 4.8-5.2' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.check-ai { border-color: var(--rule-2); }
.check-no { background: transparent; border: 2px solid var(--ink); }
.check-no li::before { content: ""; position: absolute; left: 1px; top: .62em; width: 13px; height: 2.5px; border-radius: 2px; background: var(--ink); }

/* ---------- the rejection example: a redline ---------- */
.fixdemo { display: grid; gap: var(--s4); }
.fix-flag { margin: 0; padding: 12px 16px; border: 1px solid var(--amber-line); border-radius: var(--r-2); background: var(--amber-wash); color: var(--amber-ink); font-size: .9375rem; font-weight: 550; line-height: 1.5; }
.fix-label { margin: 0 0 var(--s2); color: var(--steel); font: 500 var(--fs-label)/1.35 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.fix-comment { padding: var(--s4) var(--s5); border-left: 3px solid var(--amber-ink); background: var(--paper); }
.fix-comment p:last-child { margin: 0; font-size: 1.125rem; font-weight: 600; line-height: 1.4; }
.fix-pair { display: grid; gap: var(--s4); align-items: start; }
.fix-before, .fix-after { padding: var(--s4) var(--s5) var(--s5); border: 1px solid var(--rule); border-radius: var(--r-2); background: var(--sheet); }
.fix-before p:nth-child(2) { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--amber-ink); text-decoration-thickness: 1.5px; }
.fix-after { border-color: var(--ink); box-shadow: var(--shadow-sheet); }
.fix-after p:nth-child(2) { font-size: 1.0625rem; }
.fix-why { margin: 0; font-size: .9375rem; font-weight: 650; color: var(--amber-ink); }
.fix-after .fix-why { color: var(--ink); }
.fix-after .fix-why::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 50%; background: var(--accent); vertical-align: -1px; }

/* ---------- questions ---------- */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { position: relative; display: flex; align-items: center; min-height: 64px; padding: var(--s4) 52px var(--s4) 0; cursor: pointer; list-style: none; font: 680 1.1875rem/1.25 var(--sans); font-stretch: 86%; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; border: 1.5px solid var(--rule-2); background: linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat; transition: transform var(--t2) var(--ease), background-color var(--t2) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); border-color: var(--ink); }
.faq summary:hover::after { border-color: var(--ink); }
.faq details p { margin: 0 0 var(--s5); color: var(--ink-2); max-width: 44em; }

/* ---------- closer ---------- */
.closer { position: relative; overflow: hidden; background: var(--night); color: #fff; isolation: isolate; }
.closer-photo { position: relative; display: block; height: min(118vw, 560px); z-index: 0; }
.closer-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 72%; }
.closer-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 18, 22, .15) 0%, rgba(10, 18, 22, 0) 45%, rgba(10, 18, 22, .8) 86%, var(--night) 100%); }
.closer-in { position: relative; display: flex; flex-direction: column; margin-top: -72px; padding-bottom: var(--s8); }
.closer h2 { font-size: var(--fs-h2); max-width: 12em; }
.closer p { margin: var(--s4) 0 var(--s5); font-size: var(--fs-lead); color: #D5DEE2; }
.closer .btn { align-self: stretch; }

/* ---------- footer ---------- */
.foot { background: var(--night); color: #C3CED3; padding: var(--s8) 0 calc(var(--s7) + var(--bar)); font-size: 1rem; line-height: 1.55; }
.foot a { color: #fff; }
.foot-in { display: grid; gap: var(--s6); }
.foot-name { display: flex; align-items: center; gap: 10px; margin: 0 0 var(--s4); color: #fff; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 var(--s4); }
.foot-nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; text-decoration: none; font-weight: 600; }
.foot-nav a:hover { text-decoration: underline; }
.foot-legal { padding-top: var(--s5); border-top: 1px solid var(--line-dark); }
.foot-legal p { font-size: .9375rem; color: var(--fog); }
.foot .unset, .on-dark .unset { background: #4A3A1E; color: #F3CF93; }
.page-message ~ .foot { border-top: 1px solid var(--line-dark); }

/* ---------- the phone order bar: one tap from anywhere on the front page ---------- */
.orderbar { position: fixed; inset: auto 0 0; z-index: 40; display: flex; align-items: center; gap: var(--s3); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(10, 18, 22, .96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 -1px 0 var(--line-dark); color: #fff; transform: translateY(110%); visibility: hidden; transition: transform var(--t2) var(--ease), visibility 0s linear var(--t2); }
.orderbar.is-on { transform: none; visibility: visible; transition: transform var(--t2) var(--ease), visibility 0s; }
.orderbar p { flex: 1; min-width: 0; margin: 0; font-size: .875rem; line-height: 1.3; color: var(--fog); }
.orderbar p b { display: block; color: #fff; font: 700 1.25rem/1.1 var(--sans); font-stretch: 76%; }
.orderbar .btn { flex: none; min-height: 48px; }
@media (min-width: 1024px) { .orderbar { display: none !important; } }

/* ---------- inner pages: a night head, then the sheet ---------- */
.page-head { position: relative; margin-top: calc(-1 * var(--masthead)); padding: calc(var(--masthead) + var(--s8)) 0 var(--s9); background: var(--night); color: #fff; overflow: hidden; isolation: isolate; }
.page-photo { position: absolute; inset: 0; z-index: -1; }
.page-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; opacity: .5; }
.page-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 18, 22, .96) 0%, rgba(10, 18, 22, .84) 46%, rgba(10, 18, 22, .55) 100%), linear-gradient(0deg, var(--night) 0%, rgba(10, 18, 22, 0) 60%); }
.page-head h1 { font-size: var(--fs-title); font-weight: 730; font-stretch: 74%; letter-spacing: -.02em; line-height: .95; max-width: 13em; }
.page-head .lead { margin: var(--s5) 0 0; font-size: var(--fs-lead); line-height: 1.5; color: #D5DEE2; max-width: 36em; }
.page-head .dated, .page-head .ref { margin: var(--s4) 0 0; color: var(--fog); font: 500 .8125rem/1.5 var(--mono); }
.page-head .dated { max-width: 68ch; }
.page-head .ref strong { display: block; width: max-content; max-width: 100%; margin: var(--s2) 0; padding: 4px 10px; border: 1px solid var(--line-dark-2); border-radius: var(--r-1); color: #fff; font-size: 1.125rem; font-weight: 500; letter-spacing: .04em; }
.ref strong { white-space: nowrap; }
.page { padding: 0 0 var(--section); }
.page-message { padding: 0; }
.page-head.is-message { display: flex; align-items: center; min-height: min(78svh, 760px); padding-bottom: var(--s9); }
.page-head.is-message .lead { max-width: 34em; }
.stub-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin: var(--s6) 0 0; }
.page-body { position: relative; margin-top: calc(-1 * var(--s8)); }

/* forms: one column, a sheet over the night head */
.form { --form-pad: var(--s4); display: grid; gap: var(--s6); padding: var(--s5) var(--form-pad); background: var(--sheet); border-radius: var(--r-3); box-shadow: var(--shadow-sheet); }
.form fieldset { display: grid; gap: var(--s4); min-width: 0; margin: 0; padding: 0; border: 0; }
.form fieldset + fieldset, .form > div + fieldset, .form fieldset + div, .intake-questions fieldset + fieldset { padding-top: var(--s6); border-top: 1px solid var(--rule); }
.form legend { float: left; width: 100%; margin: 0 0 var(--s4); padding: 0; font: 720 1.375rem/1.15 var(--sans); font-stretch: 82%; letter-spacing: -.01em; }
.form legend + * { clear: both; }
.form label { display: grid; gap: 8px; font-weight: 620; font-size: 1rem; }
.form label small, .hint { font-weight: 400; font-size: var(--fs-small); line-height: 1.45; color: var(--steel); }
.form input[type="text"], .form input[type="email"], .form select, .form textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid #8A8F8B; border-radius: var(--r-2); background: #fff; color: var(--ink); font: 400 1rem/1.4 var(--sans); }
.form select { appearance: none; -webkit-appearance: none; padding-right: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%230E171C' stroke-width='1.6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat; }
.form textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: var(--ink-2); }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--ink); }
.form select:disabled, .form input:disabled { background-color: var(--paper); color: var(--ink-2); }
.form [aria-invalid="true"] { border-color: var(--amber-ink); box-shadow: 0 0 0 3px var(--amber-wash); }
.field-error, .form .field-error { display: block; padding: 8px 10px; border-left: 3px solid var(--amber-ink); background: var(--amber-wash); color: var(--amber-ink); font-weight: 600; font-size: .9375rem; }
.form [aria-invalid="true"]:focus-visible { border-color: var(--amber-ink); outline-color: var(--amber-ink); }
.choice { display: grid; gap: 10px; }
.choice label { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: var(--s3); min-height: 64px; padding: var(--s4); border: 1.5px solid var(--rule); border-radius: var(--r-2); cursor: pointer; font-weight: 650; transition: border-color var(--t1) var(--ease), background var(--t1) var(--ease); }
.choice label:hover { border-color: var(--ink-2); }
.choice label:has(input:checked) { border-color: var(--ink); background: var(--paper); box-shadow: inset 4px 0 0 var(--accent); }
.choice label:has(input:disabled) { cursor: not-allowed; color: var(--steel); background: transparent; }
.choice label span small { display: block; margin-top: 4px; }
.choice label b { grid-column: 2; font: 720 1.5rem/1 var(--sans); font-stretch: 76%; }
.choice input, .tick input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent-ink); }
.tick { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: var(--s3); font-weight: 400 !important; line-height: 1.5; }
.tick input[aria-invalid="true"] { outline: 3px solid var(--amber-ink); outline-offset: 2px; }
.form-row { display: grid; gap: var(--s4); }
.form-msg { margin: 0; padding: 12px 14px; border: 1px solid var(--amber-line); border-radius: var(--r-2); background: var(--amber-wash); color: var(--amber-ink); font-weight: 600; }
.form .btn[type="submit"], .form button.btn { width: 100%; }
.hint-below { margin: var(--s3) 0 0; }
.fit-box { padding: var(--s4); border-radius: var(--r-2); background: var(--paper); box-shadow: inset 3px 0 0 var(--marker); }
.fit-box p { margin: 0 0 var(--s2); font-size: .9375rem; }
.fit-label { color: var(--steel); font: 500 var(--fs-label)/1.35 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.fit-box details { margin-top: var(--s3); }
.fit-box summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 650; color: var(--accent-ink); }
.preview-note { padding: 8px 10px; border-radius: var(--r-1); background: var(--sheet); }
.fit-box ol { max-height: none; overflow: visible; margin: var(--s2) 0 0; padding: var(--s3) var(--s3) var(--s3) 2.2em; border-radius: var(--r-1); background: var(--sheet); display: grid; gap: 8px; font-size: .9375rem; color: var(--ink-2); }
.state-note, .stop-note { margin: 0; padding: 10px 12px; border-left: 3px solid var(--amber-ink); background: var(--amber-wash); color: var(--amber-ink); font-weight: 600; font-size: .9375rem; }
.stop-note:empty { display: none; }
.stop-explain { margin: var(--s3) 0 0; font-size: .9375rem; color: var(--ink-2); }
.intake-title { margin-bottom: var(--s2); font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem); }
.progress { margin: 0 0 var(--s3); color: var(--steel); font: 500 .8125rem/1.4 var(--mono); }
.intake-questions { display: grid; gap: var(--s6); }
.qstrip { position: sticky; top: var(--masthead); z-index: 5; visibility: hidden; display: flex; justify-content: space-between; align-items: center; gap: var(--s3); min-height: 44px; margin: 0 calc(-1 * var(--form-pad)) var(--s5); padding: 10px var(--form-pad); background: var(--night); color: #fff; font: 500 .75rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; overflow: hidden; }
.qstrip.is-stuck { visibility: visible; }
.qstrip-group { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qstrip-count { flex: none; color: var(--fog); }
.qstrip-word { display: none; }
.qstrip-bar { position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--accent); transition: width var(--t2) var(--ease); }
html.has-qstrip { scroll-padding-top: calc(var(--masthead) + 72px); }
.q { display: grid; gap: 8px; }
.q label { gap: 6px; }
.q-n { color: var(--accent-ink); font: 500 .75rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.q-mirror { margin: 0; padding: 12px 14px; border-radius: var(--r-2); background: var(--paper); color: var(--ink-2); }
.ref { margin: 0 0 var(--s3); font: 500 .9375rem/1.4 var(--mono); color: var(--ink-2); }
.return-note { margin: 0; }

/* reading pages: terms, privacy, thanks, stubs */
.prose { max-width: 46rem; }
.prose-sheet { padding: var(--s6) var(--s4); background: var(--sheet); border-radius: var(--r-3); box-shadow: var(--shadow-sheet); }
.prose h2 { margin: var(--s7) 0 var(--s3); font-size: clamp(1.5rem, 1.3rem + .9vw, 2rem); scroll-margin-top: calc(var(--masthead) + 16px); }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1em; padding-left: 1.2em; }
.prose li { margin-bottom: .55em; }
.prose li::marker { color: var(--accent-ink); }
.prose .dated { color: var(--steel); font: 500 .8125rem/1.5 var(--mono); }
.callout { margin-top: var(--s6); padding: var(--s4) var(--s5); border-radius: var(--r-2); background: var(--paper); box-shadow: inset 3px 0 0 var(--accent); }
.callout p:last-child { margin: 0; }
.check-callout { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); margin-bottom: var(--s5); }
.check-callout p { flex: 1 1 20em; margin: 0; }
.next { list-style: none; counter-reset: n; margin: 0 0 var(--s6); padding: 0; display: grid; gap: 0; }
.next li { position: relative; counter-increment: n; padding: 0 0 var(--s5) 52px; }
.next li::before { content: "0" counter(n); position: absolute; left: 0; top: -3px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--night); color: #fff; font: 500 .75rem/1 var(--mono); }
.next li::after { content: ""; position: absolute; left: 16.5px; top: 35px; bottom: 2px; width: 1.5px; background: var(--accent); }
.next li:last-child::after { display: none; }
.toc { display: none; }

/* ---------- motion: one entrance, nothing loops ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-photo img { animation: settle 2.4s var(--ease) both; }
  .js .hero-in > * { animation: rise 900ms var(--ease) both; }
  .js .hero-in > :nth-child(2) { animation-delay: 80ms; }
  .js .hero-in > :nth-child(3) { animation-delay: 160ms; }
  .js .hero-in > :nth-child(4) { animation-delay: 240ms; }
  .js .hero-in > :nth-child(5) { animation-delay: 320ms; }
}
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; transition-delay: 0ms !important; animation: none !important; }
  .js .hl { opacity: .92; transform: none; }
  .js .traces .proj { opacity: .9; }
  .js .traces .thread { stroke-dashoffset: 0; }
}

/* ==========================================================================
   480 and up
   ========================================================================== */
@media (min-width: 480px) {
  .foot-nav { gap: 0 var(--s5); }
  .js .masthead .btn { display: inline-flex; }
  .brand { margin-right: 0; }
  .masthead .btn { margin-left: auto; }
  .form { --form-pad: var(--s6); padding: var(--s6) var(--form-pad); }
  .qstrip-word { display: inline; }
  .prose-sheet { padding: var(--s7) var(--s6); }
}

/* ==========================================================================
   768 and up
   ========================================================================== */
@media (min-width: 768px) {
  :root { --masthead: 72px; --fs-small: .9375rem; }
  .fit-box ol { max-height: 340px; overflow-y: auto; }
  .checked-head { grid-template-columns: minmax(0, 1fr) 38%; align-items: center; column-gap: var(--s6); }
  .checked-photo { margin: 0; border-radius: var(--r-2); }
  .checked-photo img { aspect-ratio: 4 / 5; }
  .foot { font-size: .9375rem; }
  .foot-legal p { font-size: .875rem; }
  .cta-row { display: flex; flex-wrap: wrap; }
  .cta-row .btn { width: auto; }
  .titleblock .tb-wide { grid-column: auto; }
  .titleblock > div:nth-child(odd) { padding: var(--s4) var(--s5) var(--s4) 0; border-left: 0; }
  .titleblock > div:nth-child(even) { padding: var(--s4) 0 var(--s4) var(--s5); border-left: 1px solid var(--line-dark); }
  .hero-photo { height: min(62svh, 720px); min-height: 520px; }
  .hero-in { margin-top: -200px; }
  .stage { padding-top: 14%; }
  .doc--map { width: 58%; right: 4%; top: 4%; }
  .doc--program { width: 48%; }
  .maprow { margin: 72px 0 0 14%; }
  .maprow-part { padding: var(--s5) var(--s6) var(--s6); }
  .proofs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
  .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
  .cover { grid-template-columns: 1fr; align-items: start; padding: var(--s4); }
  .cover-sheets { width: 96px; }
  .samples { padding-bottom: var(--section); }
  .table { margin: 0; padding: 0 var(--s6) var(--s6); border-radius: var(--r-3); }
  .table-bar { top: var(--masthead); margin: 0 calc(-1 * var(--s6)) var(--s5); padding: var(--s4) var(--s6); border-radius: var(--r-3) var(--r-3) 0 0; }
  .table-bar .tb-prog { display: inline; }
  .steps p { max-width: 40em; }
  .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); align-items: stretch; }
  .price-main { grid-column: 1 / -1; }
  .price-main .btn { width: auto; align-self: flex-start; }
  .prices-4 .price-main { grid-column: auto; }
  .prices-4 .price-main .btn { width: 100%; }
  .hero-check { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--s5); }
  .hero-check-tag { grid-column: 1 / -1; }
  .hero-check .btn { grid-column: 2; grid-row: 2; }
  .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .check-no { grid-column: 1 / -1; }
  .check-no ul { columns: 2; column-gap: var(--s6); display: block; }
  .check-no li { break-inside: avoid; margin-bottom: var(--s3); }
  .fix-pair { grid-template-columns: 5fr 7fr; }
  .closer .btn { align-self: flex-start; }
  .foot-legal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s6); }
  .form-row { grid-template-columns: 1fr 1fr; align-items: start; }
  .form-row > label { align-content: start; }
  .form .btn[type="submit"], .form button.btn { width: auto; }
  .page-head { padding-bottom: var(--s10); }
  .page-body { margin-top: calc(-1 * var(--s9)); }
}

/* ==========================================================================
   1024 and up: the hero is one frame, copy left, the subject right
   ========================================================================== */
@media (min-width: 1024px) {
  body { font-size: 1.125rem; }
  .nav { display: flex; gap: 2px; margin-left: auto; }
  .nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-1); color: rgba(255, 255, 255, .8); font: 520 .95rem/1 var(--sans); font-stretch: 94%; text-decoration: none; }
  .nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
  .nav a { white-space: nowrap; }
  .masthead .btn { margin-left: var(--s3); }
  .menu-btn, .menu { display: none !important; }
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s5); }
  .steps li { padding: 56px 0 0; }
  .steps li::before { top: 0; }
  .steps li::after { left: 40px; right: calc(-1 * var(--s5) + 6px); top: 16.5px; bottom: auto; width: auto; height: 1.5px; }
  .steps li:last-child::after { display: block; right: 0; background: linear-gradient(90deg, var(--accent), transparent); }
  .prices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prices-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-main { grid-column: auto; }
  .price-main .btn { width: 100%; }
  .fit ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
  .checks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .check-no { grid-column: auto; }
  .check-no ul { columns: auto; display: grid; }
  .check-no li { margin-bottom: 0; }
  .hero { min-height: min(100svh, 1000px); display: flex; flex-direction: column; }
  .hero-photo { position: absolute; inset: 0; height: auto; min-height: 0; }
  .hero-photo img { object-position: 64% 50%; }
  .hero-photo::after { background:
     linear-gradient(90deg, rgba(10, 18, 22, .96) 0%, rgba(10, 18, 22, .9) 40%, rgba(10, 18, 22, .66) 56%, rgba(10, 18, 22, .12) 70%, rgba(10, 18, 22, 0) 78%),
     linear-gradient(0deg, var(--night) 0%, rgba(10, 18, 22, .88) 20%, rgba(10, 18, 22, .5) 32%, rgba(10, 18, 22, 0) 50%),
     linear-gradient(180deg, rgba(10, 18, 22, .88) 0%, rgba(10, 18, 22, .74) 8%, rgba(10, 18, 22, 0) 22%); }
  .hero-in { margin: auto 0 0; padding-top: calc(var(--masthead) + clamp(24px, 6vh, 96px)); padding-bottom: var(--s6); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .hero-in > * { grid-column: 1 / span 7; }
  .hero h1 { max-width: 9.6em; font-size: min(var(--fs-display), 10vh); }
  .hero .lead { max-width: 29em; margin: clamp(16px, 2.6vh, 24px) 0 clamp(20px, 3.2vh, 32px); }
  .hero .cta-row { margin-bottom: 0; }
  .hero .also { margin: var(--s4) 0 0; }
  .hero-check { margin: clamp(16px, 2.4vh, 24px) 0 0; }
  .titleblock { grid-column: 1 / -1; margin-top: clamp(20px, 3.2vh, 32px); grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .titleblock > div, .titleblock > div:nth-child(odd), .titleblock > div:nth-child(even) { padding: var(--s4) var(--s5); border-left: 1px solid var(--line-dark); border-bottom: 0; }
  .titleblock > div:first-child { padding-left: 0; border-left: 0; }
  .proof { padding: var(--s8) 0 var(--section); }
  .exhibit { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--s5); }
  .map-title { margin: 0; }
  .exhibit > .maptabs { margin: 0; padding: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .exhibit-panel { grid-column: 1 / -1; margin-top: var(--s8); }
  .stage { display: grid; grid-template-columns: 40% minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 6%; padding: 0; }
  .doc--program { grid-column: 1; grid-row: 1 / span 2; width: auto; margin: 28px 0 0; align-self: start; }
  .doc--map { position: relative; grid-column: 2; grid-row: 1; justify-self: end; align-self: start; width: 80%; top: auto; right: auto; transform: rotate(1.8deg); }
  .doc--map .doc-tag { left: 0; right: auto; }
  .maprow { grid-column: 2; grid-row: 2; margin: -132px 0 0; }
  .maprow-detail { left: 0; transform: none; }
  .maprow-text { font-size: 1.125rem; }
  .maprow-rule .maprow-text { font-size: 1.0625rem; }
  .proofs { margin-top: var(--s7); padding-left: 46%; }
  .reader { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .reader-side { grid-column: 1 / span 3; position: sticky; top: calc(var(--masthead) + var(--s5)); }
  .table { grid-column: 4 / -1; }
  .pages { gap: var(--s6); }
  .cover { grid-template-columns: 92px minmax(0, 1fr); align-items: start; }
  .cover-sheets { width: auto; }
  .checked-head { grid-template-columns: minmax(0, 1fr) 34%; align-items: center; column-gap: var(--s8); }
  .checked-photo { margin: 0; border-radius: var(--r-2); }
  .checked-photo img { aspect-ratio: 4 / 5; max-height: 460px; }
  .closer-photo { position: absolute; inset: 0; height: auto; z-index: -1; }
  .closer-in { display: grid; grid-template-columns: minmax(0, 1fr) min(100%, 34rem); align-content: end; min-height: 700px; margin-top: 0; padding-top: var(--s9); padding-bottom: var(--s9); }
  .closer-in > * { grid-column: 2; width: auto; }
  .closer .btn { justify-self: start; align-self: auto; width: auto; }
  .closer-photo img { object-position: 30% 55%; }
  .closer-photo::after { background: linear-gradient(270deg, rgba(10, 18, 22, .94) 0%, rgba(10, 18, 22, .78) 34%, rgba(10, 18, 22, .1) 62%), linear-gradient(0deg, rgba(10, 18, 22, .7) 0%, rgba(10, 18, 22, 0) 45%); }
  .foot-in { grid-template-columns: 1.3fr 1fr; column-gap: var(--s8); }
  .foot-nav { align-self: center; justify-content: flex-end; }
  .foot-legal { grid-column: 1 / -1; }
  .page-grid, .page-head-grid { display: grid; grid-template-columns: minmax(0, 46rem) 240px; justify-content: center; column-gap: var(--s8); align-items: start; }
  .page-head-grid > * { grid-column: 1; }
  .toc { display: block; position: sticky; top: calc(var(--masthead) + var(--s6)); margin-top: calc(var(--s9) + var(--s5)); }
  .toc p { margin: 0 0 var(--s3); color: var(--steel); }
  .toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule-2); }
  .toc a { display: block; padding: 6px 0 6px var(--s4); margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); font-size: .9375rem; text-decoration: none; }
  .toc a:hover { color: var(--ink); border-left-color: var(--accent); }
}

/* short laptop windows: the lead on fewer lines and a tighter title block, so the price and terms stay in the first frame */
/* the picker's choices stay in view beside a long list, where the window is tall enough to hold them whole */
@media (min-width: 1024px) and (min-height: 1040px) {
  .picker-form { position: sticky; top: calc(var(--masthead) + var(--s5)); max-height: calc(100vh - var(--masthead) - 2 * var(--s5)); overflow-y: auto; }
}
@media (min-width: 1024px) and (max-height: 820px) {
  .hero .lead { max-width: 38em; font-size: 1.1875rem; }
  .titleblock > div, .titleblock > div:nth-child(odd), .titleblock > div:nth-child(even) { padding-top: 12px; padding-bottom: 12px; }
  .titleblock dd strong { font-size: 1.875rem; margin-bottom: 4px; }
  .titleblock dt { margin-bottom: 6px; }
  .hero-in { padding-top: calc(var(--masthead) + clamp(20px, 5vh, 96px)); padding-bottom: var(--s5); }
}
@media (min-width: 1200px) { .prices-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) and (max-width: 1199px) { .nav a { padding: 0 9px; } .nav .nav-wide { display: none; } }

/* ==========================================================================
   Free pages (Thu 12-03): the 2024 HazCom update, the program checklist, the written-programs picker.
   Same tokens; nothing new but the pieces below. Mobile first, then 768 and 1024.
   ========================================================================== */
/* footer: the free tools, one small group under the site links */
.foot-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s4); }
.foot-tools .label { flex: 1 0 100%; margin: 0 0 2px; color: var(--fog-2); }
.foot-tools a { display: inline-flex; align-items: center; min-height: 44px; color: #D5DEE2; font-size: .9375rem; text-decoration-color: rgba(255, 255, 255, .3); }
.foot-tools a:hover { color: #fff; text-decoration-color: var(--accent); }

/* the regulation, word for word: a ruled well with its paragraph under it (check_site S1 reads class="regtext") */
blockquote.regtext { margin: var(--s5) 0; padding: var(--s4) var(--s4) var(--s4) var(--s5); background: #FAFAF7; border: 1px solid var(--rule); border-left: 3px solid var(--ink); border-radius: 0 var(--r-2) var(--r-2) 0; color: var(--ink-2); font-size: 1rem; line-height: 1.6; overflow-wrap: anywhere; }
blockquote.regtext p { margin: 0 0 var(--s3); }
blockquote.regtext .sub { padding-left: var(--s4); border-left: 1px solid var(--rule-2); }
blockquote.regtext .regtext-cite { margin: var(--s3) 0 0; font: 500 .8125rem/1.45 var(--mono); color: var(--steel); }
.regtext-cite a { color: var(--accent-ink); }
q.regtext { quotes: "“" "”"; }
.regtext-more { margin: var(--s5) 0 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.regtext-more summary { position: relative; display: flex; align-items: center; min-height: 56px; padding: var(--s3) 52px var(--s3) 0; cursor: pointer; list-style: none; font-weight: 650; }
.regtext-more summary::-webkit-details-marker { display: none; }
.regtext-more summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; border: 1.5px solid var(--rule-2); background: linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat; transition: transform var(--t2) var(--ease); }
.regtext-more[open] summary::after { transform: rotate(45deg); border-color: var(--ink); }
.regtext-more blockquote.regtext { margin-top: 0; }
.chip { display: inline-block; padding: 3px 7px 2px; border-radius: 3px; background: var(--paper-2); color: var(--ink-2); font: 500 .75rem/1.35 var(--mono); letter-spacing: .01em; overflow-wrap: anywhere; }

/* the dates: six nodes on one thread; the employer dates are filled */
.timeline { list-style: none; margin: var(--s5) 0 var(--s5); padding: 0; }
.prose .timeline li { position: relative; margin: 0; padding: 0 0 var(--s5) 36px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--steel); background: var(--sheet); z-index: 1; }
.timeline li::after { content: ""; position: absolute; left: 9.25px; top: 14px; bottom: -6px; width: 1.5px; background: var(--rule-2); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline li.is-employer::before { border-color: var(--accent-ink); background: var(--accent); }
.timeline p { margin: 0; }
.tl-date { font: 700 1.25rem/1.2 var(--sans); font-stretch: 80%; letter-spacing: -.005em; color: var(--ink); }
.tl-who { margin: 4px 0 6px !important; font: 500 .75rem/1.35 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.is-employer .tl-who { color: var(--accent-ink); }
.timeline li > p:last-child { color: var(--ink-2); font-size: var(--fs-small); }
.sources { list-style: none; padding: 0 !important; }
.prose .sources li { padding: var(--s3) 0; margin: 0; border-top: 1px solid var(--rule); font-size: var(--fs-small); overflow-wrap: anywhere; }
.sources li:last-child { border-bottom: 1px solid var(--rule); }

/* the wording scan */
.scan { display: grid; gap: var(--s3); margin: var(--s5) 0 0; padding: var(--s4); border-radius: var(--r-2); background: var(--paper); box-shadow: inset 3px 0 0 var(--marker); }
.scan-label { font-weight: 650; }
.scan textarea { width: 100%; min-height: 220px; padding: 12px 14px; border: 1.5px solid #8A8F8B; border-radius: var(--r-2); background: #fff; color: var(--ink); font: 400 .9375rem/1.5 var(--sans); resize: vertical; }
.scan textarea:hover { border-color: var(--ink-2); }
.scan textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--ink); }
.scan-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.scan-actions .btn:first-child { flex: 1 1 auto; }
.scan-note { margin: 0; font-size: .9375rem; line-height: 1.5; color: var(--steel); }
.scan-out { padding-top: var(--s3); border-top: 1px solid var(--rule-2); }
.scan-sum { margin: var(--s3) 0; font-weight: 650; }
.scan-sum:empty { margin: 0; }
.signals { list-style: none; margin: 0; padding: 0 !important; display: grid; gap: var(--s2); }
.prose .signals li { margin: 0; }
.sig { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--s3); align-items: start; padding: var(--s3) var(--s4); border-radius: var(--r-2); background: var(--sheet); border: 1px solid var(--rule); }
.sig.is-found { border-color: var(--amber-line); background: #FFFBF4; }
.sig-mark { width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--steel); }
.is-found .sig-mark { border-color: var(--amber-ink); background: radial-gradient(circle, var(--amber-ink) 0 3px, transparent 3.5px); }
.is-clear .sig-mark { border: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3.5 9.5l3.4 3.3 7.6-7.8' fill='none' stroke='%235F6C73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.sig-body p { margin: 0; }
.sig-title { font-weight: 650; }
.is-clear .sig-title { font-weight: 400; color: var(--ink-2); }
.sig-count { font: 500 .8125rem/1.4 var(--mono); color: var(--amber-ink); margin-top: 2px !important; }
.sig-why { margin-top: 6px !important; font-size: .9375rem; line-height: 1.5; color: var(--ink-2); }

/* the offers at the foot of each free page */
.offers-band { margin-top: var(--s8); }
.related-tools { margin-top: var(--s8); }
.related-tools h2 { margin: 0 0 var(--s4); }
.related-tools ul { margin: 0 0 var(--s4); padding-left: 1.2em; }
.related-tools li + li { margin-top: var(--s2); }
.offers-title { margin: 0 0 var(--s5); font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem); }
.offers-lead { max-width: 40em; margin: calc(-1 * var(--s2)) 0 var(--s5); color: var(--ink-2); }
.offers { display: grid; gap: var(--s4); }
.offer { display: flex; flex-direction: column; padding: var(--s5); border-radius: var(--r-2); background: var(--sheet); border: 1px solid var(--rule); }
.offer-check { border-color: var(--ink); box-shadow: var(--shadow-sheet); }
.offer .label { margin: 0; color: var(--steel); }
.offer-check .label { color: var(--accent-ink); }
.offer-n { margin: var(--s3) 0 var(--s3); font: 720 3.25rem/1 var(--sans); font-stretch: 72%; letter-spacing: -.02em; color: var(--ink); }
.offer-what { margin: 0 0 var(--s5); color: var(--ink-2); }
.offer .btn { margin-top: auto; width: 100%; }
.offers-fine { max-width: 52em; margin: var(--s4) 0 0; font-size: .9375rem; line-height: 1.5; color: var(--steel); }

/* the checklist: one sheet, a sticky tally, groups by paragraph */
.checklist { --form-pad: var(--s4); padding: 0 var(--form-pad) var(--s5); background: var(--sheet); border-radius: var(--r-3); box-shadow: var(--shadow-sheet); }
.tally { position: sticky; top: var(--masthead); z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: var(--s3); min-height: 48px; margin: 0 calc(-1 * var(--form-pad)); padding: 10px var(--form-pad); background: var(--night); color: #fff; border-radius: var(--r-3) var(--r-3) 0 0; font: 500 .75rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; overflow: hidden; }
.tally-n { color: var(--fog); }
.tally-n b { color: #fff; font-weight: 500; font-size: 1rem; }
.tally-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left center; transition: transform var(--t2) var(--ease); }
.sc-group { padding: var(--s6) 0 var(--s2); }
.sc-group + .sc-group { border-top: 1px solid var(--rule); }
.sc-head { display: grid; gap: var(--s2); margin-bottom: var(--s3); }
.sc-head h2 { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); }
.sc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin: 0; }
.sc-count { font: 500 .75rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.sc-list { list-style: none; margin: 0; padding: 0; }
.sc-item { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 6px var(--s3); align-items: start; padding: var(--s3) var(--s2); margin: 0 calc(-1 * var(--s2)); border-radius: var(--r-2); cursor: pointer; line-height: 1.5; transition: background var(--t1) var(--ease); }
.sc-item:hover { background: var(--paper); }
.sc-item:has(input:checked) { background: var(--paper); box-shadow: inset 3px 0 0 var(--accent); }
.sc-item input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent-ink); }
.sc-item .chip { grid-column: 2; justify-self: start; }
.sc-text { font-size: var(--fs-small); }
.sc-result { margin-top: var(--s4); padding: var(--s5) var(--s4); border-radius: var(--r-2); background: var(--paper); box-shadow: inset 3px 0 0 var(--accent); }
.sc-line { margin: 0 0 var(--s3); font: 680 1.1875rem/1.35 var(--sans); font-stretch: 88%; }
.sc-note { margin: 0 0 var(--s3); font-size: .9375rem; line-height: 1.5; color: var(--steel); }
.sc-result .btn { margin-top: var(--s2); }

/* the written-programs picker: the choices, then the list; side by side from 1024 */
.picker { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); padding: var(--s4); background: var(--sheet); border-radius: var(--r-3); box-shadow: var(--shadow-sheet); }
.picker-form { padding: var(--s5) var(--s4); background: var(--paper); box-shadow: none; border-radius: var(--r-2); }
.picker-form .tick { padding: 4px 0; }
.wp-hint { margin: 0; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--sheet); font-size: .9375rem; line-height: 1.45; color: var(--ink-2); }
.picker-form .hint { margin: 0; }
html:not(.js) .picker-form { display: none; }
@media (max-width: 479px) {
  .picker { padding: 0; background: none; box-shadow: none; }
  .picker-form { background: var(--sheet); box-shadow: var(--shadow-sheet); }
  .wp-item { padding: var(--s4) var(--s3); }
  .wp-item blockquote.regtext { padding: var(--s3); }
}
.wp-q { margin: 0 0 var(--s3); font-size: clamp(1.5rem, 1.3rem + .9vw, 2rem); }
.wp-results > p { color: var(--ink-2); }
.wp-summary { margin: var(--s5) 0 var(--s4); padding-top: var(--s4); border-top: 2px solid var(--ink); color: var(--ink) !important; font-weight: 650; }
.wp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
.wp-item { padding: var(--s5) var(--s4); border: 1px solid var(--rule); border-radius: var(--r-2); background: var(--sheet); }
.wp-head { display: grid; gap: var(--s2); margin-bottom: var(--s3); }
.wp-head h3 { margin: 0; }
.wp-cites { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.wp-when { margin: 0; font-size: var(--fs-small); line-height: 1.55; color: var(--ink-2); }
.wp-when .cite { white-space: normal; }
.wp-when .label { display: block; margin-bottom: 4px; color: var(--steel); }
.wp-item blockquote.regtext { margin: var(--s4) 0; font-size: .9375rem; }
.wp-sell { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); padding-top: var(--s3); border-top: 1px solid var(--rule); }
.wp-sell p { flex: 1 1 100%; margin: 0; font-size: .9375rem; color: var(--steel); }
.wp-sell.is-sold { padding: var(--s4); margin: 0 calc(-1 * var(--s2)); border: 0; border-radius: var(--r-2); background: var(--paper); box-shadow: inset 3px 0 0 var(--accent); }
.wp-sell.is-sold p { color: var(--ink); }
.wp-sell .btn { flex: 1 1 auto; }
.wp-also { font-size: .9375rem; font-weight: 600; color: var(--accent-ink); }
.wp-scope { margin: var(--s5) 0 0; font-size: .9375rem; line-height: 1.55; }
.wp-scope strong { color: var(--ink); }

@media (min-width: 480px) {
  .scan { padding: var(--s5); }
  .scan-actions .btn:first-child { flex: 0 0 auto; }
  .checklist { --form-pad: var(--s6); }
  .sc-result { padding: var(--s5); }
  .picker { padding: var(--s5); }
  .picker-form { padding: var(--s5); }
  .wp-item { padding: var(--s5); }
  .wp-sell .btn { flex: 0 0 auto; }
  .offer .btn { width: auto; align-self: flex-start; }
}
@media (min-width: 768px) {
  .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
  .sc-item { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .sc-item .chip { grid-column: 3; grid-row: 1; margin-top: 2px; max-width: 16em; text-align: right; }
  .sc-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .sc-meta { justify-content: flex-end; }
}
@media (min-width: 1024px) {
  .foot-tools { grid-column: 2; justify-content: flex-end; gap: 0 var(--s5); }
  .foot-tools .label { text-align: right; }
  .foot-brand { grid-row: span 2; }
  .picker { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--s7); padding: var(--s6); align-items: start; }
  .wp-q { margin-top: var(--s2); }
}

/* ==========================================================================
   Free pages 4-6 (Thu 12-03): the chemical list, the SDS binder cover and index, what owners ask for.
   Same tokens and pieces; the row tables are cards on a phone and a ruled table from 1024. Print: pages 4 and 5 only.
   ========================================================================== */
/* footer: the six tools in one column on a phone, two from 480, three from 768, so the group stays a block, not a ragged run */
.foot-tools { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--s5); align-items: start; }
.foot-tools .label { grid-column: 1 / -1; }
.foot-tools a { justify-self: start; line-height: 1.25; padding: 4px 0; }
@media (min-width: 480px) { .foot-tools { grid-template-columns: repeat(2, max-content); } }

/* the tool sheet: a document on the desk, with its own title block */
.tool-sheet { --pad: var(--s4); padding: var(--s5) var(--pad); background: var(--sheet); border-radius: var(--r-3); box-shadow: var(--shadow-sheet); }
.tool-top { display: grid; gap: var(--s5); margin-bottom: var(--s5); }
.tool-title .label { margin: 0 0 var(--s2); color: var(--accent-ink); }
.tool-title h2 { margin: 0; font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem); }
.tool-meta { display: grid; gap: var(--s3); }
.tool-meta label, .sb-field { display: grid; gap: 6px; font: 500 var(--fs-label)/1.35 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.tool-sheet input[type="text"], .tool-sheet input[type="date"], .tool-sheet select { width: 100%; min-width: 0; min-height: 44px; padding: 9px 12px; border: 1.5px solid #8A8F8B; border-radius: var(--r-2); background: #fff; color: var(--ink); font: 400 1rem/1.35 var(--sans); letter-spacing: 0; text-transform: none; }
.tool-sheet select { appearance: none; -webkit-appearance: none; padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%230E171C' stroke-width='1.6'/%3E%3C/svg%3E") right 10px center / 14px no-repeat; }
.tool-sheet input:hover, .tool-sheet select:hover { border-color: var(--ink-2); }
.tool-sheet input:focus-visible, .tool-sheet select:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--ink); }
.tool-sheet input::placeholder { color: #7A8287; }

/* the row table: on a phone each row is a card with its labels; from 1024 the column heads take over */
.tool-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.tool-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tool-table tbody { display: grid; gap: var(--s3); }
.tool-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s3); padding: var(--s5) var(--s3) var(--s3); border: 1px solid var(--rule); border-radius: var(--r-2); background: var(--paper); }
.tool-row:focus-within { border-color: var(--ink-2); }
.tool-row td, .tool-row th { display: grid; gap: 4px; align-content: start; min-width: 0; padding: 0; text-align: left; }
.tool-row .c-name, .tool-row .c-maker, .tool-row .c-where { grid-column: 1 / -1; }
.row-n { position: absolute; top: -9px; left: 10px; }
.row-n-i { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--night); color: #fff; font: 500 .75rem/1 var(--mono); }
.cell-label { font: 500 .6875rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.cell-hint, .lc { text-transform: none; letter-spacing: .02em; }
.cell-hint { color: #737B80; }
.tool-row .c-sds, .tool-row .c-date { align-content: end; }
.c-x { position: absolute !important; top: 0; right: 0; }
.row-x { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--r-2); background: none; color: var(--steel); cursor: pointer; }
.row-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.row-x:hover { color: var(--ink); background: var(--paper-2); }
.row-x:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.tool-row .c-name .cell-label { padding-right: 40px; }
.tool-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s4); }
.tool-actions-start, .tool-actions-end { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.tool-actions .btn { flex: 1 1 auto; }
.btn-text { min-height: 44px; padding: 0 var(--s2); border: 0; background: none; color: var(--ink-2); font: 600 .9375rem/1 var(--sans); text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; cursor: pointer; }
.btn-text:hover { color: var(--ink); text-decoration-color: var(--accent); }
.btn-text:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: var(--r-1); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; }
.tool-status { margin: var(--s3) 0 0; font-weight: 650; }
.tool-status:empty { margin: 0; }
.tool-note { margin: var(--s3) 0 0; font-size: .9375rem; line-height: 1.5; color: var(--steel); max-width: 52em; }
.print-only, .print-val { display: none; }
.tool-explain { margin-top: var(--s7); }

/* the binder cover: a portrait sheet with the title set large and the thread under it */
.sb-tool { display: grid; gap: var(--s5); }
.sb-cover { position: relative; display: flex; flex-direction: column; gap: var(--s5); overflow: hidden; }
.sb-cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--accent); }
.sb-kicker { margin: 0; color: var(--accent-ink); }
.sb-title { margin: 0; font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem); font-weight: 740; font-stretch: 74%; letter-spacing: -.02em; line-height: .95; }
.sb-fields { display: grid; gap: var(--s4); }
.sb-cover-foot { margin: auto 0 0; padding-top: var(--s4); border-top: 1px solid var(--rule); font-size: .9375rem; line-height: 1.5; color: var(--steel); }
.sb-open { display: grid; gap: var(--s2); align-content: start; }
.sb-open .hint { margin: 0; }
.file-btn { cursor: pointer; }
.sb-open:focus-within .file-btn { outline: 3px solid var(--accent); outline-offset: 2px; }
.sb-table .tool-row { grid-template-columns: 4.75em minmax(0, 1fr); }
.sb-table .tool-row td { align-content: end; }
.sb-table .tool-row .c-tab { grid-column: 1; }
.sb-table .tool-row .c-name { grid-column: 2; }
.sb-table .tool-row .c-maker { grid-column: 1 / -1; }
.sb-cover input[type="text"], .sb-cover input[type="date"] { min-height: 48px; padding: 8px 2px; border: 0; border-bottom: 1.5px solid #8A8F8B; border-radius: 0; background: transparent; font-size: 1.1875rem; }
.sb-open { grid-template-columns: auto; }

/* the safety program template (A', 12-04): one sheet with a title block and numbered sections; each section sets
   its 29 CFR 1926 paragraph beside the answers from 1024, above them on a phone */
.pt-doc { position: relative; overflow: clip; }   /* clip, not hidden: the sticky rule column needs no scroll box */
.pt-doc::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 6px; background: var(--accent); }
.pt-head { display: grid; gap: var(--s4); padding-bottom: var(--s5); border-bottom: 2px solid var(--ink); }
.pt-kicker { margin: 0; color: var(--accent-ink); }
.pt-title { margin: 0; font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem); font-weight: 740; font-stretch: 74%; letter-spacing: -.02em; line-height: .95; }
.pt-meta, .pt-fields, .pt-sign-fields { display: grid; gap: var(--s4); align-content: start; }
.pt-meta { margin-top: var(--s2); }
.pt-field { display: grid; gap: 6px; min-width: 0; }
.pt-q { font-weight: 620; font-size: 1rem; line-height: 1.35; color: var(--ink); }
.pt-meta .pt-q, .pt-sign .pt-q { font: 500 var(--fs-label)/1.35 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.pt-doc textarea { display: block; width: 100%; min-width: 0; min-height: 96px; padding: 9px 12px; border: 1.5px solid #8A8F8B; border-radius: var(--r-2); background: #fff; color: var(--ink); font: 400 1rem/1.5 var(--sans); resize: vertical; field-sizing: content; }
.pt-doc textarea[rows="2"] { min-height: 72px; }
.pt-doc textarea:hover { border-color: var(--ink-2); }
.pt-doc textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--ink); }
.pt-doc textarea::placeholder { color: #7A8287; }
.pt-sec { display: grid; gap: var(--s4); padding: var(--s6) 0; border-bottom: 1px solid var(--rule); }
.pt-h { display: flex; align-items: center; gap: var(--s3); margin: 0; font-size: var(--fs-h3); line-height: 1.2; }
.pt-n { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--night); color: #fff; font: 500 .875rem/1 var(--mono); }
.pt-rule blockquote.regtext { margin: var(--s3) 0 0; padding: var(--s3) var(--s3) var(--s3) var(--s4); font-size: .9375rem; line-height: 1.55; }
.pt-rule blockquote.regtext p { margin: 0 0 var(--s2); }
.pt-rule blockquote.regtext .regtext-cite { margin: var(--s2) 0 0; font-size: .75rem; }
.pt-hint, .pt-aside { margin: 0; font-size: .9375rem; line-height: 1.5; color: var(--steel); }
.pt-aside a { font-weight: 600; }
.pt-sign { display: grid; gap: var(--s4); padding: var(--s6) 0 var(--s2); }
.pt-h-sign { font-size: 1.125rem; }
.pt-doc .tool-actions { padding-top: var(--s5); border-top: 2px solid var(--ink); }
@media (min-width: 768px) {
  .pt-meta { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pt-meta .pt-wide { grid-column: span 3; }
  .pt-meta .pt-field:not(.pt-wide) { grid-column: span 2; }
  .pt-sign-fields { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
}
@media (min-width: 1024px) {
  .tool-sheet.pt-doc { padding: var(--s7) var(--s7) var(--s6); }
  .pt-sec { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--s7); align-items: start; padding: var(--s7) 0; }
  .pt-rule { position: sticky; top: calc(var(--masthead) + var(--s5)); }
}
.pq-key { display: flex; flex-wrap: wrap; gap: 6px var(--s4); margin: 0 0 var(--s3); padding: 0; list-style: none; font-size: .9375rem; color: var(--ink-2); }
.pq-key li { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 399px) {
  .ci-table .tool-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 479px) {          /* the binder's product name gets the row's full width under the tab on a small phone */
  .sb-table .tool-row .c-name { grid-column: 1 / -1; }
  .sb-table .tool-row .c-name .cell-label { padding-right: 0; }
}

/* what owners ask for: the side-by-side board */
.pq-board { padding: var(--s5) var(--s4); background: var(--sheet); border-radius: var(--r-3); box-shadow: var(--shadow-sheet); }
.pq-board-head h2 { margin: 0 0 var(--s3); font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem); }
.pq-board-head p { max-width: 46em; margin: 0; color: var(--ink-2); }
.pq-legend { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin: var(--s5) 0 var(--s4); padding: 0; list-style: none; font-size: .9375rem; color: var(--ink-2); }
.pq-legend li { display: inline-flex; align-items: center; gap: var(--s2); }
.pq-dot { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font: 500 .75rem/1 var(--mono); flex: none; }
.pq-dot.is-w, .is-w > .pq-dot { background: var(--ink); color: #fff; }
.pq-dot.is-t, .is-t > .pq-dot { border: 1.5px solid var(--steel); color: var(--ink-2); background: var(--sheet); }
.pq-dot.is-0, .is-0 > .pq-dot { border: 1px dashed var(--rule-2); color: #9AA2A6; }
.pq-dot.is-key { background: var(--accent-wash); color: var(--accent-ink); }
.pq-matrix { width: 100%; border-collapse: collapse; }
.pq-matrix thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pq-matrix tbody tr { display: grid; grid-template-columns: repeat(6, auto) minmax(0, 1fr); align-items: center; gap: 6px; padding: var(--s3) 0; border-top: 1px solid var(--rule); }
.pq-matrix tbody th { grid-column: 1 / -1; padding: 0 0 2px; text-align: left; font-weight: 650; line-height: 1.3; }
.pq-matrix th a { color: var(--ink); text-decoration-color: var(--rule-2); text-underline-offset: 3px; }
.pq-matrix th a:hover { text-decoration-color: var(--accent); }
.pq-matrix td { padding: 0; }
.pq-count { justify-self: end; font: 500 .8125rem/1 var(--mono); color: var(--steel); white-space: nowrap; }
.pq-count b { font-weight: 500; color: var(--ink); font-size: 1rem; }
.pq-fine { margin: var(--s4) 0 0; font-size: .9375rem; line-height: 1.5; color: var(--steel); }
.pq-items { list-style: none; margin: var(--s5) 0 0; padding: 0 !important; display: grid; gap: var(--s4); }
.prose .pq-items > li, .prose .pq-work > li, .prose .pq-sources > li { margin: 0; }
.pq-item { padding: var(--s4); border: 1px solid var(--rule); border-radius: var(--r-2); scroll-margin-top: calc(var(--masthead) + 16px); }
.pq-item h3 { margin: 0 0 var(--s3); }
.pq-who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 var(--s2); }
.pq-who .label { flex: 0 0 100%; color: var(--steel); }
.pq-chip { text-decoration: none; }
.pq-chip.is-w { background: var(--ink); color: #fff; }
.pq-chip.is-t { background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule-2); }
.pq-chip:hover { box-shadow: inset 0 -2px 0 var(--accent); }
.pq-none { font-size: .9375rem; color: var(--steel); }
.pq-how { margin: var(--s3) 0 0; font-size: var(--fs-small); color: var(--ink-2); }
.pq-osha { margin: var(--s3) 0 0; padding-top: var(--s3); border-top: 1px solid var(--rule); font-size: var(--fs-small); color: var(--ink-2); }
.pq-osha .label { display: block; margin-bottom: 4px; color: var(--steel); }
.pq-osha .cite { white-space: normal; }
.pq-jump { margin: var(--s4) 0 0; font-size: var(--fs-small); color: var(--steel); }
.pq-back { margin: var(--s3) 0 0; font-size: var(--fs-small); }
.pq-jump a, .pq-back a { color: var(--ink-2); text-decoration-color: var(--rule-2); text-underline-offset: 3px; }
.pq-jump a:hover, .pq-back a:hover { color: var(--ink); text-decoration-color: var(--accent); }
.pq-ours { margin: var(--s3) calc(-1 * var(--s2)) 0; padding: var(--s3) var(--s4); border-radius: var(--r-2); background: var(--paper); box-shadow: inset 3px 0 0 var(--accent); font-size: var(--fs-small); }
.pq-work { list-style: none; padding: 0 !important; }
.prose .pq-work > li { padding: var(--s4) 0; border-top: 1px solid var(--rule); }
.pq-work p { margin: 0; }
.pq-work .pq-chip { margin-left: 4px; vertical-align: 1px; }
.pq-work-t { margin-bottom: 4px !important; font-weight: 650; }
.pq-work .pq-osha { border-top: 0; padding-top: 0; margin-top: var(--s2); }
.pq-sources { list-style: none; padding: 0 !important; }
.prose .pq-sources > li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s3); padding: var(--s4) 0; border-top: 1px solid var(--rule); scroll-margin-top: calc(var(--masthead) + 16px); }
.pq-sources p { margin: 0 0 4px; font-size: var(--fs-small); overflow-wrap: anywhere; }
.pq-src-who { font-weight: 650; }
.pq-src-links { font-weight: 600; }
.pq-sources li:target { background: linear-gradient(90deg, var(--accent-wash), transparent 70%); }

@media (min-width: 480px) {
  .tool-sheet { --pad: var(--s5); padding: var(--s6) var(--pad); }
  .tool-actions .btn { flex: 0 0 auto; }
  .pq-board { padding: var(--s6) var(--s5); }
  .pq-matrix tbody tr { grid-template-columns: repeat(6, 28px) minmax(0, 1fr); }
  .pq-dot { width: 26px; height: 26px; }
}
@media (min-width: 768px) {
  .foot-tools { grid-template-columns: repeat(3, max-content); column-gap: var(--s5); }
  .tool-meta { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; }
  .tool-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
  .tool-row .c-name { grid-column: 1 / -1; }
  .tool-row .c-maker, .tool-row .c-where { grid-column: auto; }
  .tool-row .c-where { grid-column: span 2; }
  .sb-table .tool-row { grid-template-columns: 4.75em minmax(0, 1.3fr) minmax(0, 1fr); }
  .sb-table .tool-row .c-maker { grid-column: 3; }
  .sb-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pq-item { padding: var(--s5); }
}
@media (min-width: 1024px) {
  .foot-tools { justify-content: end; }
  .tool-sheet { --pad: var(--s6); }
  .tool-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: end; column-gap: var(--s7); }
  .tool-table thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .tool-table thead th { padding: 0 var(--s2) var(--s2) 0; border-bottom: 2px solid var(--ink); text-align: left; vertical-align: bottom; font: 500 var(--fs-label)/1.35 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
  .tool-table thead small { display: block; margin-top: 2px; font-size: .6875rem; letter-spacing: .06em; text-transform: none; color: var(--steel); }
  .tool-table tbody { display: table-row-group; }
  .tool-row { display: table-row; padding: 0; border: 0; background: none; }
  .tool-row td, .tool-row th { display: table-cell; padding: 6px var(--s2) 6px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
  .tool-row:focus-within td, .tool-row:focus-within th { background: #FBFAF7; }
  .cell-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .row-n, .c-x { position: static !important; }
  .tool-table .row-n { width: 40px; }
  .tool-table .c-x { width: 44px; padding-right: 0; }
  .tool-table { table-layout: fixed; }
  .tool-row .c-name .cell-label { padding-right: 0; }
  .ci-table .c-name { width: auto; } .ci-table .c-maker, .ci-table .c-where { width: 17%; }
  .ci-table .c-sds { width: 8.5em; } .ci-table .c-date { width: 11.5em; }
  .tool-table input[type="date"], .tool-meta input[type="date"] { padding-left: 8px; padding-right: 6px; }   /* the whole date shows at 1024 */
  .tool-table select { padding-left: 8px; padding-right: 26px; background-position: right 6px center; }
  .tool-meta { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(10.5em, .8fr); }
  .sb-table .c-tab { width: 5.5em; } .sb-table .c-name { width: 52%; }
  .sb-table .row-n { display: none !important; }
  .tool-actions { margin-top: var(--s5); }
  .sb-tool { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: var(--s6); }
  .sb-cover { position: sticky; top: calc(var(--masthead) + var(--s5)); min-height: 640px; padding: var(--s7) var(--s6) var(--s6) var(--s7); }
  .sb-fields { grid-template-columns: 1fr; }
  .sb-index .tool-top { grid-template-columns: minmax(0, 1fr); }
  .sb-open { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); }
  .sb-open .hint { flex: 1 1 18em; }
  .pq-board { padding: var(--s7) var(--s6) var(--s6); }
  .pq-board-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); column-gap: var(--s7); align-items: end; }
  .pq-board-head h2 { margin: 0; }
  .pq-jump { display: none; }                              /* the contents list beside the text takes over */
  .pq-matrix thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .pq-matrix tr, .pq-matrix tbody tr { display: table-row; }
  .pq-matrix th, .pq-matrix td, .pq-matrix tbody th { display: table-cell; padding: 10px 6px; border-top: 1px solid var(--rule); vertical-align: middle; text-align: center; }
  .pq-matrix thead th { padding: 0 6px var(--s3); border-top: 0; border-bottom: 2px solid var(--ink); vertical-align: bottom; font: 500 var(--fs-label)/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
  .pq-matrix thead .pq-col .pq-dot { margin: 0 auto 6px; }
  .pq-matrix thead .pq-col { width: 7.5em; }
  .pq-matrix thead .pq-count { width: 7em; }
  .pq-key { display: none; }
  .pq-matrix .pq-sname { display: block; }
  .pq-matrix .pq-doc { text-align: left; padding-left: 0; }
  .pq-matrix .pq-count { text-align: right; padding-right: 0; }
  .pq-matrix tbody tr:hover th, .pq-matrix tbody tr:hover td { background: #FBFAF7; }
  .pq-matrix td .pq-dot { margin: 0 auto; }
}

/* print: the chemical list, and the binder's cover and index, as clean pages (pages 4 and 5 only) */
@media print {
  @page { margin: 14mm 12mm; }
  body.print-tool { background: #fff; font-size: 10.5pt; }
  body.print-tool .skip, body.print-tool .masthead, body.print-tool .menu, body.print-tool .page-head, body.print-tool .foot,
  body.print-tool .offers-band, body.print-tool .tool-explain, body.print-tool .tool-actions, body.print-tool .tool-note, body.print-tool .preview-bar,
  body.print-tool .tool-status, body.print-tool .sb-open, body.print-tool .row-x, body.print-tool #site-config { display: none !important; }
  html.js body.print-tool .tool-sheet input:not([type="file"]), html.js body.print-tool .tool-sheet select { display: none !important; }
  html.js body.print-tool .print-val { display: block; min-height: 1.3em; color: #000; font: 400 10.5pt/1.35 var(--sans); letter-spacing: 0; text-transform: none; overflow-wrap: anywhere; }
  html.js body.print-tool .tool-meta .print-val { padding-bottom: 1mm; border-bottom: .5pt solid #888; }
  body.print-tool input[type="date"]::-webkit-calendar-picker-indicator { display: none; }
  body.print-tool .ci-table tbody { counter-reset: row; }
  html.js body.print-tool .ci-table .tool-row:not(.is-blank) { counter-increment: row; }   /* html.js: without the script */
  html.js body.print-tool .ci-table tbody .row-n-i { display: none; }                      /* every row prints, numbered */
  html.js body.print-tool .ci-table tbody .row-n::after { content: counter(row); }
  body.print-tool .sb-table .row-n { display: none !important; }
  body.print-tool .ci-table .row-n { width: 7mm; } body.print-tool .ci-table .c-name { width: 30%; }
  body.print-tool .ci-table .c-sds { width: 13%; } body.print-tool .ci-table .c-date { width: 15%; }
  body.print-tool .sb-table .c-tab { width: 14mm; } body.print-tool .sb-table .c-name { width: 55%; }
  body.print-tool .tool-table { table-layout: auto; }
  body.print-tool .page { padding: 0; }
  body.print-tool .page-body { margin: 0; padding: 0; max-width: none; }
  body.print-tool .tool-sheet { padding: 0; box-shadow: none; border-radius: 0; }
  body.print-tool .print-only { display: block; }
  body.print-tool .tool-top { grid-template-columns: 1fr 1.6fr; align-items: end; gap: 6mm; margin-bottom: 5mm; }
  body.print-tool .tool-meta { grid-template-columns: 1.2fr 1.2fr .8fr; }
  body.print-tool .tool-sheet input, body.print-tool .tool-sheet select { min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; font-size: 10.5pt; color: #000; appearance: none; -webkit-appearance: none; }
  body.print-tool .tool-meta input, body.print-tool .sb-field input { border-bottom: .5pt solid #888; padding-bottom: 1mm; }
  body.print-tool .tool-sheet input::placeholder { color: transparent; }
  body.print-tool .tool-table thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: table-header-group; }
  body.print-tool .tool-table thead th { padding: 0 2mm 1.5mm 0; border-bottom: 1pt solid #000; text-align: left; font: 500 7.5pt/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #000; }
  body.print-tool .tool-table thead small { display: block; text-transform: none; color: #444; }
  body.print-tool .tool-table tbody { display: table-row-group; }
  body.print-tool .tool-row { display: table-row; border: 0; background: none; break-inside: avoid; }
  body.print-tool .tool-row td, body.print-tool .tool-row th { display: table-cell; position: static !important; padding: 2mm 2mm 2mm 0; border-bottom: .5pt solid #999; vertical-align: top; align-content: start; }
  html.js body.print-tool .tool-row.is-blank { display: none; }
  body.print-tool .cell-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  body.print-tool .row-n { position: static; width: 8mm; }
  body.print-tool .row-n-i { background: none; color: #000; padding: 0; min-width: 0; height: auto; }
  body.print-tool .c-x { display: none !important; }
  body.print-tool .tool-print-foot { margin-top: 5mm; font-size: 8pt; color: #444; }
  body.print-tool .sb-tool { display: block; }
  body.print-tool .sb-cover { position: relative; min-height: 232mm; padding: 18mm 14mm 14mm 20mm; border: 1pt solid #000; break-after: page; break-inside: avoid; }
  body.print-tool .sb-cover::before { width: 5mm; background: #000; }
  body.print-tool .sb-title { font-size: 44pt; margin-top: 10mm; }
  body.print-tool .sb-fields { grid-template-columns: 1fr; gap: 8mm; margin-top: 14mm; }
  body.print-tool .sb-field { font-size: 8pt; color: #333; }
  body.print-tool .sb-field input { font-size: 18pt; font-weight: 600; }
  html.js body.print-tool .sb-field .print-val { padding-bottom: 2mm; border-bottom: .5pt solid #888; font-size: 18pt; font-weight: 600; }
  body.print-tool .sb-index .tool-top { display: block; }
  body.print-tool .tool-title h2 { font-size: 20pt; }
  body.print-tool .tool-title .label, body.print-tool .sb-kicker { color: #000; }
  body.print-tool .related-tools { display: none !important; }
  /* the safety program template: the title block, then each section with its paragraph in a narrow column on the left;
     an empty answer prints as ruled lines, to fill in by hand */
  body.print-tool .pt-doc::before { display: none; }
  body.print-tool .pt-aside { display: none !important; }
  html.js body.print-tool .pt-doc textarea { display: none !important; }
  body.print-tool .pt-doc textarea { min-height: 0; padding: 1mm; border: .5pt solid #888; font-size: 10pt; resize: none; }
  body.print-tool .pt-head { gap: 3mm; padding-bottom: 4mm; border-bottom: 1.5pt solid #000; }
  body.print-tool .pt-kicker { color: #000; }
  body.print-tool .pt-title { font-size: 30pt; }
  body.print-tool .pt-meta { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3mm 5mm; margin-top: 2mm; }
  body.print-tool .pt-meta .pt-wide { grid-column: span 3; }
  body.print-tool .pt-meta .pt-field:not(.pt-wide) { grid-column: span 2; }
  body.print-tool .pt-field { gap: 1mm; }
  body.print-tool .pt-q { font-size: 8.5pt; font-weight: 650; color: #000; }
  body.print-tool .pt-meta .pt-q, body.print-tool .pt-sign .pt-q { font: 500 7pt/1.3 var(--mono); color: #333; }
  html.js body.print-tool .pt-doc .print-val { padding-bottom: 1mm; border-bottom: .5pt solid #888; white-space: pre-wrap; }
  html.js body.print-tool .pt-doc textarea + .print-val:empty { height: 15mm; padding: 0; border-bottom: 0; background: repeating-linear-gradient(to bottom, transparent 0, transparent 4.5mm, #999 4.5mm, #999 5mm); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.print-tool .pt-sec { grid-template-columns: 66mm minmax(0, 1fr); column-gap: 6mm; gap: 2mm 6mm; padding: 4mm 0; border-bottom: .5pt solid #999; break-inside: avoid; }
  body.print-tool .pt-rule { position: static; }
  body.print-tool .pt-fields { gap: 3mm; }
  body.print-tool .pt-h { gap: 2mm; font-size: 12pt; }
  body.print-tool .pt-n { width: 6mm; height: 6mm; border: 1pt solid #000; background: none; color: #000; font-size: 8pt; }
  body.print-tool .pt-rule blockquote.regtext { margin: 2mm 0 0; padding: 0 0 0 2.5mm; border: 0; border-left: 1pt solid #000; border-radius: 0; background: none; color: #222; font-size: 7.5pt; line-height: 1.4; }
  body.print-tool .pt-rule blockquote.regtext p { margin: 0 0 1mm; }
  body.print-tool .pt-rule blockquote.regtext .regtext-cite { margin: 1mm 0 0; font-size: 6.5pt; }
  body.print-tool .regtext-cite a { color: #000; text-decoration: none; }
  body.print-tool .pt-hint { font-size: 7.5pt; color: #333; }
  body.print-tool .pt-hint .cite { padding: 0; background: none; color: #000; }
  body.print-tool .pt-sign { gap: 3mm; padding: 5mm 0 0; break-inside: avoid; }
  body.print-tool .pt-h-sign { font-size: 11pt; }
  body.print-tool .pt-sign-fields { grid-template-columns: 2fr 1fr 1fr; gap: 3mm 5mm; align-items: end; }
  body.print-tool .pt-sign-line { grid-column: 1 / span 1; margin: 10mm 0 0; padding-top: 1mm; border-top: .5pt solid #000; font: 500 7pt/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #333; }
}
