/* /learn-cells-cgmp-explained: its own sheet, loaded after site.css.
   One idea runs the page: a manufacturer is rooms, records and signatures;
   a sticker is a sticker. The hero draws both, and each part of the page
   then opens one piece of the manufacturer: the rooms, the record, the
   panel, the gate, the people, the inspectors.
   Script: scripts/learn-cells-cgmp-explained.js. With that script absent
   every part is visible, every fold is open and every link still jumps. */

html:has(body.gmp) {
  --hc-nav-h: 64px;            /* fallback; the script sets the real header height */
  --hc-bar-h: 52px;
  /* every jump, anchor and Tab stop lands below the header and the bar */
  scroll-padding-top: calc(var(--hc-nav-h) + var(--hc-bar-h) + 12px);
}
.gmp {
  --gmp-ease: cubic-bezier(.16, 1, .3, 1);
  --gmp-gut: clamp(20px, 4vw, 56px);
  --gmp-a: rgba(45, 110, 177, .34);
  --gmp-b: rgba(45, 110, 177, .19);
  --gmp-c: rgba(45, 110, 177, .1);
  --gmp-d: rgba(45, 110, 177, .045);
}

/* ============ GROUND RULES ============ */
.gmp-wrap { max-width: calc(1240px + 2 * var(--gmp-gut)); margin-inline: auto; padding-inline: var(--gmp-gut); }
/* text fills its column; the column sets the measure */
.gmp main p { max-width: none; margin: 0; }
.gmp main a:not(.btn) { border-bottom: 0; }
.gmp main :is(ol, ul, dl, dd, figure) { margin: 0; padding: 0; list-style: none; }
.gmp main h2 {
  font-family: var(--font-display); font-weight: 300; color: var(--ink);
  font-size: clamp(1.9rem, 3.3vw, 3rem); line-height: 1.1; letter-spacing: -.01em;
  margin: 0 0 clamp(28px, 4vw, 52px); max-width: none; text-wrap: wrap;
}
.gmp main h3 { font-family: var(--font-display); font-weight: 400; color: var(--ink); font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.2; letter-spacing: 0; margin: 0; max-width: none; }
.gmp main :where(section > .gmp-wrap) p { font-size: 18px; line-height: 1.7; color: var(--ink-soft); }
.gmp main p + p { margin-top: 18px; }
.gmp main strong { font-weight: 600; color: var(--ink); }
.gmp main :is(a, .btn, summary, button):focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 3px; border-radius: 4px; }
.gmp .gmp-qa :is(a, summary):focus-visible { outline-color: var(--accent-ice); }
/* a part that receives focus after a jump is not itself a control */
.gmp main :is(h1, h2, h3, section)[tabindex="-1"]:focus { outline: none; }
.gmp-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* links inside sentences: a source opens the regulation, a term opens the glossary */
.gmp-src, .gmp-inline { color: var(--accent-blue-hover); text-decoration: underline; text-decoration-color: var(--accent-ice); text-decoration-thickness: 1.5px; text-underline-offset: 4px; transition: color 200ms, text-decoration-color 200ms; }
.gmp-src:hover, .gmp-inline:hover { color: var(--accent-blue); text-decoration-color: currentColor; }
.gmp-src::after { content: "\2197"; display: inline-block; margin-left: 3px; font-size: .8em; transition: transform 300ms var(--gmp-ease); }
.gmp-src:hover::after { transform: translate(2px, -2px); }
.gmp-term-link { color: inherit; text-decoration: underline dotted; text-decoration-color: var(--accent-blue); text-decoration-thickness: 1.5px; text-underline-offset: 4px; transition: color 200ms; }
.gmp-term-link:hover { color: var(--accent-blue-hover); text-decoration-style: solid; }

/* the onward link: the arrow leans the way it points */
.gmp-go { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; font-weight: 600; color: var(--accent-blue-hover); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; transition: color 200ms, text-decoration-color 260ms; }
.gmp-go span { display: inline-block; transition: transform 360ms var(--gmp-ease); }
.gmp-go:hover { color: var(--accent-blue); text-decoration-color: currentColor; }
.gmp-go[href^="#"]:hover span { transform: translateY(4px) rotate(90deg); }
.gmp-go--back:hover span { transform: translateX(-6px); }

/* ============ REVEALS ============
   Hidden only once the script has said it is running (gmp-js on <html>), so
   with no script nothing is ever hidden. Each part comes in its own way. */
.gmp-js [data-r] { transition: opacity 620ms ease, transform 820ms var(--gmp-ease); }
.gmp-js [data-r]:not(.is-in) { opacity: 0; transform: translateY(18px); }
.gmp-js [data-r="left"]:not(.is-in) { transform: translateX(-32px); }
.gmp-js [data-r="right"]:not(.is-in) { transform: translateX(32px); }
/* these hold still and animate what is inside them */
.gmp-js :is([data-r="acro"], [data-r="chain"], [data-r="rooms"], [data-r="grades"], [data-r="sheet"], [data-r="coa"], [data-r="panel"], [data-r="crew"], [data-r="tell"], [data-r="slip"]):not(.is-in) { opacity: 1; transform: none; }

@keyframes gmp-up { from { opacity: 0; transform: translateY(22px); } }
@keyframes gmp-rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes gmp-draw { from { stroke-dashoffset: 1; opacity: 0; } 12% { opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes gmp-pop { from { transform: scale(0); opacity: 0; } 70% { transform: scale(1.2); opacity: 1; } }
@keyframes gmp-stick { from { transform: rotate(-22deg) scale(1.9); opacity: 0; } 55% { transform: rotate(-3deg) scale(.94); opacity: 1; } to { transform: rotate(-7deg) scale(1); } }
@keyframes gmp-drop { from { opacity: 0; transform: translateY(-.35em); } }
@keyframes gmp-link { from { opacity: 0; transform: translateX(-10px); } }
@keyframes gmp-settle { from { opacity: 0; transform: scale(1.12); } }
@keyframes gmp-flow { to { stroke-dashoffset: -20; } }
@keyframes gmp-write { from { opacity: 0; transform: translateX(-14px); } }
@keyframes gmp-unfold { from { opacity: 0; transform: translateY(-8px); } }
@keyframes gmp-grow { from { transform: scaleY(0); } }

/* ============ HERO ============ */
.gmp-hero { padding-block: clamp(36px, 5vw, 72px) clamp(40px, 5vw, 72px); }
.gmp-hero__h1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.1rem, 4.3vw, 3.9rem); line-height: 1.06; letter-spacing: -.015em; color: var(--ink); margin: 0 0 clamp(28px, 4vw, 56px); max-width: none; text-wrap: wrap; }
/* a heading that has to wrap breaks where the styling changes */
.gmp-hero__h1 > .h-lead, .gmp-hero__h1 > em { display: inline-block; }
.gmp-hero__h1 > em { color: var(--accent-blue); font-weight: 300; }
.gmp-hero__row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.gmp main .gmp-hero__answer { font-size: clamp(1.12rem, 1.5vw, 1.32rem); line-height: 1.6; color: var(--ink); }
.gmp main .gmp-hero__sub { font-size: 17px; line-height: 1.65; color: var(--ink-muted); margin-bottom: 10px; }

.gmp-scene { display: block; width: 100%; height: auto; overflow: visible; }
.gmp-scene .gmp-d { fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gmp-scene .gmp-d--thin { stroke: var(--border-strong); stroke-width: 1.4; }
.gmp-scene .gmp-d--blue { stroke: var(--accent-blue); }
.gmp-scene .gmp-d--air { stroke: var(--accent-ice); stroke-width: 1.4; }
.gmp-scene .gmp-scene__room3 { fill: var(--gmp-c); }
.gmp-scene .gmp-scene__vial { fill: #fff; }
.gmp-scene .gmp-cell { fill: var(--accent-blue); transform-box: fill-box; transform-origin: center; }
.gmp-scene__sticker { transform-box: fill-box; transform-origin: center; transform: rotate(-7deg); }
.gmp-scene__sticker rect { fill: #fff; stroke: var(--accent-blue); stroke-width: 1.7; }
.gmp-scene__sticker text { font-family: var(--font-body); font-size: 22px; font-weight: 600; fill: var(--accent-blue-hover); }
.gmp-hero__key { display: grid; grid-template-columns: 41fr 59fr; margin-top: 14px; }
.gmp-key { font-size: 15px; line-height: 1.45; font-weight: 600; color: var(--ink-muted); padding-left: 8px; }
.gmp-key--lab { color: var(--accent-blue-hover); padding-left: 22px; }

/* the six parts of a manufacturer, as the way in */
.gmp-toc { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: clamp(36px, 5vw, 72px) !important; border-top: 1px solid var(--border-strong); }
.gmp-toc a { position: relative; display: block; min-height: 44px; padding: 18px 16px 6px 0; color: var(--ink); }
.gmp-toc a::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--accent-blue); transform: scaleX(0); transform-origin: left; transition: transform 460ms var(--gmp-ease); }
.gmp-toc a:hover::before, .gmp-toc a:focus-visible::before { transform: scaleX(1); }
.gmp-toc b { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; line-height: 1.2; transition: color 200ms; }
.gmp-toc span { display: block; margin-top: 4px; font-size: 14.5px; color: var(--ink-muted); }
.gmp-toc a:hover b { color: var(--accent-blue-hover); }

/* first paint: the machine, the sticker slapped on it, then the lab drawn room by room */
.gmp-js .gmp-hero__h1 > * { animation: gmp-up 900ms var(--gmp-ease) both; }
.gmp-js .gmp-hero__h1 > em { animation-delay: 110ms; }
.gmp-js .gmp-hero__text > * { animation: gmp-up 900ms var(--gmp-ease) 240ms both; }
.gmp-js .gmp-hero__text > .gmp-hero__sub { animation-delay: 330ms; }
.gmp-js .gmp-hero__text > a { animation-delay: 420ms; }
.gmp-js .gmp-scene .gmp-d { stroke-dasharray: 1; animation: gmp-draw 700ms var(--gmp-ease) both; }
.gmp-js .gmp-scene .gmp-scene__ground { animation-duration: 900ms; animation-delay: 150ms; }
.gmp-js .gmp-scene__clinic .gmp-d { animation-delay: 450ms; }
.gmp-js .gmp-scene__sticker { animation: gmp-stick 520ms var(--gmp-ease) 1250ms both; }
.gmp-js .gmp-scene__lab > .gmp-d { animation-delay: 1700ms; animation-duration: 900ms; }
.gmp-js .gmp-scene__lab > .gmp-scene__room2 { animation-delay: 2050ms; }
.gmp-js .gmp-scene__lab > .gmp-scene__room3 { animation-delay: 2400ms; }
.gmp-js .gmp-scene__lab > .gmp-scene__hood { animation-delay: 2750ms; animation-duration: 500ms; }
.gmp-js .gmp-scene__lab > .gmp-d--air { animation-delay: 2950ms; animation-duration: 500ms; }
.gmp-js .gmp-scene__lab > .gmp-scene__vial { animation-delay: 3100ms; animation-duration: 500ms; }
.gmp-js .gmp-scene .gmp-cell { animation: gmp-pop 380ms var(--gmp-ease) 3400ms both; }
.gmp-js .gmp-scene__doc .gmp-d { animation-delay: 3500ms; animation-duration: 500ms; }
.gmp-js .gmp-scene__doc .gmp-scene__tick { animation-delay: 4000ms; animation-duration: 420ms; }
.gmp-js .gmp-hero__key > * { animation: gmp-rise 700ms var(--gmp-ease) 1300ms both; }
.gmp-js .gmp-hero__key > :last-child { animation-delay: 2500ms; }
.gmp-js .gmp-toc li { animation: gmp-rise 700ms var(--gmp-ease) both; animation-delay: calc(600ms + var(--i, 0) * 70ms); }

/* ============ CONTENTS BAR (follows the reader) ============ */
.gmp .hc-bar {
  /* under the phone menu's sheet (55) and backdrop (50), over the page */
  position: fixed; left: 0; right: 0; top: var(--hc-nav-h); z-index: 49;
  height: var(--hc-bar-h);
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity 260ms, transform 360ms var(--gmp-ease), visibility 0s 360ms;
}
.gmp .hc-bar.is-on { transform: none; opacity: 1; visibility: visible; transition: opacity 260ms, transform 360ms var(--gmp-ease); }
body.gmp.nav-open .hc-bar { opacity: 0; visibility: hidden; }
.gmp .hc-bar__track {
  max-width: calc(1240px + 2 * var(--gmp-gut)); margin: 0 auto; padding: 0 var(--gmp-gut);
  height: 100%; display: flex; align-items: stretch; gap: clamp(18px, 2.4vw, 32px);
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; scroll-padding-inline: 28px;
}
.gmp .hc-bar__track::-webkit-scrollbar { display: none; }
.gmp .hc-bar__track a {
  position: relative; flex: none; display: flex; align-items: center;
  font-size: 14px; font-weight: 500; color: var(--ink-muted); white-space: nowrap; border-bottom: 0;
  transition: color 200ms;
}
.gmp .hc-bar__track a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--accent-blue); transform: scaleX(0); transform-origin: left;
  transition: transform 360ms var(--gmp-ease);
}
.gmp .hc-bar__track a:hover, .gmp .hc-bar__track a[aria-current] { color: var(--ink); }
.gmp .hc-bar__track a:hover::after { transform: scaleX(.35); }
.gmp .hc-bar__track a[aria-current]::after { transform: scaleX(1); }
.gmp .hc-bar__track a:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: -4px; border-radius: 4px; }
.gmp .hc-bar__progress {
  position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: var(--accent-ice); transform-origin: left; transform: scaleX(var(--hc-p, 0));
}

/* ============ FOLDS (native details) ============
   Shipped open. On a phone the script closes them; on a desktop there is
   nothing to fold, so the summary is not shown. */
.gmp-fold > summary { display: none; list-style: none; }
.gmp-fold > summary::-webkit-details-marker { display: none; }
.gmp-fold__less, .gmp-fold[open] > summary .gmp-fold__more { display: none; }
.gmp-fold[open] > summary .gmp-fold__less { display: inline; }
.gmp-fold > summary::after { content: ""; width: 9px; height: 9px; margin-top: -4px; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg); transition: transform 360ms var(--gmp-ease); }
.gmp-fold > summary:hover::after { transform: translateY(3px) rotate(45deg); }
.gmp-fold[open] > summary::after { margin-top: 4px; transform: rotate(-135deg); }
.gmp-fold[open] > summary:hover::after { transform: translateY(-3px) rotate(-135deg); }

/* ============ THE TERM: four letters, then whose rule it is ============ */
.gmp-term { padding-block: clamp(44px, 5.4vw, 80px); border-top: 1px solid var(--border); }
.gmp-acro__row { display: grid; grid-template-columns: clamp(84px, 9vw, 132px) minmax(0, 3fr) minmax(0, 8fr); align-items: baseline; gap: 0 clamp(16px, 2.4vw, 40px); padding-block: clamp(10px, 1.2vw, 16px); border-top: 1px solid var(--border); }
.gmp-acro__row:last-child { border-bottom: 1px solid var(--border); }
.gmp-acro dt { display: contents; }
.gmp-acro__l { font-family: var(--font-display); font-weight: 300; font-size: clamp(3rem, 4.6vw, 4.2rem); line-height: .9; color: var(--accent-blue); }
.gmp-acro__w { font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 400; color: var(--ink); }
.gmp-acro dd { font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.gmp-js .gmp-acro.is-in .gmp-acro__l { animation: gmp-drop 900ms var(--gmp-ease) both; }
.gmp-js .gmp-acro.is-in :is(.gmp-acro__w, dd) { animation: gmp-link 800ms var(--gmp-ease) both; }
.gmp-js .gmp-acro:not(.is-in) :is(.gmp-acro__l, .gmp-acro__w, dd) { opacity: 0; }
.gmp-js .gmp-acro__row:nth-child(2) > * > *, .gmp-js .gmp-acro__row:nth-child(2) > dd { animation-delay: 130ms; }
.gmp-js .gmp-acro__row:nth-child(3) > * > *, .gmp-js .gmp-acro__row:nth-child(3) > dd { animation-delay: 260ms; }
.gmp-js .gmp-acro__row:nth-child(4) > * > *, .gmp-js .gmp-acro__row:nth-child(4) > dd { animation-delay: 390ms; }

.gmp-term__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); margin-top: clamp(36px, 5vw, 64px); align-items: start; }
.gmp main .gmp-term__law p:last-child { font-family: var(--font-display); font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.3; color: var(--ink); }
/* the chain: each thing cGMP regulates is a link, joined to the next */
.gmp-chain__svg { display: block; width: 100%; max-width: 620px; height: auto; margin-top: 18px; overflow: visible; }
.gmp-chain__svg rect { fill: none; stroke: var(--accent-blue); stroke-width: 2.2; transform-box: fill-box; transform-origin: center; }
.gmp-chain__svg rect:nth-child(even) { stroke: var(--ink); }
.gmp-js .gmp-chain:not(.is-in) .gmp-chain__svg rect { opacity: 0; }
.gmp-js .gmp-chain.is-in .gmp-chain__svg rect { animation: gmp-link 520ms var(--gmp-ease) both; animation-delay: calc(var(--i) * 70ms); }
.gmp main .gmp-chain__lead { font-size: 17px; }
.gmp-chain__list { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-block: 22px !important; }
.gmp-chain__list li { display: inline-flex; align-items: center; font-size: 17px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.gmp-chain__list li::before { content: ""; width: 9px; height: 9px; margin-right: 9px; border: 2px solid var(--accent-blue); border-radius: 50%; }
.gmp-chain__list li:last-child::before { background: var(--accent-blue); }
.gmp-js .gmp-chain:not(.is-in) li { opacity: 0; }
.gmp-js .gmp-chain.is-in li { animation: gmp-link 520ms var(--gmp-ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
.gmp main .gmp-chain__not { font-family: var(--font-display); font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.3; color: var(--ink); }

/* ============ FACILITY: the rooms, drawn beside the grades ============ */
.gmp-fac { padding-block: clamp(44px, 5.4vw, 80px); border-top: 1px solid var(--border); }
.gmp-fac__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.gmp-rooms { position: sticky; top: calc(var(--hc-nav-h) + var(--hc-bar-h) + 28px); }
.gmp-rooms svg { display: block; width: 100%; height: auto; max-width: 460px; margin-inline: auto; overflow: visible; }
.gmp-room { stroke: var(--accent-blue); stroke-width: 1.4; transform-box: fill-box; transform-origin: center; transition: stroke-width 260ms, opacity 260ms; }
.gmp-room--d { fill: var(--gmp-d); } .gmp-room--c { fill: var(--gmp-c); } .gmp-room--b { fill: var(--gmp-b); } .gmp-room--a { fill: var(--gmp-a); }
.gmp-rooms.has-lit .gmp-room:not(.is-lit) { opacity: .45; }
.gmp-rooms .gmp-room.is-lit { stroke-width: 3.2; }
.gmp-rooms__dust circle { fill: var(--ink-muted); transform-box: fill-box; transform-origin: center; }
.gmp-rooms__air path { fill: none; stroke: var(--accent-blue); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 4 6; }
.gmp-rooms__heads path { fill: none; stroke: var(--accent-blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gmp-rooms__vial rect { fill: #fff; stroke: var(--ink); stroke-width: 1.6; }
.gmp-rooms__vial circle { fill: var(--accent-blue); }
.gmp-rooms__t { font-family: var(--font-body); font-size: 19px; font-weight: 600; fill: var(--ink); }
/* pressure flows outward for as long as the drawing is on screen */
.gmp-rooms.is-live .gmp-rooms__air path { animation: gmp-flow 1.1s linear infinite; }
.gmp-js .gmp-rooms:not(.is-in) :is(.gmp-room, .gmp-rooms__dust, .gmp-rooms__air, .gmp-rooms__heads, .gmp-rooms__vial, .gmp-rooms__t) { opacity: 0; }
.gmp-js .gmp-rooms.is-in .gmp-room { animation: gmp-settle 900ms var(--gmp-ease) both; }
.gmp-js .gmp-rooms.is-in .gmp-room--c { animation-delay: 180ms; }
.gmp-js .gmp-rooms.is-in .gmp-room--b { animation-delay: 360ms; }
.gmp-js .gmp-rooms.is-in .gmp-room--a { animation-delay: 540ms; }
.gmp-js .gmp-rooms.is-in :is(.gmp-rooms__t, .gmp-rooms__vial) { animation: gmp-rise 600ms var(--gmp-ease) 800ms both; }
.gmp-js .gmp-rooms.is-in .gmp-rooms__dust circle { animation: gmp-pop 420ms var(--gmp-ease) 1000ms both; }
.gmp-js .gmp-rooms.is-in :is(.gmp-rooms__air, .gmp-rooms__heads) { transition: opacity 600ms 1300ms; }

.gmp-fac__text h3 { margin-top: clamp(28px, 3vw, 40px) !important; }
.gmp main .gmp-fac__cap { font-size: 16.5px; color: var(--ink-muted); margin-top: 8px; }
.gmp-grades { width: 100%; border-collapse: collapse; margin-top: 20px; }
.gmp-grades tr { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); gap: 0 20px; align-items: baseline; padding: 16px 0 16px 14px; border-top: 1px solid var(--border); box-shadow: inset 3px 0 0 transparent; transition: box-shadow 260ms; }
.gmp-grades tr:last-child { border-bottom: 1px solid var(--border); }
.gmp-grades tr.is-lit { box-shadow: inset 3px 0 0 var(--accent-blue); }
.gmp-grades th { text-align: left; font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; color: var(--ink); line-height: 1.25; }
.gmp-grades th small { display: block; margin-left: 24px; font-family: var(--font-body); font-size: 14.5px; color: var(--ink-muted); }
.gmp-grades td { padding: 0; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }
.gmp-grades .gmp-grades__n { text-align: right; font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gmp-chip { display: inline-block; width: 13px; height: 13px; margin-right: 11px; border: 1.4px solid var(--accent-blue); border-radius: 3px; vertical-align: 1px; }
.gmp-chip--a { background: var(--gmp-a); } .gmp-chip--b { background: var(--gmp-b); } .gmp-chip--c { background: var(--gmp-c); } .gmp-chip--d { background: var(--gmp-d); }
.gmp-js .gmp-grades:not(.is-in) tbody tr { opacity: 0; }
.gmp-js .gmp-grades.is-in tbody tr { animation: gmp-rise 640ms var(--gmp-ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
.gmp-fac .gmp-fold__body { margin-top: 26px; }

.gmp-tell { position: relative; margin-top: clamp(40px, 5vw, 72px); padding-left: clamp(22px, 3vw, 44px); }
.gmp-tell::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--ink); transform-origin: top; }
.gmp main .gmp-tell p { margin-top: 12px; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.6; color: var(--ink); }
.gmp-js .gmp-tell:not(.is-in) > * { opacity: 0; }
.gmp-js .gmp-tell:not(.is-in)::before { transform: scaleY(0); }
.gmp-js .gmp-tell.is-in::before { animation: gmp-grow 700ms var(--gmp-ease) both; }
.gmp-js .gmp-tell.is-in > * { animation: gmp-rise 700ms var(--gmp-ease) 260ms both; }

/* ============ PROCESS: the record on its clipboard ============ */
.gmp-proc { padding-block: clamp(48px, 6vw, 88px); border-top: 1px solid var(--border); }
.gmp-proc__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.gmp-sheet { position: relative; padding: clamp(40px, 4vw, 56px) clamp(22px, 3vw, 44px) clamp(22px, 3vw, 36px); border: 1px solid var(--border-strong); border-radius: 6px; background: #fff; box-shadow: 0 30px 60px -44px rgba(11, 29, 58, .5); }
.gmp-sheet__clip { position: absolute; left: 50%; top: -30px; width: 120px; height: 56px; margin-left: -60px; }
.gmp-sheet__clip path { fill: #fff; stroke: var(--ink); stroke-width: 1.7; stroke-linejoin: round; }
.gmp-sheet__clip circle { fill: none; stroke: var(--ink); stroke-width: 1.7; }
.gmp main .gmp-sheet__sub { margin-top: 8px; font-size: 16px; color: var(--ink-muted); }
.gmp-sheet__rows { margin-top: 20px !important; }
.gmp-sheet .gmp-fold .gmp-sheet__rows { margin-top: 0 !important; }
.gmp-sheet__rows li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) 112px; gap: 4px 18px; align-items: baseline; padding-block: 14px; border-top: 1px solid var(--border); }
.gmp-sheet__rows b { font-family: var(--font-display); font-size: 1.2rem; font-weight: 400; color: var(--ink); line-height: 1.25; }
.gmp-sheet__rows span { font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); }
.gmp-sheet__rows em { justify-self: end; font-style: normal; font-size: 14px; font-weight: 600; color: var(--accent-blue-hover); white-space: nowrap; }
.gmp-sheet__rows em::before { content: ""; display: inline-block; width: 10px; height: 5px; margin-right: 8px; border-left: 2px solid var(--accent-blue); border-bottom: 2px solid var(--accent-blue); transform: translateY(-3px) rotate(-45deg); }
/* each line is written in, top to bottom */
.gmp-js .gmp-sheet:not(.is-in) .gmp-sheet__rows li { opacity: 0; }
.gmp-js .gmp-sheet.is-in .gmp-sheet__rows li { animation: gmp-write 620ms var(--gmp-ease) both; animation-delay: calc(200ms + var(--i, 0) * 110ms); }

/* ============ QUALITY CONTROL: the panel as a table ============ */
.gmp-qc { padding-block: clamp(44px, 5.4vw, 80px); border-top: 1px solid var(--border); }
.gmp-qc__top { display: grid; grid-template-columns: minmax(0, 1fr) clamp(120px, 14vw, 176px); gap: clamp(28px, 5vw, 88px); align-items: center; }
.gmp-coa { display: block; width: 100%; height: auto; overflow: visible; }
.gmp-coa path, .gmp-coa circle { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.gmp-coa .gmp-coa__sheet { fill: #fff; stroke: var(--ink); stroke-width: 1.7; }
.gmp-coa .gmp-coa__fold { stroke: var(--ink); stroke-width: 1.7; }
.gmp-coa .gmp-coa__head { stroke: var(--ink); stroke-width: 4; }
.gmp-coa__lines path { stroke: var(--border-strong); stroke-width: 3; }
.gmp-coa__ticks path { stroke: var(--accent-blue); stroke-width: 2.4; }
.gmp-coa .gmp-coa__later { stroke: var(--ink-muted); stroke-width: 1.8; stroke-dasharray: 3 3; }
.gmp-js .gmp-coa:not(.is-in) .gmp-coa__ticks path { opacity: 0; }
.gmp-js .gmp-coa.is-in .gmp-coa__ticks path { stroke-dasharray: 1; animation: gmp-draw 420ms var(--gmp-ease) both; animation-delay: calc(300ms + var(--i) * 150ms); }

.gmp-panel { margin-top: clamp(36px, 5vw, 64px); }
.gmp main .gmp-panel__sub { margin-top: 8px; font-size: 16.5px; color: var(--ink-muted); }
.gmp-table { width: 100%; margin-top: 22px; border-collapse: collapse; }
.gmp-table th, .gmp-table td { padding: 15px 20px 15px 0; text-align: left; vertical-align: baseline; border-bottom: 1px solid var(--border); }
.gmp-table thead th { font-size: 14.5px; font-weight: 600; color: var(--ink-muted); border-bottom-color: var(--ink); padding-block: 0 10px; }
.gmp-table tbody th { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; color: var(--ink); white-space: nowrap; }
.gmp-table td { font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.gmp-table td:nth-child(3) { font-weight: 600; color: var(--ink); white-space: nowrap; }
.gmp-table :is(th, td):last-child { padding-right: 0; width: 1%; white-space: nowrap; }
.gmp-req { font-size: 14.5px; font-weight: 600; color: var(--accent-blue-hover); }
.gmp-req::before { content: ""; display: inline-block; width: 10px; height: 5px; margin-right: 8px; border-left: 2px solid var(--accent-blue); border-bottom: 2px solid var(--accent-blue); transform: translateY(-3px) rotate(-45deg); }
.gmp-table tbody tr { transition: background-color 200ms; }
.gmp-js .gmp-panel:not(.is-in) tbody tr { opacity: 0; }
.gmp-js .gmp-panel.is-in tbody tr { animation: gmp-rise 560ms var(--gmp-ease) both; animation-delay: calc(var(--i, 0) * 70ms); }

/* ============ QUALITY ASSURANCE: the navy band, and the vial that has to pass ============ */
.gmp-qa { padding-block: clamp(56px, 7vw, 112px); background: var(--navy-brand); color: #fff; }
.gmp .gmp-qa h2, .gmp .gmp-qa h3 { color: #fff; }
.gmp main .gmp-qa .gmp-wrap :where(p) { color: rgba(255, 255, 255, .82); }
.gmp-qa em { font-style: italic; color: #fff; }
.gmp-qa__lede { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); }
.gmp main .gmp-qa__lede p + p { margin-top: 0; }
.gmp-gate { margin-top: clamp(40px, 5vw, 72px); }
.gmp main .gmp-gate .gmp-gate__sub { margin-top: 8px; font-size: 16.5px; color: rgba(255, 255, 255, .72); }
.gmp-gate__track { display: block; width: 100%; height: auto; margin-top: 28px; overflow: visible; }
.gmp-gate__track :is(path, circle, rect) { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.gmp-gate__rail { stroke: rgba(255, 255, 255, .26); stroke-width: 2; }
.gmp-gate__done { stroke: var(--accent-ice); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--gmp-p, 1)); }
.gmp-gate__g circle { stroke: #fff; stroke-width: 1.8; fill: var(--navy-brand); transition: fill 360ms, stroke 360ms; }
.gmp-gate__bar { stroke: #fff; stroke-width: 3; transform-box: fill-box; transform-origin: top center; transition: transform 620ms var(--gmp-ease), opacity 500ms; transform: scaleY(0); opacity: 0; }
.gmp-gate__ok { stroke: var(--navy-brand); stroke-width: 2.4; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 420ms var(--gmp-ease) 160ms; }
.gmp-gate__g circle { fill: var(--accent-ice); stroke: var(--accent-ice); }
.gmp-gate__vial { transform: translateX(calc(var(--gmp-p, 1) * 846px)); }
.gmp-gate__vial rect { fill: #fff; stroke: #fff; stroke-width: 1.6; }
.gmp-gate__vial path { stroke: var(--navy-brand); stroke-width: 1.4; }
.gmp-gate__vial circle { fill: var(--accent-blue); stroke: none; }
/* with the script running the gates start shut and open as the vial reaches them */
.gmp-js .gmp-gate__g:not(.is-open) circle { fill: var(--navy-brand); stroke: #fff; }
.gmp-js .gmp-gate__g:not(.is-open) .gmp-gate__bar { transform: none; opacity: 1; }
.gmp-js .gmp-gate__g:not(.is-open) .gmp-gate__ok { stroke-dashoffset: 1; transition-delay: 0s; }

.gmp-gate__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 48px); margin-top: 18px; }
.gmp-gate__col { padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .26); transition: border-color 500ms; }
.gmp main .gmp-kind { font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--ink-muted); }
.gmp main .gmp-qa .gmp-kind { color: var(--accent-ice); }
.gmp main .gmp-gate__col h4 { margin: 4px 0 14px; font-family: var(--font-display); font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 400; line-height: 1.2; color: #fff; max-width: none; }
.gmp-gate__col li { position: relative; padding: 5px 0 5px 20px; font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, .82); }
.gmp-gate__col li::before { content: ""; position: absolute; left: 0; top: 14px; width: 8px; height: 2px; background: var(--accent-ice); }
.gmp-gate__col.is-open { border-top-color: var(--accent-ice); }
.gmp-qa__more { margin-top: clamp(36px, 5vw, 64px); }
.gmp-qa__more .gmp-fold__body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(20px, 4vw, 72px); align-items: baseline; padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid rgba(255, 255, 255, .26); }

/* ============ STAFFING: two crews and the wall between them ============ */
.gmp-staff { padding-block: clamp(48px, 6vw, 88px); }
.gmp main .gmp-staff h2 { margin-bottom: 18px; }
.gmp main .gmp-staff__lede { font-family: var(--font-display); font-size: clamp(1.35rem, 2.1vw, 1.8rem); line-height: 1.35; color: var(--ink); }
.gmp-crew { display: block; width: 100%; max-width: 720px; height: auto; margin: clamp(28px, 4vw, 48px) auto 0; overflow: visible; }
.gmp-crew :is(circle, path) { fill: #fff; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; }
.gmp-crew__qa :is(circle, path) { stroke: var(--accent-blue); fill: var(--gmp-c); }
.gmp-crew .gmp-crew__wall { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-dasharray: none; }
.gmp-crew g > g { transform-box: fill-box; transform-origin: 50% 100%; }
.gmp-js .gmp-crew:not(.is-in) g > g { opacity: 0; }
.gmp-js .gmp-crew.is-in g > g { animation: gmp-pop 460ms var(--gmp-ease) both; animation-delay: calc(360ms + var(--i) * 70ms); }
.gmp-js .gmp-crew .gmp-crew__wall { stroke-dasharray: 1; }
.gmp-js .gmp-crew:not(.is-in) .gmp-crew__wall { opacity: 0; }
.gmp-js .gmp-crew.is-in .gmp-crew__wall { animation: gmp-draw 520ms var(--gmp-ease) both; }
.gmp-staff__cols { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(40px, 7vw, 120px); max-width: 1040px; margin: clamp(20px, 3vw, 36px) auto 0; }
.gmp-staff__cols::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--ink); }
.gmp main .gmp-staff__col h3 { margin: 2px 0 12px; }
.gmp main .gmp-staff__col--qa h3 { color: var(--accent-blue-hover); }
.gmp-staff__col li { padding-block: 13px; border-top: 1px solid var(--border); }
.gmp-staff__col li b { display: block; font-size: 17px; font-weight: 600; color: var(--ink); }
.gmp-staff__col li span { display: block; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.gmp-staff__col--mfg { text-align: right; }
.gmp main .gmp-staff__close { margin-top: clamp(28px, 4vw, 48px); font-size: 16.5px; }

/* ============ INSPECTION: three layers, outermost first ============ */
.gmp-insp { padding-block: clamp(44px, 5.4vw, 80px); border-top: 1px solid var(--border); }
.gmp-insp__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.gmp-insp__head { position: sticky; top: calc(var(--hc-nav-h) + var(--hc-bar-h) + 28px); }
.gmp-layers li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: clamp(18px, 2.4vw, 32px); align-items: start; padding-block: clamp(22px, 2.6vw, 32px); border-top: 1px solid var(--border); }
.gmp-layers li:first-child { border-top: 0; padding-top: 0; }
.gmp-layers svg { display: block; width: 64px; height: 64px; }
.gmp-layers svg :is(path, circle, rect) { fill: none; stroke: var(--accent-blue); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.gmp-layers svg .gmp-layers__seal { fill: #fff; }
.gmp main .gmp-layers h3 { margin: 2px 0 8px; }
.gmp main .gmp-layers p:not(.gmp-kind) { font-size: 17px; }
.gmp main .gmp-layers .gmp-layers__who { margin-top: 10px; font-size: 15.5px; font-weight: 500; color: var(--ink-muted); }
.gmp-js .gmp-layers li:not(.is-in) svg :is(path, circle, rect) { opacity: 0; }
.gmp-js .gmp-layers li.is-in svg :is(path, circle, rect) { stroke-dasharray: 1; animation: gmp-draw 900ms var(--gmp-ease) 200ms both; }
.gmp-js .gmp-layers li.is-in svg :is(path, circle, rect):nth-child(n+2) { animation-delay: 700ms; animation-duration: 500ms; }

/* ============ WHAT TO ASK: the one tinted band ============ */
.gmp-ask { padding-block: clamp(48px, 6vw, 88px); background: var(--accent-wash); }
.gmp-ask__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.gmp-slip { display: block; width: min(100%, 300px); height: auto; margin-top: clamp(24px, 3vw, 40px); overflow: visible; }
.gmp-slip :is(path, rect) { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.gmp-slip .gmp-slip__sheet { fill: #fff; stroke: var(--ink); stroke-width: 1.7; }
.gmp-slip .gmp-slip__rule { stroke: var(--border-strong); stroke-width: 3; }
.gmp-slip .gmp-slip__line { stroke: var(--ink); stroke-width: 1.4; }
.gmp-slip .gmp-slip__sig { stroke: var(--accent-blue-hover); stroke-width: 2; }
.gmp-slip .gmp-slip__date { stroke: var(--ink); stroke-width: 1.5; }
.gmp-slip .gmp-slip__tick { stroke: var(--accent-blue); stroke-width: 2.4; }
.gmp-js .gmp-slip:not(.is-in) :is(.gmp-slip__sig, .gmp-slip__tick) { opacity: 0; }
.gmp-js .gmp-slip.is-in .gmp-slip__sig { stroke-dasharray: 1; animation: gmp-draw 1500ms cubic-bezier(.5, 0, .3, 1) 300ms both; }
.gmp-js .gmp-slip.is-in .gmp-slip__tick { stroke-dasharray: 1; animation: gmp-draw 420ms var(--gmp-ease) 1800ms both; }
.gmp-asks li { padding-block: clamp(20px, 2.4vw, 30px); border-top: 1px solid var(--ink); }
.gmp-asks li:last-child { padding-bottom: 0; }
.gmp main .gmp-asks h3 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 300; line-height: 1.15; margin-bottom: 10px; }
.gmp-js .gmp-asks li:nth-child(2) { transition-delay: 120ms; }
.gmp-js .gmp-asks li:nth-child(3) { transition-delay: 240ms; }

/* the three questions, to take along: the sheet is ticked once they are on the clipboard */
.gmp main .gmp-copy { margin-top: clamp(18px, 2vw, 26px); }
.gmp-copy__btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; background: none; font: 600 16px/1.2 var(--font-body); color: var(--accent-blue-hover); cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; transition: color 200ms, text-decoration-color 260ms; }
.gmp-copy__btn:hover { color: var(--accent-blue); text-decoration-color: currentColor; }
.gmp-copy__btn svg { width: 24px; height: 24px; flex: none; overflow: visible; }
.gmp-copy__btn svg :is(rect, path) { fill: var(--accent-wash); stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gmp-copy__back { transition: transform 360ms var(--gmp-ease); }
.gmp-copy__btn:hover .gmp-copy__back { transform: translate(1.5px, -1.5px); }
.gmp-copy__btn svg .gmp-copy__tick { fill: none; stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 380ms var(--gmp-ease); }
.gmp-copy__btn.is-done .gmp-copy__tick { stroke-dashoffset: 0; }
.gmp-copy__label { display: inline-block; text-align: left; }

/* a jump says where it landed: a rule draws under the heading it reached, once */
.gmp main h2.is-landed, .gmp main h3.is-landed { background: linear-gradient(var(--accent-blue), var(--accent-blue)) no-repeat left bottom / 0 2px; animation: gmp-land 1500ms var(--gmp-ease) both; }
.gmp .gmp-qa h2.is-landed, .gmp .gmp-qa h3.is-landed { background-image: linear-gradient(var(--accent-ice), var(--accent-ice)); }
@keyframes gmp-land { 0%, 100% { background-size: 0 2px; } 40%, 72% { background-size: 96px 2px; } }

/* ============ READ ON ============ */
.gmp-next { padding-block: clamp(48px, 6vw, 88px) clamp(40px, 5vw, 72px); }
.gmp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto 1fr auto; gap: 0 clamp(16px, 2vw, 28px); }
.gmp-card { position: relative; display: grid; grid-template-rows: subgrid; padding: clamp(22px, 2.4vw, 32px); border: 1px solid var(--border); border-radius: 8px; background: #fff; transition: border-color 260ms, box-shadow 420ms var(--gmp-ease), transform 420ms var(--gmp-ease), opacity 620ms ease; }
@supports not (grid-template-rows: subgrid) { .gmp-card { display: flex; flex-direction: column; } }
.gmp-card { grid-row: span 4; }
.gmp-card__mark { display: block; width: 56px; height: 56px; margin-bottom: 18px; overflow: visible; }
.gmp-card__mark :is(path, rect, circle) { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gmp-card__mark .b { stroke: var(--accent-blue); }
.gmp-card__mark .f { fill: var(--accent-blue); stroke: none; }
.gmp main .gmp-card h3 { margin-bottom: 10px; font-size: clamp(1.3rem, 1.7vw, 1.5rem); }
.gmp-card h3 a { color: var(--ink); transition: color 200ms; }
/* the whole card is the link */
.gmp-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 8px; }
.gmp-card h3 a:focus-visible { outline: none; }
.gmp-card h3 a:focus-visible::after { outline: 2px solid var(--accent-blue); outline-offset: 3px; }
.gmp main .gmp-card p { font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.gmp-card__go { margin-top: 16px; font-size: 20px; color: var(--accent-blue-hover); transition: transform 360ms var(--gmp-ease); justify-self: start; }
.gmp-js .gmp-card:not(.is-in) { transition-delay: calc(var(--i) * 110ms); }
.gmp-card:hover, .gmp-card:focus-within { transform: translateY(-3px); }
.gmp-card:hover, .gmp-card:focus-within { border-color: var(--accent-blue); box-shadow: 0 18px 40px -26px rgba(11, 29, 58, .4); }
.gmp-card:hover h3 a { color: var(--accent-blue-hover); }
.gmp-card:hover .gmp-card__go { transform: translateX(6px); }
.gmp main .gmp-up { display: flex; flex-wrap: wrap; gap: 4px 32px; margin-top: clamp(24px, 3vw, 40px); }

/* ============ CLOSING CALL ============ */
.gmp-end { padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--border); background: #fff; }
.gmp-end .assess-band__inner { max-width: 720px; margin: 0 auto; padding: 0 var(--gmp-gut); display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.gmp main .gmp-end .assess-band__title { margin: 0; text-wrap: balance; }
.gmp main .gmp-end .assess-band__lede { font-size: 18px; line-height: 1.6; color: var(--ink-soft); }
.gmp-end .btn { margin-top: 6px; }
.gmp-end .assess-band__note { font-size: 14px; color: var(--ink-muted); }

/* ============ NARROWER ============ */
@media (max-width: 1100px) {
  /* the bar's track can scroll here, so its edges fade */
  .gmp .hc-bar__track { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent); }
  .gmp-toc { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gmp-toc li:nth-child(n+4) a { border-top: 1px solid var(--border); }
}
@media (max-width: 900px) {
  .gmp-hero__row, .gmp-term__grid, .gmp-fac__grid, .gmp-proc__grid, .gmp-insp__grid, .gmp-ask__grid, .gmp-qa__lede { grid-template-columns: minmax(0, 1fr); }
  .gmp-rooms, .gmp-insp__head { position: static; }
  .gmp-rooms svg { max-width: 360px; }
  .gmp-qa__lede { gap: 18px; }
  .gmp-qa__more .gmp-fold__body { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .gmp-cards { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 16px; }
  .gmp-card { grid-row: auto; grid-template-rows: none; display: flex; flex-direction: column; }
  .gmp-proc__grid { gap: 56px; }
}
@media (max-width: 760px) {
  /* a phone: what a reader can skip is folded, and the fold is a control */
  .gmp-fold > summary { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-size: 16px; font-weight: 600; color: var(--accent-blue-hover); }
  .gmp-qa .gmp-fold > summary { color: #c9def2; }
  .gmp-fold[open] > .gmp-fold__body { animation: gmp-unfold 420ms var(--gmp-ease); }
  .gmp-fac .gmp-fold { margin-top: 10px; }
  .gmp-fac .gmp-fold__body { margin-top: 8px; }

  .gmp-toc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gmp-toc li:nth-child(n+3) a { border-top: 1px solid var(--border); }
  .gmp-toc a { padding: 14px 10px 12px 0; }
  .gmp-toc b { font-size: 1.15rem; }

  .gmp-acro__row { grid-template-columns: 64px minmax(0, 1fr); align-items: center; }
  .gmp-acro dd { grid-column: 1 / -1; margin-top: 8px !important; font-size: 16px; }
  .gmp-chain__list li { font-size: 16px; }
  .gmp-chain__list { gap: 8px 18px; }

  .gmp-grades tr { grid-template-columns: minmax(0, 1fr) auto; padding-left: 12px; }
  .gmp-grades td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; margin-top: 6px; }

  .gmp-sheet__rows li { grid-template-columns: minmax(0, 1fr) auto; }
  .gmp-sheet__rows span { grid-column: 1 / -1; grid-row: 2; }
  /* opened by hand, the folded lines follow at once */
  .gmp-js .gmp-sheet.is-in .gmp-fold li { animation-delay: calc((var(--i, 3) - 3) * 70ms); }

  .gmp-qc__top { grid-template-columns: minmax(0, 1fr); }
  .gmp-coa { width: 120px; order: -1; }
  .gmp-table, .gmp-table tbody { display: block; }
  .gmp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .gmp-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; padding-block: 14px; border-bottom: 1px solid var(--border); }
  .gmp-table tbody :is(th, td) { padding: 0; border: 0; width: auto; }
  .gmp-table tbody th { white-space: normal; }
  .gmp-table tbody td:nth-child(2) { grid-column: 1 / -1; grid-row: 3; font-size: 15px; white-space: normal; }
  .gmp-table tbody td:nth-child(3) { grid-column: 1; grid-row: 2; }
  .gmp-table tbody td:nth-child(4) { grid-column: 2; grid-row: 1; }

  /* the three functions stack; each carries its own gate, lit as it is reached */
  .gmp-gate__track { display: none; }
  .gmp-gate__cols { grid-template-columns: minmax(0, 1fr); margin-top: 26px; }
  .gmp-gate__col { position: relative; padding: 0 0 26px 52px; border-top: 0; }
  .gmp-gate__col::before { content: ""; position: absolute; left: 0; top: 2px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--accent-ice); background: var(--accent-ice) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M8.5 15.5l4.5 4.5 8.5-9.5' fill='none' stroke='%23132C5B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 30px no-repeat; transition: background-color 420ms, border-color 420ms; box-sizing: border-box; }
  .gmp-gate__col::after { content: ""; position: absolute; left: 14px; top: 38px; bottom: 4px; width: 2px; background: var(--accent-ice); transform-origin: top; transition: transform 700ms var(--gmp-ease), opacity 400ms; }
  .gmp-gate__col:last-child::after { display: none; }
  .gmp-gate__col:last-child { padding-bottom: 0; }
  .gmp-js .gmp-gate__col:not(.is-open)::before { background-color: transparent; background-image: none; border-color: rgba(255, 255, 255, .5); }
  .gmp-js .gmp-gate__col:not(.is-open)::after { transform: scaleY(0); opacity: 0; }

  .gmp-staff__cols { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .gmp-staff__cols::before { display: none; }
  .gmp-staff__col--mfg { text-align: left; }
  .gmp-staff__col--qa { padding-top: 24px; border-top: 2px solid var(--ink); }
  .gmp-js [data-r="left"]:not(.is-in), .gmp-js [data-r="right"]:not(.is-in) { transform: translateY(18px); }

  .gmp-layers li { grid-template-columns: 48px minmax(0, 1fr); }
  .gmp-layers svg { width: 48px; height: 48px; }
  .gmp-slip { width: 220px; }
}
@media (max-width: 600px) {
  html:has(body.gmp) { --hc-bar-h: 48px; }
  .gmp .hc-bar__track { gap: 22px; }
  .gmp main :where(section > .gmp-wrap) p { font-size: 17px; }
  .gmp-key { font-size: 14px; padding-left: 0; }
  .gmp-key--lab { padding-left: 12px; }
  .gmp-end .btn { width: 100%; }
}

/* ============ STILL ============
   Reduced motion: every drawing holds its finished state and nothing moves. */
@media (prefers-reduced-motion: reduce) {
  .gmp main *, .gmp main *::before, .gmp main *::after { animation: none !important; transition: none !important; }
  .gmp-js [data-r]:not(.is-in), .gmp-js [data-r]:not(.is-in) * { opacity: 1 !important; transform: none !important; }
  .gmp-js .gmp-scene .gmp-d, .gmp-js .gmp-crew .gmp-crew__wall { stroke-dasharray: none; }
  .gmp-scene__sticker { transform: rotate(-7deg) !important; }
  .gmp .hc-bar { transition: none !important; }
  .gmp-card:hover, .gmp-card:focus-within { transform: none; }
  .gmp-go:hover span, .gmp-card:hover .gmp-card__go, .gmp-src:hover::after { transform: none; }
}
@media print {
  .gmp .hc-bar { display: none !important; }
  /* a printout is one still frame: nothing may be caught part way through moving */
  .gmp main *, .gmp main *::before, .gmp main *::after { animation: none !important; transition: none !important; }
  .gmp-js [data-r], .gmp-js [data-r] * { opacity: 1 !important; transform: none !important; animation: none !important; }
  .gmp-fold > summary, .gmp-copy { display: none !important; }
  .gmp-qa { background: #fff; color: var(--ink); }
  .gmp .gmp-qa h2, .gmp .gmp-qa h3, .gmp main .gmp-gate__col h4 { color: var(--ink); }
  .gmp main .gmp-qa .gmp-wrap p, .gmp-gate__col li { color: var(--ink-soft); }
  .gmp-gate__track { display: none; }
  .gmp-rooms, .gmp-insp__head { position: static; }
}
