/* resin.css — Dayatas Profab: the resin pages (abs-resin, ps-resin, hips-resin; .gp-*) and applications.html (.ap-*).
   Phase 3, 25 Oct 2026; round-2 rework the same day. Linked after tokens.css and inner.css; adds only its own classes,
   so no other page moves (resin.html links hub.css, not this file).
   Ember keeps its four jobs: the button, scene-code numbers, link underlines, "this page" (now). Icons stay --warm.
   Every text colour here passes AA on its own ground; input lines and structural rules are 3:1 or more. */

.gp-page, .ap-page { --ip-pad: clamp(56px, 6.4vw, 104px); }   /* a tighter chapter rhythm than the long guides */

/* ================================================================ resin page: the hero (data-hero="specimen") */
.gp-hero { padding-top: clamp(24px, 3vw, 48px); }
.gp-hero-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 4.4vw, 80px); align-items: start; }
.gp-code { margin: 22px 0 0 -.03em; font-size: clamp(96px, calc(44vw / var(--n, 3)), 260px); font-weight: 820; line-height: .8; letter-spacing: -.05em; font-variation-settings: 'wdth' 125; color: var(--text); }
.gp-hero .ip-h1 { margin-top: 26px; font-size: clamp(38px, 4.2vw, 72px); max-width: 15ch; }
.gp-fig { margin: 0; }
.gp-fig .frame-in { aspect-ratio: 4 / 3; }
.gp-fig .frame-in > img { object-position: 50% 60%; }
.gp-upd { margin: 14px 0 0; font-family: var(--f-m); font-size: var(--fs-lab); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.gp-rec { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); margin: 0; }
.gp-rec > div { padding: 12px 18px 0 0; }
.gp-rec dt { font-family: var(--f-m); font-size: var(--fs-lab); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.gp-rec dd { margin: 8px 0 0; font-size: 16px; line-height: 1.4; color: var(--text); }
.gp-rec dd a { border-bottom: 1px solid var(--ember); }
/* the record set as a stacked list (PS beside its h1, HIPS under it) */
.gp-hero-rec .gp-rec { grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--rule); }
.gp-hero-rec .gp-rec > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.gp-hero-rec .gp-rec dd { margin: 0; text-align: right; }
.gp-hero-rec .ip-k { margin-bottom: 10px; }

/* ABS: the bag print, read line by line (the record under the hero) */
.gp-band { margin-top: clamp(36px, 4vw, 60px); padding-top: 22px; border-top: 1px solid var(--rule); }
.gp-band-l { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 2px solid var(--warm); }
.gp-band-l li { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 22px clamp(18px, 2vw, 28px); border-left: 1.5px solid var(--warm); }
.gp-band-l li:first-child { border-left: 0; }
.gp-sten { font-family: var(--f-m); font-weight: 500; font-size: clamp(18px, 1.75vw, 29px); letter-spacing: .06em; line-height: 1.15; color: var(--warm); }
.gp-dec { display: flex; flex-direction: column; gap: 5px; font-size: 17px; line-height: 1.35; color: var(--text); }
.gp-dec i { font-style: normal; font-family: var(--f-m); font-size: var(--fs-lab); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.gp-band-f { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 6px 40px; margin-top: 6px; }
.gp-band-f .gp-rec { grid-template-columns: auto; }

/* PS: the board (where PS suits / where to step up) beside the h1, the record row under both */
.gp-board { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; margin-top: 48px; padding: clamp(22px, 2.4vw, 34px); background: var(--panel); border: 1px solid var(--rule); }
.gp-hero-f { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px 40px; margin-top: clamp(32px, 3.6vw, 52px); padding-top: 20px; border-top: 1px solid var(--rule); }
.gp-hero-f > .ip-k { grid-column: 1 / -1; margin: 0; }
.gp-hero-f .gp-rec { --n: 3; }
.gp-board .ip-k { margin-bottom: 12px; }
.gp-board-n { grid-column: 1 / -1; margin: 0; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: 14.5px; line-height: 1.5; color: var(--mute); }
.gp-up { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.gp-up li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.gp-upcs { color: var(--mute); }
.gp-upc { font-size: 19px; font-weight: 800; letter-spacing: -.01em; font-variation-settings: 'wdth' 125; color: var(--text); border-bottom: 1px solid var(--ember); transition: color .3s; }
.gp-upc:hover { color: var(--ember-2); }
.gp-up b { display: block; font-size: 15.5px; font-weight: 560; color: var(--text); }
.gp-up div span { display: block; margin-top: 3px; font-size: 14.5px; line-height: 1.5; color: var(--body); }

/* HIPS: the drawing is the hero object; the record sits under the h1 */
.gp-hero-rec { max-width: 520px; margin-top: 36px; }
.gp-make.is-hero { margin: clamp(0px, 3vw, 48px) 0 0; }

/* ================================================================ the answer and the resin switcher */
.gp-lede { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(32px, 5vw, 96px); align-items: start; padding-top: clamp(40px, 4.4vw, 72px); }
.gp-lede .ip-answer.big { max-width: 54rem; }
.gp-range .gr-code.sm, .gp-cur .gr-code.sm { min-width: 62px; }
.gp-cur { display: flex; align-items: center; gap: 14px; margin: 0; padding: 13px 0; border-top: 1px solid var(--line-2); font-size: 15px; color: var(--text); }
.gp-cur em { margin-left: auto; font-style: normal; font-family: var(--f-m); font-size: var(--fs-lab); letter-spacing: .12em; text-transform: uppercase; color: var(--ember); white-space: nowrap; }
.lede-ask a.gp-all { border-top-color: var(--rule); color: var(--text); font-weight: 560; }

/* ================================================================ body: chapters left, the chapter rail on the RIGHT */
.gp-body { display: grid; grid-template-columns: minmax(0, 1fr) var(--rail-w); column-gap: clamp(40px, 5vw, 96px); align-items: start; }
.gp-body > .chaps { grid-column: 1; grid-row: 1; }
.gp-body > .chap-rail { grid-column: 2; grid-row: 1; margin-top: var(--ip-pad); }
.chap-note a { color: var(--text); border-bottom: 1px solid var(--ember); }
.gp-sub { margin-top: clamp(36px, 4vw, 56px); }
.ip .gp-h3 { margin: 0 0 14px; font-size: var(--fs-h3); font-weight: 500; line-height: 1.25; color: var(--text); }
.prose .gp-rules, .gp-rules { margin: 4px 0 0; font-family: var(--f-m); font-size: var(--fs-lab); letter-spacing: .12em; text-transform: uppercase; line-height: 1.5; color: var(--mute); }
.gp-ref { font-family: var(--f-m); font-size: 13px; color: var(--text); border-bottom: 1px solid var(--ember); }
.gp-figs { display: grid; gap: 30px; align-content: start; }

/* ================================================================ the make-up drawings (inline SVG) */
.gp-make, .gp-uv { margin: 0; }
.gp-make > svg, .gp-uv > svg { display: block; width: 100%; height: auto; }
.mk-bg { fill: var(--panel); stroke: var(--rule); stroke-width: 1; }
.mk-st { fill: none; stroke: rgba(236, 231, 222, .55); stroke-width: 1.3; stroke-linecap: round; }
.mk-an { fill: none; stroke: var(--warm); stroke-width: 3.6; stroke-linecap: round; }
.mk-c1 { fill: none; stroke: rgba(236, 231, 222, .45); stroke-width: 1.3; stroke-linecap: round; }
.mk-c2 { fill: none; stroke: var(--warm); stroke-width: 2.6; stroke-linecap: round; }
.mk-r { fill: #1d1b17; stroke: var(--warm); stroke-width: 1.7; }
.mk-g { fill: none; stroke: var(--warm); stroke-width: 1.3; }
.mk-o { fill: none; stroke: var(--rule); stroke-width: 1.5; }
.mk-o.is-cur { stroke: var(--text); stroke-width: 2.6; }
.mk-ld { fill: none; stroke: var(--mute); stroke-width: 1.3; }
.mk-dot { fill: var(--text); }
.mk-t { font-family: var(--f-m); font-size: 22px; letter-spacing: .03em; fill: var(--text); }
.gp-make-ps .mk-t { font-size: 24px; }   /* PS drawing is 640 wide: 24px keeps its labels 12px+ at a 360px screen */
.mk-tl { font-family: var(--f-m); font-size: 24px; fill: var(--text); }   /* callouts: 12px+ at a 360px screen */
.mk-code { font-family: var(--f-d); font-size: 34px; font-weight: 800; letter-spacing: -.02em; font-variation-settings: 'wdth' 125; fill: var(--text); }
.gp-keyw .ip-k { margin-bottom: 10px; }
.gp-key { list-style: none; margin: 18px 0 0; padding: 0; }
.gp-keyw .gp-key { margin-top: 0; border-top: 1px solid var(--rule); }
.gp-key li { display: grid; grid-template-columns: 34px minmax(0, 12rem) minmax(0, 1fr); gap: 4px 14px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line-2); font-size: 15px; line-height: 1.45; }
.gp-key svg { width: 32px; height: 16px; align-self: center; }
.gp-key b { font-weight: 560; color: var(--text); }
.gp-key span { color: var(--body); }
.gp-make figcaption, .gp-uv figcaption, .gp-sheet-fig > figcaption { margin-top: 14px; font-family: var(--f-m); font-size: var(--fs-lab); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); line-height: 1.5; }
/* ABS outdoors */
.uv-part { fill: var(--panel-2); stroke: var(--rule); stroke-width: 1.5; }
.uv-aged { fill: rgba(216, 202, 179, .5); }
.uv-crack { fill: none; stroke: var(--text); stroke-width: 1.4; }
.uv-coat { fill: var(--warm); }
.uv-sun { fill: none; stroke: var(--warm); stroke-width: 2; }
.uv-ray { fill: none; stroke: var(--warm); stroke-width: 1.5; stroke-dasharray: 4 5; }

/* ================================================================ the ladder: PS -> HIPS -> ABS */
.gp-ladder { margin: 52px 0 0; }
.gp-ladder > figcaption { margin-bottom: 14px; }
.gp-ladder ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.gp-ladder li { position: relative; border-left: 1px solid var(--line-2); }
.gp-ladder li:first-child { border-left: 0; }
.gp-ladder li:not(:first-child)::before { content: '→'; position: absolute; z-index: 1; left: -10px; top: 30px; width: 20px; background: var(--bg); color: var(--mute); font-family: var(--f-m); font-size: 14px; line-height: 20px; }
.gp-ladder li > a, .gp-ladder li > div { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 26px clamp(18px, 2vw, 30px) 24px; }
.gp-ladder li.is-cur { background: var(--panel); }
.gp-ladder li.is-cur::after { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--ember); }
.gp-ladder .gr-code { font-size: clamp(40px, 3.6vw, 60px); }
.gp-ln { font-family: var(--f-s); font-style: italic; font-size: 21px; line-height: 1.2; color: var(--warm); }
.gp-la { font-size: 15.5px; line-height: 1.55; color: var(--body); }
.gp-ladder em { margin-top: auto; padding-top: 8px; font-style: normal; font-family: var(--f-m); font-size: var(--fs-lab); letter-spacing: .12em; text-transform: uppercase; color: var(--ember); }
.gp-go { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 8px; font-weight: 560; font-size: 15px; color: var(--text); }
.gp-go svg { width: 15px; height: 15px; fill: none; stroke: var(--warm); stroke-width: 1.6; transition: transform .45s var(--ease); }
.gp-ladder a:hover .gp-go svg { transform: translateX(5px); }
/* the stack: HIPS sets it beside its prose */
.gp-ladder.stack { margin: 0; }
.gp-ladder.stack ol { grid-template-columns: minmax(0, 1fr); }
.gp-ladder.stack li { border-left: 0; border-top: 1px solid var(--line-2); }
.gp-ladder.stack li:first-child { border-top: 0; }
.gp-ladder.stack li:not(:first-child)::before { content: '↓'; left: 22px; top: -11px; }
.gp-ladder.stack li > a, .gp-ladder.stack li > div { padding: 20px 22px; gap: 6px; }
.gp-ladder.stack .gr-code { font-size: clamp(32px, 2.6vw, 44px); }

/* ================================================================ lists, registers, film log */
.gp-steps { margin: 0; }
.gp-steps > figcaption, .gp-tell > .ip-k, .gp-uses > .ip-k, .gp-led > .ip-k, .gp-feed > .ip-k { margin-bottom: 12px; }
.gp-steps ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.gp-steps li { display: grid; grid-template-columns: 30px 24px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.gp-steps i { padding-top: 3px; font-style: normal; font-family: var(--f-m); font-size: 13px; letter-spacing: .1em; color: var(--mute); }
.gp-steps b { display: block; font-size: 17px; font-weight: 560; color: var(--text); }
.gp-steps span { display: block; margin-top: 3px; font-size: 15.5px; line-height: 1.55; color: var(--body); }
/* uses: grouped, the full chapter width */
.gp-uses { margin-top: 44px; }
.gp-ugs { display: grid; grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.gp-ug-h { margin: 0 0 8px; font-family: var(--f-m); font-size: var(--fs-lab); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.gp-ug.is-ours .gp-ug-h { color: var(--warm); }
.gp-ugs.one .checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; }
/* the grouped register (PS) */
.gp-lg + .gp-lg { margin-top: 18px; }
.gp-lg-h { margin: 0 0 6px; font-family: var(--f-m); font-size: var(--fs-lab); letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.gp-lg.is-open .gp-lg-h { color: var(--warm); }
/* the scrap ABS's maker is looking for */
.gp-feed-i { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gp-feed-i li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--rule); font-size: 15px; line-height: 1.35; color: var(--text); }
.gp-feed .ledger { margin-top: 16px; }
.gp-feed .ledger dd { max-width: 30ch; }
/* the production film as a contact sheet of scenes */
.gp-log { margin: 30px 0 0; }
.gp-log ol { position: relative; list-style: none; margin: 14px 0 0; padding: 30px 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; background: #0d0e11; border: 1px solid var(--rule); }
.gp-log ol::before, .gp-log ol::after { content: ''; position: absolute; left: 12px; right: 12px; height: 8px; background: repeating-linear-gradient(90deg, rgba(236, 231, 222, .3) 0 10px, transparent 10px 22px); }
.gp-log ol::before { top: 11px; }
.gp-log ol::after { bottom: 11px; }
.gp-log li a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px 16px 18px; background: var(--bg-2); border: 1px solid var(--line-2); transition: border-color .3s; }
.gp-log li a:hover { border-color: var(--warm); }
.gp-log i { font-style: normal; font-family: var(--f-m); font-size: 12px; letter-spacing: .1em; color: var(--mute); }
.gp-log b { font-size: 17px; font-weight: 560; color: var(--text); }
.gp-log span { font-size: 15px; line-height: 1.5; color: var(--body); }
/* HIPS's pull fact beside the flame prose */
.gp-pull { margin: 0; padding: 24px 26px; background: var(--panel); border-left: 2px solid var(--warm); }
.gp-pull .gp-pull-k { margin: 0; font-size: clamp(52px, 4.6vw, 76px); font-weight: 800; line-height: .9; letter-spacing: -.03em; font-variation-settings: 'wdth' 125; color: var(--text); }
.gp-pull p + p { margin: 14px 0 0; font-size: 16px; line-height: 1.55; color: var(--body); }
.gp-c-flame .gp-ul { margin-top: 36px; }

/* ================================================================ the datasheet, on paper */
.gp-sheet-fig { margin: 40px 0 0; }
.gp-sheet { position: relative; padding: clamp(22px, 2.6vw, 38px); background: var(--paper); color: var(--ink); box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .85); }
.gp-sheet-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; padding-bottom: 12px; border-bottom: 1.5px solid var(--ink); }
.gp-sheet .pt { margin: 0; padding: 0; border: 0; color: #3a352d; }
.gp-co { margin: 6px 0 0; font-family: var(--f-m); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #4a443a; }
.gp-sheet .stamp { position: static; display: inline-block; transform: rotate(-4deg); color: var(--ember-ink); border-color: var(--ember-ink); opacity: 1; mix-blend-mode: normal; }
.gp-sheet-rec { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); margin: 0; border-bottom: 1px solid rgba(21, 19, 15, .45); }
.gp-sheet-rec > div { padding: 14px 16px 14px 0; }
.gp-sheet-rec dt { font-family: var(--f-m); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #4a443a; }
.gp-sheet-rec dd { margin: 6px 0 0; font-size: 17px; font-weight: 560; color: var(--ink); }
.gp-sheet-open { margin: 0; padding: 14px 0; border-bottom: 1px solid rgba(21, 19, 15, .45); font-size: 16px; line-height: 1.5; color: var(--ink); }
.gp-sheet-open span { display: inline-block; margin-right: 12px; padding: 2px 7px; border: 1px dashed var(--ember-ink); font-family: var(--f-m); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ember-ink); }
.gp-sheet table { width: 100%; margin-top: 6px; border-collapse: collapse; font-size: 15px; }
.gp-sheet caption { caption-side: bottom; text-align: left; padding-top: 12px; font-family: var(--f-m); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #4a443a; }
.gp-sheet th, .gp-sheet td { text-align: left; vertical-align: top; padding: 13px 14px 13px 0; border-bottom: 1px solid rgba(21, 19, 15, .3); line-height: 1.45; }
.gp-sheet thead th { font-family: var(--f-m); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #4a443a; border-bottom-color: rgba(21, 19, 15, .55); }
.gp-sheet tbody th { font-weight: 600; color: var(--ink); }
.gp-sheet td { color: #2a2620; }
.gp-sheet td:last-child { font-family: var(--f-m); font-size: 14px; white-space: nowrap; }

/* ================================================================ the enquiry card */
.gp-enq { padding: clamp(22px, 2.4vw, 32px); background: var(--bg-2); border: 1px solid var(--rule); }
.gp-enq dl { margin: 14px 0 0; border-top: 1px solid var(--rule); }
.gp-enq dl > div { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 6px 20px; padding: 13px 0; border-bottom: 1px solid var(--line-2); }
.gp-enq dt { display: flex; gap: 12px; font-size: 15px; line-height: 1.4; color: var(--text); }
.gp-enq dt i { padding-top: 2px; font-style: normal; font-family: var(--f-m); font-size: 12px; letter-spacing: .1em; color: var(--mute); }
.gp-enq dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--body); }
.gp-fill { font-size: 19px; font-weight: 800; font-variation-settings: 'wdth' 125; letter-spacing: -.01em; color: var(--text); }
.gp-blank { display: block; padding-bottom: 4px; border-bottom: 1px solid rgba(236, 231, 222, .45); color: var(--mute); }   /* the write-in line: 3.9:1 */
.gp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gp-chips span { padding: 3px 9px; border: 1px solid var(--rule); font-family: var(--f-m); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--body); }
.gp-enq-go { margin: 24px 0 0; }

/* ================================================================ sources */
.gp-src { margin-top: var(--ip-pad); padding-top: 22px; border-top: 1px solid var(--rule); }
.gp-src ol { list-style: none; margin: 16px 0 0; padding: 0; }
.gp-src li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; line-height: 1.5; scroll-margin-top: calc(var(--nav-h) + 24px); }
.gp-src li > i { padding-top: 2px; font-style: normal; font-family: var(--f-m); font-size: 12px; letter-spacing: .1em; color: var(--mute); }
.gp-src a { color: var(--text); border-bottom: 1px solid var(--ember); }
.gp-src li > span > span { display: block; margin-top: 2px; color: var(--body); }
.gp-src h2 { margin-top: 18px; font-size: clamp(26px, 2.4vw, 40px); }

/* ================================================================ applications.html */
.ap-hero { padding-top: clamp(24px, 3vw, 48px); }
.ap-hero-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.ap-hero .ip-h1 { max-width: 13ch; }
.ap-answer { margin: 26px 0 0; max-width: 40rem; font-size: clamp(18px, 1.4vw, 21px); line-height: 1.6; font-weight: 300; color: var(--text); }
.ap-fig { margin-top: clamp(0px, 3vw, 44px); }
.ap-fig .frame-in { aspect-ratio: 4 / 3; }
.ap-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px clamp(24px, 3vw, 48px); margin: 22px 0 0; }
.ap-legend > div { display: flex; align-items: baseline; gap: 14px; }
.ap-legend dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--body); }
.ap-bom { margin-top: clamp(40px, 4.4vw, 72px); }
.ap-bom table { width: 100%; border-collapse: collapse; }
.ap-bom caption { caption-side: bottom; text-align: left; padding-top: 14px; font-family: var(--f-m); font-size: var(--fs-lab); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); line-height: 1.5; }
.ap-bom thead th { text-align: left; padding: 0 16px 12px 0; border-bottom: 1px solid var(--rule); font-family: var(--f-m); font-size: var(--fs-lab); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.ap-bom td, .ap-bom tbody th { padding: 0 16px 0 0; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: middle; }
.ap-bom tbody th { font-weight: 300; }
.ap-bom tbody th a { display: flex; align-items: center; gap: 18px; padding: 18px 0; font-size: clamp(20px, 1.9vw, 30px); line-height: 1.15; letter-spacing: -.02em; color: var(--text); transition: color .3s; }
.ap-bom tbody th a:hover { color: var(--ember-2); }
.ap-bom .ic { width: 28px; height: 28px; }
.ap-n { width: 56px; font-family: var(--f-m); font-size: 13px; letter-spacing: .1em; color: var(--mute); }
.ap-code { display: inline-block; margin-right: 12px; font-size: clamp(20px, 1.8vw, 28px); font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variation-settings: 'wdth' 125; color: var(--text); }
.ap-tag { display: inline-block; padding: 4px 9px; border: 1px solid var(--rule); font-family: var(--f-m); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.ap-tag.is-named { border-color: var(--warm); color: var(--warm); }
.ap-srcn { display: block; margin-top: 6px; font-family: var(--f-m); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }

/* chapters: alternating grounds, the sources note in the right gutter beside each heading */
.ap-chaps .chap { --padx: max(var(--gut), calc((100% - var(--max)) / 2 + var(--gut))); padding: var(--ip-pad) var(--padx); }
.ap-chaps .chap.g2 { background: var(--bg-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.ap-chaps .chap-h { border-top: 0; padding-top: 0; margin-bottom: 32px; }
.ap-chaps .chap-h h2 { max-width: 24ch; }
.ap-chaps .prose a, .ap-exh > p a { color: var(--text); border-bottom: 1px solid var(--ember); }
.ap-ex { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.ap-ex.flip > figure { order: -1; }
/* SC.01: the paired spread */
.ap-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3.6vw, 64px); margin-top: 40px; }
.ap-exh .still { margin: 0; }
.ap-slate { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 18px 0 0; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--line-2); }
.ap-big { font-size: clamp(40px, 3.4vw, 56px); font-weight: 800; line-height: .9; letter-spacing: -.03em; font-variation-settings: 'wdth' 125; color: var(--text); }
.ap-ask { flex-basis: 100%; margin: 4px 0 0; font-size: 16px; line-height: 1.45; color: var(--text); }
.ap-ask i { display: block; margin-bottom: 4px; font-style: normal; font-family: var(--f-m); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.ip .ap-exh h3 { margin: 22px 0 10px; }
.ap-exh > p { margin: 0; max-width: var(--measure); font-size: var(--fs-body); line-height: 1.72; color: var(--body); }
/* SC.02: where the part sits */
.ap-where { margin: 0; }
.ap-where > figcaption { margin-bottom: 12px; }
.ap-where-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--rule); }
.ap-w { display: flex; flex-direction: column; padding: 22px 24px 24px; }
.ap-w + .ap-w { border-left: 1px solid var(--rule); background: var(--panel); }
.ap-w-k { margin: 0; font-family: var(--f-m); font-size: var(--fs-lab); letter-spacing: .12em; text-transform: uppercase; color: var(--warm); }
.ap-w-p { margin: 10px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--body); }
a.ap-big { align-self: flex-start; margin-top: auto; padding-top: 22px; border-bottom: 2px solid var(--ember); transition: color .3s; }
a.ap-big:hover { color: var(--ember-2); }
.ap-w-why { margin: 12px 0 0; font-size: 15.5px; line-height: 1.45; color: var(--text); }
/* SC.04: the choosing table */
.ap-choose { margin-top: 36px; }
.ap-choose tbody th { font-size: 17px; font-weight: 500; line-height: 1.4; letter-spacing: -.005em; white-space: normal; font-variation-settings: normal; color: var(--text); }
.ap-choose .ap-code { font-size: 22px; }
.ap-chip { display: inline-block; margin-top: 8px; padding: 3px 8px; border: 1px dashed var(--rule); font-family: var(--f-m); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--body); }
.ap-tnote { max-width: var(--measure); margin: 18px 0 28px; font-size: 15.5px; line-height: 1.6; color: var(--body); }
.ap-tnote b { font-weight: 560; color: var(--text); }
/* SC.05: the loop */
.ap-c-loop .gp-sub:first-child { margin-top: 0; }
.ap-loop { margin: 52px 0 0; }
.ap-loop > figcaption { margin-bottom: 16px; }
.ap-loop ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 34px; }
.ap-loop li { position: relative; }
.ap-loop li + li::before { content: '→'; position: absolute; left: -27px; top: calc(50% - 32px); color: var(--mute); font-family: var(--f-m); font-size: 22px; line-height: 1; }
.ap-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; aspect-ratio: 16 / 10; padding: 16px; background: var(--panel); border: 1px solid var(--rule); }
.ap-ics { display: flex; gap: 10px; }
.ap-tile .ic { width: 26px; height: 26px; }
.ap-tile p { margin: 0; font-size: 14.5px; line-height: 1.4; color: var(--body); }
.ap-cap { margin: 12px 0 0; font-family: var(--f-m); font-size: var(--fs-lab); letter-spacing: .1em; text-transform: uppercase; color: var(--text); line-height: 1.5; }
.ap-cap b { margin-right: 10px; font-weight: 500; color: var(--mute); }
.ap-back { position: relative; margin: 22px 0 0; padding: 40px 0 0; text-align: center; font-family: var(--f-m); font-size: var(--fs-lab); letter-spacing: .1em; text-transform: uppercase; color: var(--body); line-height: 1.5; }
.ap-back::before { content: ''; position: absolute; left: 10%; right: 10%; top: 0; height: 24px; border: 1.5px solid var(--mute); border-top: 0; }
.ap-back::after { content: ''; position: absolute; left: calc(10% - 5.25px); top: -11px; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 11px solid var(--mute); }

/* ================================================================ responsive */
@media (min-width: 1081px) {
  .ap-chaps .chap-h { grid-template-columns: minmax(0, 1fr) minmax(180px, 250px); column-gap: 48px; align-items: end; }
  .ap-chaps .chap-h > .chap-code, .ap-chaps .chap-h > h2 { grid-column: 1; }
  .ap-chaps .chap-note { grid-column: 2; grid-row: 1 / span 2; align-self: end; padding: 4px 0 4px 18px; border-left: 1px solid var(--rule); }
}
@media (max-width: 1399px) {
  .gp-body .split { grid-template-columns: minmax(0, 1fr); }
  .gp-body .split > figure, .gp-body .split > .gp-enq, .gp-body .split > .gp-tell, .gp-body .split > .gp-led,
  .gp-body .split > .gp-figs, .gp-body .split > .gp-feed, .gp-body .split > .gp-pull, .gp-body .split > .gp-keyw { max-width: 680px; }
}
@media (max-width: 1080px) {
  .gp-hero-g, .gp-lede, .gp-body, .ap-ex, .ap-hero-g, .ap-legend, .ap-pair { grid-template-columns: minmax(0, 1fr); }
  .ap-legend > div { flex-direction: column; gap: 6px; }
  .gp-hero-g { gap: 28px; }
  .gp-hero-rec { max-width: none; }
  .gp-hero-f { grid-template-columns: minmax(0, 1fr); }
  .gp-band-l { grid-template-columns: minmax(0, 1fr); }
  .gp-band-l li { flex-direction: row; align-items: baseline; justify-content: space-between; border-left: 0; border-top: 1.5px solid var(--warm); padding: 16px 18px; }
  .gp-band-l li:first-child { border-top: 0; }
  .gp-dec { text-align: right; }
  .gp-rec { grid-template-columns: minmax(0, 1fr); }
  .gp-rec > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
  .gp-rec dd { margin: 0; text-align: right; }
  .gp-lede .lede-ask { max-width: 560px; }
  .gp-ladder ol { grid-template-columns: minmax(0, 1fr); }
  .gp-ladder li { border-left: 0; border-top: 1px solid var(--line-2); }
  .gp-ladder li:first-child { border-top: 0; }
  .gp-ladder li:not(:first-child)::before { content: '↓'; left: 18px; top: -11px; }
  .ap-ex.flip > figure { order: 0; }
  .ap-ex > figure, .ap-fig { max-width: 640px; }
  .ap-fig { margin-top: 0; }
  .ap-loop ol { grid-template-columns: minmax(0, 1fr); max-width: 440px; gap: 40px; }
  .ap-loop li + li::before { content: '↓'; left: 0; top: -32px; }
  .ap-back { max-width: 440px; padding-top: 0; text-align: left; }
  .ap-back::before { content: '↺ '; position: static; border: 0; height: auto; font-size: 16px; }
  .ap-back::after { display: none; }
}
@media (max-width: 760px) {
  .gp-key li { grid-template-columns: 34px minmax(0, 1fr); }
  .gp-key li > span { grid-column: 2; }
  .gp-sheet-rec { grid-template-columns: minmax(0, 1fr); }
  .gp-sheet-rec > div { padding: 10px 0; border-bottom: 1px solid rgba(21, 19, 15, .2); }
  .gp-sheet thead { display: none; }
  .gp-sheet table, .gp-sheet tbody, .gp-sheet tr, .gp-sheet th, .gp-sheet td { display: block; width: 100%; }
  .gp-sheet tbody tr { padding: 12px 0; border-bottom: 1px solid rgba(21, 19, 15, .3); }
  .gp-sheet tbody th, .gp-sheet td { padding: 3px 0; border: 0; }
  .gp-sheet td::before { content: attr(data-label); display: block; font-family: var(--f-m); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #4a443a; }
  .gp-sheet td:last-child { white-space: normal; }
  .gp-sheet caption { display: block; }
  .gp-enq dl > div { grid-template-columns: minmax(0, 1fr); }
  .gp-log ol, .gp-feed-i, .gp-ugs, .gp-ugs.one .checks, .ap-where-g { grid-template-columns: minmax(0, 1fr); }
  .ap-w + .ap-w { border-left: 0; border-top: 1px solid var(--rule); }
  .gp-up li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ap-bom thead { display: none; }
  .ap-bom table, .ap-bom tbody, .ap-bom td, .ap-bom tbody th { display: block; width: auto; }
  .ap-bom caption { display: block; }
  .ap-bom tr { display: grid; grid-template-columns: 40px minmax(0, 1fr); padding: 14px 0; border-bottom: 1px solid var(--line-2); }
  .ap-bom td, .ap-bom tbody th { padding: 0; border: 0; }
  .ap-bom .ap-n { grid-row: 1 / span 3; width: auto; padding-top: 4px; }
  .ap-bom tbody th a { gap: 12px; padding: 0 0 8px; font-size: 20px; }
  .ap-bom td + td { margin-top: 6px; }
  .ap-tag { white-space: normal; }
}
