/* Lab plastic loop: companion site for the 4BBY1050 Group 3 poster.
   Colours, type and shapes follow the poster. */

/* ---------- fonts (self-hosted, SIL Open Font License) ---------- */
@font-face { font-family: 'Bebas Neue'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/bebas-neue-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bebas Neue'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/bebas-neue-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/source-sans-3-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/source-sans-3-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Sans 3'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(../fonts/source-sans-3-latin-400-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Sans 3'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(../fonts/source-sans-3-latin-ext-400-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/source-sans-3-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/source-sans-3-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- tokens ---------- */
:root {
  --navy: #13233A; --navy-2: #1E3352; --navy-3: #2C4466;
  --paper: #FAF6EE; --paper-2: #F3EDE2; --card: #FFFFFF;
  --ink: #1B2433; --ink-2: #4A5566; --muted: #626B78;
  --line: #E4DCCD; --beige: #CDBFAC; --grey-t: #ECE7DE;
  --cream: #FFF6E6; --sky: #C9D4E2; --sky-2: #9FB3CC; --link-light: #A9C4F5;
  --coral: #E8563A; --coral-ink: #B23A1F; --coral-tint: #FCE6DF;
  --amber: #F5A623; --amber-2: #F7B844; --amber-ink: #8A4B00; --amber-tint: #FFF1D6;
  --recycle: #00849C; --recycle-ink: #00788E; --recycle-tint: #DDF0F3;
  --pla: #4F9A1A; --pla-ink: #3E7D12; --pla-tint: #E6F2DC;
  --reuse: #2D6CD3; --reuse-ink: #2D6CD3; --reuse-tint: #E0E9FA;
  --ai: #8B2FA0; --ai-ink: #8B2FA0; --ai-tint: #F2E4F5;
  --ps: #E8563A; --pp: #F0A01A; --pe: #7A4520; --mx: #A89C8D;
  --lamp-red: #E5484D; --lamp-amber: #F5A623; --lamp-green: #34B36A;
  --link: #1F5FBF;
  --shadow: 5px 8px 0 rgba(58, 46, 31, .075);
  --r-lg: 18px; --r-md: 12px; --r-sm: 8px;
  --font-display: 'Bebas Neue', 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --gutter: 16px;
  --nav-h: 52px;
}
@media (min-width: 640px) { :root { --gutter: 28px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 66px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
@media (min-width: 960px) { body { font-size: 1.125rem; } }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 4px; }
.masthead :focus-visible, .section--navy :focus-visible, .footer :focus-visible { outline-color: var(--amber-2); }
sub, sup { font-size: .7em; line-height: 0; }
b, strong { font-weight: 700; }
.wrap { width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.js-only { display: none !important; }
.js .js-only { display: revert !important; }
.js .seg.js-only { display: inline-flex !important; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--amber); color: var(--navy); font-weight: 700; padding: 10px 16px; border-radius: 0 0 10px 10px; text-decoration: none; }
.skip:focus { top: 0; }

.h-display { font-family: var(--font-display); font-weight: 400; letter-spacing: .01em; line-height: 1; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); margin: 0 0 .35em; color: var(--ink); }
.panel { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 20px; }
@media (min-width: 640px) { .panel { padding: 24px 26px; } }

/* citation links */
.cite { font-weight: 700; color: var(--link); white-space: nowrap; text-decoration: underline; text-decoration-color: rgba(31, 95, 191, .45); text-decoration-thickness: 1px; text-underline-offset: .2em; padding: .2em .08em; margin: -.2em -.08em; border-radius: 4px; }
.cite:hover { text-decoration-color: currentColor; }
.cite:target { background: var(--amber-tint); }
.section--navy .cite, .masthead .cite { color: var(--link-light); text-decoration-color: rgba(169, 196, 245, .5); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.2; text-align: center; }
.btn--amber { background: var(--amber); color: var(--navy); }
.btn--amber:hover { background: var(--amber-2); }
.btn--ghost { color: var(--cream); box-shadow: inset 0 0 0 2px rgba(255, 246, 230, .55); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--cream); }

/* segmented controls */
.seg { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 4px; border-radius: 14px; background: var(--grey-t); }
.seg button { font: inherit; font-weight: 700; font-size: .9375rem; line-height: 1.2; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); padding: 9px 14px; min-height: 42px; cursor: pointer; }
.seg button:hover { color: var(--ink); background: rgba(255, 255, 255, .6); }
.seg button[aria-pressed="true"] { background: var(--navy); color: var(--cream); }
.seg--small button { padding: 8px 14px; }

/* range inputs */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 4px 0; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: var(--grey-t); }
.range::-moz-range-track { height: 8px; border-radius: 4px; background: var(--grey-t); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: var(--navy); border: 4px solid var(--card); box-shadow: 0 0 0 2px var(--navy); }
.range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--navy); border: 4px solid var(--card); box-shadow: 0 0 0 2px var(--navy); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--navy), 0 0 0 6px var(--amber-2); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 2px var(--navy), 0 0 0 6px var(--amber-2); }

/* ---------- masthead ---------- */
.masthead { background: var(--navy); color: var(--cream); }
.masthead__grid { display: grid; gap: 26px; padding-top: 22px; padding-bottom: 30px; }
@media (min-width: 1000px) {
  .masthead__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 52px; align-items: center; padding-top: 48px; padding-bottom: 56px; }
}
.kicker { display: flex; flex-wrap: wrap; gap: 2px 18px; margin: 0 0 12px; color: var(--amber-2); font-weight: 700; font-size: .875rem; letter-spacing: .01em; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.badge { display: inline-block; border-radius: 999px; padding: 5px 14px; font-weight: 700; font-size: .9375rem; line-height: 1.3; }
.badge--amber { background: var(--amber); color: var(--navy); }
.badge--cream { background: var(--cream); color: var(--navy); }
.masthead h1 { font-family: var(--font-display); font-weight: 400; color: var(--cream); font-size: clamp(3.1rem, 1.9rem + 5.6vw, 6.6rem); line-height: .9; letter-spacing: .004em; margin: 0 0 14px; text-wrap: balance; }
.subtitle { color: var(--sky); font-size: clamp(1.0625rem, 1rem + .45vw, 1.3125rem); line-height: 1.45; max-width: 40ch; margin: 0 0 14px; }
.names { font-weight: 700; color: var(--cream); margin: 0 0 22px; max-width: 46ch; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
@media (max-width: 420px) { .jump .btn { flex: 1 1 100%; } }
.stripe { display: grid; grid-template-columns: repeat(6, 1fr); height: 8px; }
.stripe i:nth-child(1) { background: var(--coral); } .stripe i:nth-child(2) { background: var(--recycle); }
.stripe i:nth-child(3) { background: var(--pla); } .stripe i:nth-child(4) { background: var(--reuse); }
.stripe i:nth-child(5) { background: var(--ai); } .stripe i:nth-child(6) { background: var(--amber); }

/* ---------- hero loop figure ---------- */
.loopfig { margin: 0; background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: 14px 14px 12px; box-shadow: 6px 9px 0 rgba(0, 0, 0, .18); }
@media (min-width: 640px) { .loopfig { padding: 18px 20px 16px; } }
.loopfig__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.loopfig__title { font-family: var(--font-display); font-size: clamp(1.5rem, 1.3rem + .8vw, 1.9rem); line-height: 1; margin: 0; color: var(--ink); }
.loopfig[data-mode="loop"] .m-linear, .loopfig[data-mode="linear"] .m-loop { display: none; }
.no-js .loopfig .m-linear { display: none; }
.no-js .loopfig .m-loop { display: inline; }
.no-js .calc { display: none; }
.js .loopfig__static { display: none; }
.loopfig__stage { position: relative; width: 100%; aspect-ratio: 10 / 8.2; margin-top: 4px; }
@supports not (aspect-ratio: 1 / 1) { .loopfig__stage { height: 0; padding-top: 82%; } }
.loopfig__stage svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.loopfig__controls { display: flex; align-items: center; gap: 8px; }
.js .loopfig__controls.js-only { display: flex !important; }
.pausebtn { flex: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--grey-t); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.pausebtn:hover { background: #E0D8CA; }
.pausebtn svg { fill: currentColor; }
.pausebtn .pausebtn__play, .pausebtn[aria-pressed="true"] .pausebtn__pause { display: none; }
.pausebtn[aria-pressed="true"] .pausebtn__play { display: block; }
.reduce-motion .pausebtn { display: none; }
.loopfig .m-static { display: none; }
.no-js .loopfig .m-static { display: inline; }
.no-js .loopfig__note .m-loop { display: none !important; }
.loopfig__static { padding: 6%; }
.medal-text { font-family: var(--font-display); font-size: 34px; fill: var(--cream); text-anchor: middle; letter-spacing: .02em; }
.loopfig__key { list-style: none; counter-reset: k; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 6px 0 0; padding: 0; }
@media (min-width: 640px) and (max-width: 999px) { .loopfig__key { grid-template-columns: repeat(4, 1fr); } }
.loopfig__key li { counter-increment: k; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9375rem; line-height: 1.2; min-height: 30px; }
.loopfig__key li::before { content: counter(k); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .875rem; background: var(--card); border: 2.5px solid var(--coral); color: var(--coral-ink); transition: background-color .4s, border-color .4s, color .4s; }
.no-js .loopfig__key li::before, .loopfig[data-mode="loop"] .loopfig__key li::before { color: #fff; }
.no-js .loopfig__key li:nth-child(1)::before, .loopfig[data-mode="loop"] .loopfig__key li:nth-child(1)::before { background: var(--recycle-ink); border-color: var(--recycle-ink); }
.no-js .loopfig__key li:nth-child(2)::before, .loopfig[data-mode="loop"] .loopfig__key li:nth-child(2)::before { background: var(--pla-ink); border-color: var(--pla-ink); }
.no-js .loopfig__key li:nth-child(3)::before, .loopfig[data-mode="loop"] .loopfig__key li:nth-child(3)::before { background: var(--reuse-ink); border-color: var(--reuse-ink); }
.no-js .loopfig__key li:nth-child(4)::before, .loopfig[data-mode="loop"] .loopfig__key li:nth-child(4)::before { background: var(--ai-ink); border-color: var(--ai-ink); }
.loopfig__note { margin: 10px 0 0; font-size: .875rem; color: var(--muted); line-height: 1.4; }

/* svg pieces drawn by site.js */
.lf-num { font-family: var(--font-display); fill: var(--ink); text-anchor: middle; }
.lf-unit { font-family: var(--font-body); font-weight: 700; font-size: .42em; }
.lf-badge-t { font-family: var(--font-body); font-weight: 700; text-anchor: middle; dominant-baseline: central; }
.lf-medal { font-family: var(--font-display); fill: var(--cream); text-anchor: middle; }

/* ---------- sticky section nav ---------- */
.sitenav { position: sticky; top: 0; z-index: 20; background: rgba(250, 246, 238, .96); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(6px)) { .sitenav { background: rgba(250, 246, 238, .88); backdrop-filter: blur(8px); } }
.sitenav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 7px 0; overflow-x: auto; scrollbar-width: none; scroll-padding-inline: 16px; }
.sitenav ul::-webkit-scrollbar { display: none; }
.sitenav li { flex: none; }
.sitenav a { display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 6px 12px 6px 7px; border-radius: 999px; color: var(--ink-2); font-weight: 700; font-size: .9375rem; text-decoration: none; white-space: nowrap; }
.sitenav a b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--grey-t); color: var(--ink); font-size: .8125rem; }
.sitenav li:last-child a { padding-left: 12px; }
.sitenav a:hover { color: var(--ink); background: var(--grey-t); }
.sitenav a[aria-current="true"] { background: var(--navy); color: var(--cream); }
.sitenav a[aria-current="true"] b { background: var(--amber); color: var(--navy); }

/* ---------- sections ---------- */
.section { padding-top: 60px; padding-bottom: 60px; scroll-margin-top: var(--nav-h); }
@media (min-width: 960px) { .section { padding-top: 92px; padding-bottom: 92px; } }
.section--tint { background: var(--paper-2); }
[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }
.section-head { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; margin-bottom: 30px; }
.section-num { grid-row: 1 / span 2; width: 54px; height: 54px; border-radius: 50%; background: var(--navy); color: var(--cream); display: grid; place-items: center; font-family: var(--font-display); font-size: 2.1rem; line-height: 1; padding-top: 3px; }
.section-num--light { background: var(--amber); color: var(--navy); }
.section-kicker { margin: 0; font-weight: 700; font-size: 1rem; color: var(--ink-2); line-height: 1.2; }
.section-kicker--coral { color: var(--coral-ink); }
.section-kicker--light { color: var(--amber-2); }
.section-head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 1.7rem + 3.6vw, 4.5rem); line-height: .92; letter-spacing: .005em; margin: 2px 0 0; grid-column: 2; align-self: start; }
.section-head > .section-num + h2 { grid-row: 1 / span 2; align-self: center; margin: 0; }
.section-head--plain { display: block; }
.section-head--plain h2 { margin-bottom: 8px; }
.section-head--tight { margin-bottom: 16px; }
.lead { font-size: 1.125rem; line-height: 1.6; max-width: 62ch; }
@media (min-width: 960px) { .lead { font-size: 1.25rem; } }
.figcap { margin: 14px 0 0; font-style: italic; color: var(--muted); font-size: .9375rem; line-height: 1.45; }
.figcap--light { color: var(--sky-2); }
.fig-sub { font-weight: 700; margin: 0 0 10px; font-size: .9375rem; line-height: 1.3; }
.fig-sub__unit { font-weight: 400; color: var(--ink-2); }
.fig-note { font-style: italic; color: var(--ink-2); font-size: .875rem; margin: 10px 0 0; line-height: 1.35; }
.hint { margin: 12px 0 0; color: var(--muted); font-size: .875rem; }
figure { margin: 0; }

/* data tables (twins of each chart) */
details.data { margin-top: 14px; }
details.data summary, details.facts summary { cursor: pointer; font-weight: 700; color: var(--link); font-size: .9375rem; list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; }
details.data summary::-webkit-details-marker, details.facts summary::-webkit-details-marker { display: none; }
details.data summary::before, details.facts summary::before { content: ""; width: 0; height: 0; border-left: 7px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; transition: transform .2s; }
details[open] > summary::before { transform: rotate(90deg); }
details.data table { width: 100%; border-collapse: collapse; font-size: .9375rem; margin-top: 6px; }
details.data th, details.data td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; font-weight: 400; }
details.data thead th { font-weight: 700; color: var(--ink-2); font-size: .875rem; }
details.data tbody th { font-weight: 700; }
.num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
details.data { max-width: 100%; overflow-x: auto; }
details.data .num { white-space: normal; }

/* ---------- section 1: problem ---------- */
.problem { display: grid; gap: 34px; }
@media (min-width: 1000px) { .problem { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; } }
.problem__right { display: grid; gap: 22px; }
.problem > *, .compare > *, .sol__body > *, .spot > *, .masthead__grid > *, .credits > *, .fig4 > *, .fig5 > * { min-width: 0; }

.route { margin-top: 26px; }
.route__steps { list-style: none; margin: 0; padding: 0; }
.step { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding-bottom: 26px; }
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 36px; top: 76px; bottom: 6px; width: 4px; border-radius: 2px; background: var(--coral); }
.step:not(:last-child)::after { content: ""; position: absolute; left: 30px; bottom: 2px; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 11px solid var(--coral); }
.step__icon { width: 76px; height: 76px; border-radius: 50%; background: var(--card); border: 4px solid var(--coral); display: grid; place-items: center; overflow: hidden; }
.step__icon img { height: 58px; width: auto; }
.step__icon svg { display: block; }
.step__body { padding-top: 2px; }
.step__label { margin: 0; font-weight: 700; color: var(--coral-ink); font-size: .9375rem; line-height: 1.3; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.step__n { background: var(--coral-tint); color: var(--coral-ink); border-radius: 999px; padding: 1px 9px; font-size: .8125rem; }
.step__num { font-family: var(--font-display); font-size: clamp(3.2rem, 2.6rem + 2.4vw, 4.4rem); line-height: .95; margin: 4px 0 4px; color: var(--ink); }
.step__desc { margin: 0; color: var(--ink-2); max-width: 44ch; }
.unit { font-family: var(--font-body); font-weight: 700; font-size: .4em; letter-spacing: 0; }
.stat__pre { display: block; font-family: var(--font-body); font-weight: 700; font-size: .875rem; line-height: 1.1; color: inherit; letter-spacing: 0; }

.fate { margin-top: 14px; max-width: 460px; }
.fate__bar { display: flex; gap: 2px; height: 22px; border-radius: 6px; overflow: hidden; }
.fate__bar span { flex: var(--w) 1 0; min-width: 0; }
.f-rec { background: var(--recycle); } .f-inc { background: #5B6472; } .f-land { background: #8F98A5; } .f-leak { background: #B9C0CA; }
.fate__key { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: .8125rem; color: var(--ink-2); line-height: 1.3; }
.fate__key li { display: flex; gap: 6px; align-items: baseline; }
.fate__key i { flex: none; width: 10px; height: 10px; border-radius: 2px; transform: translateY(1px); }

/* lineup */
.lineup__head { display: grid; gap: 4px; margin-bottom: 14px; }
.lineup__head .h-display { margin: 0; }
.lineup__cap { margin: 0; color: var(--ink-2); font-size: .9375rem; line-height: 1.4; }
.lineup__items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) and (max-width: 999px), (min-width: 1180px) { .lineup__items { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.suspect { width: 100%; height: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 2px solid transparent; border-radius: var(--r-md); padding: 10px 4px 8px; display: grid; justify-items: center; align-content: start; gap: 2px; cursor: pointer; }
.suspect:hover:not(:disabled) { border-color: var(--line); }
.suspect:disabled, .waffle-key button:disabled { cursor: default; color: inherit; opacity: 1; }
.suspect[aria-pressed="true"] { border-color: var(--navy); background: var(--card); }
.suspect__img { height: 74px; display: grid; place-items: end center; margin-bottom: 4px; }
.suspect__img img { max-height: 74px; width: auto; max-width: 64px; object-fit: contain; }
.suspect__name { font-weight: 700; font-size: .875rem; line-height: 1.15; text-align: center; }
.suspect__poly { font-size: .75rem; font-weight: 700; color: var(--ink-2); background: var(--grey-t); border-radius: 999px; padding: 0 7px; line-height: 1.5; }

/* waffle */
.waffle-fig__body { display: grid; gap: 18px; align-items: start; }
@media (min-width: 480px) { .waffle-fig__body { grid-template-columns: minmax(150px, 220px) 1fr; } }
.waffle { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; max-width: 260px; }
.sq { aspect-ratio: 1; border-radius: 3px; transition: opacity .25s, transform .25s; }
@supports not (aspect-ratio: 1 / 1) { .sq { height: 0; padding-top: 100%; } }
.sq.ps { background: var(--ps); } .sq.pp { background: var(--pp); } .sq.pe { background: var(--pe); } .sq.mx { background: var(--mx); }
.waffle[data-focus] .sq { opacity: .16; }
.waffle[data-focus="ps"] .sq.ps, .waffle[data-focus="pp"] .sq.pp, .waffle[data-focus="pe"] .sq.pe, .waffle[data-focus="mx"] .sq.mx { opacity: 1; }
.waffle-key { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.waffle-key button { width: 100%; font: inherit; color: inherit; text-align: left; background: transparent; border: 2px solid transparent; border-radius: var(--r-md); padding: 6px 8px; cursor: pointer; display: grid; grid-template-columns: 18px 1fr auto; column-gap: 10px; align-items: center; }
.waffle-key button:hover:not(:disabled) { background: var(--paper); }
.waffle-key button[aria-pressed="true"] { border-color: var(--navy); background: var(--paper); }
.sw { width: 18px; height: 18px; border-radius: 4px; grid-row: 1 / span 2; }
.sw.ps { background: var(--ps); } .sw.pp { background: var(--pp); } .sw.pe { background: var(--pe); } .sw.mx { background: var(--mx); }
.wk__name { font-weight: 700; font-size: .9375rem; line-height: 1.25; }
.wk__ex { grid-column: 2; font-size: .8125rem; color: var(--ink-2); line-height: 1.3; }
.wk__pct { grid-column: 3; grid-row: 1 / span 2; font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--ink); }

/* calculator */
.calc__label { display: block; font-weight: 700; margin: 2px 0 0; }
.calc__label output { font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; margin-left: 4px; }
.calc__result { margin: 4px 0 8px; font-size: 1.0625rem; }
.calc__result strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.4rem, 2rem + 1.6vw, 3rem); line-height: 1; color: var(--coral-ink); margin-right: 4px; }
.calc__note { margin: 0; font-size: .875rem; color: var(--ink-2); line-height: 1.45; }

/* ---------- section 2: why it matters ---------- */
.why-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .why-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.why { display: grid; grid-template-columns: 74px 1fr; column-gap: 16px; align-content: start; }
.why > :not(.why__icon) { grid-column: 1 / -1; }
.why > .why__title, .why > .why__num { grid-column: 2; }
.why__icon { grid-row: 1 / span 2; align-self: center; width: 74px; height: 74px; border-radius: 50%; background: var(--coral-tint); display: grid; place-items: center; }
.why__icon img { max-width: 50px; max-height: 50px; width: auto; height: auto; }
.why__title { margin: 4px 0 0; font-size: .9375rem; font-weight: 700; color: var(--coral-ink); line-height: 1.2; }
.why__num { font-family: var(--font-display); font-size: clamp(3.2rem, 2.8rem + 1.6vw, 4.2rem); line-height: .95; margin: 2px 0 0; }
.why > p:not(.why__num) { margin-top: 12px; }
.why p:not(.why__num) { color: var(--ink-2); }
@media (min-width: 900px) {
  .why { grid-template-columns: 1fr; }
  .why > :not(.why__icon), .why > .why__title, .why > .why__num { grid-column: 1; }
  .why__icon { grid-row: auto; margin-bottom: 10px; }
}
details.facts { margin-top: auto; border-top: 1px solid var(--line); padding-top: 6px; }
details.facts dl { margin: 6px 0 0; display: grid; gap: 8px; font-size: .875rem; line-height: 1.45; }
details.facts dl div { display: grid; grid-template-columns: 76px 1fr; gap: 10px; }
details.facts dt { font-weight: 700; color: var(--ink); }
details.facts dd { margin: 0; color: var(--ink-2); }

/* ---------- section 3: solutions ---------- */
.solutions-top { display: grid; gap: 10px; align-items: center; margin-bottom: 8px; }
@media (min-width: 900px) { .solutions-top { grid-template-columns: 1fr auto; gap: 40px; } }
.loopnav { display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: center; }
@media (min-width: 900px) { .loopnav { grid-template-columns: 180px auto; } }
.loopnav__ring { width: 100%; height: auto; }
.loopnav__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: s; }
.loopnav__list li { counter-increment: s; }
.loopnav__list a { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; font-weight: 700; color: var(--ink); text-decoration: none; }
.loopnav__list a::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-size: .875rem; flex: none; }
.loopnav__list a:hover { text-decoration: underline; }

.c-recycle { --c: var(--recycle-ink); --c-bright: var(--recycle); --c-tint: var(--recycle-tint); }
.c-pla { --c: var(--pla-ink); --c-bright: var(--pla); --c-tint: var(--pla-tint); }
.c-reuse { --c: var(--reuse-ink); --c-bright: var(--reuse); --c-tint: var(--reuse-tint); }
.c-ai { --c: var(--ai-ink); --c-bright: var(--ai); --c-tint: var(--ai-tint); }

.sol { margin-top: 30px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); }
@media (min-width: 960px) { .sol { margin-top: 40px; } }
.sol__head { display: flex; align-items: center; gap: 14px; background: var(--c); color: #fff; padding: 12px 18px; border-radius: var(--r-lg) var(--r-lg) 0 0; }
@media (min-width: 640px) { .sol__head { padding: 14px 26px; } }
.sol__num { flex: none; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--c); display: grid; place-items: center; font-family: var(--font-display); font-size: 2rem; line-height: 1; padding-top: 3px; }
.sol__head h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.1rem, 1.7rem + 1.7vw, 3rem); line-height: 1; letter-spacing: .01em; padding-top: 4px; }
.sol__body { display: grid; gap: 26px; padding: 18px; }
@media (min-width: 640px) { .sol__body { padding: 24px 26px 28px; } }
@media (min-width: 1000px) { .sol__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding: 30px 32px 34px; } }
.sol__main p { max-width: 62ch; }
.photo { margin: 0 0 18px; }
.photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-md); background: var(--grey-t); }
.photo figcaption { font-size: .8125rem; color: var(--muted); margin-top: 6px; }
.photo figcaption a { color: var(--muted); }
.limit { position: relative; background: var(--amber-tint); border-radius: var(--r-md); padding: 14px 16px 14px 26px; margin-top: 16px; }
.limit::before { content: ""; position: absolute; left: 10px; top: 14px; bottom: 14px; width: 6px; border-radius: 3px; background: var(--amber); }
.limit h4 { margin: 0 0 4px; font-size: .9375rem; font-weight: 700; color: var(--amber-ink); }
.limit p { margin: 0; font-size: 1rem; line-height: 1.5; }
.sol__fig { align-self: start; background: var(--paper); border-radius: var(--r-md); padding: 14px; }
@media (min-width: 640px) { .sol__fig { padding: 22px; } }
@media (min-width: 1000px) { .sol__fig { position: sticky; top: calc(var(--nav-h) + 18px); } .photo img { aspect-ratio: 16 / 9; } }

/* fig 3 */
.fig3 { display: grid; grid-template-columns: minmax(104px, 132px) 1fr; gap: 14px; align-items: center; }
@media (min-width: 560px) { .fig3 { grid-template-columns: minmax(140px, 190px) 1fr; gap: 20px; } }
.donut { width: 100%; height: auto; }
.donut__num { font-family: var(--font-display); font-size: 46px; fill: var(--recycle-ink); text-anchor: middle; }
.donut__lab { font-family: var(--font-body); font-size: 15px; fill: var(--ink-2); text-anchor: middle; }
.stats { display: grid; gap: 14px; }
.stat { margin: 0; display: grid; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.3rem, 2rem + 1.4vw, 3.2rem); line-height: .95; color: var(--recycle-ink); white-space: nowrap; }
.stat__txt { font-size: .9375rem; color: var(--ink-2); line-height: 1.35; }

/* fig 4 */
.fig4 { display: grid; gap: 22px; }
@media (min-width: 560px) { .fig4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; } }
.hbars { display: grid; gap: 10px; }
.hbar { margin: 0; display: grid; grid-template-columns: 40px 1fr 34px; gap: 8px; align-items: center; }
.hbar__lab { font-weight: 700; font-size: .9375rem; }
.hbar__track { height: 30px; }
.hbar__fill { display: block; height: 100%; width: calc(var(--v) * 100%); background: var(--pla); border-radius: 0 6px 6px 0; }
.hbar__fill--grey { background: #8F98A5; }
.hbar__val { font-weight: 700; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.heat__svg { width: 100%; height: auto; max-width: 330px; overflow: visible; }
.heat__tick { font-family: var(--font-body); font-size: 14px; font-weight: 700; }
.heat__tick--red { fill: #B4282E; } .heat__tick--green { fill: var(--pla-ink); }
.dish__label { font-family: var(--font-body); font-size: 13px; font-weight: 700; fill: var(--pla-ink); text-anchor: middle; }
.heat__label { display: block; font-weight: 700; font-size: .9375rem; margin: 4px 0 0; }
.heat__label output { font-variant-numeric: tabular-nums; }
.range--heat::-webkit-slider-runnable-track { background: linear-gradient(90deg, #F7C9A8, #E5484D); }
.range--heat::-moz-range-track { background: linear-gradient(90deg, #F7C9A8, #E5484D); }
.heat__status { margin: 2px 0 0; font-size: .875rem; line-height: 1.4; color: var(--ink-2); min-height: 2.8em; }
.heat__status b { color: var(--ink); }

/* fig 5 */
.fig5 { display: grid; gap: 24px; }
@media (min-width: 560px) { .fig5 { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; } }
.slides__big { font-family: var(--font-display); font-size: clamp(4.4rem, 3.6rem + 3vw, 5.6rem); line-height: .85; color: var(--reuse-ink); margin: 0 0 6px; }
.slides__big .stat__pre { margin-bottom: 4px; }
.slides__img { width: 160px; max-width: 100%; margin: 4px 0 8px; }
.slides__txt { font-size: .9375rem; color: var(--ink-2); line-height: 1.35; margin: 0 0 10px; }
.slides__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .875rem; line-height: 1.4; color: var(--ink-2); }
.slides__facts li { padding-left: 14px; position: relative; }
.slides__facts li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: var(--reuse); }
.slides__facts b { color: var(--ink); }
.js .tubes .seg.js-only { display: grid !important; grid-template-columns: repeat(4, 1fr); margin-bottom: 14px; }
.tubes .seg button { padding: 7px 4px; font-size: .8125rem; min-height: 40px; }
.vbars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: end; height: 190px; }
.vbar { display: grid; grid-template-rows: auto 1fr auto; height: 100%; text-align: center; }
.vbar__val { font-weight: 700; font-size: .9375rem; align-self: end; margin-bottom: 4px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.vbar__col { align-self: end; height: calc(var(--v) * 1%); max-height: 100%; min-height: 4px; background: var(--reuse); border-radius: 6px 6px 0 0; transition: background-color .3s; }
.vbar--base .vbar__col { background: #5B6472; }
.js .vbar:not(.is-on) .vbar__col { background: #B9C7E6; }
.js .vbar--base:not(.is-on) .vbar__col { background: #B3B9C2; }
.vbar__lab { font-size: .8125rem; color: var(--ink-2); line-height: 1.2; padding-top: 6px; border-top: 2px solid var(--ink-2); }
.vbar.is-on .vbar__val { color: var(--ink); }
.vbar.is-on .vbar__lab { color: var(--ink); font-weight: 700; }
.tubes__read { margin: 12px 0 0; font-size: .9375rem; line-height: 1.4; min-height: 2.8em; }

/* fig 6 */
.fig6 { display: grid; gap: 20px; }
.flow { display: grid; grid-template-columns: 54px 18px 84px 18px 1fr; align-items: center; gap: 4px; }
.flow__item, .flow__ai { display: grid; justify-items: center; gap: 4px; font-size: .75rem; color: var(--ink-2); text-align: center; line-height: 1.15; }
.flow__item img { height: 64px; width: auto; }
.flow__ai { background: var(--ai-tint); border-radius: var(--r-md); padding: 8px 4px; color: var(--ai-ink); font-weight: 700; }
.flow__ai img { width: 50px; height: auto; }
.flow__arrow { justify-self: center; width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 12px solid var(--ai); }
.flow__bins { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.flow__bins li { border-radius: var(--r-sm); padding: 7px 8px; font-weight: 700; font-size: .8125rem; line-height: 1.15; text-align: center; }
.bin--rec { background: var(--recycle-ink); color: #fff; }
.bin--cli { background: var(--amber); color: var(--navy); }
.bin--gen { background: #5F6773; color: #fff; }
.acc__track { position: relative; height: 18px; border-radius: 9px; background: var(--grey-t); }
.acc__band { position: absolute; top: 0; bottom: 0; left: calc((var(--a) - 50) * 2%); right: calc((100 - var(--b)) * 2%); background: var(--ai); border-radius: 9px; }
.acc__ticks { position: relative; height: 22px; font-size: .8125rem; margin-top: 4px; }
.acc__ticks span { position: absolute; left: calc((var(--p) - 50) * 2%); transform: translateX(-50%); white-space: nowrap; color: var(--muted); }
.acc__ticks span:first-child { transform: none; }
.acc__ticks .acc__lo, .acc__ticks .acc__hi { color: var(--ai-ink); font-weight: 700; }
.acc__ticks .acc__hi { transform: translateX(-100%); left: 100%; }

/* sorting game */
.game { margin: 0 18px 18px; border-radius: var(--r-md); background: var(--ai-tint); padding: 18px; display: grid; gap: 18px; }
@media (min-width: 640px) { .game { margin: 0 26px 26px; padding: 22px 24px; } }
@media (min-width: 1000px) { .game { margin: 0 32px 32px; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 30px; align-items: start; } }
.game__head .h-display { color: var(--ai-ink); }
.game__head p { margin-bottom: 8px; }
.game__rules { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; font-size: .9375rem; line-height: 1.35; }
.game__rules li { display: grid; grid-template-columns: 12px 1fr; gap: 10px; align-items: baseline; }
.bin-dot { flex: none; width: 12px; height: 12px; border-radius: 3px; transform: translateY(1px); }
.game__small { font-size: .8125rem; color: var(--ink-2); margin: 0; }
.game__stage { background: var(--card); border-radius: var(--r-md); padding: 16px; }
.g-progress { display: flex; justify-content: space-between; align-items: center; font-size: .875rem; font-weight: 700; color: var(--ink-2); margin: 0 0 10px; }
.g-pips { display: flex; gap: 4px; }
.g-pips i { width: 10px; height: 10px; border-radius: 50%; background: var(--grey-t); }
.g-pips i.ok { background: var(--pla); } .g-pips i.no { background: var(--lamp-red); } .g-pips i.now { background: var(--navy); }
.g-item { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; margin-bottom: 14px; }
.g-item__img { height: 96px; display: grid; place-items: center; background: var(--paper); border-radius: var(--r-md); }
.g-item__img img { max-height: 80px; max-width: 70px; width: auto; height: auto; }
.g-item__name { font-weight: 700; font-size: 1.0625rem; margin: 0 0 2px; line-height: 1.25; }
.g-item__story { margin: 0; color: var(--ink-2); font-size: .9375rem; line-height: 1.4; }
.g-bins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.g-bins button { font: inherit; font-weight: 700; font-size: .875rem; line-height: 1.15; min-height: 56px; border: 0; border-radius: var(--r-sm); padding: 8px 6px; cursor: pointer; }
.g-bins button:disabled { cursor: default; opacity: .45; }
.g-bins button.picked { opacity: 1; box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--navy); }
.g-bins button.right { opacity: 1; }
.g-feedback { margin: 12px 0 0; font-size: .9375rem; line-height: 1.45; }
.g-feedback b { display: block; }
.g-feedback .g-ok { color: var(--pla-ink); } .g-feedback .g-no { color: #B4282E; }
.g-next { margin-top: 12px; }
.btn--navy { background: var(--navy); color: var(--cream); border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.btn--navy:hover { background: var(--navy-3); }
.btn--line { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.g-score { font-family: var(--font-display); font-size: 3.4rem; line-height: 1; margin: 0 0 4px; color: var(--ai-ink); }
.g-twins { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.g-twins button { font: inherit; font-weight: 700; background: var(--paper); border: 2px solid var(--line); border-radius: var(--r-md); padding: 12px 8px 8px; display: grid; justify-items: center; gap: 6px; cursor: pointer; color: var(--ink); }
.g-twins button:hover { border-color: var(--ink-2); }
.g-twins img { height: 90px; width: auto; }
.g-twins button.is-bad { border-color: var(--lamp-red); }
.g-twins button:disabled { cursor: default; }
.g-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* ---------- section 4: comparison ---------- */
.compare { display: grid; gap: 22px; }
@media (min-width: 1000px) { .compare { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 28px; align-items: start; } }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .875rem; color: var(--ink-2); margin-bottom: 12px; }
.legend > span { display: inline-flex; align-items: center; gap: 8px; }
.dots { display: inline-flex; gap: 4px; }
.dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--beige); background: var(--card); display: inline-block; }
.dot.on { background: var(--navy); border-color: var(--navy); }
.qmark { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--amber); color: var(--navy); font-weight: 700; font-style: normal; font-size: .875rem; }
.table-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-left: -6px; margin-right: -6px; padding-left: 6px; padding-right: 6px; }
.rating { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9375rem; }
.rating thead th { font-size: .8125rem; font-weight: 700; color: var(--ink-2); text-align: center; vertical-align: bottom; padding: 0 4px 10px; line-height: 1.2; }
.rating thead th.rating__corner { text-align: left; padding-left: 8px; }
.rating tbody th { text-align: left; font-weight: 700; padding: 10px 8px; line-height: 1.2; }
.rating tbody th .rnum { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: #fff; font-size: .8125rem; margin-right: 8px; vertical-align: middle; }
.rating tbody td { text-align: center; padding: 10px 4px; }
.rating tbody tr:nth-child(odd) > * { background: rgba(236, 231, 222, .55); }
.rating tbody tr > :first-child { border-radius: 10px 0 0 10px; }
.rating tbody tr > :last-child { border-radius: 0 10px 10px 0; }
.rating td .dot.on { background: var(--c-bright); border-color: var(--c-bright); }
.rating td .dots { gap: 3px; }
.rating td .dot { width: 11px; height: 11px; }
/* very narrow phones: each solution becomes a small block of labelled ratings */
@media (max-width: 380px) {
  .table-scroll { overflow: visible; margin: 0; padding: 0; }
  .rating, .rating tbody { display: block; width: 100%; }
  .rating thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rating tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; padding: 10px 12px; border-radius: 10px; }
  .rating tbody tr:nth-child(odd) { background: rgba(236, 231, 222, .55); }
  .rating tbody tr:nth-child(odd) > * { background: none; }
  .rating tbody tr > * { border-radius: 0 !important; }
  .rating tbody th { grid-column: 1 / -1; padding: 0 0 2px !important; font-size: .9375rem !important; }
  .rating tbody th .rnum { display: inline-grid !important; }
  .rating tbody td { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 !important; text-align: left; }
  .rating tbody td::before { content: attr(data-label); font-size: .8125rem; color: var(--ink-2); }
  .rating td .dot { width: 10px !important; height: 10px !important; }
}
@media (max-width: 420px) {
  .rating { font-size: .875rem; }
  .rating thead th { font-size: .75rem; padding: 0 2px 8px; }
  .rating tbody th { font-size: .8125rem; padding: 8px 4px; hyphens: auto; }
  .rating tbody th .rnum { display: none; }
  .rating tbody td { padding: 8px 1px; }
  .rating td .dot { width: 8px; height: 8px; border-width: 1.5px; }
  .rating td .dots { gap: 2px; }
  .rating td .qmark { width: 20px; height: 20px; font-size: .75rem; }
  .flow { grid-template-columns: 40px 12px 64px 12px 1fr; gap: 3px; }
  .flow__item img { height: 52px; }
  .flow__ai img { width: 40px; }
  .flow__bins li { font-size: .75rem; padding: 6px 4px; }
  .flow__arrow { border-top-width: 6px; border-bottom-width: 6px; border-left-width: 9px; }
}

.weigh__intro { color: var(--ink-2); font-size: .9375rem; }
.weigh__sliders { display: grid; gap: 2px; margin-bottom: 8px; }
.wslider { display: grid; grid-template-columns: 7.2em 1fr 2.2em; align-items: center; column-gap: 10px; }
.wslider label { font-weight: 700; font-size: .9375rem; line-height: 1.2; }
.wslider output { font-weight: 700; font-size: .875rem; color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: right; }
.wslider .range { height: 40px; margin: 0; grid-column: 2; grid-row: 1; }
.wslider label { grid-column: 1; grid-row: 1; }
.wslider output { grid-column: 3; grid-row: 1; }
.weigh__empty { font-size: .875rem; color: var(--ink-2); margin: 8px 0 0; }
.unknown { border: 0; padding: 0; margin: 8px 0 18px; }
.unknown legend { padding: 0; margin-bottom: 8px; font-weight: 700; font-size: .9375rem; line-height: 1.35; }
.unknown .seg { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
.unknown .seg button { font-size: .8125rem; padding: 7px 4px; min-height: 40px; }
.weigh__bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wbar { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.wbar__name { font-weight: 700; font-size: .9375rem; display: flex; align-items: center; gap: 8px; }
.wbar__name .rnum { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: #fff; font-size: .75rem; }
.wbar__score { font-weight: 700; font-variant-numeric: tabular-nums; font-size: .9375rem; }
.wbar__track { grid-column: 1 / -1; height: 14px; border-radius: 7px; background: var(--grey-t); overflow: hidden; }
.wbar__fill { display: block; height: 100%; width: 0; background: var(--c-bright); border-radius: 7px; transition: width .35s ease; }
.wbar__top { font-size: .75rem; font-weight: 700; background: var(--navy); color: var(--cream); border-radius: 999px; padding: 1px 8px; }

/* ---------- section 5: spotlight ---------- */
.section--navy { background: var(--navy); color: #D5DDE8; }
.section--navy a { color: var(--link-light); }
.section--navy .section-head h2 { color: var(--cream); }
.spot { display: grid; gap: 30px; }
@media (min-width: 1000px) { .spot { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 52px; align-items: start; } .spot__intro { position: sticky; top: calc(var(--nav-h) + 24px); } }
.tag { display: inline-block; background: var(--amber); color: var(--navy); font-weight: 700; font-size: .875rem; border-radius: 999px; padding: 5px 14px; margin: 0 0 14px; }
.spot__q { font-family: var(--font-display); font-weight: 400; color: var(--cream); font-size: clamp(2.3rem, 1.8rem + 2.2vw, 3.4rem); line-height: .98; margin: 0 0 16px; }
.spot__intro p:not(.tag):not(.prediction) { font-size: 1.0625rem; line-height: 1.6; }
.prediction { color: var(--amber-2); font-style: italic; font-weight: 700; font-size: 1.0625rem; line-height: 1.5; border-left: 4px solid var(--amber); padding-left: 14px; margin: 18px 0 0; }
.protocol__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.pstep__h { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 1rem; font-weight: 700; color: var(--cream); }
.pstep__n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sky-2); color: var(--navy); font-size: .875rem; flex: none; }
.samples, .checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.samples { grid-template-columns: repeat(5, 1fr); }
.checks { grid-template-columns: repeat(3, 1fr); }
.samples li, .checks li { background: var(--navy-2); border-radius: var(--r-md); padding: 10px 6px; display: grid; justify-items: center; text-align: center; gap: 2px; line-height: 1.2; }
.samples b, .checks b { color: var(--cream); font-size: .9375rem; }
.samples span:not(.samples__img), .checks span:not(.checks__img) { color: var(--sky-2); font-size: .75rem; }
.samples__img { position: relative; width: 100%; max-width: 74px; margin-bottom: 6px; }
.samples__img img { width: 100%; }
.samples__img--dirty i { position: absolute; width: 9%; aspect-ratio: 1; border-radius: 50%; background: #8E6C5A; opacity: .9; }
.samples__img--dirty i:nth-child(2) { left: 22%; top: 22%; } .samples__img--dirty i:nth-child(3) { left: 52%; top: 52%; }
.samples__img--dirty i:nth-child(4) { left: 66%; top: 18%; } .samples__img--dirty i:nth-child(5) { left: 34%; top: 60%; }
.checks__img { height: 70px; display: grid; place-items: center; margin-bottom: 6px; }
.checks__img img { max-height: 66px; width: auto; }
.checks__img--beads svg { width: 80px; height: auto; }
@media (min-width: 640px) {
  .samples li, .checks li { padding: 12px 8px; }
  .samples b, .checks b { font-size: 1rem; }
  .samples span:not(.samples__img), .checks span:not(.checks__img) { font-size: .8125rem; }
}
.decide { background: var(--navy-2); border-radius: var(--r-md); padding: 14px; }
@media (min-width: 640px) { .decide { padding: 18px 20px; } }
.decide__intro { color: var(--cream); font-weight: 700; margin: 0 0 8px; }
.decide fieldset { border: 0; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.decide legend { width: 100%; padding: 0; margin-bottom: 6px; font-size: .875rem; color: var(--sky); font-weight: 700; }
.decide label { position: relative; cursor: pointer; }
.decide label input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.decide label span { display: inline-block; padding: 8px 12px; border-radius: 999px; background: var(--navy-3); color: var(--cream); font-size: .875rem; font-weight: 700; min-height: 38px; line-height: 1.6; }
.decide label input:checked + span { background: var(--cream); color: var(--navy); }
.decide label input:focus + span { outline: 3px solid var(--amber-2); outline-offset: 2px; }
.decide label input:focus:not(:focus-visible) + span { outline: none; }
.decide__out { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; margin-top: 8px; }
.lamp { display: grid; gap: 6px; background: #0C1828; border-radius: 14px; padding: 7px; justify-items: center; }
.lamp i { width: 26px; height: 26px; border-radius: 50%; background: #2A3A52; transition: background-color .3s, box-shadow .3s; }
.decisions { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.decisions li { position: relative; padding: 6px 10px 6px 26px; border-radius: var(--r-sm); color: var(--cream); font-size: .9375rem; line-height: 1.35; }
.decisions li::before { content: ""; position: absolute; left: 8px; top: .78em; width: 10px; height: 10px; border-radius: 50%; }
.d-green::before { background: var(--lamp-green); } .d-amber::before { background: var(--lamp-amber); } .d-red::before { background: var(--lamp-red); }
/* the lamp shows red (top), amber, green (bottom); the list reads best with green first */
.js .decide[data-d] .decisions li { color: #9FB0C6; }
.js .decide[data-d="green"] .decisions li.d-green, .js .decide[data-d="amber"] .decisions li.d-amber, .js .decide[data-d="red"] .decisions li.d-red { color: var(--cream); background: rgba(255, 255, 255, .1); font-weight: 700; }
.decide[data-d="red"] .lamp__r { background: var(--lamp-red); box-shadow: 0 0 14px rgba(229, 72, 77, .7); }
.decide[data-d="amber"] .lamp__a { background: var(--lamp-amber); box-shadow: 0 0 14px rgba(245, 166, 35, .7); }
.decide[data-d="green"] .lamp__g { background: var(--lamp-green); box-shadow: 0 0 14px rgba(52, 179, 106, .7); }
.decide__why { margin: 12px 0 0; font-size: .9375rem; color: var(--cream); min-height: 1.5em; }
.decide__note { margin: 6px 0 0; font-size: .8125rem; color: var(--sky-2); font-style: italic; }

/* ---------- section 6: take-home ---------- */
.takehome { position: relative; overflow: hidden; background: var(--amber); color: var(--navy); border-radius: var(--r-lg); padding: 26px 22px 30px; box-shadow: var(--shadow); }
.takehome__ring { display: none; }
@media (min-width: 900px) { .takehome__ring { display: block; position: absolute; right: 48px; top: 50%; width: 230px; height: 230px; transform: translateY(-50%); } .takehome__text, .takehome .section-head { max-width: calc(100% - 300px); } }
@media (min-width: 640px) { .takehome { padding: 36px 40px 42px; } }
.takehome .section-num { background: var(--navy); color: var(--amber); }
.takehome .section-head h2 { color: var(--navy); }
.takehome__text { margin: 0; font-weight: 700; font-size: clamp(1.4rem, 1.15rem + 1.2vw, 2.1rem); line-height: 1.3; max-width: 36ch; text-wrap: pretty; }

/* ---------- references ---------- */
.section--refs { background: var(--card); }
.section--refs .section-head h2 { color: var(--ink); }
.refs__intro { color: var(--ink-2); margin: 0; max-width: 62ch; }
.reflist { list-style: none; counter-reset: r; margin: 22px 0 0; padding: 0; display: grid; gap: 0; max-width: 860px; }
.reflist li { counter-increment: r; position: relative; padding: 14px 10px 14px 52px; border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; transition: background-color .6s; }
.reflist li::before { content: "[" counter(r) "]"; position: absolute; left: 6px; top: 14px; font-weight: 700; color: var(--ink); }
.reflist li:target { background: var(--amber-tint); }
.reflist a { font-weight: 700; }
.cited-in { display: block; margin-top: 4px; font-size: .8125rem; color: var(--muted); }
.cited-in a { font-weight: 700; color: var(--link); }

/* ---------- credits & team ---------- */
.section--credits { background: var(--paper-2); padding-top: 56px; padding-bottom: 56px; }
.credits { display: grid; gap: 34px; }
@media (min-width: 900px) { .credits { grid-template-columns: 1.2fr 1fr; gap: 56px; } }
.h-small { font-family: var(--font-display); font-weight: 400; font-size: 2.2rem; line-height: 1; margin: 0 0 14px; }
.h-tiny { font-size: 1rem; font-weight: 700; margin: 18px 0 6px; }
.credits__list { margin: 0 0 8px; padding-left: 1.1em; font-size: .9375rem; line-height: 1.5; color: var(--ink-2); }
.credits__list li { margin-bottom: 4px; }
.credits__small { font-size: .875rem; color: var(--ink-2); margin: 0 0 8px; line-height: 1.5; }
.credits p { max-width: 60ch; }
.team { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.team li { background: var(--card); border-radius: 999px; padding: 6px 14px; font-weight: 700; box-shadow: 2px 3px 0 rgba(58, 46, 31, .06); }

/* ---------- footer ---------- */
.footer { background: var(--navy); color: var(--sky); font-size: .875rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-top: 22px; padding-bottom: 22px; }
.footer p { margin: 0; }
.footer a { color: var(--link-light); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* ---------- print ---------- */
@media print {
  .sitenav, .skip, .jump, .js-only, .seg, .game, .weigh, .hint { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .masthead, .section--navy, .footer { background: #fff !important; color: #000 !important; }
  .masthead h1, .subtitle, .names, .section--navy *, .spot__q { color: #000 !important; }
  .section { padding-top: 18pt; padding-bottom: 18pt; }
  .panel, .sol, .takehome { box-shadow: none; border: 1px solid #ccc; }
  .reflist a::after { content: ""; }
  details { display: block; }
  details > summary { display: none; }
  details:not([open]) > :not(summary) { display: block; }
}
