/* CertainTeed shingle lab — Super Arbor Brand Hall */
:root {
  --paper: #f1f0e9;
  --paper-2: #e8e6dc;
  --card: #f8f7f2;
  --ink: #1b211d;
  --ink-2: #39423c;
  --muted: #56625a;
  --line: #d8d5c9;
  --line-2: #c9c5b7;
  --green: #173b2b;
  --green-2: #24503b;
  --sage: #dfe3d6;
  --orange: #b9471d;
  --orange-ink: #9a3a16;
  --ok: #2f6b4c;
  --warn: #9a3a16;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 12px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1400px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--green); color: #fff; padding: 12px 16px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }
.noscript { padding: 16px; margin: 0; }
.page { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }

/* Back bar injected by the shared Brand Hall script when opened on its own */
body > aside:first-child { padding-top: 0 !important; padding-bottom: 0 !important; row-gap: 0 !important; }
body > aside:first-child a { display: inline-flex; align-items: center; min-height: 44px; }
body > aside:first-child span { padding: 6px 0; }
@media (max-width: 640px) { body > aside:first-child { position: relative !important; } }

.eyebrow { margin: 0 0 10px; font: 600 13px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 10px; vertical-align: 2px; }
.eyebrow .sep { margin: 0 10px; color: var(--line-2); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; margin: 0; }
h1 em, h2 em { font-style: italic; }
.fine { font-size: 13px; line-height: 1.55; color: var(--muted); margin: 14px 0 0; }

/* Masthead */
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.lockup { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.lockup em { font-style: normal; border: 2px solid currentColor; padding: 4px 8px; }
.masthead-nav { display: flex; gap: 6px; }
.masthead-nav a, .back { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 14px; text-decoration: none; color: var(--ink-2); border-radius: 8px; }
.masthead-nav a:hover, .back:hover { background: var(--paper-2); }
@media (max-width: 860px) { .masthead-nav { display: none; } }

/* Intro */
.intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px 56px; align-items: end; padding: 40px 0 30px; }
.intro h1 { font-size: clamp(44px, 6.4vw, 86px); line-height: .98; }
.intro-side p { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--ink-2); max-width: 46ch; }
.intro-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px !important; font-size: 13px !important; color: var(--ink-2) !important; }
.intro-meta > span { display: inline-block; line-height: 30px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; padding: 28px 0 22px; gap: 16px; } }

/* Stage (shared) */
.stage { position: relative; overflow: hidden; background: #e7e1d5; isolation: isolate; }
.stage canvas { display: block; width: 100%; height: 100%; outline-offset: -4px; }
.stage canvas:focus-visible { outline: 3px solid var(--orange); }
.stage .still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage-chip { position: absolute; left: 16px; top: 16px; z-index: 3; margin: 0; padding: 8px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; font-size: 13px; color: var(--ink-2); max-width: calc(100% - 32px); }
.stage-chip .chip-k { font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; color: var(--green); margin-right: 6px; }
.stage-bar { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; pointer-events: none; }
.stage-bar > * { pointer-events: auto; }
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button, .icon-btn { min-height: 44px; min-width: 44px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.seg button:hover, .icon-btn:hover { background: var(--paper-2); }
.seg button[aria-pressed="true"], .seg button[aria-checked="true"] { background: var(--green); color: #fff; }
.icon-btn { background: var(--card); border: 1px solid var(--line); }
.seg-icons button { padding: 0; font-size: 17px; }
.stage-loading { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none; transition: opacity .4s; }
.stage-loading span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(23,59,43,.18); border-top-color: var(--green); animation: spin 1s linear infinite; }
.stage-loading.done { opacity: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Museum */
.museum { padding: 6px 0 40px; }
.vitrine { display: grid; grid-template-columns: minmax(0, 1fr) 380px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); }
.museum-stage { height: clamp(460px, 66vh, 680px); background: radial-gradient(ellipse at 54% 30%, #f3ece0 0%, #e1d7c5 45%, #bfb39f 100%); }
@media (min-width: 1101px) { .vitrine { align-items: start; } .placard { height: clamp(460px, 66vh, 680px); overflow: auto; } }
.hotspots { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hotspot { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 12px 0 8px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-2); font: 600 13px/1 var(--sans); color: var(--ink); pointer-events: auto; cursor: pointer; box-shadow: 0 2px 10px rgba(30,25,15,.12); transition: opacity .25s; white-space: nowrap; }
.hotspot b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; font-size: 13px; }
.hotspot[data-active="true"] { background: var(--green); color: #fff; border-color: var(--green); }
.hotspot[data-active="true"] b { background: var(--orange); }
.hotspot[data-hidden="true"] { opacity: 0; pointer-events: none; }
.placard { padding: 26px 26px 24px; border-left: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.placard h2 { font-size: 38px; line-height: 1.02; margin-bottom: 10px; }
.caption { font-size: 13px; line-height: 1.55; color: var(--muted); margin: 0 0 16px; }
.layer-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.layer-list li { border-bottom: 1px solid var(--line); }
.layer-list button { width: 100%; min-height: 48px; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 8px 6px; background: transparent; border: 0; text-align: left; cursor: pointer; font-size: 14.5px; font-weight: 500; }
.layer-list button .n { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.layer-list button .role { font-size: 13px; color: var(--muted); font-weight: 400; }
.layer-list button:hover { background: var(--paper); }
.layer-list button[aria-pressed="true"] { background: var(--sage); box-shadow: inset 3px 0 0 var(--green); }
.layer-detail { margin-top: 16px; }
.layer-detail h3 { font-size: 28px; line-height: 1.1; }
.layer-detail .role { margin: 2px 0 10px; font-size: 13px; color: var(--muted); }
.layer-detail p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.62; color: var(--ink-2); }
.verify { margin: 12px 0 0; padding: 12px 14px; border-left: 3px solid var(--green); background: var(--paper); border-radius: 0 8px 8px 0; }
.verify strong { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin-bottom: 6px; }
.verify ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.verify li + li { margin-top: 4px; }
blockquote.quote { margin: 12px 0 0; padding: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
blockquote.quote p { margin: 0; font-style: italic; }
blockquote.quote cite, .src { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-style: normal; color: var(--green); }
.src a, blockquote.quote cite a { color: var(--green); text-underline-offset: 3px; }
@media (max-width: 1100px) {
  .vitrine { grid-template-columns: 1fr; }
  .placard { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .stage { height: auto !important; display: flex; flex-direction: column; }
  .stage canvas, .stage .still { position: relative; height: 340px !important; flex: none; }
  .stage .stage-bar { position: static; padding: 10px 8px 12px; background: var(--card); border-top: 1px solid var(--line); justify-content: flex-start; }
  .stage .stage-loading, .stage .compare-line { bottom: auto; height: 340px; }
  .museum-stage { height: auto; }
  .placard { padding: 20px 16px; }
  .placard h2 { font-size: 32px; }
  .stage-bar { left: 8px; right: 8px; bottom: 8px; gap: 6px; }
  .seg button, .icon-btn { padding: 0 10px; font-size: 13.5px; }
  .hotspot span { display: none; }
  .hotspot { padding: 0; justify-content: center; }
}

/* Lab */
.lab { padding: 30px 0 46px; }
.lab-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 16px 40px; align-items: end; margin-bottom: 22px; }
.lab-head h2 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1; }
.lab-note { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.lab-note a { color: var(--green); text-underline-offset: 3px; }
.caption a { color: inherit; text-underline-offset: 3px; }
@media (max-width: 860px) { .lab-head { grid-template-columns: 1fr; } }
.workspace { border: 1px solid var(--line); border-radius: 16px; overflow: clip; background: var(--card); }
.ws-tabs { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); background: var(--paper); }
.ws-tabs [role="tab"] { min-height: 58px; padding: 0 22px; border: 0; border-bottom: 2px solid transparent; background: transparent; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--ink-2); display: inline-flex; align-items: center; gap: 10px; }
.ws-tabs [role="tab"] .n { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ws-tabs [role="tab"]:hover { background: var(--paper-2); }
.ws-tabs [role="tab"][aria-selected="true"] { background: var(--sage); border-bottom-color: var(--green); color: var(--ink); }
.ws-status { margin: 0 18px 0 auto; align-self: center; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.ws-body { display: grid; grid-template-columns: minmax(0, 1fr) 410px; min-height: 640px; align-items: start; }
.ws-body.wide-panel { grid-template-columns: minmax(0, 1fr) 470px; }
.lab-stage { position: sticky; top: 0; height: min(86vh, 780px); min-height: 560px; background: linear-gradient(#e9ebe3, #d3d6ca); }
body.standalone .lab-stage { top: 44px; height: min(calc(86vh - 44px), 780px); }
.panel { border-left: 1px solid var(--line); padding: 22px 22px 26px; min-width: 0; min-height: 640px; }
.panel-title { font-size: 34px; line-height: 1.05; margin-bottom: 14px; }
@media (max-width: 1100px) {
  .ws-body, .ws-body.wide-panel { grid-template-columns: 1fr; min-height: 0; }
  .lab-stage, body.standalone .lab-stage { position: relative; top: 0; min-height: 0; height: clamp(380px, 56vh, 560px); }
  .panel { border-left: 0; border-top: 1px solid var(--line); min-height: 0; }
  .ws-status { display: none; }
}
@media (max-width: 640px) {
  .ws-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .ws-tabs [role="tab"] { padding: 0 12px; min-height: 52px; font-size: 14px; justify-content: flex-start; border-bottom-width: 2px; }
  .lab-stage, body.standalone .lab-stage { height: auto; }
  .panel { padding: 18px 16px 22px; }
  .panel-title { font-size: 30px; }
}
.stage-labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.stage-label { position: absolute; transform: translate(-50%, -120%); padding: 5px 9px; border-radius: 6px; background: var(--card); border: 1px solid var(--line-2); font: 600 13px/1.2 var(--sans); color: var(--ink); white-space: nowrap; }
.stage-label[data-hot="true"] { background: var(--orange); border-color: var(--orange); color: #fff; }
.compare-line { position: absolute; top: 0; bottom: 0; z-index: 2; width: 0; border-left: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.12); pointer-events: none; }
.compare-line .tag { position: absolute; top: 64px; padding: 4px 9px; border-radius: 6px; background: var(--card); border: 1px solid var(--line-2); font: 600 13px/1 var(--sans); }
.compare-line .tag-a { right: 10px; }
.compare-line .tag-b { left: 10px; }

/* Stepper (bench) */
.stepper { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.stepper button { width: 100%; min-height: 48px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); cursor: pointer; font-size: 13px; font-weight: 500; line-height: 1.2; color: var(--ink-2); text-align: left; }
.stepper button .k { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.stepper button[aria-current="step"] { border-color: var(--green); background: var(--sage); color: var(--ink); }
.stepper button[data-done="true"] .k::after { content: " ✓"; color: var(--ok); }
.step-body h3 { font-size: 30px; line-height: 1.06; margin-bottom: 10px; }
.step-body p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.62; color: var(--ink-2); }
.facts { margin: 12px 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts li span:last-child { text-align: right; font-weight: 500; }
.readout { margin: 12px 0; padding: 12px 14px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); font-size: 14px; line-height: 1.55; }
.readout.ok { border-color: #b9d3c3; background: #eef4ef; }
.readout.bad { border-color: #e3bda8; background: #fbf0ea; }
.readout strong { font-weight: 600; }
.status { font-weight: 600; }
.status.ok { color: var(--ok); }
.status.bad { color: var(--warn); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--green); background: var(--green); color: #fff; font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--green-2); }
.btn.secondary { background: transparent; color: var(--green); }
.btn.secondary:hover { background: var(--sage); }
.btn.primary-orange { background: var(--orange); border-color: var(--orange); }
.btn.primary-orange:hover { background: var(--orange-ink); }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.choice-list { display: grid; gap: 8px; margin: 12px 0; }
.choice { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 12px 12px; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; font-size: 14px; line-height: 1.45; }
.choice input { margin: 2px 0 0; width: 18px; height: 18px; accent-color: var(--green); }
.choice small { display: block; color: var(--muted); font-size: 13px; }
.choice:has(input:checked) { border-color: var(--green); background: var(--sage); }
.switch { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-size: 14.5px; font-weight: 500; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { position: relative; width: 44px; height: 26px; border-radius: 999px; background: #c9c6ba; transition: background .2s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked + .track { background: var(--green); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 3px solid var(--orange); outline-offset: 2px; }
.range-row { display: grid; gap: 6px; margin: 12px 0; font-size: 14px; font-weight: 500; }
.range-row input[type="range"] { width: 100%; min-height: 44px; accent-color: var(--green); }
.range-row output { font-weight: 600; color: var(--green); }
.svg-card { margin: 12px 0 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); padding: 10px; }
.svg-card svg { display: block; width: 100%; height: auto; }
.svg-card svg:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.svg-card .legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.svg-card .legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.keypad { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; }
.keypad button { min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); cursor: pointer; font-size: 15px; }
.keypad .drive { padding: 0 14px; font-weight: 500; background: var(--green); border-color: var(--green); color: #fff; }
.nail-list { list-style: none; margin: 10px 0; padding: 0; font-size: 13.5px; }
.nail-list li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); line-height: 1.45; }
.nail-list .num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 600; }
.nail-list .num.ok { background: var(--ok); }
.nail-list .num.bad { background: var(--warn); }

/* Weather */
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 16px; }
.mode-grid button { min-height: 64px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; font-size: 14.5px; font-weight: 500; text-align: left; }
.mode-grid button small { font-size: 13px; color: var(--muted); font-weight: 400; }
.mode-grid button[aria-checked="true"] { border-color: var(--green); background: var(--sage); }

/* Design */
.seg-wide { display: flex; width: 100%; margin-bottom: 12px; }
.seg-wide button { flex: 1; white-space: normal; line-height: 1.2; padding: 6px 10px; }
.compare-row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; margin: 6px 0 14px; }
.swatch { position: relative; aspect-ratio: 1; min-height: 48px; border-radius: 10px; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--paper-2) center/cover no-repeat; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.swatch[aria-checked="true"] { border-color: var(--green); box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--green); }
.swatch .slot { position: absolute; right: -7px; top: -7px; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; font: 600 13px/22px var(--sans); text-align: center; }
.swatch .slot.b { background: var(--orange); }
.pick-card { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.pick-card img { width: 76px; height: 76px; border-radius: 8px; object-fit: cover; background: var(--paper-2); }
.pick-card h4 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.1; }
.pick-card p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.pick-card .price { font-size: 15px; font-weight: 600; color: var(--ink); }
.pick-card a { color: var(--green); text-underline-offset: 3px; display: inline-flex; min-height: 44px; align-items: center; font-size: 13.5px; }
.cmp-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13.5px; }
.cmp-table th, .cmp-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp-table th { font-weight: 500; color: var(--muted); width: 34%; }
.cmp-table td { font-weight: 500; }
.cmp-tag { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 600; margin-right: 6px; background: var(--green); }
.cmp-tag.b { background: var(--orange); }

/* Planner */
.plan-form { display: grid; gap: 12px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: grid; gap: 4px; align-content: start; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.field.span-2 { grid-column: 1 / -1; }
.field input, .field select { min-height: 44px; width: 100%; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; font-size: 15px; }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--orange); outline-offset: 1px; }
.field .hint { font-weight: 400; font-size: 13px; color: var(--muted); }
.field-inline { display: grid; grid-template-columns: minmax(96px, 1fr) auto; gap: 6px; }
.field-inline .seg button { padding: 0 10px; font-size: 13.5px; }
.fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.fieldset legend { padding: 0; margin-bottom: 6px; font: 600 13px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sample-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; background: var(--paper); border: 1px dashed var(--line-2); font-size: 13.5px; }
.sample-row button { min-height: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--green); background: transparent; color: var(--green); font-weight: 500; cursor: pointer; }
.sample-row button:hover { background: var(--sage); }
.bill { margin-top: 18px; border-top: 2px solid var(--ink); padding-top: 12px; }
.bill-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.bill-lines { list-style: none; margin: 8px 0 0; padding: 0; }
.bill-line { padding: 10px 0; border-bottom: 1px solid var(--line); }
.bill-line .row1 { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: baseline; }
.bill-line .role { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.bill-line .title { font-size: 14px; line-height: 1.4; font-weight: 500; }
.bill-line .title a { color: var(--ink); text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
.bill-line .ext { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 15px; }
.bill-line .qty { margin-top: 3px; font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bill-line .why { margin-top: 3px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.bill-line .note { margin-top: 6px; padding-left: 10px; border-left: 3px solid #d9a184; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.bill-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; }
.bill-total .label { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.bill-total .amount { font-family: var(--serif); font-size: 44px; line-height: 1; }
.bill-meta { font-size: 13px; color: var(--muted); margin: 6px 0 0; line-height: 1.5; }
.checks { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: #fbf0ea; border: 1px solid #e3bda8; font-size: 13.5px; line-height: 1.5; }
.checks strong { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--warn); margin-bottom: 4px; }
.checks ul { margin: 0; padding-left: 18px; }
details.how { margin-top: 14px; font-size: 13.5px; color: var(--ink-2); }
details.how summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 500; color: var(--green); }
details.how ul { margin: 0; padding-left: 18px; line-height: 1.55; }
.copy-status { font-size: 13px; color: var(--ok); min-height: 20px; margin-top: 6px; }

/* Catalog */
.catalog { padding: 26px 0 30px; border-top: 1px solid var(--line); }
.catalog-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 12px 40px; align-items: end; margin-bottom: 20px; }
.catalog-head h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.04; }
.catalog-head .fine { margin: 0; }
@media (max-width: 860px) { .catalog-head { grid-template-columns: 1fr; } }
.catalog-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 14px; }
.catalog-grid a { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.catalog-grid a:hover { border-color: var(--green); }
.catalog-grid .img { aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.catalog-grid img { width: 100%; height: 100%; object-fit: cover; }
.catalog-grid .img.contain img { object-fit: contain; padding: 10px; }
.catalog-grid .body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.catalog-grid .role { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.catalog-grid .t { font-size: 14px; line-height: 1.42; font-weight: 500; color: var(--ink); flex: 1; }
.catalog-grid .p { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.catalog-grid .c { font-size: 13px; color: var(--muted); }
.catalog-grid .go { font-size: 13.5px; font-weight: 500; color: var(--green); }
@media (max-width: 640px) { .catalog-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .catalog-grid .body { padding: 10px; } .catalog-grid .t { font-size: 13.5px; } }

.sources { padding: 18px 0 8px; border-top: 1px solid var(--line); }
.sources-title { font-size: 26px; margin-bottom: 8px; }
.sources ul { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.sources a { color: var(--green); text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; margin-top: 24px; padding: 18px 0 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot p { margin: 0; max-width: 80ch; line-height: 1.55; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.more-row { display: flex; justify-content: center; margin-top: 16px; }

@media (max-width: 640px) {
  .stepper { gap: 3px; }
  .stepper button { padding: 6px 6px; }
  .stepper button .w { display: none; }
  .bill-total .amount { font-size: 38px; }
}
/* Links inside running text get a 44px-tall hit area without changing the line layout. */
.caption a, .lab-note a, .step-body p a, .fine a, .bill-meta a, .readout a { padding-block: 12px; }
@media (max-width: 640px) { .stage-chip > span:not(.chip-k) { display: none; } .stage-chip { padding: 6px 10px; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.seg-wide button small { display: block; font-size: 13px; font-weight: 400; opacity: .85; }
.choice small, .mode-grid button small { font-size: 13px; }
