/* ==========================================================================
   Drawn & Fired: page-only components (prefix pg-)
   Loaded after assets/proposal.css by index.html. Written by the page
   assembler for pieces that appear once on the proposal page (cover stats,
   direction specimens, pending demo slot, appendix, colophon). Uses the
   design-system tokens only; nothing here restyles a df- component globally.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Shared
   -------------------------------------------------------------------------- */
.pg-h3 {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px;
  font-size: clamp(24px, 1rem + 1.2vw, 32px); line-height: 1.1; letter-spacing: -.02em;
  color: var(--df-ink);
}
.pg-h3 .df-label { color: var(--df-ink-2); font-weight: 500; letter-spacing: .08em; }
.pg-h3 .df-label code { background: none; padding: 0; font-size: 1em; color: inherit; text-transform: none; letter-spacing: .02em; }
.pg-h3__lede { margin: 10px 0 22px; max-width: 72ch; color: var(--df-ink-2); font-size: 16px; line-height: 1.55; }
.df-sheet--paper .pg-h3__lede { color: var(--kdl-gray-600); }
.pg-muted { color: var(--df-ink-2); }
.df-sheet--furnace code, .df-sheet--blueprint code { background: rgba(255,255,255,.08); }

/* --------------------------------------------------------------------------
   Cover: the gauge board (the numbers heat up with the drawing)
   -------------------------------------------------------------------------- */
.pg-gaugeboard {
  display: grid; gap: 0;
  margin-top: clamp(4px, 1.4vw, 16px);
  padding: 14px 18px 16px;
  border: 1px solid rgba(163,174,184,.32);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(10,13,17,.72), rgba(10,13,17,.5));
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.pg-gaugeboard__k { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 4px; color: var(--kdl-gray-300); }
.pg-coldhot { display: inline-flex; align-items: center; gap: 8px; color: var(--kdl-gray-300); }
.pg-coldhot i { display: block; width: 44px; height: 3px; border-radius: 1px; background: var(--upton-heat-bar); }
.pg-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pg-stat { display: grid; align-content: start; gap: 3px; padding: 12px 14px 12px 0; min-width: 0; }
.pg-stat + .pg-stat { padding-left: 16px; border-left: 1px solid rgba(163,174,184,.2); }
.pg-stat__n {
  font: 500 clamp(40px, 1.6rem + 2.6vw, 70px)/.92 var(--kdl-font-mono);
  letter-spacing: -.05em; color: #fff;
  font-variant-numeric: tabular-nums slashed-zero; font-feature-settings: "tnum" 1, "zero" 1;
}
.pg-stat__l { font-size: 16px; font-weight: 600; line-height: 1.2; color: #fff; }
.pg-stat__s { font: 400 12px/1.3 var(--kdl-font-mono); letter-spacing: .02em; color: var(--kdl-gray-300); }
/* the bar: five segments of the ramp, cold on the left, igniting with the cover */
.pg-stats__bar { position: relative; height: 8px; margin-top: 2px; filter: drop-shadow(0 0 6px rgba(232,84,30,.55)); }
.pg-stats__bar::before {
  content: ""; position: absolute; inset: 0;
  background: var(--upton-heat-bar);
  -webkit-mask: linear-gradient(90deg, #000 calc(100% - 6px), transparent 0) 0 0 / 20% 100% repeat-x;
  mask: linear-gradient(90deg, #000 calc(100% - 6px), transparent 0) 0 0 / 20% 100% repeat-x;
  border-radius: 1px;
}
.pg-stats__bar::after {  /* the cold track under it */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(163,174,184,.14);
  -webkit-mask: linear-gradient(90deg, #000 calc(100% - 6px), transparent 0) 0 0 / 20% 100% repeat-x;
  mask: linear-gradient(90deg, #000 calc(100% - 6px), transparent 0) 0 0 / 20% 100% repeat-x;
}
/* Ignites once, when it is actually on screen (index.html adds .pg-js and flips
   .is-lit with an IntersectionObserver). No JS or reduced motion: full and static. */
@media (prefers-reduced-motion: no-preference) {
  :root.pg-js:not([data-motion="reduced"]) .pg-stats__bar:not(.is-lit)::before { clip-path: inset(0 100% 0 0); }
  :root.pg-js:not([data-motion="reduced"]) .pg-stats__bar.is-lit::before { animation: pg-ignite 2.2s cubic-bezier(.3,0,.2,1) .15s both; }
}
@keyframes pg-ignite { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.pg-demos { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed rgba(163,174,184,.28); }
.pg-demos__k { display: inline-flex; align-items: center; gap: 9px; margin: 0; color: #fff; }
.pg-demos__k .df-sight__pilot { width: 9px; height: 9px; }
.pg-demos__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pg-demos__list .df-chip { font-size: 12.5px; color: var(--kdl-gray-100); background: rgba(10,13,17,.5); }
.pg-chip__num { color: var(--kdl-copper-300); }
@media (max-width: 760px) {
  .pg-gaugeboard { padding: 10px 12px 14px; }
  .pg-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 4px; }
  .pg-stat, .pg-stat + .pg-stat { padding: 10px 8px 8px 0; border-left: 0; }
  .pg-stat:nth-child(n+4) { border-top: 1px solid rgba(163,174,184,.2); }
  .pg-stat__s { display: none; }
  .pg-stat__l { font-size: 14px; }
  .pg-stats__bar::before, .pg-stats__bar::after { -webkit-mask: none; mask: none; }
  .pg-demos__list .df-chip { font-size: 12px; }
}

/* --------------------------------------------------------------------------
   Report card: grade tally
   -------------------------------------------------------------------------- */
.pg-tally { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; color: var(--kdl-gray-500); }
.pg-tally b { color: var(--kdl-red-600); font-weight: 500; }

/* --------------------------------------------------------------------------
   Idea card additions: area line, demo chip, owner-decision note
   -------------------------------------------------------------------------- */
@container df-idea (min-width: 760px) {
  .df-idea__head > :not(.df-gauges) { grid-column: 1; }
  .df-idea__head .df-gauges { grid-row: 1 / span 5; }
}
.pg-area { margin: 0; font-size: 15px; line-height: 1.45; color: var(--kdl-gray-600); max-width: 70ch; }
.pg-area .df-label { font-size: 10.5px; letter-spacing: .12em; color: var(--kdl-gray-500); margin-right: 6px; }
.pg-demo-chip { align-items: center; padding: 3px 9px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--kdl-gray-800); }
.pg-demo-chip__pilot, .pg-reg-demo {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 40% 35%, var(--upton-heat-8), var(--upton-heat-6) 35%, var(--upton-heat-5) 70%, var(--upton-heat-3));
  box-shadow: 0 0 6px 1px rgba(232,84,30,.5);
}
.pg-reg-demo { margin-left: 4px; vertical-align: .1em; }
.pg-reversal {
  margin: 0; max-width: 72ch;
  padding: 10px 14px 11px;
  border-left: 3px solid var(--kdl-copper-500);
  background: rgba(240,163,112,.14);
  font-size: 15px; line-height: 1.5; color: var(--kdl-gray-700);
}
.pg-reversal__k { display: block; margin-bottom: 3px; color: var(--kdl-copper-700); }

.pg-figs { display: flex; flex-wrap: wrap; gap: 24px; align-items: start; }
.pg-figs > .df-fig { flex: 1 1 420px; }
.pg-figs > .pg-fig--narrow { flex: 0 1 300px; }
.pg-fig--narrow { max-width: 360px; }

/* evidence lists inside "What we checked" */
.pg-ev__label { margin: 18px 0 6px; color: var(--kdl-gray-500); }
.pg-ev { margin: 0; padding-left: 1.15em; font-size: 15px; line-height: 1.55; }
.pg-ev li + li { margin-top: 3px; }
.pg-ev code { overflow-wrap: anywhere; }
.pg-merged { margin: 0; padding-left: 1.15em; }
.pg-merged li + li { margin-top: 6px; }

/* --------------------------------------------------------------------------
   Live demo pending (fragment not built yet)
   -------------------------------------------------------------------------- */
.pg-pending__pilot {
  width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #8a939c, #444c56 70%);
  box-shadow: 0 0 0 2px rgba(10,13,17,.9);
}
.pg-pending .df-sight__live { color: var(--kdl-gray-200); }
.pg-pending__panel {
  position: relative;
  display: grid; gap: 12px; align-content: center;
  min-height: 260px;
  padding: clamp(22px, 4cqi, 44px) clamp(18px, 5cqi, 56px);
  background: var(--df-grid-blueprint), var(--upton-blueprint);
  color: var(--kdl-blue-100);
  container-type: inline-size;
}
.pg-pending__panel::after {  /* a faint, cold drawing in the corner */
  content: ""; position: absolute; right: -40px; bottom: -120px; width: 320px; aspect-ratio: 612 / 792;
  background: url("proposal/cover-ue-cold.svg") center / contain no-repeat;
  opacity: .22; pointer-events: none;
}
.pg-pending__kicker { margin: 0; color: var(--kdl-copper-300); position: relative; z-index: 1; }
.pg-pending__title { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.2; color: #fff; position: relative; z-index: 1; }
.pg-pending__brief { position: relative; z-index: 1; max-width: 70ch; font-size: 15.5px; line-height: 1.6; color: var(--kdl-blue-100); }
.pg-pending__brief strong { color: #fff; }

/* --------------------------------------------------------------------------
   Direction sheet
   -------------------------------------------------------------------------- */
.pg-pitch { font-size: 18px; line-height: 1.6; color: var(--kdl-gray-200); max-width: 70ch; }
.pg-pitch--outro { color: var(--kdl-gray-300); }

.pg-split { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--df-rule-strong); border-radius: 6px; overflow: clip; }
@media (min-width: 820px) { .pg-split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pg-split > div { position: relative; display: grid; align-content: start; gap: 10px; min-height: 260px; padding: clamp(22px, 3vw, 36px); overflow: clip; isolation: isolate; }
.pg-split__cold { background: var(--df-grid-blueprint), var(--upton-blueprint); color: var(--kdl-blue-100); }
.pg-split__fired {
  background:
    radial-gradient(ellipse 70% 60% at 85% 110%, rgba(245,161,58,.34), rgba(232,84,30,.22) 30%, rgba(206,32,41,.12) 55%, transparent 75%),
    var(--df-grid-kdl), #0d0908;
  color: var(--kdl-gray-200);
  border-top: 1px solid var(--df-rule-strong);
}
@media (min-width: 820px) { .pg-split__fired { border-top: 0; border-left: 1px solid var(--df-rule-strong); } }
.pg-split__k { margin: 0; color: var(--kdl-blue-200); }
.pg-split__fired .pg-split__k { color: var(--kdl-copper-300); }
.pg-split__what { margin: 0; font-size: clamp(30px, 1.2rem + 2vw, 46px); font-weight: 700; line-height: 1; letter-spacing: -.03em; color: #fff; max-width: 14ch; }
.pg-split__cold .pg-split__what { color: transparent; -webkit-text-stroke: 1.2px var(--kdl-blue-200); }
.pg-split__fired .pg-split__what { color: var(--kdl-copper-300); text-shadow: 0 0 22px rgba(232,84,30,.45); }
.pg-split__rest { margin: 0; max-width: 40ch; font-size: 16.5px; line-height: 1.55; }
.pg-split__art { position: absolute; z-index: -1; right: -16%; top: 6%; width: 50%; opacity: .34; pointer-events: none; }
.pg-split__cold .pg-split__what { max-width: 9ch; }
.pg-split__glow { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 6px; background: var(--upton-heat-bar); box-shadow: 0 -6px 26px rgba(232,84,30,.45); }

.pg-ramp .df-ramp__meta { gap: 1px; }
.pg-ramp .pg-kdl { color: var(--df-ink-2); opacity: .9; }
.pg-ramp .pg-cr { color: var(--kdl-gray-200); }
.pg-ramp .pg-cr:first-of-type { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--df-rule); }
.pg-use { display: block; margin-top: 4px; font-weight: 500; color: #fff; }
.pg-use::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; vertical-align: .05em; box-shadow: inset 0 0 0 1.5px currentColor; }
.pg-use[data-use="ok"]::before { background: var(--kdl-gray-100); }
.pg-use[data-use="dark"]::before { background: linear-gradient(90deg, var(--kdl-gray-100) 50%, transparent 0); }
.pg-ramp__bar { margin-top: 14px; }
.pg-ramp__bar::before { animation: none !important; clip-path: none !important; }   /* a token swatch: always full */
.pg-ramp + .pg-ramp__bar + .df-heatbar__scale span:nth-child(2) { opacity: .8; }

.pg-jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); border-top: 1px solid var(--df-rule-strong); }
.pg-job { display: grid; align-content: start; gap: 8px; padding: 18px 22px 22px 0; border-bottom: 1px solid var(--df-rule); }
.pg-job__chip { height: 10px; border-radius: 1px; background: var(--c); box-shadow: 0 0 0 1px var(--kdl-gray-400); }
.pg-job__name { margin: 0; font-size: 19px; font-weight: 700; color: #fff; line-height: 1.2; }
.pg-job__name span { display: block; font: 500 12px/1.3 var(--kdl-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--kdl-copper-300); margin-top: 4px; }
.pg-job__body { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--kdl-gray-300); }
.pg-job__token { justify-self: start; font-size: 12.5px; color: var(--kdl-gray-200); }

.pg-voices { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .pg-voices { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.pg-voice {
  margin: 0; display: grid; align-content: start; gap: 16px;
  padding: clamp(20px, 3vw, 32px);
  background: var(--df-grid-paper), var(--df-paper-2);
  color: var(--kdl-gray-800);
  border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
  --df-ink-2: var(--kdl-gray-500);
}
.pg-voice__cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding-bottom: 10px; border-bottom: 2px solid var(--kdl-gray-800); font-size: 14px; color: var(--kdl-gray-600); }
.pg-voice__cap .df-label { color: var(--kdl-red-600); }
.pg-voice__big { margin: 0; color: var(--kdl-gray-900); }
.pg-voice--plex .pg-voice__big { font-size: clamp(32px, 1.2rem + 2.6vw, 60px); font-weight: 700; line-height: 1; letter-spacing: -.035em; max-width: 16ch; }
.pg-voice--lilex .pg-voice__big { font: 500 clamp(24px, .8rem + 1.6vw, 34px)/1.15 var(--kdl-font-mono); letter-spacing: -.01em; font-variant-numeric: tabular-nums slashed-zero; }
.pg-voice--lilex .pg-voice__big span { white-space: nowrap; }
.pg-voice__weights { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; font-size: 22px; letter-spacing: -.01em; color: var(--kdl-gray-800); }
.pg-voice__body { margin: 0; font-size: 17px; line-height: 1.6; color: var(--kdl-gray-600); max-width: 52ch; }
.pg-voice__row {
  display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0;
  font: 500 15px/1.3 var(--kdl-font-mono); letter-spacing: .04em; text-transform: uppercase;
  font-variant-numeric: tabular-nums slashed-zero; font-feature-settings: "tnum" 1, "zero" 1;
  border-top: 1px solid rgba(18,13,11,.16); padding-top: 10px;
}
.pg-voice__row span { padding-right: 16px; margin-right: 16px; border-right: 1px solid rgba(18,13,11,.2); }
.pg-voice__row span:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.pg-voice__note { margin: 0; font-size: 14px; color: var(--kdl-gray-500); }

.pg-tex { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.pg-tex__item { display: grid; align-content: start; gap: 6px; font-size: 14.5px; line-height: 1.45; color: var(--kdl-gray-300); }
.pg-tex__item b { margin-top: 6px; font-size: 17px; color: #fff; }
.pg-tex__item code { justify-self: start; font-size: 12px; color: var(--kdl-gray-200); }
.pg-tex__swatch { position: relative; display: grid; place-items: center; height: 132px; border-radius: 4px; overflow: clip; box-shadow: 0 0 0 1px var(--df-rule-strong); }
.pg-tex__swatch--grid { background: var(--df-grid-kdl), var(--upton-furnace-900); }
.pg-tex__swatch--paper { background: var(--df-grid-paper), var(--upton-paper); }
.pg-tex__swatch--bp { background: var(--df-grid-blueprint), var(--upton-blueprint); }
.pg-tex__swatch--bp img { position: absolute; width: 190%; max-width: none; left: -45%; top: -12%; opacity: .9; }
.pg-tex__swatch--plate { background: var(--df-rivets), var(--df-plate); }
.pg-tex__swatch--plate span { font: 500 30px/1 var(--kdl-font-mono); letter-spacing: .06em; color: var(--kdl-gray-800); text-shadow: 0 1px 0 rgba(255,255,255,.75); }
.pg-tex__swatch--stamp { background: var(--df-paper-2); grid-auto-flow: column; gap: 12px; }
.pg-tex__swatch--stamp .df-stamp:not(.df-stamp--word) { font-size: 30px; }
.pg-tex__swatch--stamp .df-stamp--word { font-size: 10.5px; }
/* a drafting dimension across one grid cell, so the faint grids read as intended */
.pg-dim { position: absolute; left: var(--x, 48px); top: var(--y, 56px); width: var(--w, 48px); height: 12px; border-inline: 1px solid currentColor; font: 500 10.5px/1 var(--kdl-font-mono); letter-spacing: .06em; display: grid; place-items: center; }
.pg-dim::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid currentColor; }
.pg-dim span { position: relative; padding: 0 4px; background: var(--pg-dim-bg); transform: translateY(-11px); }
.pg-tex__swatch--grid .pg-dim { color: var(--kdl-gray-300); --pg-dim-bg: var(--upton-furnace-900); }
.pg-tex__swatch--paper .pg-dim { color: var(--kdl-gray-500); --pg-dim-bg: var(--upton-paper); }
.df-sheet--furnace .pg-tex__swatch--stamp .df-stamp { --df-stamp-ink: var(--kdl-red-500); }

.pg-spec { display: grid; gap: 0; margin: 0; }
.pg-spec > div { display: grid; gap: 4px 20px; padding: 12px 0; border-top: 1px solid var(--df-rule); }
@media (min-width: 760px) { .pg-spec > div { grid-template-columns: 150px minmax(0, 1fr); } }
.pg-spec dt { font: 500 12px/1.5 var(--kdl-font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--kdl-copper-300); }
.pg-spec dd { margin: 0; font-size: 15px; line-height: 1.6; }
.pg-spec code { font-size: .86em; }

/* --------------------------------------------------------------------------
   Appendix: also considered (hold tags) and the lens log
   -------------------------------------------------------------------------- */
.pg-also__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.pg-also__item {
  position: relative; display: grid; align-content: start; gap: 6px;
  padding: 16px 18px 18px 40px;
  background:
    radial-gradient(circle at 20px 22px, var(--df-surface) 0 5px, rgba(18,13,11,.35) 5.5px, transparent 6.5px),
    repeating-linear-gradient(180deg, transparent 0 23px, rgba(126,61,20,.08) 23px 24px),
    var(--df-buff);
  border-radius: 3px 8px 8px 3px;
  box-shadow: 0 1px 0 rgba(18,13,11,.2), 0 16px 30px -22px rgba(18,13,11,.6);
  color: var(--kdl-gray-800);
}
.pg-also__lens { margin: 0; color: #5a4a36; }
.pg-also__title { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.3; }
.pg-also__why { margin: 0; font-size: 15px; line-height: 1.5; color: #4a3d2c; }

.pg-lenshead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; margin-bottom: 16px; }
.pg-lx { table-layout: auto; }
.pg-lx .df-register__code { width: 190px; white-space: normal; overflow-wrap: anywhere; font-size: 12.5px; }
.pg-lx__title { display: block; font-weight: 600; color: var(--kdl-gray-800); line-height: 1.35; }
.pg-lx__ex { display: block; margin-top: 3px; font-size: 14px; line-height: 1.45; color: var(--kdl-gray-600); }
.df-lens .pg-lx td.pg-lx__sc { width: 120px; }
.pg-lx__sc abbr { text-decoration: none; color: var(--kdl-gray-500); margin-right: 1px; }
.pg-lx__e { display: inline-grid; place-items: center; width: 19px; height: 19px; margin-left: 4px; border-radius: 3px; background: var(--kdl-gray-800); color: #fff; font-size: 11.5px; vertical-align: .05em; }
.pg-status { white-space: nowrap; }
.pg-lx__v { display: table; margin-top: 6px; padding: 2px 6px; font-size: 10.5px; }
.pg-lx td:last-child { width: 1%; }
.pg-status { display: inline-flex; align-items: center; gap: 7px; font: 500 12.5px/1.3 var(--kdl-font-mono); letter-spacing: .02em; }
.pg-status--off { color: var(--kdl-gray-500); }
.pg-status--on, .pg-status--merged { color: var(--kdl-copper-700); background-image: none !important; text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--upton-heat-5) calc(var(--df-heat) * 100%), var(--kdl-copper-500)); text-underline-offset: 3px; }
.pg-status__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--kdl-copper-500); }
.pg-status--merged .pg-status__dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--kdl-copper-500); }
.pg-lx tr:not([data-made]) .pg-lx__title { color: var(--kdl-gray-600); font-weight: 500; }
@media (max-width: 640px) {
  .df-lens .pg-lx tr { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; padding: 12px 0; }
  .df-lens .pg-lx td:nth-child(1) { grid-column: 1 / -1; width: auto; }
  .df-lens .pg-lx td:nth-child(2) { grid-column: 1 / -1; }
  .df-lens .pg-lx td:nth-child(3) { grid-column: 1; width: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
  .df-lens .pg-lx td:nth-child(4) { grid-column: 2; grid-row: 3; width: auto; align-self: center; }
  .pg-lx__v { display: inline-block; margin: 0; }
}

/* --------------------------------------------------------------------------
   Colophon
   -------------------------------------------------------------------------- */
.pg-colo { display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .pg-colo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.pg-colo__h { margin: 0 0 14px; font-size: 22px; color: #fff; }
.pg-colo__h ~ .pg-colo__h { margin-top: 32px; }
.pg-route { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--df-rule-strong); }
.pg-route li { display: grid; grid-template-columns: 4.4em minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--df-rule); }
.pg-route .df-label { color: var(--kdl-copper-300); padding-top: 4px; }
.pg-route p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--kdl-gray-300); }
.pg-route b { color: #fff; font-weight: 600; }
.pg-rules { margin: 0; padding: 0 0 0 1.1em; display: grid; gap: 10px; font-size: 16px; line-height: 1.55; color: var(--kdl-gray-300); }
.pg-rules li::marker { color: var(--kdl-red-300); }
.pg-rules--plain li::marker { color: var(--kdl-gray-400); }

@media print {
  .pg-gaugeboard, .pg-split > div, .pg-pending__panel { background: #fff !important; color: #000 !important; }
  .pg-stat__n, .pg-stat__l, .pg-split__what { color: #000 !important; -webkit-text-stroke: 0 !important; text-shadow: none !important; }
  .pg-stats__bar::before { animation: none !important; clip-path: none !important; }
  .pg-demos { display: none; }
}
@media (forced-colors: active) {
  .pg-stats__bar::before { forced-color-adjust: none; background: CanvasText; }
  .pg-split__cold .pg-split__what { color: CanvasText; -webkit-text-stroke: 0; }
  .pg-reversal, .pg-also__item, .pg-voice, .pg-tex__swatch { border: 1px solid CanvasText; }
}

/* --------------------------------------------------------------------------
   Sheet index: eleven sheets have to fit a 1440 screen. Between phone and
   very wide desktop, drop the brand words and the nav toggle's label (the
   cover and every sight-glass keep a labelled toggle) and tighten the cells.
   -------------------------------------------------------------------------- */
@media (min-width: 721px) and (max-width: 1639px) {
  .df-sheetnav__brand { padding-inline: 16px 14px; }
  .df-sheetnav__brand .df-sheetnav__brand-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .df-sheetnav__link { padding: 0 10px; gap: 7px; font-size: 13.5px; }
  .df-sheetnav__tools { padding-inline: 10px 16px; }
  .df-sheetnav__tools .df-motion-toggle { padding: 5px 7px; }
  .df-sheetnav__tools .df-motion-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* lens log summaries wrap on phones */
@media (max-width: 640px) {
  .df-lens > .df-more__summary { flex-wrap: wrap; row-gap: 4px; }
  .df-lens > .df-more__summary .df-lens__name { flex: 1 1 0; min-width: 0; }
  .df-lens > .df-more__summary .df-more__meta { flex-basis: 100%; padding-left: calc(18px + 16px + 1.9em + 16px); white-space: normal; line-height: 1.3; }
}

/* drawing registers: long model ids (apps-what-are-you-doing-to-the-metal) may
   break at their hyphens instead of pushing the table out of its column */
@media (min-width: 641px) {
  .df-opener__register { table-layout: fixed; }
  .df-opener__register thead th:nth-child(1) { width: 42%; }
  .df-opener__register thead th:nth-child(3) { width: 76px; white-space: nowrap; }
  .df-opener__register .df-register__code { white-space: normal; overflow-wrap: anywhere; }
}

/* ==========================================================================
   QA finish pass (2026-09-24): reading mode, shortlist, demo reel, direction
   strip, fired photo, stamps, sheet-index fit
   ========================================================================== */

/* Sheet index. Eleven labels only fit next to the tools on very wide screens,
   so between 721 and 1859 non-current sheets show their code (the label stays
   in the accessibility tree and in the title tooltip) and the current sheet
   keeps its label. The nav tools are icon-first at every width; the cover
   carries the labelled Skim and motion toggles. */
@media (min-width: 721px) and (max-width: 1859px) {
  .df-sheetnav__link:not([aria-current]) .df-sheetnav__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .df-sheetnav__link:not([aria-current]) { gap: 0; }
}
@media (min-width: 721px) and (max-width: 880px) { .df-sheetnav__link { padding-inline: 8px; } }
@media (min-width: 1860px) { .df-sheetnav__inner { max-width: 1800px; } }
.df-sheetnav__tools { gap: 6px; }
.df-sheetnav__tools .df-read-toggle__label, .df-sheetnav__picks-label, .df-sheetnav__tools .df-motion-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.df-sheetnav__tools .df-read-toggle { padding: 5px 9px; }
.df-sheetnav__tools .df-motion-toggle { padding: 5px 7px; }
.df-sheetnav__picks { padding: 5px 8px 5px 9px; gap: 6px; }
@media (max-width: 720px) {
  .df-sheetnav__tools { padding-inline: 8px 10px; gap: 5px; }
  .df-sheetnav__tools .df-motion-toggle { padding: 5px 6px; }
  .df-sheetnav__picks { padding: 5px 7px; gap: 5px; }
}
@media (max-width: 560px) { .df-sheetnav__tools .df-read-toggle { display: none; } }

/* Cover: "Short on time? Skim mode" */
.pg-skim-cta { display: inline-flex; align-items: center; gap: 10px; margin-left: 6px; }
.pg-skim-cta__k { font: 500 12.5px/1.2 var(--kdl-font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--kdl-gray-300); }
.pg-skim-cta .df-read-toggle { min-height: 44px; padding-inline: 14px 16px; font-size: 13.5px; }
@media (max-width: 560px) { .pg-skim-cta { margin-left: 0; } }

/* Cover: the live-demo reel (thumbnails that jump straight to each demo) */
.pg-demos { display: grid; gap: 12px; }
.pg-demos__hint { margin-left: 10px; padding-left: 10px; border-left: 1px solid rgba(163,174,184,.35); color: var(--kdl-gray-300); letter-spacing: .08em; }
.pg-reel { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 186px), 1fr)); gap: 12px; }
.pg-reel > li { display: flex; min-width: 0; }
.pg-reel__item {
  --df-glow: color-mix(in oklab, var(--upton-heat-6) calc(var(--df-heat) * 100%), var(--upton-heat-1));
  --df-glow-a: color-mix(in srgb, var(--df-glow) calc(var(--df-heat) * 75%), transparent);
  transition: --df-heat var(--df-cool-dur) var(--df-cool-ease), border-color var(--df-cool-dur);
  flex: 1; display: grid; grid-template-rows: auto 1fr; min-width: 0;
  border: 1px solid rgba(163,174,184,.32); border-radius: 6px; overflow: clip;
  background: rgba(10,13,17,.6); color: var(--kdl-gray-100); text-decoration: none;
  box-shadow: 0 0 calc(var(--df-heat) * 22px) calc(var(--df-heat) * 1px) var(--df-glow-a);
}
.pg-reel__item:is(:hover, :focus-visible) { --df-heat: 1; border-color: var(--kdl-copper-300); transition-duration: var(--df-heat-dur); }
:root[data-motion="reduced"] .pg-reel__item { transition: none; }
@media (prefers-reduced-motion: reduce) { .pg-reel__item { transition: none; } }
.pg-reel__shot { display: block; aspect-ratio: 8 / 5; overflow: hidden; background: var(--df-paper-2); border-bottom: 1px solid rgba(163,174,184,.25); }
.pg-reel__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.pg-reel__meta { display: flex; align-items: baseline; gap: 8px; padding: 9px 11px 11px; font: 500 12.5px/1.35 var(--kdl-font-mono); letter-spacing: .01em; }
.pg-reel__t { min-width: 0; }
.pg-reel__item:hover .pg-reel__t { color: #fff; }
@media (max-width: 600px) {
  .pg-reel { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .pg-reel > li { scroll-snap-align: start; }
  .pg-demos__hint { display: none; }
}
@media print { .pg-reel__shot { display: none; } }

/* Theme openers: the first live demo as a teaser under the tagline */
.pg-teaser { display: grid; gap: 10px; margin-top: 6px; max-width: 360px; }
.pg-teaser__k { display: inline-flex; align-items: center; gap: 9px; margin: 0; color: var(--df-ink-2); }
.pg-teaser__k .df-sight__pilot { width: 9px; height: 9px; }
.df-sheet--paper .pg-reel__item--teaser { background: var(--upton-furnace-900); }
.pg-reel__item--teaser .pg-reel__meta { font-size: 13px; }

/* Idea card: the one-line deck under the title */
.pg-deck { font-size: clamp(18px, 1.35vw, 21px); line-height: 1.42; color: var(--kdl-gray-700); max-width: 52ch; text-wrap: pretty; }

/* Reading mode: Skim keeps the plate, title, deck, gauges, figures and demos,
   and folds Problem, Concept and the Specification group */
:root[data-read="skim"] .df-idea .df-spec__row:is([data-row="problem"], [data-row="concept"], [data-row="spec"]) { display: none; }
:root[data-read="skim"] .df-idea .pg-area, :root[data-read="skim"] .df-idea .df-idea__pages { display: none; }
:root[data-read="skim"] .df-idea__head { border-bottom-color: transparent; }
:root[data-read="skim"] .df-idea:not(:has(.df-spec__row:is([data-row="demo"], [data-row="today"], [data-row="sketch"]))) .df-idea__head { border-bottom: 0; }
@media print { :root[data-read="skim"] .df-idea .df-spec__row, :root[data-read="skim"] .df-idea .pg-area, :root[data-read="skim"] .df-idea .df-idea__pages { display: revert; } }

/* Direction: the ramp as eight chips (the full token table is in the build-team fold) */
.pg-rampstrip { display: grid; gap: 10px; margin-top: clamp(28px, 4vw, 44px); }
.pg-rampstrip__k { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 0; color: var(--kdl-gray-300); }
.pg-rampstrip__k span:last-child { color: var(--kdl-copper-300); }
.pg-rampstrip__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.pg-rampstrip__list li { display: grid; gap: 6px; min-width: 0; }
.pg-rampstrip__chip { height: 44px; border-radius: 3px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.pg-rampstrip__list li:nth-child(3) .pg-rampstrip__chip { box-shadow: 0 0 0 2px var(--upton-furnace-900), 0 0 0 3px var(--kdl-copper-300); }
.pg-rampstrip__name { font: 400 11.5px/1.25 var(--kdl-font-mono); color: var(--kdl-gray-300); overflow-wrap: anywhere; }
.pg-rampstrip .pg-ramp__bar { margin-top: 4px; }
@media (max-width: 640px) {
  .pg-rampstrip__list { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 12px; }
}
@media (forced-colors: active) { .pg-rampstrip__chip { forced-color-adjust: none; border: 1px solid CanvasText; } }

/* Direction: State 2 . Fired shows Upton's own heat (the text never sits on the photo) */
.pg-split__photo { margin: 8px 0 10px; display: grid; gap: 8px; }
.pg-split__photo img { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: 50% 22%; border-radius: 3px; box-shadow: 0 0 0 1px rgba(245,161,58,.35), 0 18px 40px -18px rgba(232,84,30,.55); }
.pg-split__photo figcaption { color: var(--kdl-gray-300); font-size: 11px; }
@media print { .pg-split__photo img { box-shadow: none; } }

/* Report card: stamps land one by one as the rows come into view */
@media (prefers-reduced-motion: no-preference) {
  :root.pg-js:not([data-motion="reduced"]) .df-inspection__table tbody tr:not(.is-stamped) .df-stamp { opacity: 0; transform: rotate(var(--df-stamp-rot)) scale(1.9); }
  :root.pg-js:not([data-motion="reduced"]) .df-inspection__table tr.is-stamped .df-stamp { animation: pg-stamp .42s cubic-bezier(.2, 1.5, .35, 1) calc(var(--pg-i, 0) * 80ms) both; }
}
@keyframes pg-stamp {
  from { opacity: 0; transform: rotate(var(--df-stamp-rot)) scale(1.9); }
  60% { opacity: 1; }
  to { opacity: 1; transform: rotate(var(--df-stamp-rot)) scale(1); }
}
@media print { .df-inspection .df-stamp { opacity: 1 !important; transform: rotate(var(--df-stamp-rot)) !important; animation: none !important; } }

/* Report card "As found": no empty band before sheet 02 */
.pg-asfound .pg-figs { align-items: end; }
#s-report { padding-bottom: clamp(40px, 5vw, 64px); }

/* Roadmap: your shortlist */
.pg-picks {
  margin-bottom: clamp(32px, 4vw, 48px);
  padding: clamp(18px, 3vw, 28px) clamp(18px, 3vw, 32px);
  border: 1px solid var(--df-rule-strong); border-radius: 8px;
  background: linear-gradient(180deg, rgba(10,13,17,.55), rgba(10,13,17,.25));
  box-shadow: inset 0 3px 0 -1px rgba(245,161,58,.35);
}
.pg-picks__head { display: grid; gap: 8px; }
.pg-picks__head .pg-h3 { margin: 0; }
.pg-picks__how { margin: 0; max-width: 70ch; font-size: 15.5px; line-height: 1.55; color: var(--kdl-gray-300); }
.pg-picks__key { display: inline-flex; align-items: center; gap: 6px; padding: 1px 7px; border: 1px solid rgba(163,174,184,.5); border-radius: 3px; font: 500 11.5px/1.5 var(--kdl-font-mono); letter-spacing: .1em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.pg-picks__key .df-pick__pilot { width: 8px; height: 8px; }
.pg-picks__list { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--df-rule); }
.pg-picks__list:empty { display: none; }
.pg-picks__list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--df-rule); }
.pg-picks__link { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: baseline; color: #fff; text-decoration: none; font-size: 16px; line-height: 1.35; }
.pg-picks__link:hover { text-decoration: underline; text-decoration-color: var(--kdl-copper-300); text-underline-offset: 3px; }
.pg-picks__num { flex: none; min-width: 3.4em; font: 500 13px/1.4 var(--kdl-font-mono); color: var(--kdl-copper-300); font-variant-numeric: tabular-nums; }
.pg-picks__rm { flex: none; min-height: 32px; padding: 4px 10px; border: 1px solid rgba(163,174,184,.45); border-radius: 3px; background: transparent; color: var(--kdl-gray-200); font: 500 12px/1 var(--kdl-font-mono); letter-spacing: .04em; cursor: pointer; }
.pg-picks__rm:hover { color: #fff; border-color: #fff; }
.pg-picks__empty { margin: 14px 0 0; color: var(--kdl-gray-300); font: 500 13px/1.4 var(--kdl-font-mono); letter-spacing: .04em; }
.pg-picks__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 18px; }
.pg-picks__actions .df-btn--ghost { color: var(--kdl-gray-100); }
.pg-picks__status { color: var(--kdl-copper-300); }
@media print {
  .pg-picks { background: none !important; box-shadow: none !important; }
  .pg-picks[data-empty], .pg-picks__actions, .pg-picks__rm, .pg-picks__how { display: none !important; }
  .pg-picks__link, .pg-picks__num { color: #000 !important; }
}

/* folds whose body holds full-width material (the build-team design system, demo cards' Today figures) */
.pg-wide-fold > .df-more__body { max-width: none; padding-left: 0; }
.pg-wide-fold > .df-more__summary { flex-wrap: wrap; row-gap: 2px; }
.pg-wide-fold > .df-more__summary .df-more__meta { white-space: normal; }
.pg-sysfold { border-top: 1px solid var(--df-rule-strong); }
.pg-sysfold > .df-more__summary { font-size: 19px; min-height: 60px; }
.pg-sysfold > .df-more__body { padding-top: 12px; }
.pg-sysfold > .df-more__body > .pg-h3:first-child { margin-top: 8px; }

/* the Fired panel is taller now (it carries a photo), so the Cold drawing fills its panel too */
@media (min-width: 820px) {
  .pg-split__cold .pg-split__art { width: 66%; top: 30%; right: -10%; opacity: .42; }
}
