@font-face { font-family: Manrope; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/manrope-400.woff2') format('woff2'); }
@font-face { font-family: Manrope; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/manrope-600.woff2') format('woff2'); }
@font-face { font-family: Manrope; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/manrope-700.woff2') format('woff2'); }
@font-face { font-family: Manrope; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/manrope-800.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/plex-mono-400.woff2') format('woff2'); }

:root {
  color-scheme: light;
  --canvas: #f5f3ee; --surface: #fff; --raised: #fff; --subtle: #f7f6f2;
  --text: #111; --muted: #64615b; --line: #ddd9d0; --line-strong: #bdb7aa; --control: #79736a;
  --brand: #ffb000; --brand-hover: #e99a00; --brand-soft: #fff0c7; --brand-ink: #785000;
  --focus: #a84b00; --success: #267052; --success-soft: #e0f0e8;
  --ink: #111; --surface-dark: #111; --rocket: #cf3c15; --sucuri: #2b1555;
  --shadow: 0 12px 32px rgb(17 17 17 / 16%); --shadow-control: 0 1px 2px rgb(17 17 17 / 7%);
  --shadow-control-hover: 0 4px 12px rgb(17 17 17 / 12%);
  --control-transition: 140ms cubic-bezier(.2, .8, .2, 1);
  --button-line: #bdb7aa;
  --footer-text: #64615b;
  --grid: rgb(17 17 17 / 3%); --radius: 8px;
  --body-font: Manrope, sans-serif; --mono-font: 'IBM Plex Mono', monospace;
  font-family: var(--body-font); font-synthesis: none; color: var(--text); background: var(--canvas); text-rendering: optimizeLegibility;
}
[data-theme='dark'] {
  color-scheme: dark;
  --canvas: #090909; --surface: #111; --raised: #181818; --subtle: #1b1b19;
  --text: #f5f3ee; --muted: #b1ab9f; --line: #302e2a; --line-strong: #514d45; --control: #857e71;
  --brand-hover: #ffc44d; --brand-soft: #332300; --brand-ink: #ffc44d; --focus: #ffc44d; --surface-dark: #090909;
  --success: #80cba8; --success-soft: #16271f; --grid: rgb(255 176 0 / 3%);
  --shadow: 0 12px 32px rgb(0 0 0 / 40%); --shadow-control: 0 1px 2px rgb(0 0 0 / 28%);
  --shadow-control-hover: 0 4px 14px rgb(0 0 0 / 34%);
  --button-line: #403e39;
  --footer-text: #9e988c;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; min-width: 280px; font-size: 15px; line-height: 1.6; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 32px 32px; }
button, input { font: inherit; }
button, a, label, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: var(--text); }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
a { color: var(--text); text-decoration-color: var(--brand-hover); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color var(--control-transition), text-decoration-color var(--control-transition); }
a:hover { color: var(--brand-hover); text-decoration-color: currentColor; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.25; text-wrap: balance; }
h2 { font-size: clamp(1.85rem, 3vw, 2.75rem); font-weight: 800; letter-spacing: -.045em; }
h3 { font-size: 1.15rem; letter-spacing: -.025em; }
h4 { font-size: 1rem; letter-spacing: -.02em; }
::selection { background: var(--brand); color: var(--ink); }
[hidden] { display: none !important; }
.icon { display: inline-block; flex: 0 0 auto; width: 20px; height: 20px; vertical-align: middle; }
.app-shell { width: min(1504px, 100%); min-height: 100vh; margin-inline: auto; padding: 0 32px 32px; }
.shell { width: min(1440px, calc(100% - 64px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 10px 16px; background: var(--brand); color: var(--ink); }
.skip-link:focus { top: 12px; }

/* Shared header proportions from Image optimizer. */
.site-header { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-family: Manrope, Arial, sans-serif; line-height: 1.5; text-underline-offset: auto; transition: none; -webkit-tap-highlight-color: initial; }
.brand:hover { color: var(--text); }
.brand:focus-visible { outline-offset: 2px; }
.brand-mark { display: grid; width: 36px; height: 36px; overflow: hidden; place-items: center; border: 1px solid #ded9ce; border-radius: 6px; padding: 3px; background: #f5f3ee; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1; }
.brand strong { font-size: .96rem; font-weight: 800; letter-spacing: -.035em; }
.brand strong span { color: var(--brand); }
.brand small { margin-top: 6px; color: #64615b; font-family: 'IBM Plex Mono', Consolas, monospace; font-size: .61rem; letter-spacing: .13em; text-transform: uppercase; }
[data-theme='dark'] .brand small { color: #9e988c; }
.header-tools { display: flex; align-items: center; gap: 12px; }
.language-switch { display: inline-flex; padding: 2px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--raised); }
.language-switch button { min-width: 40px; min-height: 38px; padding: 1px 6px; border: 0; border-radius: 4px; background: transparent; font: .67rem var(--mono-font); transition: background var(--control-transition), color var(--control-transition); }
.language-switch [aria-pressed='true'] { background: var(--surface-dark); color: #fff; }
.icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--raised); box-shadow: var(--shadow-control); border-color: var(--button-line); transition: border-color var(--control-transition), background var(--control-transition), box-shadow var(--control-transition), transform var(--control-transition); }
.icon-button .icon { width: 18px; height: 18px; stroke-width: 2; }
main { display: grid; gap: 24px; padding-top: 24px; }
.main-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.main-nav a { min-height: 52px; display: flex; align-items: center; gap: 14px; padding: 12px 24px; font-size: 12px; font-weight: 700; text-decoration: none; color: var(--text); border-right: 1px solid var(--line); }
.main-nav a:last-child { border: 0; }
.main-nav a > span { font: 10px var(--mono-font); color: var(--muted); }
.main-nav a > .icon { width: 16px; height: 16px; margin-left: auto; color: var(--brand-ink); }
.eyebrow { font: 10px/1.5 var(--mono-font); color: var(--brand-ink); letter-spacing: .1em; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: var(--radius); background: var(--surface); }
.hero-copy { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { margin-block: 24px; font-size: clamp(2.8rem, 4.5vw, 4.25rem); font-weight: 800; letter-spacing: -.065em; line-height: 1.06; }
.hero h1 span { display: block; }
.hero-intro { max-width: 43ch; color: var(--muted); font-size: 16px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.button { --button-background: var(--raised); --button-border: var(--button-line); --button-color: var(--text); --button-hover-background: var(--brand-soft); --button-hover-border: var(--brand); --button-hover-color: var(--text); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid var(--button-border); border-radius: 6px; padding: 10px 14px; background: var(--button-background); color: var(--button-color); box-shadow: var(--shadow-control); font-size: 13px; line-height: 1.5; font-weight: 720; text-decoration: none; text-align: center; transition: border-color var(--control-transition), background var(--control-transition), color var(--control-transition), box-shadow var(--control-transition), transform var(--control-transition); }
.button:disabled { opacity: .55; cursor: not-allowed; }
.button-brand { --button-background: var(--brand); --button-border: var(--brand-hover); --button-color: #111; --button-hover-background: var(--brand-hover); --button-hover-border: var(--brand-hover); --button-hover-color: #111; }
.button-dark { --button-background: var(--text); --button-color: var(--canvas); }
.button-quiet { --button-background: var(--surface); --button-color: var(--muted); }
.hero-secondary { color: var(--text); font-size: 12px; padding-block: 12px; }
.hero-note { padding-top: 24px; color: var(--muted); font-size: 11px; max-width: 52ch; }
.cache-demo { min-width: 0; padding: 32px; margin: 16px; margin-left: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.demo-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cache-demo h2 { font-size: 24px; letter-spacing: -.035em; margin: 14px 0 6px; }
.demo-caption { font-size: 13px; color: var(--muted); }
.demo-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; border: 1px solid var(--line-strong); padding: 3px; border-radius: 6px; margin-top: 24px; }
.demo-controls button { min-height: 44px; padding: 6px; font-size: 11px; line-height: 1.45; background: transparent; border: 0; border-radius: 3px; }
.demo-controls button[aria-pressed='true'] { background: var(--brand); color: var(--ink); font-weight: 700; }
.request-route { display: grid; grid-template-columns: 72px minmax(20px, 1fr) 72px minmax(20px, 1fr) 72px; align-items: start; margin: 32px 0 12px; }
.route-node { display: flex; align-items: center; flex-direction: column; min-width: 0; text-align: center; }
.route-node > .icon { width: 72px; height: 64px; padding: 19px 23px; border: 1px solid var(--line-strong); border-radius: 8px; margin-bottom: 12px; background: var(--surface); position: relative; z-index: 1; }
.route-node strong { width: max-content; white-space: nowrap; font-size: 12px; line-height: 1.4; font-weight: 700; }
.route-node > span { color: var(--muted); margin-top: 6px; min-height: 3em; font-size: 10px; line-height: 1.5; }
.route-wire { position: relative; height: 64px; }
.route-wire::before { content: ''; position: absolute; top: 27px; inset-inline: -2px; height: 10px; border-radius: 8px; background: var(--line-strong); box-shadow: inset 0 2px 3px #0003, 0 1px 0 var(--surface); }
.route-wire::after { content: ''; position: absolute; top: 24px; left: -2px; width: 5px; height: 16px; border: 1px solid var(--control); background: var(--surface); box-shadow: calc(100cqw - 2px) 0 var(--surface); border-radius: 2px; }
.route-wire { container-type: inline-size; }
.cable-track { position: absolute; inset: 27px 6px auto; height: 10px; }
.route-wire i { position: absolute; inset: 0; opacity: 0; animation: cable-request 8s linear infinite; }
.route-wire i::before { content: ''; position: absolute; top: 1px; left: -7px; width: 14px; height: 8px; border-radius: 4px; background: var(--brand); border: 1px solid var(--brand-ink); box-shadow: 0 0 7px #ffb00080; }
.origin-wire .request-out { animation-name: cable-origin-request; }
.route-wire .response-back { animation-name: cable-response; }
.route-wire .response-back::before { background: var(--success); border-color: var(--success); box-shadow: 0 0 7px var(--success-soft); }
.origin-wire .response-back { animation-name: cable-origin-response; }
.mode-1 .origin-wire, .mode-1 .origin, .mode-2 .origin-wire { opacity: .3; }
.mode-1 .origin-wire i, .mode-2 .origin-wire i { animation: none; }
.mode-1 > .route-wire:not(.origin-wire) .request-out, .mode-2 > .route-wire:not(.origin-wire) .request-out { animation: cable-short-request 5s linear infinite; }
.mode-1 > .route-wire:not(.origin-wire) .response-back, .mode-2 > .route-wire:not(.origin-wire) .response-back { animation: cable-short-response 5s linear infinite; }
.mode-1 .cache > .icon, .mode-2 .cache > .icon { color: var(--brand-ink); border-color: var(--brand-ink); background: var(--brand-soft); }
.mode-2 .origin > .icon { border-color: var(--success); color: var(--success); }
.mode-0 .origin > .icon { animation: origin-build 8s linear infinite; }
@keyframes cable-request { 0%, 2% { transform: translateX(0); opacity: 0; } 3% { opacity: 1; } 16% { transform: translateX(100%); opacity: 1; } 17%, 100% { transform: translateX(100%); opacity: 0; } }
@keyframes cable-origin-request { 0%, 18% { transform: translateX(0); opacity: 0; } 19% { opacity: 1; } 32% { transform: translateX(100%); opacity: 1; } 33%, 100% { transform: translateX(100%); opacity: 0; } }
@keyframes origin-build { 0%, 32%, 50%, 100% { background: var(--surface); color: var(--text); } 35%, 47% { background: var(--brand-soft); color: var(--brand-ink); border-color: var(--brand-ink); } }
@keyframes cable-origin-response { 0%, 50% { transform: translateX(100%); opacity: 0; } 51% { opacity: 1; } 64% { transform: translateX(0); opacity: 1; } 65%, 100% { transform: translateX(0); opacity: 0; } }
@keyframes cable-response { 0%, 66% { transform: translateX(100%); opacity: 0; } 67% { opacity: 1; } 80% { transform: translateX(0); opacity: 1; } 81%, 100% { transform: translateX(0); opacity: 0; } }
@keyframes cable-short-request { 0%, 3% { transform: translateX(0); opacity: 0; } 4% { opacity: 1; } 27% { transform: translateX(100%); opacity: 1; } 28%, 100% { transform: translateX(100%); opacity: 0; } }
@keyframes cable-short-response { 0%, 38% { transform: translateX(100%); opacity: 0; } 39% { opacity: 1; } 63% { transform: translateX(0); opacity: 1; } 64%, 100% { transform: translateX(0); opacity: 0; } }
.packet-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-bottom: 24px; color: var(--muted); font: 10px/1.5 var(--mono-font); }
.packet-legend span { display: inline-flex; align-items: center; gap: 6px; }
.packet-legend i { width: 12px; height: 6px; border-radius: 3px; background: var(--brand); border: 1px solid var(--brand-ink); }
.packet-legend span:last-child i { background: var(--success); border-color: var(--success); }
.demo-result { border-top: 1px solid var(--line); padding-top: 20px; min-height: 184px; }
.demo-result-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; }
.demo-result-heading .route-verdict { flex: 1; min-width: 0; }
.demo-clean { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; gap: 6px; min-height: 32px; padding: 6px 10px; border: 1px solid var(--brand-ink); border-radius: 5px; background: var(--brand-soft); color: var(--brand-ink); font-size: 11px; line-height: 1.5; box-shadow: var(--shadow-control); transition: border-color var(--control-transition), background var(--control-transition), color var(--control-transition), box-shadow var(--control-transition), transform var(--control-transition); }
.demo-clean[hidden] { display: none; }
.demo-clean .icon { width: 14px; height: 14px; }
.demo-clean[aria-disabled='true'] { color: var(--success); background: var(--success-soft); border-color: var(--success); cursor: default; }
.route-verdict { color: var(--brand-ink); font: 11px/1.6 var(--mono-font); }
.demo-result p { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.demo-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.demo-note { color: var(--muted); font-size: 10px; max-width: 33ch; }
.demo-footer .text-button { flex: 0 0 auto; }
.routine-note { display: flex; gap: 20px; align-items: center; padding: 24px 32px; border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: var(--radius); background: var(--surface); }
.routine-icon { color: var(--brand-ink); }
.routine-note > div { flex: 1; }
.routine-note strong { display: block; font-size: 14px; margin-bottom: 5px; }
.routine-note p { color: var(--muted); font-size: 13px; max-width: 110ch; }

/* Every section owns its surface; subgrids align parallel text rows. */
.section, .reference-section { padding: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.section-heading { max-width: 900px; }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-heading h2 { margin-bottom: 16px; }
.section-intro { font-size: 15px; max-width: 76ch; color: var(--muted); }
.basics-intro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; margin-bottom: 32px; }
.basics-intro p { max-width: 72ch; color: var(--muted); }
.basics-intro .benefit { color: var(--text); border-left: 2px solid var(--brand); padding-left: 24px; font-weight: 600; align-self: center; }
.subheading { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 20px; }
.subheading p { color: var(--muted); font-size: 12px; }
.layers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.layer { min-width: 0; display: grid; grid-template-rows: subgrid; grid-row: span 6; row-gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.layer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.layer-icon { color: var(--brand-ink); }
.layer-icon .icon { width: 28px; height: 28px; }
.index, .layer-location { color: var(--muted); font: 10px/1.6 var(--mono-font); }
.layer-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.layer-title h4 { font-size: 20px; }
.layer-comparison { font-size: 14px; font-weight: 700; line-height: 1.6; }
.layer-description { font-size: 13px; color: var(--muted); line-height: 1.8; }
.layer-action { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.7; }
.elementor-note { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); align-items: center; gap: 32px; padding: 24px; margin-top: 16px; border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 6px; background: var(--surface); }
.elementor-note h3 { margin: 10px 0; }
.elementor-title { display: flex; align-items: center; gap: 16px; }
.elementor-note p { font-size: 13px; color: var(--muted); }
.elementor-note .elementor-action { margin-top: 12px; color: var(--text); }
details > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] > summary > .icon:last-child { transform: rotate(45deg); }
details summary > .icon { transition: transform 160ms; }
.other-caches, .extra-metrics { margin-top: 16px; border: 1px solid var(--line); border-radius: 6px; padding: 0 24px; }
.other-caches summary, .extra-metrics > summary { min-height: 56px; font-size: 13px; font-weight: 600; padding-block: 12px; }
.other-caches dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin: 0; padding-block: 20px 24px; border-top: 1px solid var(--line); }
.other-caches dt { font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.other-caches dd { margin: 0; color: var(--muted); font-size: 13px; }
.workflow-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.65fr); align-items: start; gap: 24px; margin-top: 32px; }
.setup-panel { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { margin-bottom: 12px; font-size: 14px; font-weight: 800; line-height: 1.5; }
.reason-options > label { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 12px 0; cursor: pointer; font-size: 13px; line-height: 1.6; }
input[type='radio'], input[type='checkbox'] { accent-color: var(--brand-ink); width: 18px; height: 18px; flex: 0 0 auto; margin: 0; }
.cache-options { margin-top: 24px; }
.cache-options legend { width: 100%; border-top: 1px solid var(--line); padding-top: 24px; }
.option-note { color: var(--muted); font-size: 12px; margin-bottom: 16px; }
.cache-option { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 8px 16px 16px; margin-top: 12px; }
.cache-option label { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-size: 14px; font-weight: 700; }
.cache-option .help { align-self: center; }
.cache-option p { grid-column: 1 / -1; min-height: 3.2em; font-size: 12px; color: var(--muted); }
.cache-option:has(input:checked) { border-color: var(--brand-ink); box-shadow: inset 3px 0 var(--brand); }
.context-note { border-left: 2px solid var(--brand); padding-left: 16px; color: var(--muted); font-size: 12px; margin-top: 24px; }
.missing-note { padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--line); }
.missing-note strong { font-size: 13px; }
.missing-note p { font-size: 12px; margin-top: 8px; color: var(--muted); }
.checklist-panel { min-width: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); overflow-anchor: none; }
.checklist-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 24px 16px; }
.checklist-header h3 { margin-bottom: 8px; font-size: 19px; }
#checklist-progress { font: 11px/1.7 var(--mono-font); color: var(--muted); }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 4px; border: 0; background: none; color: var(--muted); font-size: 12px; line-height: 1.5; transition: color var(--control-transition); }
.text-button:hover { color: var(--brand-hover); }
.text-button .icon { width: 16px; height: 16px; }
.guide-boundary { color: var(--muted); font-size: 12px; padding: 0 24px 24px; }
#checklist { list-style: none; padding: 0; margin: 0; }
.step { border-top: 1px solid var(--line); }
.step summary { padding: 20px 24px; min-height: 80px; gap: 16px; }
.step summary h4 { font-size: 14px; font-weight: 700; margin: 0; flex: 1; }
.step-number { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; font: 11px var(--mono-font); color: var(--muted); border: 1px solid var(--line-strong); border-radius: 4px; }
.step-number .icon { width: 16px; height: 16px; }
.step-expand { width: 16px; height: 16px; color: var(--muted); }
.step-state { color: var(--muted); font-size: 10px; }
.step details[open] { background: var(--raised); box-shadow: inset 3px 0 var(--brand); }
.step details[open] .step-number { background: var(--brand); border-color: var(--brand); color: var(--ink); }
.step-done .step-number { color: var(--success); background: var(--success-soft); border-color: var(--success); }
.step-done .step-state { color: var(--success); }
.step-content { padding: 0 24px 24px 72px; }
.step-content > p { font-size: 13px; line-height: 1.8; color: var(--muted); max-width: 68ch; }
.button-reference { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 20px; margin-top: 20px; }
.button-reference-label { font: 10px/1.6 var(--mono-font); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.button-reference p { font-size: 11px; color: var(--muted); margin: 8px 0 16px; overflow-wrap: anywhere; }
.admin-button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 40px; font-size: 11px; font-weight: 800; line-height: 1.5; padding: 10px 12px; color: #fff; border-radius: 4px; max-width: 100%; background: var(--rocket); }
.admin-button .icon { width: 16px; height: 16px; }
.admin-button-sucuri { background: var(--sucuri); }
.admin-button-varnish { background: var(--ink); color: #f5f3ee; font-weight: 400; border-radius: 0; }
.step-detail { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; font-size: 11px; color: var(--muted); }
.step-detail > .source-link { margin-left: auto; }
.source-link { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; line-height: 1.6; }
.source-link .icon { width: 12px; height: 12px; }
.step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 20px; }
.checklist-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 20px 24px; border-top: 1px solid var(--line); }
.finish-note { border-top: 1px solid var(--line); padding: 24px; }
.finish-note strong { font-size: 15px; }
.finish-note p { margin-top: 8px; font-size: 13px; color: var(--muted); }

.speed-principles { margin-top: 32px; padding: 24px; border: 1px solid var(--line); border-radius: 6px; }
.speed-intro { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 32px; align-items: start; }
.speed-intro h3 { font-size: 22px; max-width: 24ch; }
.speed-intro p { color: var(--muted); font-size: 14px; }
.recommendation-heading { margin-block: 32px 20px; }
.recommendations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.recommendation { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 16px; padding: 24px; border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: 6px; background: var(--surface); }
.recommendation-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.recommendation h4 { font-size: 22px; }
.recommendation > p { font-size: 14px; color: var(--muted); }
.recommendation .button { justify-self: start; align-self: end; margin-top: 4px; }
.image-routine { margin-top: 16px; padding: 20px 24px; font-size: 13px; text-align: center; border: 1px solid var(--line); border-radius: 6px; }
.measurement-types { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-block: 32px 24px; }
.measurement-types > div { display: flex; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 6px; }
.measurement-index { font: 12px var(--mono-font); color: var(--brand-ink); border: 1px solid var(--line-strong); display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 5px; }
.measurement-types h3 { font-size: 16px; margin-bottom: 8px; }
.measurement-types p { color: var(--muted); font-size: 13px; }
.vitals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vital { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: 6px; }
.vital-code { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 12px var(--mono-font); color: var(--muted); }
.vital-target { display: block; font: 400 clamp(2rem, 3.7vw, 3.2rem)/1.2 var(--mono-font); letter-spacing: -.08em; margin-bottom: 4px; }
.vital h3 { font-size: 16px; }
.vital p { font-size: 13px; color: var(--muted); }
.metric-caption { font-size: 11px; color: var(--muted); margin-top: 16px; }
.metric-caption .source-link { margin-left: 8px; }
.metric-ledger > div { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.metric-ledger > div > strong { font: 14px var(--mono-font); }
.metric-ledger h4 { font-size: 13px; margin-bottom: 4px; }
.metric-ledger p { font-size: 12px; color: var(--muted); }
.measure-cta { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-top: 24px; padding: 24px; border: 1px solid var(--line); border-radius: 6px; }
.measure-cta h3 { font-size: 18px; margin-bottom: 8px; }
.measure-cta p { color: var(--muted); max-width: 72ch; font-size: 13px; }
.measure-cta .button { flex: 0 0 auto; }
.external-note { color: var(--muted); font-size: 11px; margin-top: 16px; }
.external-note .source-link { margin-left: 8px; }
.faq-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { font-size: 14px; font-weight: 700; padding-block: 20px; }
.faq-list summary .icon { width: 16px; height: 16px; color: var(--muted); }
.faq-list p { color: var(--muted); font-size: 13px; padding-bottom: 20px; }
.reference-section h2 { font-size: 24px; margin-bottom: 12px; }
.reference-section p { color: var(--muted); font-size: 13px; }
.reference-section > details { margin-top: 16px; }
.reference-section summary { min-height: 44px; font-size: 13px; font-weight: 600; }
.source-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 20px; }
.source-groups h3 { font-size: 14px; margin-bottom: 16px; }
.source-groups ul { list-style: none; margin: 0; padding: 0; }
.source-groups li { margin-bottom: 8px; }
.source-groups a { min-height: 30px; }
.site-footer { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px 32px; align-items: center; padding: 22px 2px 30px; border-top: 1px solid var(--line); color: var(--footer-text); font: .61rem/1.7 var(--mono-font); }
.site-footer-copyright, .site-footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.site-footer-copyright strong { color: var(--text); font-weight: 650; }
.site-footer a { color: inherit; text-underline-offset: 4px; text-decoration-color: var(--brand-hover); }
.site-footer a:hover { color: var(--brand-hover); text-decoration-color: currentColor; }
.site-footer-meta { justify-content: center; }
.site-footer-meta span + span::before { content: '/'; color: var(--brand-ink); margin-right: 16px; }
.site-footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; }
.site-footer-links a { padding: 5px 1px; color: var(--text); font-weight: 650; }

/* The website tools use the same controls and surfaces as the checklist. */
.site-tools { margin-top: 32px; border: 1px solid var(--line); border-radius: 6px; padding: 24px; background: var(--surface); }
.site-tools-heading { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); gap: 24px; align-items: center; margin-bottom: 24px; }
.site-tools-heading > p { text-align: right; }
.site-tools-heading p, #website-hint, .site-login, .probe-privacy, .probe-note, .probe-final { color: var(--muted); font-size: 12px; }
#website-form label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 10px; }
.website-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; }
#website-url { width: 100%; min-width: 0; border: 1px solid var(--control); border-radius: 6px; padding: 12px 14px; background: var(--surface); color: var(--text); font: 14px/1.5 var(--body-font); }
#website-url::placeholder { color: var(--muted); opacity: 1; }
#website-url[aria-invalid='true'] { border-color: var(--brand-ink); }
#website-hint { margin-top: 10px; }
.site-login { margin-top: 8px; }
.probe-privacy { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 20px; }
.field-error, .probe-message { font-size: 13px; padding: 12px 16px; background: var(--brand-soft); border-left: 2px solid var(--brand); margin-top: 12px; }
.probe-result-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.probe-result-heading > span { font: 11px/1.5 var(--mono-font); color: var(--muted); }
.probe-result-title { display: flex; align-items: center; gap: 8px; }
.probe-layers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.probe-layer { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 6px; }
.probe-layer strong { font-size: 14px; }
.probe-layer span { font: 11px/1.5 var(--mono-font); }
.probe-layer p { color: var(--muted); font-size: 12px; }
.probe-layer.signal-found { border-color: var(--success); }
.signal-found span { color: var(--success); }
.probe-final, .probe-note { margin-top: 12px; overflow-wrap: anywhere; }
#use-detected { margin-top: 16px; }
button:disabled { cursor: default; opacity: .6; }

/* The scene's elapsed clock drives both its counters and visual progress. */
.speed-lab { padding: 28px; margin-top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.speed-lab-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.speed-lab-heading .eyebrow { margin-bottom: 10px; }
.speed-lab-intro { font-size: 13px; color: var(--muted); max-width: 76ch; margin-top: 16px; }
.speed-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 6px; margin-top: 24px; }
.speed-controls button { padding: 10px; min-height: 44px; border: 0; border-radius: 3px; background: transparent; color: var(--text); font-size: 12px; line-height: 1.5; }
.speed-controls button[aria-pressed='true'] { background: var(--brand); color: var(--ink); font-weight: 700; }
.speed-scene { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, .7fr); gap: 40px; align-items: center; padding-block: 28px; }
.speed-total { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.speed-total > span { font-size: 12px; color: var(--muted); }
.speed-total > strong { font-size: 36px; font-weight: 650; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.speed-total small { font-size: 18px; font-weight: 500; }
.timeline-stages { display: grid; gap: 20px; }
.stage-label { display: flex; justify-content: space-between; gap: 16px; font: 11px/1.5 var(--mono-font); }
.stage-label strong { font-weight: 500; font-variant-numeric: tabular-nums; }
.stage-track { height: 8px; margin-block: 8px; background: var(--subtle); border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.stage-track span { display: block; height: 100%; width: calc(var(--share) * 100%); background: var(--brand-ink); transform-origin: left; border-radius: 5px; transform: scaleX(0); }
.timeline-stage:nth-child(2) .stage-track span { background: var(--text); }
.timeline-stage:nth-child(3) .stage-track span { background: var(--success); }
.timeline-stage p { font-size: 11px; color: var(--muted); }
.page-preview { position: relative; min-height: 232px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--subtle); overflow: hidden; }
.preview-toolbar { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); padding: 12px; background: var(--surface); }
.preview-toolbar i { width: 4px; height: 4px; border-radius: 50%; background: var(--control); }
.preview-toolbar span { margin-left: 8px; color: var(--muted); font: 9px/1.5 var(--mono-font); }
.preview-content { padding: 16px; opacity: 0; }
.preview-image { display: grid; place-items: center; height: 64px; border: 1px solid var(--line); background: var(--brand-soft); color: var(--brand-ink); border-radius: 3px; opacity: 0; }
.preview-lines { display: grid; gap: 6px; padding-block: 12px; }
.preview-lines i { display: block; width: 90%; height: 4px; border-radius: 2px; background: var(--line-strong); }
.preview-lines i:first-child { width: 64%; height: 6px; background: var(--control); }
.preview-lines i:last-child { width: 75%; }
.preview-button { display: block; width: 48px; height: 14px; border-radius: 3px; background: var(--brand); }
.preview-ready { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 10px; color: var(--success); font: 10px/1.5 var(--mono-font); opacity: 0; }
.preview-ready .icon { width: 14px; height: 14px; }
.speed-explanation { border-top: 1px solid var(--line); padding-top: 20px; min-height: 72px; font-size: 13px; color: var(--muted); }
.simulation-note { margin-top: 12px; font: 10px/1.6 var(--mono-font); color: var(--muted); }
.speed-advice { margin-block: 32px; }
.speed-advice > h3 { margin-bottom: 20px; }
.speed-tips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.speed-tips article { display: grid; grid-template-rows: subgrid; grid-row: span 3; gap: 12px; border: 1px solid var(--line); border-radius: 6px; padding: 20px; background: var(--surface); }
.speed-tips article > .icon { color: var(--brand-ink); }
.speed-tips h4 { font-size: 14px; }
.speed-tips p { font-size: 12px; color: var(--muted); }
.contact-note { display: flex; align-items: center; justify-content: space-between; gap: 32px; background: var(--surface); padding: 32px 40px; border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: var(--radius); }
.contact-note h2 { font-size: 24px; margin-bottom: 12px; }
.contact-note p { font-size: 14px; color: var(--muted); max-width: 80ch; }
.contact-note .button { flex-shrink: 0; }
[data-motion='paused'] .motion-scene *, [data-page-hidden='true'] .motion-scene *, .motion-scene[data-visible='false'] * { animation-play-state: paused !important; }

/* Nonmodal help dialogs allow both reading and keyboard access to sources. */
.help { display: inline-flex; flex: 0 0 auto; vertical-align: middle; }
.help-trigger { position: relative; width: 24px; height: 24px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font: 10px var(--mono-font); }
.help-trigger::before { content: ''; position: absolute; inset: 4px; border: 1px solid var(--control); border-radius: 50%; }
.help-trigger:hover, .help-trigger[aria-expanded='true'] { color: var(--text); }
.help-trigger:hover::before, .help-trigger[aria-expanded='true']::before { border-color: var(--brand-ink); }
.tooltip { position: fixed; inset: auto; margin: 0; width: 360px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; border: 1px solid var(--line-strong); border-top: 3px solid var(--brand); border-radius: 6px; padding: 20px; background: var(--raised); color: var(--text); box-shadow: var(--shadow); font: 13px/1.75 var(--body-font); letter-spacing: normal; text-align: left; text-transform: none; z-index: 100; }
.tooltip:not(:popover-open):not(.tooltip-visible) { display: none; }
.tooltip-visible, .tooltip-title, .tooltip-copy, .tooltip-links { display: block; }
.tooltip-title { font-weight: 700; margin-bottom: 12px; line-height: 1.5; }
.tooltip-copy { color: var(--muted); }
.tooltip-links { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.tooltip-links .source-link { display: flex; padding-block: 6px; min-height: 32px; }
.noscript { margin-top: 10vh; padding: 32px; max-width: 640px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: var(--radius); }
.noscript h1 { margin-block: 24px; font-size: 30px; }
.noscript p { margin-top: 16px; color: var(--muted); }

.demo-controls button, .speed-controls button { transition: background var(--control-transition), color var(--control-transition), transform var(--control-transition); }
@media (hover: hover) and (pointer: fine) {
  .icon-button:hover, .demo-clean:hover:not([aria-disabled='true']) { border-color: var(--brand); background: var(--brand-soft); box-shadow: var(--shadow-control-hover); transform: translateY(-1px); }
  .main-nav a:hover { color: var(--brand-hover); background: var(--brand-soft); }
  .button:hover:not(:disabled, [aria-disabled='true']) { border-color: var(--button-hover-border); background: var(--button-hover-background); color: var(--button-hover-color); box-shadow: var(--shadow-control-hover); transform: translateY(-1px); }
  .demo-controls button:hover:not([aria-pressed='true']), .speed-controls button:hover:not([aria-pressed='true']) { background: var(--brand-soft); }
}
.button:active:not(:disabled, [aria-disabled='true']), .demo-clean:active:not([aria-disabled='true']), .icon-button:active { transform: translateY(1px) scale(.985); }
@media (min-width: 1101px) { .setup-panel { position: sticky; top: 24px; } }
@media (max-width: 1100px) {
  .request-route { grid-template-columns: 56px minmax(20px, 1fr) 56px minmax(20px, 1fr) 56px; }
  .route-node > .icon { width: 56px; padding-inline: 15px; }
  .speed-tips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .website-controls { grid-template-columns: 1fr 1fr; }
  #website-url { grid-column: 1 / -1; }
  .hero-copy { padding: 32px; }
  .hero h1 { font-size: 3rem; }
  .hero-intro { font-size: 14px; }
  .cache-demo { padding: 24px; }
  .section, .reference-section { padding: 32px; }
  .layers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); }
  .step-content { padding-left: 24px; }
  .setup-panel { padding: 20px; }
  .step-state { max-width: 54px; }
  .basics-intro, .speed-intro, .elementor-note { gap: 24px; }
}
@media (max-width: 920px) {
  .app-shell { padding-inline: 24px; }
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.8rem, 6.5vw, 4rem); }
  .hero-intro { max-width: 60ch; font-size: 15px; }
  .cache-demo { margin: 0 16px 16px; padding: 32px; }
  .request-route { max-width: 560px; margin-inline: auto; }
  .demo-result { min-height: 208px; }
  .workflow-grid { grid-template-columns: 1fr; }
  .setup-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px; }
  .cache-options { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
  .cache-options legend { border: 0; padding-top: 0; }
  .context-note, .missing-note { margin: 0; }
  .missing-note { padding-top: 24px; }
  .main-nav a { padding-inline: 16px; gap: 10px; }
  .basics-intro, .speed-intro { grid-template-columns: 1fr; }
  .recommendation h4 { font-size: 20px; }
  .measure-cta { align-items: start; flex-direction: column; gap: 20px; }
  .faq-section { gap: 32px; }
}
@media (max-width: 700px) {
  .site-tools, .speed-lab { padding: 20px; }
  .site-tools-heading { grid-template-columns: 1fr; gap: 12px; }
  .speed-scene { grid-template-columns: 1fr; gap: 24px; }
  .page-preview { width: 100%; max-width: 320px; justify-self: center; }
  .speed-lab-heading { flex-wrap: wrap; gap: 8px; }
  .speed-controls button { font-size: 11px; padding: 8px 4px; }
  .speed-explanation { min-height: 116px; }
  .contact-note { flex-direction: column; align-items: stretch; padding: 24px; gap: 24px; }
  .site-footer { grid-template-columns: 1fr; gap: 10px; align-items: start; }
  .site-footer-meta, .site-footer-links { justify-content: flex-start; }
  .app-shell { padding-inline: 16px; }
  .site-header { min-height: 68px; }
  .brand small { display: none; }
  main { gap: 16px; padding-top: 16px; }
  .main-nav a { min-height: 60px; padding: 12px; justify-content: center; text-align: center; font-size: 11px; }
  .main-nav a > span, .main-nav a > .icon { display: none; }
  .section, .reference-section { padding: 24px; }
  .hero-copy { padding: 28px; }
  .hero h1 { font-size: clamp(2rem, 7vw, 3.5rem); }
  .hero-intro { font-size: 14px; }
  .cache-demo { padding: 24px; }
  .routine-note { padding: 24px; gap: 16px; }
  .routine-icon { display: none; }
  .routine-note .help { align-self: start; }
  .subheading { flex-direction: column; gap: 8px; }
  .layers, .recommendations { grid-template-columns: 1fr; }
  .layer { row-gap: 12px; }
  .elementor-note { grid-template-columns: 1fr; gap: 16px; }
  .other-caches dl, .measurement-types { grid-template-columns: 1fr; gap: 20px; }
  .setup-panel { display: block; }
  .cache-options { margin-top: 24px; }
  .cache-options legend { border-top: 1px solid var(--line); padding-top: 24px; }
  .context-note, .missing-note { margin-top: 24px; }
  .checklist-header { flex-wrap: wrap; }
  .step summary { gap: 12px; padding: 16px; }
  .step-content { padding: 0 16px 24px; }
  .vitals { grid-template-columns: 1fr; }
  .vital-target { font-size: 2.8rem; }
  .metric-ledger > div { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; }
  .metric-ledger > div > .source-link { grid-column: 2 / 4; }
  .faq-section { display: block; }
  .faq-list { margin-top: 24px; }
  .source-groups { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 440px) {
  .site-tools, .speed-lab { padding: 16px; }
  .website-controls, .probe-layers, .speed-tips { grid-template-columns: 1fr; }
  .speed-explanation { min-height: 155px; }
  .speed-total > span { max-width: 12ch; }
  .speed-lab-heading .motion-toggle { font-size: 11px; }
  .demo-footer { flex-wrap: wrap; }
  .demo-note { max-width: none; }
  .demo-footer .motion-toggle { margin-left: auto; }
  .section, .reference-section { padding: 24px 16px; }
  .hero-copy { padding: 28px 20px; }
  .hero .eyebrow { font-size: 9px; }
  .hero-actions { align-items: stretch; gap: 8px; }
  .hero-actions .button { width: 100%; }
  .hero-secondary { text-align: center; width: 100%; }
  .cache-demo { margin: 0 12px 12px; padding: 20px 12px; }
  .cache-demo h2 { font-size: 21px; }
  .demo-controls { margin-top: 20px; }
  .demo-controls button { font-size: 10px; padding: 6px 3px; }
  .request-route { grid-template-columns: 48px minmax(16px, 1fr) 48px minmax(16px, 1fr) 48px; }
  .route-node > .icon { width: 48px; height: 48px; padding: 13px; }
  .route-node strong { font-size: 10px; }
  .route-node > span { font-size: 9px; }
  .route-wire { height: 48px; }
  .route-wire::before, .cable-track { top: 19px; }
  .route-wire::after { top: 16px; }
  .route-verdict { font-size: 9px; }
  .demo-result { min-height: 240px; }
  .demo-result p { font-size: 12px; }
  .demo-note { font-size: 9px; }
  .demo-footer { gap: 8px; }
  .routine-note { padding: 20px; gap: 12px; }
  .routine-note p { font-size: 12px; }
  .layer, .recommendation, .speed-principles, .elementor-note { padding: 20px; }
  .section-intro, .basics-intro { font-size: 14px; }
  .setup-panel { padding: 20px 16px; }
  .checklist-header, .checklist-footer { padding-inline: 16px; }
  .checklist-header h3 { font-size: 17px; }
  .guide-boundary { padding-inline: 16px; }
  .step summary h4 { font-size: 13px; }
  .step-number { width: 28px; height: 28px; }
  .step-state { font-size: 9px; max-width: 44px; }
  .button-reference { padding: 14px; }
  .admin-button { font-size: 10px; gap: 10px; }
  .step-detail > .source-link { margin-left: 0; }
  .step-actions { gap: 8px; }
  .recommendation .button { justify-self: stretch; }
  .recommendation-top .eyebrow { font-size: 9px; }
  .measurement-types > div { padding: 20px 16px; gap: 12px; }
  .other-caches, .extra-metrics { padding-inline: 16px; }
  .measure-cta { padding: 20px; }
  .measure-cta .button { width: 100%; }
  .metric-caption .source-link, .external-note .source-link { display: flex; margin: 8px 0 0; }
}
@media (max-width: 360px) {
  .site-header { gap: 4px; }
  .cache-option p { min-height: 6.4em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.print-sheet { display: none; }
@media print {
  /* Suppress browser headers; the sheet repeats its own padding across pages. */
  @page { margin: 0; }
  :root, [data-theme='dark'] { color-scheme: light; }
  body { margin: 0; background: #fff; color: #111; }
  #app > :not(.print-sheet) { display: none !important; }
  .print-sheet { display: block; padding: 14mm; box-decoration-break: clone; -webkit-box-decoration-break: clone; color: #111; font-size: 10pt; line-height: 1.5; }
  .print-sheet h1 { margin: 0 0 14pt; padding-bottom: 10pt; border-bottom: 1pt solid #111; font-size: 22pt; line-height: 1.2; }
  .print-sheet ol { margin: 0; padding: 0; list-style: none; counter-reset: print-step; }
  .print-sheet li { position: relative; counter-increment: print-step; padding: 6pt 0 6pt 28pt; border-top: .5pt solid #ddd; break-inside: avoid; }
  .print-sheet li::before { content: counter(print-step, decimal-leading-zero); position: absolute; top: 6pt; left: 0; color: #555; font: 9pt/1.5 var(--mono-font); }
  .print-sheet li:first-child { border: 0; padding-top: 0; }
  .print-sheet li:first-child::before { top: 0; }
  .print-sheet h2 { margin: 0 0 4pt; font-size: 11pt; line-height: 1.4; letter-spacing: 0; }
  .print-sheet p { margin: 0; }
  .print-sheet > .print-purpose { margin: 0 0 14pt; color: #444; }
  .print-sheet .print-admin-action { margin-top: 5pt; color: #444; font-size: 9pt; }
  .print-admin-action strong { color: #111; }
}
