/* The Creature Corner, P08-01 Opus remake guide.
   Brand tokens from thecreaturecorner.com. Local assets only. */

@font-face {
  font-family: "DynaPuff";
  src: url("../fonts/dynapuff-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sacramento";
  src: url("../fonts/sacramento-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #FF7828;
  --orange-hover: #F36B1B;
  --tint: #FFF0E5;
  --accent: #A33D00;
  --ink: #292522;
  --muted: #625D58;
  --paper: #FAFAF8;
  --soft: #F0EEEA;
  --line: #D7D3CE;
  --white: #FFFFFF;
  --check-bg: #EEF3EC;
  --check-line: #5F7D59;
  --check-ink: #2C4428;
  --caution-bg: #FFF6EF;
  --font-display: "DynaPuff", "Trebuchet MS", sans-serif;
  --font-script: "Sacramento", "Brush Script MT", cursive;
  --font-body: Inter, "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(41, 37, 34, .05), 0 10px 30px rgba(41, 37, 34, .07);
  --bar-h: 56px;
  --gutter: 24px;
  --wrap: 1240px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 16px); }
html:has(body.page-review) { scroll-padding-top: 20px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.05rem, 1.3rem + 3vw, 3.25rem); }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.6vw, 2.35rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); }
h4 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
code { font-size: .9em; background: var(--soft); padding: .1em .35em; border-radius: 4px; overflow-wrap: anywhere; }
kbd { font: 600 .8em/1 var(--font-body); background: var(--white); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: .2em .45em; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.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; }
.fr { white-space: nowrap; font-variant-numeric: normal; }
.fr sup, .fr sub { font-size: .68em; line-height: 0; position: relative; vertical-align: baseline; }
.fr sup { top: -.42em; }
.fr sub { bottom: 0; }
.script { font-family: var(--font-script); font-weight: 400; color: var(--accent); font-size: 1.35em; letter-spacing: 0; line-height: .8; white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 6px; z-index: 100; font-weight: 600; }
.skip-link:focus { top: 12px; color: var(--white); }
main:focus { outline: none; }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 10px 20px; border-radius: 4px; border: 1.5px solid transparent;
  font-weight: 650; font-size: .98rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn .ico { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: var(--orange-hover); color: var(--ink); }
.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--tint); color: var(--ink); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink); padding: 0; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn .ico { width: 20px; height: 20px; }
.link-button { background: none; border: 0; padding: 4px 2px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; font-size: .9rem; min-height: 32px; }

/* ---------- header (mirrors the live site) */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 96px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand-icon { width: 56px; height: 56px; border-radius: 50%; }
.brand-words { font: 600 1.42rem/0.98 var(--font-display); width: 7.5em; letter-spacing: -.01em; }
.brand-words em { font-style: normal; color: var(--accent); display: block; }
.preview-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; min-height: 36px;
  background: var(--tint); color: var(--accent); border: 1px solid #F6C9A8; border-radius: 999px;
  font-size: .82rem; font-weight: 650; text-decoration: none; white-space: nowrap;
}
.preview-badge:hover { background: #FFE3CF; color: var(--ink); }
.preview-badge .ico { width: 15px; height: 15px; }
.nav { margin-left: auto; display: flex; gap: 28px; align-items: center; }
.nav-link { color: var(--ink); text-decoration: none; font-size: 1rem; padding: 10px 0; }
.nav-link:hover { color: var(--accent); text-decoration: underline; }
.nav-link.is-current { color: var(--accent); font-weight: 650; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--orange); }
.menu-button { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); padding: 0; place-items: center; }
.menu-button .ico { width: 24px; height: 24px; }
@media (max-width: 999px) {
  .header-inner { min-height: 76px; flex-wrap: wrap; gap: 12px; }
  .brand-icon { width: 46px; height: 46px; }
  .brand-words { font-size: 1.2rem; }
  .menu-button { display: inline-grid; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0 0 12px; border-top: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .nav-link { padding: 12px 4px; border-bottom: 1px solid var(--soft); }
}
.badge-short { display: none; }
@media (max-width: 479px) {
  :root { --gutter: 16px; }
  .preview-badge span { font-size: .76rem; }
  .preview-badge { padding: 5px 10px; min-height: 34px; }
  .badge-long { display: none; }
  .badge-short { display: inline; }
  .brand-words { font-size: 1.05rem; width: 6.9em; }
  .brand-icon { width: 40px; height: 40px; }
  .wordmark { gap: 8px; }
  .header-inner { gap: 8px; min-height: 68px; }
  .menu-button { width: 44px; height: 44px; }
}
@media (max-width: 419px) { .preview-badge .ico { display: none; } .brand-words { font-size: 1rem; } .preview-badge { padding: 5px 9px; } }

/* ---------- sample banner */
.sample-banner { background: #FFF8E6; border-bottom: 1px solid #EBD9A8; color: #5C4A12; font-size: .9rem; padding: 8px 0; }

/* ---------- guide bar */
.guide-bar { position: sticky; top: 0; z-index: 40; background: rgba(250, 250, 248, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.guide-bar-inner { display: flex; align-items: center; gap: 16px; min-height: var(--bar-h); }
.guide-sections { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; }
.guide-sections::-webkit-scrollbar { display: none; }
.guide-sections a { white-space: nowrap; text-decoration: none; color: var(--muted); font-size: .92rem; font-weight: 550; padding: 8px 12px; border-radius: 999px; min-height: 40px; display: inline-flex; align-items: center; }
.guide-sections a:hover { color: var(--ink); background: var(--soft); }
.guide-sections a.is-active { color: var(--ink); background: var(--tint); box-shadow: inset 0 0 0 1px #F6C9A8; }
.guide-progress { display: flex; align-items: center; gap: 12px; flex: none; font-size: .9rem; color: var(--muted); }
.guide-current { white-space: nowrap; color: var(--ink); }
.guide-current b { font-family: var(--font-display); font-weight: 600; }
.progress { width: 96px; height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.progress-bar { display: block; height: 100%; width: 0; background: var(--orange); border-radius: 99px; transition: width .3s; }
.progress-text { white-space: nowrap; }
.btn-contents { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px; background: var(--ink); color: var(--white); border: 0; font-weight: 600; font-size: .9rem; }
.btn-contents:hover { background: #3E3833; }
.btn-contents[aria-expanded="true"] { background: var(--accent); }
.contents-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 18px 40px rgba(41, 37, 34, .14); max-height: calc(100vh - var(--bar-h) - 20px); overflow: auto; overscroll-behavior: contain; }
.contents-inner { padding-top: 20px; padding-bottom: 24px; }
.toc-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.toc-quick a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .9rem; min-height: 40px; display: inline-flex; align-items: center; }
.toc-quick a:hover { border-color: var(--ink); }
.toc-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px 28px; }
.toc-phase { font: 500 1.02rem/1.2 var(--font-display); margin: 0 0 8px; display: flex; gap: 8px; align-items: center; }
.toc-phase span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--tint); color: var(--accent); font-size: .85rem; }
.toc-groups ol { list-style: none; }
.toc-groups a { display: grid; grid-template-columns: 30px 1fr 20px; gap: 6px; align-items: start; padding: 7px 6px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .92rem; line-height: 1.35; min-height: 40px; }
.toc-groups a:hover { background: var(--soft); }
.toc-groups a.is-current { background: var(--tint); }
.toc-n { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.toc-done { color: var(--check-line); visibility: hidden; }
.toc-done .ico { width: 18px; height: 18px; }
a.is-done .toc-done { visibility: visible; }
@media (max-width: 899px) {
  .guide-sections { display: none; }
  .guide-bar-inner { justify-content: space-between; }
  .guide-progress { width: 100%; justify-content: space-between; }
}
@media (max-width: 419px) {
  .progress { width: 56px; }
  .guide-progress { gap: 8px; font-size: .84rem; }
  .btn-contents { padding: 6px 12px; }
}

/* ---------- breadcrumb */
.breadcrumb { padding-top: 22px; font-size: .92rem; color: var(--muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line); }

/* ---------- hero */
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 650; color: var(--accent); margin: 0 0 12px; }
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "gallery title" "gallery body" "note body"; grid-template-rows: auto auto 1fr; gap: 8px 52px; padding-top: 26px; padding-bottom: 40px; align-items: start; }
.hero-note { grid-area: note; margin-top: 4px; }
.hero-title { grid-area: title; align-self: end; padding-top: 12px; }
.hero-gallery { grid-area: gallery; }
.hero-body { grid-area: body; }
.hero h1 { margin-bottom: .3em; font-size: clamp(2rem, 1.35rem + 2.2vw, 2.9rem); }
.title-code { display: block; font-size: .5em; letter-spacing: .02em; color: var(--accent); margin-bottom: .18em; }
.title-sep { display: none; }
.hero-dims { font: 500 1.2rem/1.3 var(--font-display); color: var(--ink); margin: 0 0 6px; }
.hero-sub { color: var(--muted); margin-bottom: 0; }
.lede { font-size: 1.1rem; line-height: 1.65; color: #403B37; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.hero-downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dl { display: flex; gap: 10px; align-items: center; padding: 10px 14px; min-height: 56px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); text-decoration: none; color: var(--ink); }
.dl:hover { border-color: var(--ink); color: var(--ink); }
.dl .ico { width: 22px; height: 22px; color: var(--accent); }
.dl span { display: flex; flex-direction: column; line-height: 1.25; }
.dl strong { font-size: .95rem; }
.dl small { color: var(--muted); font-size: .8rem; }
.revision-note { margin-top: 18px; font-size: .86rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 12px; }
.gallery-main { margin: 0; }
.gallery-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #F2F0EC; box-shadow: var(--shadow); aspect-ratio: var(--ar, 3 / 2); }
.gallery-frame .gallery-zoom { display: block; width: 100%; height: 100%; border-radius: 0; }
.gallery-frame img, .gallery-frame .ph { width: 100%; height: 100%; object-fit: contain; }
.gallery-caption { font-size: .88rem; color: var(--muted); margin-top: 10px; min-height: 1.4em; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.thumb { position: relative; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--soft); aspect-ratio: 3 / 2; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-ph { display: grid; place-items: center; height: 100%; color: var(--muted); }
.thumb-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 5px; font-size: .74rem; font-weight: 650; color: var(--white); background: linear-gradient(transparent, rgba(41, 37, 34, .78)); text-align: left; line-height: 1.2; }
.thumb[aria-pressed="true"] { border-color: var(--orange); }
.thumb:hover { border-color: var(--line); }
.thumb[aria-pressed="true"]:hover { border-color: var(--orange-hover); }
@media (min-width: 1000px) and (max-width: 1279px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 40px; }
}
@media (max-width: 999px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "gallery" "body" "note"; grid-template-rows: none; gap: 18px; padding-top: 14px; }
  .hero-note { margin-top: 0; }
  .hero-title { padding-top: 0; }
}
@media (max-width: 559px) {
  .gallery-thumbs { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
  .thumb { flex: 0 0 104px; scroll-snap-align: start; }
  .thumb-label { font-size: .72rem; padding: 12px 6px 5px; }
  .hero-downloads { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- placeholders */
.ph { display: grid; place-items: center; width: 100%; background: repeating-linear-gradient(135deg, #F3F1ED 0 14px, #EEEBE6 14px 28px); border: 1px dashed var(--line); border-radius: inherit; color: var(--muted); text-align: center; }
.ph-inner { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px; }
.ph-ico { width: 34px; height: 34px; opacity: .7; }
.ph-title { font-weight: 650; font-size: .92rem; }
.ph-name { font-size: .78rem; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }

/* ---------- sections */
.section { padding-top: 64px; }
.section > h2, .steps-intro h2 { margin-bottom: .35em; }
.section-intro { color: var(--muted); max-width: 68ch; font-size: 1.04rem; }
.sub { margin-top: 44px; }
.sub-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 18px; }
.sub-intro { color: var(--muted); max-width: 70ch; }

/* ---------- at a glance + scope */
.glance-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
.glance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
@media (min-width: 980px) { .glance-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.glance-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.glance-item dt { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 650; color: var(--muted); margin-bottom: 6px; }
.glance-item dd { margin: 0; display: flex; flex-direction: column; gap: 3px; }
.glance-value { font-weight: 700; font-size: 1.08rem; line-height: 1.3; }
.glance-note { font-size: .86rem; color: var(--muted); line-height: 1.4; }
.scope-box { background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--orange); border-radius: var(--radius); padding: 20px 22px; }
.scope-title { font-size: 1.3rem; display: flex; gap: 10px; align-items: center; }
.scope-title .ico { color: var(--accent); width: 1.1em; height: 1.1em; }
.scope-box ul { list-style: none; display: grid; gap: 10px 36px; }
@media (min-width: 900px) { .scope-box ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } .scope-box { padding: 22px 28px 24px; } }
.scope-box li { position: relative; padding-left: 20px; font-size: .96rem; line-height: 1.5; }
.scope-box li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
@media (max-width: 419px) { .glance-grid { gap: 8px; } .glance-item { padding: 12px; } .glance-value { font-size: .98rem; } .glance-note { font-size: .82rem; } }

/* ---------- plan ahead */
.plan-grid { list-style: none; display: grid; gap: 0; margin-top: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.plan-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 16px; padding: 18px 22px; }
.plan-card + .plan-card { border-top: 1px solid var(--soft); }
.plan-card h3 { font-size: 1.12rem; margin: 5px 0 0; grid-column: 2; }
.plan-card p { margin: 0; color: #403B37; font-size: .98rem; grid-column: 2; max-width: 76ch; }
.plan-num { grid-row: 1 / span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tint); color: var(--accent); font: 600 1.15rem/1 var(--font-display); }
@media (min-width: 900px) {
  .plan-card { grid-template-columns: 44px minmax(200px, 300px) minmax(0, 1fr); gap: 0 26px; align-items: start; padding: 20px 26px; }
  .plan-card h3, .plan-card p { grid-column: auto; }
  .plan-num { grid-row: auto; }
}

/* ---------- tools, shopping */
.tools-grid { columns: 4 250px; column-gap: 14px; margin-top: 12px; }
.tool-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; break-inside: avoid; margin-bottom: 14px; display: block; width: 100%; }
.tool-card h4 { font-size: 1.02rem; display: flex; gap: 8px; align-items: center; }
.ppe-card { background: var(--caution-bg); border-color: #F4C7A4; }
.ppe-card h4 .ico { color: var(--accent); }
.ticks { list-style: none; display: grid; gap: 7px; }
.ticks li { position: relative; padding-left: 22px; font-size: .95rem; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: .45em; width: 9px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.shop-progress { color: var(--muted); font-size: .92rem; margin: 0; }
.shop-grid { columns: 3 330px; column-gap: 14px; margin-top: 12px; }
.shop-group { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; break-inside: avoid; margin-bottom: 14px; display: block; width: 100%; }
.shop-group h4 { font-size: 1.02rem; margin-bottom: 8px; }
.checklist { list-style: none; display: grid; gap: 2px; }
.check-row { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; cursor: pointer; padding: 8px 0; min-height: 44px; }
.check-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box { width: 24px; height: 24px; border: 2px solid #9D968F; border-radius: 6px; display: grid; place-items: center; background: var(--white); color: transparent; margin-top: 1px; transition: background .15s, border-color .15s; }
.check-box .ico { width: 16px; height: 16px; stroke-width: 3; }
.check-row input:checked + .check-box, .done-toggle input:checked + .check-box { background: var(--check-line); border-color: var(--check-line); color: var(--white); }
.check-row input:focus-visible + .check-box, .done-toggle input:focus-visible + .check-box { outline: 3px solid var(--orange); outline-offset: 2px; }
.shop-text { display: flex; justify-content: space-between; gap: 12px; }
.shop-name { font-weight: 600; }
.shop-qty { white-space: nowrap; color: var(--accent); font-weight: 650; font-size: .92rem; }
.check-row input:checked ~ .shop-text .shop-name { text-decoration: line-through; text-decoration-color: #9D968F; color: var(--muted); }
.shop-detail { margin: -4px 0 8px 36px; font-size: .84rem; color: var(--muted); line-height: 1.45; }
.shop-item + .shop-item { border-top: 1px solid var(--soft); }
.src-links { white-space: nowrap; }
.src-ref { font-size: .78rem; font-weight: 650; padding: 1px 5px; border-radius: 4px; background: var(--soft); text-decoration: none; }
.src-ref:hover { background: var(--tint); }

/* ---------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin-top: 12px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.data-table th, .data-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--soft); vertical-align: top; }
.data-table thead th { background: #F6F4F1; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table tbody tr:last-child td, .data-table tbody tr:last-child th { border-bottom: 0; }
.data-table tbody tr:hover td { background: #FCFBF9; }
.na { color: #6F6862; }
.fastener-table td:first-child { font-weight: 650; white-space: nowrap; }
.fastener-table td:nth-child(4), .fastener-table td:nth-child(5) { font-variant-numeric: tabular-nums; font-weight: 650; }
.cut-table td:first-child { font-weight: 650; }
.cut-table td:nth-child(2) { font-variant-numeric: tabular-nums; }
.cut-in { display: block; white-space: nowrap; font-weight: 600; }
.cut-mm { display: block; white-space: nowrap; color: var(--muted); font-size: .84rem; }
.cut-table td:nth-child(4) { color: #403B37; }
@media (max-width: 719px) {
  .table-wrap.stack, .fastener-table-wrap { border: 0; background: none; }
  .fastener-table, .cut-table, .ref-table, .compare-table { font-size: .92rem; }
  .fastener-table thead, .cut-table thead, .compare-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fastener-table tr, .cut-table tr, .compare-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; padding: 12px 14px; border-bottom: 1px solid var(--soft); }
  .fastener-table td, .cut-table td, .compare-table td, .compare-table th { display: block; padding: 2px 0; border: 0; white-space: normal !important; }
  .fastener-table td::before, .cut-table td::before, .compare-table td::before { content: attr(data-label); display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
  .fastener-table td:first-child, .cut-table td:first-child, .compare-table th { grid-column: 1 / -1; font-size: 1rem; }
  .fastener-table td:first-child::before, .cut-table td:first-child::before { display: none; }
  .cut-table td:nth-child(4) { grid-column: 1 / -1; }
  .fastener-table td:nth-child(3) { grid-column: 1 / -1; }
  .compare-table td { grid-column: 1 / -1; }
}

/* ---------- cut list */
.cut-groups { columns: 2 540px; column-gap: 14px; margin-top: 12px; }
.cut-group { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); break-inside: avoid; margin-bottom: 12px; display: block; width: 100%; vertical-align: top; }
.cut-group > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; min-height: 52px; }
.cut-group > summary::-webkit-details-marker { display: none; }
.cut-group > summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .2s; flex: none; }
.cut-group[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.cut-group-title { font: 500 1.06rem/1.25 var(--font-display); margin-right: auto; }
.cut-group-count { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.cut-note { padding: 0 18px; color: var(--muted); font-size: .92rem; margin: 0 0 8px; }
.cut-group .table-wrap { margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }

/* ---------- figures */
.fig { margin: 0; }
.fig-zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.fig-zoom img { width: 100%; border-radius: inherit; background: var(--soft); transition: transform .35s; }
.fig-zoom-hint { position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: var(--ink); box-shadow: 0 2px 8px rgba(41, 37, 34, .15); opacity: 0; transition: opacity .2s; }
.fig-zoom-hint .ico { width: 20px; height: 20px; }
.fig-zoom:hover .fig-zoom-hint, .fig-zoom:focus-visible .fig-zoom-hint { opacity: 1; }
@media (hover: none) { .fig-zoom-hint { opacity: .9; } }
.fig figcaption { font-size: .86rem; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.fig-diagram .fig-zoom img, .fig-diagram .fig-zoom { background: var(--white); }
.fig-diagram .fig-zoom { border: 1px solid var(--line); }
.fig-diagram .fig-zoom img { padding: 8px; }
.fig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin-top: 14px; }
.fig-card .fig-zoom { background: var(--white); }
.fig .ph { border-radius: var(--radius); min-height: 140px; }
.fig-grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(440px, 100%), 1fr)); gap: 22px; }
@media (max-width: 419px) { .fig-grid { grid-template-columns: 1fr; } }

/* ---------- exploded view */
.exploded-layout { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(220px, 1fr); gap: 24px; align-items: start; margin-top: 14px; }
.exploded { margin: 0; }
.exploded-stage { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--soft); }
.exploded-stage .fig-zoom { border-radius: 0; }
.exploded-canvas { position: relative; }
@media (max-width: 699px) {
  .exploded-stage.has-crop { aspect-ratio: var(--crop-ar); }
  .exploded-stage.has-crop .exploded-canvas { position: absolute; width: calc(100% / var(--cw)); left: calc(-100% * var(--cx) / var(--cw)); top: calc(-100% * var(--cy) / var(--ch)); }
}
.pins { list-style: none; position: absolute; inset: 0; pointer-events: none; }
.pin { position: absolute; transform: translate(-50%, -50%); }
.pin span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--white); font-size: .78rem; font-weight: 700; box-shadow: 0 0 0 3px rgba(255, 255, 255, .85); transition: transform .15s, background .15s; }
.pin.is-active span { background: var(--orange); color: var(--ink); transform: scale(1.25); }
.exploded figcaption { font-size: .86rem; color: var(--muted); margin-top: 8px; }
.exploded-legend { list-style: none; display: grid; gap: 4px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; font-size: .93rem; }
.exploded-legend li { display: flex; gap: 10px; align-items: baseline; padding: 5px 4px; border-radius: 6px; }
.exploded-legend li.is-active { background: var(--tint); }
.exploded-legend .pin-num { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--white); font-size: .72rem; font-weight: 700; }
.exploded-legend:not(.is-numbered) .pin-num { width: 8px; height: 8px; background: var(--orange); margin-top: .1em; }
.legend-id { color: var(--muted); font-size: .84rem; }
@media (max-width: 899px) { .exploded-layout { grid-template-columns: 1fr; } .exploded-legend { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
@media (max-width: 599px) { .pin span { width: 21px; height: 21px; font-size: .68rem; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); } }

/* ---------- steps */
.steps-section { padding-top: 72px; }
.steps-intro { max-width: 820px; }
.steps-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 24px; }
.steps-flow { min-width: 0; }
@media (min-width: 1200px) {
  .steps-layout { grid-template-columns: minmax(0, 1fr) clamp(420px, 41%, 540px); gap: 32px; align-items: start; }
  .steps-flow { grid-column: 1; grid-row: 1; }
  .viewer { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--bar-h) + 14px); height: calc(100vh - var(--bar-h) - 28px); max-height: 940px; min-height: 560px; }
}
.phase + .phase { margin-top: 56px; }
.phase-head { padding: 22px 0 18px; margin-bottom: 18px; border-bottom: 2px solid var(--ink); }
.phase-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.phase-letter { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--white); font: 600 1rem/1 var(--font-display); }
.phase-title { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); margin-bottom: .25em; }
.phase-intro { color: #403B37; margin: 0; max-width: 68ch; }

.step { container-type: inline-size; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 3.2vw, 30px); margin-bottom: 22px; transition: border-color .25s, box-shadow .25s; }
.step.is-current { border-color: #E9C3A6; box-shadow: 0 0 0 3px var(--tint), var(--shadow); }
.step.is-flash { box-shadow: 0 0 0 4px #FFD3B5; }
.step-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 18px; }
.step-num { position: relative; width: 70px; height: 70px; border-radius: 50%; background: var(--tint); color: var(--accent); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.step-num-k { font-size: .62rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; margin-bottom: 2px; }
.step-num-n { font: 600 1.85rem/1 var(--font-display); }
.step-done-badge { position: absolute; right: -4px; bottom: -4px; width: 26px; height: 26px; border-radius: 50%; background: var(--check-line); color: var(--white); display: none; place-items: center; box-shadow: 0 0 0 3px var(--white); }
.step-done-badge .ico { width: 15px; height: 15px; stroke-width: 3; }
.step.is-done .step-done-badge { display: grid; }
.step.is-done .step-num { background: var(--check-bg); color: var(--check-ink); }
/* narrow cards: number and title share the first row; the summary and chips use the full width */
@container (max-width: 520px) {
  .step-head { column-gap: 14px; row-gap: 0; }
  .step-headtext { display: contents; }
  .step-num { grid-column: 1; grid-row: 1 / span 2; width: 58px; height: 58px; align-self: center; }
  .step-num-n { font-size: 1.6rem; }
  .step-kicker { grid-column: 2; grid-row: 1; align-self: end; }
  .step-title { grid-column: 2; grid-row: 2; margin-bottom: 0; }
  .step-summary { grid-column: 1 / -1; margin-top: 12px; }
  .step-head .chips { grid-column: 1 / -1; }
  .step-foot { gap: 10px; }
  .step-foot > * { flex: 1 1 auto; justify-content: center; }
}
.step-kicker { margin: 4px 0 4px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.step-title { font-size: clamp(1.32rem, 1.1rem + .9vw, 1.7rem); margin-bottom: .35em; }
.step-summary { font-size: 1.04rem; color: #403B37; margin-bottom: 10px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: .86rem; line-height: 1.3; }
.chip .ico { width: 17px; height: 17px; }
.chip-k { font-weight: 700; }
.chip-helper { background: #EEF1F5; color: #2E3B4E; }
.chip-wait { background: #F7F0DC; color: #594611; }
.chip-draft { background: var(--soft); color: var(--muted); font-weight: 650; }
.step-grid { display: grid; gap: 22px; }
@container (min-width: 820px) {
  .step-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: start; gap: 28px; }
  .step-visuals { position: sticky; top: calc(var(--bar-h) + 20px); }
}
.step-visuals { display: grid; gap: 12px; }
.fig-thumbs { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@container (min-width: 520px) { .fig-thumbs.n-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fig-thumbs.n-1 { grid-template-columns: minmax(0, 1fr); }
.fig-thumbs.n-1 .fig-small.fig-diagram .fig-zoom img { max-height: min(520px, 70vh); }
/* a single secondary render keeps its own proportions, so no letterbox bars show beside it */
.fig-thumbs.n-1 .fig-small.fig-render .fig-zoom img { max-height: none; }
.fig-small figcaption { font-size: .8rem; margin-top: 5px; }
.fig-small .fig-zoom img { max-height: 220px; object-fit: contain; }
.fig-small .ph { min-height: 100px; }
.fig-small .ph-ico { width: 24px; height: 24px; }
.step-body { min-width: 0; }
.step-needs { display: grid; gap: 14px; padding: 14px 16px; background: #F8F7F4; border-radius: var(--radius); margin-bottom: 18px; }
.needs-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--muted); margin: 0 0 6px; }
.part-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.part-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 5px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .88rem; line-height: 1.25; text-align: left; }
button.part-chip { border-bottom: 1px dashed #B0A89F; }
button.part-chip:hover, button.part-chip[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); background: var(--tint); }
.part-chip.is-static { color: #403B37; }
@media (pointer: coarse) {
  .part-chip { min-height: 44px; }
  .wordmark, .btn-contents, .link-button, .footer-links a, .toc-quick a, .toc-groups a, .guide-sections a { min-height: 44px; }
  .link-button { display: inline-flex; align-items: center; }
  .preview-badge { position: relative; }
  .preview-badge::after { content: ""; position: absolute; inset: -6px -2px; }
}
.fx-list { list-style: none; display: grid; gap: 6px; }
.fx-list li { display: grid; grid-template-columns: 48px 1fr; gap: 8px; align-items: baseline; font-size: .93rem; }
.fx-count { font: 600 1.05rem/1 var(--font-display); color: var(--accent); text-align: right; }
.fx-body { display: flex; flex-direction: column; }
.fx-size { font-weight: 650; }
.fx-where { color: var(--muted); font-size: .88rem; line-height: 1.4; }
.actions { list-style: none; counter-reset: act; display: grid; gap: 12px; margin: 0 0 18px; }
.actions > li { counter-increment: act; position: relative; padding-left: 44px; line-height: 1.55; }
.actions > li::before { content: counter(act); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font: 600 .92rem/1 var(--font-display); }
.callout { border-radius: var(--radius); padding: 12px 16px 12px; margin: 0 0 14px; font-size: .96rem; }
.callout p { margin: 0; }
.callout-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px !important; }
.callout-title .ico { width: 18px; height: 18px; }
.callout-check { background: var(--check-bg); border-left: 4px solid var(--check-line); color: var(--check-ink); }
.callout-caution { background: var(--caution-bg); border: 2px solid var(--orange); color: #3B2A1F; }
.callout-caution .callout-title { color: var(--accent); }
.callout-tip { background: var(--soft); color: #3F3A35; }
.opus-change { font-size: .88rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; margin: 16px 0 0; }
.opus-tag { display: inline-flex; align-items: center; gap: 5px; background: var(--tint); color: var(--accent); font-weight: 700; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; margin-right: 4px; }
.opus-tag .ico { width: 13px; height: 13px; }
.ref-details { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #FCFBF9; }
.ref-details > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; min-height: 52px; }
.ref-details > summary::-webkit-details-marker { display: none; }
.ref-details > summary > .ico { color: var(--accent); width: 22px; height: 22px; }
.ref-details > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); margin: -4px 4px 0 auto; transition: transform .2s; flex: none; }
.ref-details[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.ref-sum { display: flex; flex-direction: column; line-height: 1.3; }
.ref-kicker { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--muted); }
.ref-title { font-weight: 650; font-size: .96rem; }
.ref-body { padding: 0 16px 16px; font-size: .92rem; }
.ref-body > p { color: var(--muted); }
.ref-body .table-wrap { margin-top: 6px; }
.ref-table { font-size: .88rem; }
.ref-table td { font-variant-numeric: tabular-nums; }
.ref-notes { list-style: disc; padding-left: 20px; margin-top: 10px; color: var(--muted); display: grid; gap: 4px; }
.step-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--soft); }
.done-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 14px 6px 10px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; font-weight: 650; font-size: .95rem; background: var(--white); }
.done-toggle:hover { border-color: var(--check-line); }
.done-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.step.is-done .done-toggle { background: var(--check-bg); border-color: var(--check-line); color: var(--check-ink); }
.btn-view3d .ico { color: var(--accent); }
.step-ref { font-weight: 600; }

/* ---------- viewer */
.viewer { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); min-width: 0; }
.viewer:focus { outline: none; }
.viewer.is-flash { box-shadow: 0 0 0 4px #FFD3B5, var(--shadow); }
.viewer-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--soft); flex-wrap: wrap; }
.viewer-headtext { flex: 1 1 200px; min-width: 0; }
.viewer-title { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-family: var(--font-body); font-weight: 700; color: var(--muted); display: flex; gap: 6px; align-items: center; margin: 0 0 2px; }
.viewer-title .ico { color: var(--accent); width: 16px; height: 16px; }
.viewer-step { margin: 0; font-size: .98rem; line-height: 1.3; }
.viewer-step-n { font-family: var(--font-display); font-weight: 600; color: var(--accent); white-space: nowrap; }
.viewer-step-t { font-weight: 600; }
.viewer-back { font-size: .88rem; white-space: nowrap; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; cursor: pointer; min-height: 40px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { position: relative; width: 38px; height: 22px; border-radius: 99px; background: #BDB6AE; transition: background .15s; flex: none; }
.switch-track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.switch input:checked + .switch-track { background: var(--accent); }
.switch input:checked + .switch-track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--orange); outline-offset: 2px; }
@media (max-width: 1199px) { .viewer-follow { display: none; } }
.viewer-stage { position: relative; flex: 1 1 auto; min-height: 260px; background: radial-gradient(120% 95% at 50% 30%, #FDFCFA 0%, #EFEBE5 55%, #DDD6CC 100%); overflow: hidden; touch-action: none; }
.viewer-stage:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; border-radius: 0; }
@media (max-width: 1199px) { .viewer-stage { flex: none; aspect-ratio: 4 / 3; max-height: 70vh; } }
@media (max-width: 559px) { .viewer-stage { aspect-ratio: 1 / 1; } }
.viewer-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.viewer-poster { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; }
.viewer-poster-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: saturate(.8); }
.viewer-poster-cta { position: relative; text-align: center; padding: 18px 20px; background: rgba(255, 255, 255, .92); border-radius: 14px; box-shadow: var(--shadow); max-width: 88%; }
.viewer-poster-note { margin: 8px 0 0; font-size: .82rem; color: var(--muted); }
.viewer.is-loaded .viewer-poster { display: none; }
.viewer.is-loading .viewer-poster-cta { visibility: hidden; }
.viewer.is-fallback .viewer-poster-img { opacity: 1; filter: none; object-fit: contain; background: var(--soft); }
.viewer.is-fallback .viewer-poster-cta { position: absolute; left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 10px 14px; text-align: left; }
.viewer.is-fallback .viewer-load, .viewer.is-fallback .viewer-toggles, .viewer.is-fallback .viewer-keys { display: none; }
.viewer-status { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; background: rgba(255, 255, 255, .95); border-radius: 12px; padding: 12px 18px; font-size: .9rem; font-weight: 600; box-shadow: var(--shadow); min-width: 200px; text-align: center; }
.viewer-status:empty { display: none; }
.viewer-status .bar { display: block; height: 6px; background: var(--soft); border-radius: 99px; margin-top: 8px; overflow: hidden; }
.viewer-status .bar span { display: block; height: 100%; background: var(--orange); width: 0; transition: width .2s; }
.viewer-empty { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; padding: 24px; text-align: center; pointer-events: none; }
.viewer-empty p { max-width: 34ch; background: rgba(255, 255, 255, .9); padding: 14px 18px; border-radius: 12px; font-size: .92rem; color: #403B37; margin: 0; }
.viewer-empty[hidden] { display: none; }
.viewer-info { position: absolute; left: 12px; bottom: 12px; z-index: 4; width: min(320px, calc(100% - 24px)); background: rgba(255, 255, 255, .97); border: 1px solid var(--line); border-radius: 12px; padding: 12px 40px 12px 14px; box-shadow: var(--shadow); font-size: .88rem; }
.viewer-info[hidden] { display: none; }
.viewer-info-close { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border: 0; background: none; display: grid; place-items: center; border-radius: 50%; }
.viewer-info-close:hover { background: var(--soft); }
.viewer-info-close .ico { width: 18px; height: 18px; }
.viewer-info-kicker { margin: 0; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--accent); }
.viewer-info-title { margin: 2px 0 6px; font-weight: 700; font-size: .98rem; line-height: 1.3; }
.viewer-info-list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; }
.viewer-info-list dt { color: var(--muted); }
.viewer-info-list dd { margin: 0; font-weight: 550; }
.viewer-hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); white-space: nowrap; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; z-index: 1; margin: 0; font-size: .76rem; color: var(--muted); background: rgba(255, 255, 255, .8); padding: 4px 10px; border-radius: 99px; pointer-events: none; transition: opacity .4s; }
.viewer:not(.is-loaded) .viewer-hint, .viewer.is-interacted .viewer-hint { opacity: 0; }
.hint-touch { display: none; }
@media (pointer: coarse) { .hint-fine { display: none; } .hint-touch { display: inline; } }
.viewer-legend { position: absolute; left: 12px; top: 10px; z-index: 1; margin: 0; display: flex; flex-wrap: wrap; row-gap: 2px; max-width: calc(100% - 24px); align-items: center; gap: 6px; font-size: .76rem; font-weight: 650; background: rgba(255, 255, 255, .85); padding: 4px 10px; border-radius: 99px; pointer-events: none; }
.viewer-legend[hidden] { display: none; }
.swatch { width: 12px; height: 12px; border-radius: 3px; background: var(--orange); box-shadow: 0 0 0 2px #FFD3B5; }
.viewer-legend-screws { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; }
.viewer-legend-screws[hidden] { display: none; }
.viewer-legend.is-all .swatch { display: none; }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 2px var(--white), 0 0 0 3px var(--ink); }
.viewer-controls { padding: 12px 14px 14px; border-top: 1px solid var(--soft); display: grid; gap: 10px; background: var(--white); }
.viewer-stepper { display: grid; grid-template-columns: 44px 1fr 44px; gap: 10px; align-items: center; }
.viewer-range, .explode-control input { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0; }
.viewer-range::-webkit-slider-runnable-track, .explode-control input::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--orange) var(--fill, 0%), var(--soft) var(--fill, 0%)); box-shadow: inset 0 0 0 1px var(--line); }
.viewer-range::-moz-range-track, .explode-control input::-moz-range-track { height: 6px; border-radius: 99px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.viewer-range::-moz-range-progress, .explode-control input::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--orange); }
.viewer-range::-webkit-slider-thumb, .explode-control input::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--white); border: 2px solid var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.viewer-range::-moz-range-thumb, .explode-control input::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 2px solid var(--ink); }
.viewer-range:focus-visible, .explode-control input:focus-visible { outline: 3px solid var(--orange); outline-offset: 0; border-radius: 8px; }
.viewer-toggles { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tog { min-height: 40px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: .85rem; font-weight: 600; color: #403B37; }
.tog:hover { border-color: var(--ink); }
.tog[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.tog[disabled], .tog[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.tog[aria-disabled="true"]:hover { border-color: var(--line); }
.tog-plain { background: var(--soft); border-color: var(--soft); }
.explode-control { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; padding: 0 6px 0 12px; border: 1px solid var(--line); border-radius: 999px; min-height: 40px; flex: 1 1 170px; }
.explode-control input { height: 38px; min-width: 90px; }
@media (pointer: coarse) { .tog, .explode-control { min-height: 44px; } .explode-control input { height: 44px; } }
.viewer-keys { font-size: .84rem; color: var(--muted); }
.viewer-keys summary { cursor: pointer; font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
.viewer-keys ul { list-style: none; display: grid; gap: 4px; margin-top: 6px; }
@media (max-width: 1199px) { .viewer-keys { display: none; } }
@media (min-width: 1200px) and (max-height: 760px) { .viewer-keys { display: none; } .viewer-head { padding: 8px 14px; } }

/* ---------- after build, reference, sources */
.after-grid { display: grid; gap: 18px; margin-top: 18px; }
.after-card { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 28px); }
.after-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.after-split .actions { margin: 0; }
.after-figs { display: grid; gap: 14px; }
.after-card .checklist { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); column-gap: 24px; }
@media (max-width: 799px) { .after-split { grid-template-columns: 1fr; } }
.ref-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 14px; }
.ref-item { min-width: 0; }
.ref-item .ref-details { margin: 0; background: var(--white); }
.sources { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 8px 24px; margin-top: 14px; }
.sources li { display: grid; grid-template-columns: 38px 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--soft); font-size: .93rem; line-height: 1.4; }
.sources li:target { background: var(--tint); border-radius: 8px; }
.src-id { font-weight: 700; color: var(--accent); }
.src-host { display: block; font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 419px) { .sources { grid-template-columns: 1fr; } }

/* ---------- footer */
.site-footer { margin-top: 88px; background: var(--white); border-top: 1px solid var(--line); padding: 40px 0 28px; }
.footer-top { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer-wordmark img { width: 96px; height: 96px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; }
.footer-bottom { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--soft); font-size: .88rem; color: var(--muted); display: grid; gap: 4px; }
.footer-bottom p { margin: 0; }

/* ---------- part tooltip */
.part-tip { position: fixed; z-index: 60; max-width: min(340px, calc(100vw - 24px)); background: var(--ink); color: var(--white); font-size: .84rem; line-height: 1.45; padding: 10px 12px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); pointer-events: none; }
.tip-part { display: block; }
.tip-part + .tip-part { margin-top: 7px; padding-top: 7px; border-top: 1px solid rgba(255, 255, 255, .16); }
.tip-part strong { display: block; font-weight: 650; }
.tip-line { display: block; color: #E6E1DB; }
.tip-mm { color: #BDB6AE; white-space: nowrap; }
.part-tip[hidden] { display: none; }

/* ---------- lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(30, 27, 25, .88); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 56px 64px 40px; }
.lightbox-fig { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 100%; max-height: 100%; }
.lightbox-img { max-width: min(1500px, 100%); max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; background: var(--white); border-radius: 10px; }
.lightbox-caption { color: #EFEAE5; margin-top: 12px; font-size: .95rem; text-align: center; max-width: 80ch; }
.lightbox-close { position: absolute; right: 14px; top: 12px; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-prev[hidden], .lightbox-next[hidden] { display: none; }
.lightbox-open { position: absolute; left: 16px; top: 18px; color: #EFEAE5; font-size: .88rem; }
.lightbox-open:hover { color: var(--white); }
@media (max-width: 599px) { .lightbox-inner { padding: 60px 10px 60px; } .lightbox-prev, .lightbox-next { top: auto; bottom: 8px; transform: none; } }

/* ---------- review page */
.review-hero { padding-top: 26px; padding-bottom: 8px; max-width: 980px; margin-left: 0; }
@media (min-width: 1240px) { .review-hero { margin-left: calc((100vw - var(--wrap)) / 2); } }
.review-summary { font-size: 1.08rem; color: #403B37; max-width: 72ch; }
.review-stats { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 10px; max-width: 760px; }
.review-stats li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; }
.review-stats b { font: 600 1.8rem/1 var(--font-display); color: var(--accent); }
.review-stats span { font-size: .86rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 599px) { .review-stats { grid-template-columns: 1fr 1fr; } }
.cmp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(520px, 100%), 1fr)); gap: 22px; margin-top: 16px; }
.cmp { margin: 0; }
.cmp-stage { position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius-lg); overflow: hidden; background: var(--soft); border: 1px solid var(--line); --pos: 50%; }
.cmp-stage img, .cmp-stage .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cmp-before-wrap { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); background: #F3F1EC; }
.cmp-divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--white); box-shadow: 0 0 0 1px rgba(41, 37, 34, .25); pointer-events: none; }
.cmp-divider span { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: var(--white); border: 2px solid var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.cmp-divider span::before, .cmp-divider span::after { content: ""; position: absolute; top: 50%; width: 7px; height: 7px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); margin-top: -4px; }
.cmp-divider span::before { left: 9px; transform: rotate(45deg); }
.cmp-divider span::after { right: 9px; transform: rotate(-135deg); }
.cmp-tag { position: absolute; top: 10px; padding: 4px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; pointer-events: none; }
.cmp-tag-before { left: 10px; background: rgba(255, 255, 255, .9); color: var(--ink); }
.cmp-tag-after { right: 10px; background: var(--ink); color: var(--white); }
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.cmp-range:focus-visible + * { outline: none; }
.cmp-stage:focus-within { box-shadow: 0 0 0 3px var(--orange); }
.cmp figcaption { margin-top: 8px; font-size: .92rem; font-weight: 600; }
.compare-table th[scope="row"] { font-weight: 700; white-space: nowrap; }
.corr-list { display: grid; gap: 16px; margin-top: 14px; }
.corr { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(16px, 3vw, 26px); }
.corr header { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.corr header h3 { margin: 0; font-size: 1.2rem; }
.corr-id { flex: none; font: 600 .95rem/1 var(--font-display); background: var(--tint); color: var(--accent); padding: 8px 10px; border-radius: 8px; }
.corr-grid { display: grid; gap: 20px; }
.corr-grid.has-fig { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 899px) { .corr-grid.has-fig { grid-template-columns: 1fr; } }
.corr-dl { margin: 0; display: grid; gap: 12px; }
.corr-dl dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--muted); }
.corr-dl dd { margin: 2px 0 0; font-size: .96rem; }
.findings { list-style: none; display: grid; gap: 10px; margin-top: 14px; }
.finding { display: grid; grid-template-columns: 86px 1fr; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.finding p { margin: 0; font-size: .95rem; }
.finding-title { font-weight: 700; margin-bottom: 4px !important; }
.sev { align-self: start; text-align: center; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 8px; border-radius: 99px; background: var(--soft); color: var(--muted); }
.sev-high { background: #FBE3D6; color: #8A2E00; }
.sev-medium { background: #F7F0DC; color: #594611; }
.sev-low { background: #EEF1F5; color: #2E3B4E; }
@media (max-width: 479px) { .finding { grid-template-columns: 1fr; gap: 6px; } .sev { justify-self: start; } }
.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 14px; }
.rec { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.rec.is-owner { border-top: 4px solid var(--orange); }
.rec header { display: flex; justify-content: space-between; gap: 10px; align-items: start; margin-bottom: 8px; }
.rec h3 { font-size: 1.05rem; margin: 0; }
.rec p { font-size: .93rem; margin: 0 0 6px; }
.owner-tag, .plain-tag { flex: none; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 9px; border-radius: 99px; white-space: nowrap; }
.owner-tag { background: var(--tint); color: var(--accent); }
.plain-tag { background: var(--soft); color: var(--muted); }
@media (max-width: 419px) { .rec-grid { grid-template-columns: 1fr; } }
.questions { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 10px; margin-top: 14px; }
.questions li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.questions li p { margin: 0; }
.q-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.q-id { font: 600 .95rem/1 var(--font-display); color: var(--accent); }
.q-by { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--soft); padding: 3px 8px; border-radius: 99px; }
.pres-box { background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--check-line); border-radius: var(--radius); padding: 18px 22px; max-width: 88ch; }
.pres-meta { font-size: .88rem; color: var(--muted); margin: 0; }

/* ---------- print (index.html printed directly; print.html has its own sheet) */
@media print {
  .site-header .nav, .menu-button, .preview-badge, .guide-bar, .viewer, .hero-actions, .hero-downloads, .gallery-thumbs,
  .step-foot, .fig-zoom-hint, .skip-link, .sample-banner, .lightbox, .part-tip, .site-footer .footer-links { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .steps-layout { display: block; }
  .step { break-inside: auto; box-shadow: none; }
  .step-head, .step-visuals, .callout, .actions > li, .step-needs { break-inside: avoid; }
  .step-head { break-after: avoid; }
  .step-visuals { position: static !important; }
  a { color: inherit; }
  .print-note { display: block !important; margin: 0 0 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 10pt; }
}
.print-note { display: none; }

/* review: side-by-side pairs for views drawn from different angles; each pair uses the full row */
.cmp-side { grid-column: 1 / -1; }
.cmp-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cmp-cell { position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius-lg); overflow: hidden; background: #F3F1EC; border: 1px solid var(--line); }
.cmp-cell img, .cmp-cell .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cmp-note { font-weight: 400; color: var(--muted); }
@media (max-width: 560px) { .cmp-pair { grid-template-columns: minmax(0, 1fr); } }
