/* hub.css — the resin hub (resin.html, body.pg-resin) and the quality-and-documents pillar (body.pg-docs),
   round-2 rework, 25 Oct 2026. Page-scoped on purpose: tokens.css, inner.css, site.css and article.css are shared
   and must not move. Ember keeps its four jobs (button, SC numbers, link underlines, the live dot). */

/* ================================================================ resin.html */
.pg-resin { --ip-pad: clamp(56px, 6.5vw, 104px); }

/* the header sits on the full-bleed frame: a top scrim keeps every nav link above 4.5:1 (the phone rule in inner.css
   already has one; this adds it on wider screens, keeping the left and bottom gradients) */
@media (min-width: 761px) {
  .pg-resin .rh::after {
    background:
      linear-gradient(180deg, rgba(7, 8, 10, .88) 0, rgba(7, 8, 10, .62) calc(var(--nav-h) + 24px), rgba(7, 8, 10, 0) calc(var(--nav-h) + 120px)),
      linear-gradient(90deg, rgba(7, 8, 10, .9) 0%, rgba(7, 8, 10, .66) 34%, rgba(7, 8, 10, .1) 64%, rgba(7, 8, 10, 0) 80%),
      linear-gradient(0deg, rgba(7, 8, 10, .92) 0%, rgba(7, 8, 10, 0) 46%);
  }
}
.rh-upd { margin: 18px 0 0; font-family: var(--f-m); font-size: var(--fs-lab); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.rh-upd time { color: var(--text); }

/* the register: one dashed line for what is being confirmed (a designed gap, not rows of empty cells) */
.gr-conf { display: grid; gap: 4px; margin: -10px 0 22px; padding: 12px 0 0; border-top: 1px dashed var(--rule); font-size: 14.5px; line-height: 1.5; color: var(--body); }
.gr-conf span { font-family: var(--f-m); font-size: var(--fs-lab); letter-spacing: .12em; text-transform: uppercase; color: var(--warm); }

/* the ABS bag print, transcribed as a label */
.hb-bag { margin: 0; align-self: start; padding: 8px 6px 0; }
.hb-bag-in { position: relative; padding: 24px 26px 20px; background: var(--paper); color: var(--ink); transform: rotate(-1.2deg); box-shadow: 0 30px 50px -22px rgba(0, 0, 0, .85); }
.hb-bag-in::before { content: ''; position: absolute; inset: 8px; border: 1.5px solid rgba(21, 19, 15, .5); pointer-events: none; }
.ip .hb-bag .pt { margin: 0 0 14px; font-family: var(--f-m); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.hb-bag-t { display: grid; gap: 6px; margin: 0; font-family: var(--f-d); font-weight: 800; font-variation-settings: 'wdth' 125; font-size: clamp(24px, 2.2vw, 36px); line-height: .98; letter-spacing: -.01em; text-transform: uppercase; color: var(--ink); }
.hb-bag-f { display: flex; justify-content: space-between; gap: 12px; margin: 18px 0 0; padding-top: 10px; border-top: 1px solid rgba(21, 19, 15, .4); font-family: var(--f-m); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.hb-bag figcaption { margin-top: 20px; font-family: var(--f-m); font-size: var(--fs-lab); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); line-height: 1.5; }

/* SC.02: the two named parts */
.hb-parts { align-self: start; padding: 22px 24px 6px; background: var(--panel); border: 1px solid var(--rule); }
.hb-parts .checks { margin-top: 14px; }
.hb-parts .checks li { grid-template-columns: 34px minmax(0, 1fr); }
.hb-parts .checks .ic { width: 30px; height: 30px; }
.hb-parts .checks li:last-child { border-bottom: 0; }

/* SC.04: the production footage as one row of stations, sprocket rules top and bottom; scrolls sideways when narrow */
.hb-line { margin: 48px 0 0; }
.hb-line > .ip-k { margin-bottom: 14px; }
.hb-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.hb-scroll:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; }
.hb-line ol { position: relative; list-style: none; display: grid; grid-template-columns: repeat(var(--n, 7), minmax(150px, 1fr)); min-width: calc(var(--n, 7) * 150px); margin: 0; padding: 26px 0; background: var(--panel); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.hb-line ol::before, .hb-line ol::after { content: ''; position: absolute; left: 0; right: 0; height: 8px; background: repeating-linear-gradient(90deg, rgba(236, 231, 222, .26) 0 10px, transparent 10px 24px); }
.hb-line ol::before { top: 8px; }
.hb-line ol::after { bottom: 8px; }
.hb-line li { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 12px; border-left: 1px solid var(--line-2); }
.hb-line li:first-child { border-left: 0; }
.hb-line li > i { font-style: normal; font-family: var(--f-m); font-size: 12px; letter-spacing: .1em; color: var(--mute); }
.hb-line .ic { width: 28px; height: 28px; }
.hb-line li > b { font-size: 18px; font-weight: 560; line-height: 1.2; color: var(--text); }
.hb-line li > span { font-size: 14.5px; line-height: 1.5; color: var(--body); }

/* SC.05: the datasheet sits on the ground, at the panel's height */
.pg-resin .ds-fig { padding: 8px 0 0; background: none; border: 0; }
.pg-resin .split .ds-fig .ds-paper { width: min(320px, 86%); height: 400px; gap: 12px; padding: 22px 20px; }
.pg-resin .ds-rows .ds-l dd { max-width: 52ch; }

/* sources (the grade pages' list, restyled here because resin.css is not linked on the hub) */
.pg-resin .gp-src { margin-top: var(--ip-pad); padding-top: 22px; border-top: 1px solid var(--rule); }
.pg-resin .gp-src h2 { margin-top: 18px; font-size: clamp(26px, 2.4vw, 40px); }
.pg-resin .gp-src ol { list-style: none; margin: 16px 0 0; padding: 0; }
.pg-resin .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); }
.pg-resin .gp-src li > i { padding-top: 2px; font-style: normal; font-family: var(--f-m); font-size: 12px; letter-spacing: .1em; color: var(--mute); }
.pg-resin .gp-src a { color: var(--text); border-bottom: 1px solid var(--ember); }
.pg-resin .gp-src li > span > span { display: block; margin-top: 2px; color: var(--body); }

@media (max-width: 1080px) {
  .hb-bag { max-width: 460px; }
  .hb-parts { max-width: 640px; }
}
@media (max-width: 760px) {
  .pg-resin .split .ds-fig .ds-paper { width: 250px; height: 320px; }
  .hb-bag-in { padding: 20px 20px 16px; }
}

/* ================================================================ quality-and-documents.html */
.ar-up { margin: 18px 0 0; max-width: 46rem; font-size: 15.5px; line-height: 1.55; color: var(--body); }
.ar-up a { color: var(--text); border-bottom: 1px solid var(--ember); transition: color .3s; }
.ar-up a:hover { color: var(--ember-2); }

/* the documents exhibit: the ready film leads, full width; the three still to come follow in one row */
.pg-docs .dcards { grid-template-columns: minmax(0, 1fr); align-items: start; }
.pg-docs .dcard.is-ready .dpaper { height: 210px; }
.pg-docs .dcard-b > p:not(.st):not(.dhow) { margin-bottom: 12px; }
.pg-docs .dhow { margin-top: 12px !important; }
.dchips { display: flex; gap: 8px; margin: 0 0 4px !important; }
.dchips .gr-code.sm { min-width: 0; padding: 6px 10px 5px; font-size: 18px; border: 1px solid var(--rule); background: var(--panel-2); }
@media (min-width: 900px) {
  .pg-docs .dcards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pg-docs .dcard.is-ready { grid-column: 1 / -1; flex-direction: row; }
  .pg-docs .dcard.is-ready .dpaper { flex: 0 0 42%; height: auto; min-height: 250px; }
  .pg-docs .dcard:not(.is-ready) .dpaper { height: 200px; }
  .pg-docs .dcard:not(.is-ready) .sheet-mini { width: 168px; height: 214px; margin-left: -84px; top: 22px; }
  .pg-docs .dcard:not(.is-ready) .sheet-mini .stamp { top: 110px; }
  .pg-docs .dcard:not(.is-ready) .dcard-b { padding: 18px 18px 20px; }
  .pg-docs .dcard:not(.is-ready) h3 { font-size: 20px; }
}

/* the film, logged scene by scene: a numbered list a buyer (or an engine) can quote */
.pg-docs .ar-body > ol.film-steps, .pg-docs .ar-body > ol.slip, .pg-docs .ar-body > ul.checks { padding-left: 0; }
.film-steps { list-style: none; margin: 0 0 1.4em; padding: 0; border-top: 1px solid var(--rule); }
.ar-body .film-steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 16.5px; line-height: 1.5; }
.film-steps li > i { padding-top: 3px; font-style: normal; font-family: var(--f-m); font-size: 12px; letter-spacing: .1em; color: var(--mute); }
.film-steps li > span { color: var(--body); }

/* the test-report checklist and the certification ledger, inside the reading column */
.pg-docs .ar-body .dk-checks { margin: 0 0 1.3em; }
.pg-docs .ar-body .dk-checks li { font-size: inherit; }
.pg-docs .ar-body .dk-checks .ic { width: 24px; height: 24px; }
.pg-docs .dk-ledger { margin: 6px 0 1.3em; }
.pg-docs .dk-ledger dt { max-width: 34%; }
.pg-docs .dk-ledger dd { max-width: 62%; text-align: left; color: var(--body); }
.pg-docs .dk-ledger dd a { color: var(--text); border-bottom: 1px solid var(--ember); }

/* the order slip: every rule on the column edge, row titles set tight; numbers in the label colour */
.pg-docs .ar-body .slip { margin: 8px 0 1.3em; }
.pg-docs .ar-body .slip li { font-size: inherit; line-height: inherit; }
.pg-docs .slip i { color: var(--mute); }
.pg-docs .slip b { line-height: 1.25; }

/* UL 94: the longer requirement lines */
.pg-docs .ul94 span { font-size: 14.5px; line-height: 1.45; }

/* the datasheet table on phones: card labels in the system's mono */
@media (max-width: 640px) {
  .pg-docs .ak-table--stack [data-label]::before { font-family: var(--f-m); font-size: 12px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
}

/* related reading: each card carries the site's own icon */
.pg-docs .rc-ic { display: block; margin-bottom: 4px; }
.pg-docs .rc-ic .ic { width: 30px; height: 30px; }

@media (max-width: 760px) {
  .pg-docs .dk-ledger dt, .pg-docs .dk-ledger dd { max-width: none; }
}
