/*
 * Peptide Guide theme stylesheet.
 * Original implementation. Design tokens sampled from the reference site:
 * navy #183E59, red #E74C3C, blue #3498DB / steel #3D7CB0, light blue #EDF7FF,
 * section blue #F3F8FC, page #F9F9F9, body #333. Headings serif (PT Serif),
 * body DM Sans. Buttons radius 10px, cards radius 16-24px.
 */

:root {
  --navy: #183e59;
  --navy-deep: #0e2b40;
  --navy-soft: #16405e;
  --red: #e74c3c;
  --red-dark: #c9372c;
  --blue: #3498db;
  --blue-steel: #3d7cb0;
  --blue-bg: #edf7ff;
  --blue-border: #d6e9f8;
  --section-blue: #f3f8fc;
  --page-bg: #f9f9f9;
  --ink: #333333;
  --ink-soft: #4a5560;
  --card-border: #e6eef4;
  --radius-btn: 10px;
  --radius-card: 16px;
  --radius-panel: 24px;
  --font-body: "DM Sans", -apple-system, "system-ui", "Segoe UI", sans-serif;
  --font-heading: "PT Serif", Georgia, "Times New Roman", serif;
  --shadow-card: 0 10px 30px rgba(24, 62, 89, 0.08);
  --shadow-panel: 0 18px 50px rgba(24, 62, 89, 0.14);
}

/* ---------- Custom SVG icon system ---------- */

.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; }
.icon-bubble .icon { width: 24px; height: 24px; }
.section-title .icon { width: 24px; height: 24px; }
.step-card-lg > header .icon { width: 26px; height: 26px; }
.content-section h2 .icon { width: 22px; height: 22px; }
.toc-card h2 .icon { width: 18px; height: 18px; }
.tile .icon { width: 20px; height: 20px; }
.calc-subtitle .icon { width: 20px; height: 20px; }
.quick-nav .icon { width: 14px; height: 14px; }
.supply-list .icon { width: 20px; height: 20px; }
.chip .icon { width: 16px; height: 16px; }

/* ---------- Reconstitution simulator ---------- */

.sim-shell {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.sim-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px;
  background: linear-gradient(135deg, var(--navy-soft), var(--navy-deep));
  color: #fff;
}
.sim-top h3 { color: #fff; font-size: 19px; margin: 0; display: flex; align-items: center; gap: 10px; }
.sim-top h3 .icon { width: 22px; height: 22px; }
.sim-step-label { font-size: 13px; color: #cfe3f0; font-weight: 600; }
.sim-progress { height: 6px; background: rgba(255, 255, 255, 0.15); }
.sim-progress span { display: block; height: 100%; background: var(--red); transition: width 0.3s ease; }
.sim-stage { padding: 32px 40px 38px; min-height: 330px; }
.sim-stage h4 { font-size: 23px; margin: 0 0 8px; }
.sim-stage .sim-instruction { font-size: 15px; color: var(--ink-soft); margin: 0 0 22px; }
.sim-value-highlight { color:#df453d; font-weight:700; }
.sim-quiz button.sim-computed-answer { border:2px solid #df453d;background:#fff2f0;color:#b72f2a;font-weight:700; }
.sim-answer-label { display:block;margin-top:4px;color:#b72f2a;font-size:12px;font-weight:600; }

.sim-vial-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 30px; align-items: center; margin-bottom: 20px; }
.sim-vial-art svg { width: 96px; height: 110px; display: block; margin: 0 auto; }
.sim-vial-art { text-align: center; font-size: 12.5px; color: #7d8f9c; font-weight: 600; }

.sim-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sim-choice {
  background: var(--section-blue);
  border: 2px solid var(--card-border);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.sim-choice:hover { border-color: var(--blue-steel); transform: translateY(-2px); }
.sim-choice .name { display: block; font-weight: 700; color: var(--navy); font-size: 15.5px; margin-bottom: 4px; }
.sim-choice .detail { display: block; font-size: 13px; color: #7d8f9c; }
.sim-choice.selected { border-color: var(--blue-steel); background: var(--blue-bg); }
.sim-stage.sim-landing { background:linear-gradient(110deg,rgba(240,249,255,.95),rgba(226,244,253,.90)),url('../images/research-workspace-flatlay.png') center/cover; }
.sim-landing h4 { font-family:var(--font-body);font-size:clamp(27px,3.5vw,44px);line-height:1.15; }
.sim-random { width:min(100%,520px);display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;border:0;border-radius:12px;background:#f24c46;color:#fff;padding:14px 18px;font:inherit;cursor:pointer;box-shadow:0 8px 18px #db5b5140; }
.sim-random small { padding-left:28px;color:#fff;font-size:12px; }
.sim-tools-guide { margin:14px 0;background:#fff;border:1px solid #c9e0ed;border-radius:10px;padding:11px 13px;color:#315873; }
.sim-tools-guide summary { cursor:pointer;font-weight:700;color:#15567b;font-size:14px; }
.sim-tools-guide > p { font-size:12px;line-height:1.6;margin:10px 0; }
.sim-tool-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }
.sim-tool-grid article { display:flex;gap:9px;padding:10px;background:#f3f9fc;border:1px solid #deedf4;border-radius:9px; }
.sim-tool-grid article > span { font-size:20px; }.sim-tool-grid strong{font-size:13px;color:#174968}.sim-tool-grid p{font-size:12px;line-height:1.5;margin:4px 0}.sim-tool-grid a{font-size:12px;text-decoration:underline;overflow-wrap:anywhere}
@media(max-width:620px){.sim-tool-grid{grid-template-columns:1fr}}
.sim-choose-label { font-weight:700;color:var(--navy);margin:24px 0 10px;font-size:14px; }
.sim-catalog-grid { gap:8px;max-height:440px;overflow-y:auto;padding:2px; }
.sim-catalog-grid .sim-choice { text-align:left;background:#fff;border:1px solid #bfdced;padding:10px 13px;min-height:62px;border-radius:11px; }
.sim-catalog-grid .sim-choice .name { font-size:14px;margin:0; }
.sim-catalog-grid .sim-choice .detail { font-size:11px;color:#54758e;margin-top:3px; }
.sim-landing-note { font-size:12px;color:#496b84;margin:14px 0 0; }
.sim-custom-form { display:grid;grid-template-columns:1fr 1fr;gap:10px;background:#fff;border:1px solid #bfdced;border-radius:12px;padding:16px;margin:10px 0 16px; }
.sim-custom-form h5,.sim-custom-form p,.sim-custom-form button { grid-column:1/-1;margin:0; }
.sim-custom-form h5 { font-size:17px;color:var(--navy); }
.sim-custom-form p { font-size:13px;color:#526d80; }
.sim-custom-form label { font-size:13px;font-weight:700;color:var(--navy); }
.sim-custom-form input { display:block;width:100%;padding:10px;margin-top:4px;border:1px solid #bfd3e2;border-radius:8px;font:inherit; }
.sim-custom-form .sim-custom-error { color:#a32d28; }
.sim-scene { display:grid;grid-template-columns:minmax(0,1.05fr) minmax(260px,.95fr);gap:18px;padding:20px;background:linear-gradient(145deg,#f1faff,#dfeff8); }
.sim-scene[hidden],.sim-demo[hidden] { display:none !important; }
.sim-demo { padding:24px;background:linear-gradient(145deg,#f1faff,#dfeff8);text-align:center; }
.sim-demo-title { font-family:var(--font-body);font-size:22px;margin:0 0 8px; }
.sim-inline-next { width:100%;justify-content:center;margin-top:10px;min-height:44px; }
.sim-inline-next:disabled { opacity:.45;cursor:not-allowed; }
.sim-demo-description { margin:0 auto 16px;max-width:540px;color:#47687f;line-height:1.5; }
.sim-demo-visual { display:flex;align-items:center;justify-content:center;gap:20px;min-height:165px;padding:15px;border:1px solid #c9e2ef;border-radius:14px;background:linear-gradient(#eaf6fbbb,#eaf6fbee),url('../images/research-workspace-flatlay.png') center/cover; }
.sim-demo-bottle { width:min(38%,150px);margin:0;text-align:center; }.sim-demo-bottle img{display:block;width:100%;border-radius:12px;outline:3px solid #ef625c;outline-offset:3px;animation:sim-demo-pulse 1.8s ease-in-out infinite}.sim-demo-bottle figcaption{color:#496b80;font-size:11px;margin-top:7px}.sim-demo-muted img{outline-color:transparent;animation:none;opacity:.7}.sim-demo-arrow{color:#e74c3c;font-size:34px;font-weight:700;animation:sim-arrow-shift 1.2s ease-in-out infinite}.sim-demo-note{color:#627d8f;font-size:12px;margin:12px 0}.sim-demo-begin{justify-content:center}.sim-demo-replay{float:right;border:0;border-radius:20px;background:#e8f5fc;padding:6px 11px;color:#236889;font:700 12px var(--font-body);cursor:pointer}
@keyframes sim-demo-pulse{50%{outline-color:#f6aaa6;box-shadow:0 0 0 7px #fbe2e0}}@keyframes sim-arrow-shift{50%{transform:translateX(7px)}}
.sim-scene .sim-stage { min-width:0;min-height:380px;background:#fff;border:1px solid #cce2ee;border-radius:15px;padding:25px;box-shadow:0 8px 20px #1a51740d; }
.sim-scene-workspace { grid-template-columns:minmax(0,1fr);max-width:770px;margin:0 auto; }
.sim-scene-workspace .sim-stage { min-height:0; }
.sim-scene-workspace .sim-workbench { min-height:280px;background-color:#e8f6fd;background-image:linear-gradient(45deg,#cbe5f370 1px,transparent 1px),linear-gradient(-45deg,#cbe5f370 1px,transparent 1px);background-size:30px 30px;margin:12px 0; }
.sim-scene-workspace .sim-bench-objects { min-height:220px; }
.sim-scene-workspace .sim-bench-item { max-width:175px; }
.sim-scene-workspace .sim-object-actions,.sim-scene-workspace .sim-inline-next { display:none; }
.sim-scene-retry { float:right;border:1px solid #c3dfea;background:#f4fbff;border-radius:20px;padding:6px 12px;color:#17688f;cursor:pointer;font-weight:700; }
.sim-workbench { min-width:0;border:1px solid #c4e0ef;border-radius:15px;background:linear-gradient(#e8f6fdc9,#e5f4fbd9),url('../images/research-workspace-flatlay.png') center/cover;display:flex;flex-direction:column;padding:18px; }
.sim-bench-title { color:#547a90;font-size:10px;letter-spacing:.1em;font-weight:700; }
.sim-bench-objects { flex:1;display:flex;align-items:center;justify-content:center;gap:14px; }
.sim-bench-item { margin:0;text-align:center;max-width:180px;min-width:0; }
.sim-bench-item img { width:100%;aspect-ratio:1;object-fit:contain;border-radius:14px;box-shadow:0 5px 16px #1b55731c; }
.sim-bench-item figcaption,.sim-bench-note { color:#496b80;font-size:11px;line-height:1.45;margin:6px 0 0; }
.sim-language-hint { margin:0 0 18px;padding:10px 12px;background:#eef8ff;border-left:3px solid #328fbe;border-radius:6px;color:#1a5979;font-size:14px;line-height:1.5; }
.sim-object-actions { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:15px 0 6px; }
.sim-object-button { display:flex;align-items:center;justify-content:center;gap:6px;min-height:48px;padding:8px;border:1px solid #9bcbe4;border-radius:9px;background:#fff;color:#14577a;font:700 13px var(--font-body);cursor:pointer; }
.sim-object-button small { font-weight:400;font-size:11px; }
.sim-object-button.done { background:#def5e8;border-color:#4ba97c;color:#216844; }
.sim-clickable { cursor:pointer;outline:3px solid #4ba3cf;outline-offset:4px;border-radius:14px; }
.sim-clickable:focus-visible,.sim-object-button:focus-visible { outline:3px solid #e8544a;outline-offset:3px; }
.sim-clickable { touch-action:none;user-select:none;position:relative;transition:box-shadow .2s; }
.sim-cap-target:after { content:'';position:absolute;left:20%;right:20%;top:4%;height:26%;border:3px solid #ef625c;border-radius:50%;pointer-events:none;box-shadow:0 0 0 4px #ffebe8; }
.sim-cap-target.sim-object-checked:after { content:'✓';display:flex;align-items:center;justify-content:center;left:60%;right:auto;top:3%;width:30px;height:30px;background:#248d64;border:2px solid #fff;color:white;font-weight:700;box-shadow:none; }
.sim-dragging { z-index:110;box-shadow:0 12px 26px #184d7060; }
.sim-liquid-demo,.sim-plunger-demo { margin:8px 0 0;color:#46708a;font-size:11px; }
.sim-liquid-track,.sim-plunger-track { height:11px;border:1px solid #90bdd5;border-radius:9px;background:#fff;overflow:hidden;margin-top:5px; }
.sim-liquid-track i,.sim-plunger-track i { display:block;width:0;height:100%;background:linear-gradient(90deg,#7ed1ed,#218cc1); }
.sim-liquid-active .sim-liquid-track i { animation:sim-liquid-fill 1.2s ease forwards; }
.sim-plunger-track i { transition:width .15s ease; }
.sim-bottle-swirl { animation:sim-bottle-sway .45s ease; }
.sim-transfer,.sim-plunger-demo { background:#fff;border:1px solid #bfdeed;border-radius:12px;padding:12px;margin-top:10px; }
.sim-transfer-title { color:#174968;font-weight:700;font-size:14px; }.sim-transfer-title small { font-size:10px;color:#6d8799;font-weight:400; }
.sim-transfer-scene { display:flex;align-items:center;justify-content:center;gap:12px;padding:15px 10px 0; }
.sim-diagram-vial { position:relative;width:52px;height:72px;border:3px solid #2d789f;border-radius:8px 8px 12px 12px;background:#f8fdff;overflow:visible; }
.sim-diagram-vial:before { content:'';position:absolute;left:7px;right:7px;top:-10px;height:10px;background:#2b759d;border-radius:4px 4px 0 0; }
.sim-diagram-vial i { position:absolute;bottom:1px;left:1px;right:1px;height:0;background:#94d7ed;border-radius:0 0 8px 8px; }
.sim-source-vial i { height:55%; }.sim-target-vial i { height:8%;transition:height 1.4s ease; }
.sim-transfer-path { min-width:45px;flex:1;max-width:115px;position:relative;border-top:2px dashed #9dcddd;height:2px; }
.sim-flow-arrow { position:absolute;right:0;top:-15px;color:#378eb8;font-size:20px; }.sim-flow-drop { position:absolute;top:-10px;left:0;color:#188fc4;opacity:0; }
.sim-liquid-active .sim-flow-drop { animation:sim-drop-move 1.4s ease forwards; }.sim-liquid-active .sim-target-vial i { height:48%; }
.sim-transfer-labels { display:flex;justify-content:space-between;text-align:center;color:#416781;font-size:11px;max-width:245px;margin:8px auto 0;line-height:1.3; }
.sim-transfer-status { margin:8px 0 0;text-align:center;color:#287699;font-size:12px; }
.sim-plunger-demo strong { display:block;color:#174968;font-size:14px; }.sim-scale-readout { display:block;color:#247da8;font-weight:700;font-size:16px;margin:6px 0; }
.sim-plunger-track { height:25px;border:2px solid #6c9bb5;background:repeating-linear-gradient(90deg,#d6e6ee 0 1px,#fff 1px 10%); }
.sim-plunger-fill { border-right:5px solid #174968; }.sim-scale-labels { display:flex;justify-content:space-between;font-size:10px;color:#597b91; }.sim-plunger-demo small { display:block;margin-top:7px;line-height:1.4; }
@keyframes sim-drop-move { 0%{left:0;opacity:0}15%{opacity:1}85%{opacity:1}100%{left:100%;opacity:0} }
@keyframes sim-liquid-fill { from {width:0} to {width:75%} }
@keyframes sim-bottle-sway { 0%,100%{transform:rotate(0)}25%{transform:rotate(-7deg)}75%{transform:rotate(7deg)} }
@media(max-width:860px) { .sim-scene { grid-template-columns:minmax(0,1fr);padding:12px;gap:12px; } .sim-scene .sim-stage { min-height:0;padding:20px; } .sim-workbench { min-height:190px; } .sim-bench-item { max-width:125px; } }
@media(max-width:620px) { .sim-stage.sim-landing { padding:22px 16px; } .sim-catalog-grid { grid-template-columns:repeat(2,minmax(0,1fr));max-height:400px; } .sim-catalog-grid .sim-choice { min-height:68px;padding:9px; } .sim-custom-form { grid-template-columns:1fr; } }

.sim-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sim-check {
  display: flex; align-items: center; gap: 12px;
  background: var(--section-blue);
  border: 1.5px solid var(--card-border);
  border-radius: 12px;
  padding: 13px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--navy);
  font-family: var(--font-body);
}
.sim-check .box {
  width: 20px; height: 20px; flex-shrink: 0;
  border: 2px solid #b9cbd8;
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  color: transparent; font-size: 12px;
}
.sim-check.done { border-color: var(--blue-steel); background: var(--blue-bg); }
.sim-check.done .box { background: var(--blue-steel); border-color: var(--blue-steel); color: #fff; }

.sim-quiz { display: grid; gap: 10px; }
.sim-quiz button {
  text-align: left;
  background: var(--section-blue);
  border: 1.5px solid var(--card-border);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.sim-quiz button:hover { border-color: var(--blue-steel); }
.sim-quiz button.right { border-color: #27ae60; background: #eafaf1; }
.sim-quiz button.wrong { border-color: var(--red); background: #fdf0ee; }

.sim-swirl-row { display: flex; align-items: center; gap: 26px; }
.sim-swirl-count {
  width: 76px; height: 76px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--blue-bg);
  border: 2px solid var(--blue-border);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 700; color: var(--navy);
}
.sim-swirl-count b { font-size: 24px; line-height: 1; }
.sim-swirl-count small { font-size: 10.5px; color: #7d8f9c; letter-spacing: 0.06em; }

.sim-slider-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 26px; align-items: center; }
.sim-slider-row input[type="range"] { width: 100%; accent-color: var(--blue-steel); }
.sim-draw-read {
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  border-radius: 12px;
  padding: 14px 18px;
  text-align: center;
}
.sim-draw-read .big { font-size: 26px; font-weight: 700; color: var(--navy); font-family: var(--font-heading); }
.sim-draw-read .lbl { font-size: 12px; color: #7d8f9c; text-transform: uppercase; letter-spacing: 0.06em; }

.sim-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 26px; }
.sim-actions .spacer { flex: 1; }
.sim-feedback { font-size: 14px; font-weight: 600; min-height: 20px; }
.sim-feedback.ok { color: #27ae60; }
.sim-feedback.err { color: var(--red-dark); }

.sim-report { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 9px; }
.sim-report li { display: flex; gap: 12px; align-items: center; font-size: 14.5px; color: var(--ink); }
.sim-report .fa-solid { width: 20px; text-align: center; }
.sim-report .pass .fa-solid { color: #27ae60; }
.sim-report .skip .fa-solid { color: #b9cbd8; }
.sim-report-total {
  display: flex; align-items: center; gap: 14px;
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 18px;
  font-size: 15px;
  color: var(--navy);
}
.sim-report-total strong { font-size: 22px; font-family: var(--font-heading); }

body.sim-embed .site-header, body.sim-embed .site-footer,
body.sim-embed .to-top, body.sim-embed .breadcrumb,
body.sim-embed .calc-title-row, body.sim-embed .calc-lead { display: none; }
body.sim-embed .sim-shell { box-shadow: none; border-radius: var(--radius-card); }

@media (max-width: 900px) {
  .sim-choice-grid { grid-template-columns: 1fr; }
  .sim-check-grid { grid-template-columns: 1fr; }
  .sim-stage { padding: 24px 20px 28px; }
  .sim-vial-row { grid-template-columns: 90px 1fr; gap: 18px; }
}

/* ---------- Base ---------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--blue-steel); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.22;
  margin: 0 0 0.6em;
  font-weight: 700;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn .fa-solid, .btn .fa-regular { font-size: 14px; }

.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }

.btn-white {
  background: #fff;
  color: var(--navy);
  border-color: #d8e2ea;
}
.btn-white:hover { border-color: var(--blue-steel); color: var(--navy); }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
}
.btn-outline-light:hover { border-color: #fff; color: #fff; }

.btn-white-solid { background: #fff; color: var(--navy); }
.btn-white-solid:hover { color: var(--navy); }

.btn-steel { background: var(--blue-steel); color: #fff; width: 100%; justify-content: center; padding: 15px 24px; font-size: 16px; }
.btn-steel:hover { background: #346e9e; color: #fff; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 44px; height: 44px; }
.brand-logo { height: 52px; width: auto; display: block; border-radius: 8px; }
.site-footer .brand-logo { height: 44px; }
.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: 0.12em;
  color: var(--red);
  text-transform: uppercase;
}
.brand-name .line2 { color: #2e6da8; }

.main-nav { flex: 1; }
.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  color: var(--navy);
  font-weight: 600;
  font-size: 15.5px;
  border-radius: 8px;
  white-space: nowrap;
}
.main-nav a:hover { text-decoration: none; background: var(--blue-bg); }
.main-nav .menu-item-has-children { position: relative; }
.main-nav .menu-item-has-children > a::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 10px;
  opacity: 0.55;
}
.main-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  max-height: 420px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.main-nav .menu-item-has-children:hover > .sub-menu,
.main-nav .menu-item-has-children:focus-within > .sub-menu { display: flex; }
.main-nav .sub-menu a {
  display: block;
  padding: 9px 12px;
  font-size: 14.5px;
  font-weight: 500;
  border-radius: 8px;
  white-space: nowrap;
}
.main-nav .sub-menu .menu-item-has-children > a { font-weight: 700; color: var(--navy); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.search-form {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 999px;
  padding: 4px 6px 4px 18px;
  width: 200px;
}
.search-form input[type="search"] {
  border: 0;
  outline: none;
  font-family: var(--font-body);
  font-size: 14.5px;
  width: 100%;
  background: transparent;
  color: var(--ink);
}
.search-form button {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 6px 8px;
}

.account-link {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--blue-bg);
  color: var(--navy);
  font-size: 18px;
}
.account-link::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  border: 1.5px solid #fff;
}
.account-link:hover { text-decoration: none; background: var(--blue-border); }

.nav-toggle {
  display: none;
  border: 1px solid #d9d9d9;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 18px;
  color: var(--navy);
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% 0%, rgba(52, 152, 219, 0.14), transparent 60%),
    radial-gradient(900px 420px at 0% 100%, rgba(52, 152, 219, 0.10), transparent 55%),
    linear-gradient(180deg, #fdfeff 0%, #eef6fb 100%);
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='340' viewBox='0 0 340 340'%3E%3Cg fill='none' stroke='%233498db' stroke-opacity='0.13'%3E%3Ccircle cx='60' cy='60' r='26'/%3E%3Ccircle cx='130' cy='40' r='14'/%3E%3Ccircle cx='110' cy='120' r='18'/%3E%3Cpath d='M84 66l24-22M78 84l16 20M143 50l-14 55'/%3E%3Ccircle cx='260' cy='220' r='30'/%3E%3Ccircle cx='320' cy='260' r='16'/%3E%3Cpath d='M286 234l24 16'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 340px 340px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 56px;
  align-items: center;
  padding: 88px 0 96px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}
.hero-eyebrow::before {
  content: "";
  width: 46px;
  height: 5px;
  border-radius: 3px;
  background: var(--red);
}
.hero-eyebrow::after {
  content: "";
  width: 54px;
  height: 3px;
  border-radius: 2px;
  background: #c9d8e4;
}

.hero-title {
  font-size: clamp(38px, 4.4vw, 56px);
  margin-bottom: 24px;
  max-width: 600px;
}

.hero-text {
  font-size: 17.5px;
  line-height: 1.75;
  max-width: 620px;
  margin: 0 0 36px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* hero side card */

.hero-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
  padding: 36px;
  overflow: hidden;
}
.hero-card-eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 14px;
}
.hero-card::before {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  border-radius: 2px;
  background: var(--red);
  margin-bottom: 16px;
}
.hero-card h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.15;
  margin-bottom: 6px;
}
.hero-card h2 .accent { color: var(--blue); }
.hero-card-sub { font-size: 16.5px; margin: 0 0 26px; color: var(--ink); }

.hero-card-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 340px; }
.hero-card-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--navy);
  font-size: 15.5px;
}
.hero-card-list .tile {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--blue-bg);
  color: var(--blue-steel);
  font-size: 19px;
}
.hero-card-list li:nth-child(3) .tile { color: var(--red); }

.hero-card-media {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 46%;
  background: linear-gradient(200deg, #dcecfa 0%, #f4faff 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #7ba2bd;
  font-size: 13.5px;
  font-weight: 600;
  padding: 20px;
}
.hero-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Generic section blocks ---------- */

.section-block { padding: 74px 0; }

.section-head { max-width: 1100px; margin-bottom: 40px; }
.section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: clamp(28px, 3vw, 36px);
  margin-bottom: 16px;
}
.section-title .icon-bubble {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-bg);
  color: var(--blue-steel);
  border-radius: 14px;
  font-size: 22px;
}
.section-intro { font-size: 16.5px; color: var(--ink-soft); margin: 0; }

/* ---------- Featured protocol cards ---------- */

.protocol-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.protocol-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 2px 10px rgba(24, 62, 89, 0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.protocol-card:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }
.protocol-card::before {
  content: "";
  position: absolute;
  top: -24px;
  right: -24px;
  width: 150px;
  height: 150px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%233498db' stroke-opacity='0.16' stroke-width='2'%3E%3Ccircle cx='40' cy='40' r='18'/%3E%3Ccircle cx='86' cy='56' r='12'/%3E%3Ccircle cx='56' cy='92' r='10'/%3E%3Cpath d='M56 42l24 12M52 58l6 26M94 62l-28 22'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 140px 140px;
  pointer-events: none;
}
.protocol-card > * { position: relative; }
.card-top-icon { width: 34px; height: 34px; display: block; }

.protocol-card .card-photo {
  margin: -6px 0 4px;
  border-radius: 12px;
  overflow: hidden;
  background: #f2f7fb;
  border: 1px solid var(--card-border);
}
.protocol-card .card-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.protocol-card .card-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-steel);
  font-size: 30px;
}
.protocol-card h3 { font-size: 22px; margin: 0; }
.protocol-card p { margin: 0; font-size: 15.5px; color: var(--ink-soft); flex: 1; }

.card-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.card-chips.multi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-chips.multi .chip { text-align: center; }
.chip.primary { background: var(--blue-steel); border-color: var(--blue-steel); color: #fff; }
.chip.primary:hover { background: #346e9e; border-color: #346e9e; color: #fff; }
.chip {
  display: inline-block;
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 9px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.chip:hover { text-decoration: none; background: #dcf0ff; border-color: var(--blue); }

/* ---------- Split sections (tool embeds) ---------- */

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}
.split-section.flip { direction: rtl; }
.split-section.flip > * { direction: ltr; }

.split-title { font-size: clamp(28px, 3vw, 36px); }
.split-text { font-size: 16.5px; color: var(--ink-soft); margin: 0 0 22px; }

.check-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink); }
.check-list .fa-solid { color: var(--red); margin-top: 5px; }

.embed-box {
  background: linear-gradient(180deg, #ffffff 0%, var(--section-blue) 100%);
  border: 2px dashed var(--blue-border);
  border-radius: var(--radius-panel);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: #7ba2bd;
  font-weight: 600;
  font-size: 15px;
  padding: 32px;
}
.embed-box .fa-solid { font-size: 34px; color: #a9c6db; }
.embed-box small { font-weight: 400; color: #9ab8cc; }

/* ---------- Chart guide steps ---------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.step-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 26px 24px;
}
.step-card .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--blue-bg);
  color: var(--blue-steel);
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 17px;
  margin-bottom: 16px;
}
.step-card h3 { font-size: 18.5px; margin-bottom: 8px; }
.step-card p { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* ---------- Explorer band ---------- */

.explorer-band {
  background: var(--section-blue);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

/* ---------- Methodology ---------- */

.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}
.method-panel {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-panel);
  padding: 36px;
  box-shadow: var(--shadow-card);
}
.method-panel .check-list li { padding-bottom: 14px; border-bottom: 1px solid #eef3f7; }
.method-panel .check-list li:last-child { border-bottom: 0; padding-bottom: 0; }

/* ---------- Guide cards ---------- */

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.guide-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.guide-card .card-icon {
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 13px;
  background: var(--blue-bg);
  color: var(--blue-steel);
  font-size: 21px;
}
.guide-card h3 { font-size: 21px; margin: 0; }
.guide-card p { margin: 0; font-size: 15.5px; color: var(--ink-soft); flex: 1; }
.guide-link { font-weight: 700; color: var(--red); font-size: 15.5px; }
.guide-link:hover { text-decoration: none; color: var(--red-dark); }

/* ---------- Calculator ---------- */

.calc-panel {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-card);
  padding: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
}
.calc-panel h2 { font-size: clamp(26px, 2.6vw, 33px); }
.calc-panel .lead { font-size: 16px; color: var(--ink-soft); margin: 0 0 30px; }
.calc-panel .lead a { color: var(--red); font-weight: 600; text-decoration: underline; }

.calc-subtitle {
  display: flex; align-items: center; gap: 12px;
  font-size: 20px;
  margin-bottom: 10px;
}
.calc-subtitle .fa-solid { color: var(--blue-steel); }

.calc-steps { list-style: none; margin: 0; padding: 0; }
.calc-steps li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid #eef3f7;
  font-size: 15.5px;
}
.calc-steps li:last-child { border-bottom: 0; }
.calc-steps .step-label { font-weight: 700; color: var(--navy); white-space: nowrap; }

.calc-form-card {
  border: 1px solid #e4eaf0;
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, #ffffff 0%, #f6fafd 100%);
  padding: 32px;
}
.calc-form-card h3 { font-size: 21px; margin-bottom: 6px; }
.calc-form-card .form-note { font-size: 14px; color: var(--ink-soft); margin: 0 0 22px; }

.calc-field { margin-bottom: 16px; }
.calc-field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 7px;
}
.calc-field .input-row { display: flex; gap: 10px; }
.calc-field input[type="number"], .calc-field input[type="text"] {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 1px solid #d9e2ea;
  border-radius: var(--radius-btn);
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: 15.5px;
  color: var(--ink);
  background: #fff;
  outline: none;
}
.calc-field input:focus { border-color: var(--blue-steel); box-shadow: 0 0 0 3px rgba(61, 124, 176, 0.15); }
.calc-field select {
  width: 92px;
  height: 48px;
  border: 1px solid #d9e2ea;
  border-radius: var(--radius-btn);
  background: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
}
.calc-result {
  margin-top: 20px;
  border: 1px solid var(--blue-border);
  background: var(--blue-bg);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  font-size: 15px;
  display: none;
}
.calc-result.show { display: block; }
.calc-result dt { font-weight: 700; color: var(--navy); margin-top: 8px; }
.calc-result dd { margin: 2px 0 0; font-size: 16.5px; font-weight: 600; }
.calc-error { color: var(--red-dark); font-weight: 600; }

.calc-actions { margin-top: 26px; text-align: center; }

/* ---------- FAQ ---------- */

.faq-section { background: #fff; border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }

.faq-list { max-width: 1080px; }
.faq-item { border: 1px solid var(--card-border); border-radius: 12px; margin-bottom: 12px; background: #fff; }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 18px 22px;
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--navy);
}
.faq-q .fa-chevron-down { transition: transform 0.2s ease; color: var(--blue-steel); font-size: 14px; }
.faq-item.open .faq-q .fa-chevron-down { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 22px 20px; color: var(--ink-soft); font-size: 15.5px; }
.faq-item.open .faq-a { display: block; }

/* ---------- Game band ---------- */

.game-band { background: linear-gradient(180deg, var(--page-bg) 0%, var(--section-blue) 100%); }

/* ---------- CTA ---------- */

.cta-section { padding: 40px 0 90px; }
.cta-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(800px 320px at 90% 10%, rgba(52, 152, 219, 0.25), transparent 60%),
    linear-gradient(135deg, var(--navy-soft) 0%, var(--navy-deep) 100%);
  border-radius: var(--radius-panel);
  padding: 68px 48px;
  text-align: center;
}
.cta-panel::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--red), #f39c12);
}
.cta-panel h2 { color: #fff; font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 14px; }
.cta-panel p { color: #cfe3f0; font-size: 16.5px; margin: 0 auto 34px; max-width: 640px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  background: var(--navy-deep);
  color: #eef7fc;
  font-size: 15px;
}
.site-footer::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--red), #f39c12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 0.9fr 1.25fr;
  gap: 40px;
  padding: 58px 0 42px;
}

.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-name .line2 { color: #9cc4e4; }
.footer-blurb { color: rgba(238, 247, 252, 0.78); font-size: 14.5px; line-height: 1.85; margin-top: 18px; max-width: 250px; }

.footer-col h3 {
  color: #f4faff;
  font-size: 17.5px;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col a { color: rgba(238, 247, 252, 0.78); font-size: 14.5px; }
.footer-col a:hover { color: #fff; text-decoration: none; }

.footer-newsletter {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-card);
  padding: 26px;
}
.footer-newsletter h3 { margin-bottom: 10px; color: #f4faff; }
.footer-newsletter p { color: rgba(238, 247, 252, 0.78); font-size: 14px; margin: 0 0 16px; }
.footer-newsletter input[type="email"] {
  width: 100%;
  height: 48px;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(9, 32, 49, 0.6);
  color: #fff;
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  margin-bottom: 12px;
}
.footer-newsletter input::placeholder { color: rgba(238, 247, 252, 0.5); }
.footer-newsletter .btn-red { width: 100%; justify-content: center; }
.newsletter-fine { font-size: 12.5px; color: rgba(238, 247, 252, 0.6); margin: 14px 0 0; line-height: 1.6; }

.footer-disclaimer {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 18px 22px;
  font-size: 13.5px;
  color: rgba(238, 247, 252, 0.8);
  margin-bottom: 36px;
}
.footer-disclaimer strong { color: #f5b7a8; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: rgba(238, 247, 252, 0.66);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 26px; }
.footer-bottom a { color: rgba(238, 247, 252, 0.66); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Back to top ---------- */

.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--red);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(231, 76, 60, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 90;
}
.to-top.show { opacity: 1; pointer-events: auto; }

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Calculator page ---------- */

.breadcrumb { font-size: 13.5px; color: #8a97a1; padding-top: 22px; }
.breadcrumb a { color: #8a97a1; }
.breadcrumb a:hover { color: var(--navy); text-decoration: none; }
.breadcrumb .sep { margin: 0 8px; }

.calc-title-row { display: flex; align-items: center; gap: 18px; margin: 20px 0 12px; }
.calc-title-row .icon-bubble { width: 54px; height: 54px; font-size: 25px; }
.calc-h1 { font-size: clamp(30px, 3.4vw, 44px); margin: 0; }

.calc-lead { font-size: 16.5px; color: var(--ink-soft); max-width: 940px; margin: 0 0 40px; }
.calc-lead strong { color: var(--navy); }

.calc-page-grid {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  padding-bottom: 80px;
}

.toc-card {
  position: sticky;
  top: 104px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 20px 14px;
  max-height: calc(100vh - 130px);
  overflow: auto;
}
.toc-card h2 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 8px 14px;
}
.toc-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc-card a {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.toc-card a:hover { background: var(--blue-bg); color: var(--navy); text-decoration: none; }
.toc-card a.active { background: var(--blue-bg); color: var(--navy); font-weight: 700; }
.toc-num { font-size: 12.5px; color: #8a97a1; min-width: 16px; flex-shrink: 0; }

.step-card-lg {
  position: relative;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-card);
  padding: 38px 40px;
  margin-bottom: 30px;
  scroll-margin-top: 110px;
}
.step-badge {
  position: absolute;
  top: -14px;
  left: 26px;
  width: 36px;
  height: 36px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(231, 76, 60, 0.35);
}
.step-card-lg > header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid #eef3f7;
  margin-bottom: 26px;
}
.step-card-lg > header .fa-solid { font-size: 24px; color: var(--navy); }
.step-card-lg > header h2 { font-size: 27px; margin: 0; }
.step-card-lg .step-intro { font-size: 15.5px; color: var(--ink-soft); margin: 0 0 24px; }

.field-label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.field-label .hint {
  width: 17px; height: 17px;
  border-radius: 50%;
  border: 1px solid #c6d4de;
  color: #7d8f9c;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  font-weight: 400;
}

.quick-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.quick-chip {
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  color: var(--navy);
  font-weight: 600;
  font-size: 13.5px;
  padding: 7px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.quick-chip:hover { background: #dcf0ff; border-color: var(--blue); }

.live-panel {
  margin-top: 28px;
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-card);
  padding: 22px 26px;
}
.live-panel .panel-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(52, 152, 219, 0.15);
  font-size: 15px;
  color: var(--ink-soft);
}
.live-panel .panel-row:last-child { border-bottom: 0; }
.live-panel .panel-row strong { color: var(--navy); font-size: 18px; }

.syringe-size-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.syringe-size {
  border: 1.5px solid var(--card-border);
  background: #fff;
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.syringe-size .big { display: block; font-size: 26px; font-weight: 700; color: var(--navy); line-height: 1.1; }
.syringe-size .sub { display: block; font-size: 12.5px; color: #7d8f9c; margin-top: 4px; }
.syringe-size.selected { background: var(--blue-steel); border-color: var(--blue-steel); }
.syringe-size.selected .big, .syringe-size.selected .sub { color: #fff; }

.size-note { font-size: 13.5px; color: #7d8f9c; margin: 12px 0 0; }

.draw-summary { display: grid; grid-template-columns: auto 1fr 1fr 1fr; gap: 16px; align-items: stretch; margin-bottom: 26px; }
.draw-big { display: flex; align-items: center; gap: 8px; }
.draw-big .num { font-size: 46px; font-weight: 700; color: var(--red); line-height: 1; font-family: var(--font-heading); }
.draw-big .unit { font-size: 15px; color: var(--ink-soft); }
.stat-box {
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 14px 18px;
}
.stat-box .lbl { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: #7d8f9c; }
.stat-box .val { font-size: 22px; font-weight: 700; color: var(--navy); margin-top: 5px; }

.syringe-viz {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 26px 22px 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fafd 100%);
}
.syringe-viz svg { display: block; width: 100%; height: auto; }
.syringe-viz .scale-label { text-align: center; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: #7d8f9c; margin-top: 8px; }

.mark-hint { font-size: 14.5px; color: #b26a00; margin: 20px 0 6px; }
.draw-tip { font-size: 14px; color: #b26a00; margin: 0 0 16px; }
.fit-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  color: var(--navy);
  font-weight: 600;
  font-size: 13.5px;
  padding: 8px 16px;
  border-radius: 9px;
  cursor: pointer;
  border-bottom-width: 2px;
  font-family: var(--font-body);
}
.copy-row { display: flex; justify-content: flex-end; margin-top: 24px; padding-top: 20px; border-top: 1px solid #eef3f7; }

.content-section { scroll-margin-top: 110px; margin-bottom: 34px; }
.content-section h2 { font-size: 27px; display: flex; align-items: center; gap: 12px; }
.content-section h2 .fa-solid { color: var(--blue-steel); font-size: 21px; }
.content-section p, .content-section li { font-size: 15.5px; color: var(--ink-soft); }
.content-section .formula-box {
  background: var(--section-blue);
  border: 1px solid var(--blue-border);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 16px 0;
  font-size: 15.5px;
  color: var(--navy);
}
.content-section .formula-box code { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 14px; background: #fff; border: 1px solid var(--blue-border); border-radius: 6px; padding: 2px 8px; margin: 3px 0; display: inline-block; }

@media (max-width: 1100px) {
  .calc-page-grid { grid-template-columns: 1fr; }
  .toc-card { position: static; max-height: none; }
  .draw-summary { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .syringe-size-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .syringe-size { min-height: 64px; padding: 9px 3px; border-radius: 10px; }
  .syringe-size .big { font-size: 21px; }
  .syringe-size .sub { font-size: 11px; white-space: nowrap; }
  .step-card-lg { padding: 26px 20px; }
  .draw-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
  .draw-big { min-height: 64px; padding: 6px 4px; }
  .draw-big .num { font-size: 36px; }
  .stat-box { min-width: 0; padding: 10px 11px; }
  .stat-box .lbl { font-size: 10px; letter-spacing: .03em; }
  .stat-box .val { font-size: 18px; }
}

/* ---------- Protocol detail page ---------- */

.quick-nav {
  position: sticky;
  top: 80px;
  z-index: 60;
  background: rgba(249, 249, 249, 0.94);
  backdrop-filter: blur(6px);
  display: flex;
  gap: 10px;
  padding: 12px 0;
  overflow-x: auto;
}
.quick-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
}
.quick-nav a:hover { text-decoration: none; border-color: var(--blue-steel); }
.quick-nav a .fa-solid { color: var(--blue-steel); font-size: 12.5px; }

.strength-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 6px 0 26px;
}
.strength-toggle { display: flex; align-items: center; gap: 10px; }
.strength-toggle .st-label { font-weight: 700; color: var(--navy); font-size: 14px; }
.st-btn {
  border: 1px solid var(--card-border);
  background: #fff;
  padding: 8px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--navy);
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.st-btn.active { background: var(--blue-steel); color: #fff; border-color: var(--blue-steel); }

.qr-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: start;
}
.qr-row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid #eef3f7; align-items: center; }
.qr-row:last-child { border-bottom: 0; }
.qr-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--blue-bg);
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
}
.qr-icon svg { width: 26px; height: 26px; }
.qr-label { display: block; font-size: 13px; color: #7d8f9c; }
.qr-value { font-size: 21px; font-weight: 700; color: var(--navy); font-family: var(--font-heading); }
.qr-sub { display: block; font-size: 13.5px; color: var(--ink-soft); }
.qr-photo { border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--card-border); background: #f2f7fb; }
.qr-photo img { display: block; width: 100%; }

.related-box {
  margin-top: 22px;
  border: 1px solid var(--blue-border);
  background: var(--blue-bg);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 14.5px;
  color: var(--ink);
}

.chart-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; }
.chart-table th { background: var(--blue-bg); color: var(--navy); text-align: left; font-size: 13.5px; letter-spacing: 0.04em; text-transform: uppercase; }
.chart-table th, .chart-table td { padding: 13px 18px; border-bottom: 1px solid #eef3f7; }
.chart-table td { color: var(--ink); }
.chart-table td strong { color: var(--navy); font-size: 16.5px; }
.chart-table tr:last-child td { border-bottom: 0; }
.chart-note { font-size: 13.5px; color: #7d8f9c; margin: 12px 0 0; }

.supply-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.supply-list li {
  display: flex; align-items: center; gap: 12px;
  background: var(--section-blue);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 15px;
  color: var(--navy);
  font-weight: 600;
}
.supply-list .fa-solid { color: var(--blue-steel); }

.step-ol { margin: 0; padding: 0; list-style: none; counter-reset: pgstep; display: grid; gap: 14px; }
.step-ol li { counter-increment: pgstep; display: flex; gap: 14px; align-items: baseline; font-size: 15.5px; color: var(--ink-soft); }
.step-ol li::before {
  content: counter(pgstep);
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--blue-bg);
  color: var(--blue-steel);
  font-weight: 700;
  font-size: 13.5px;
  display: inline-flex; align-items: center; justify-content: center;
  transform: translateY(4px);
}

.embed-note { margin-top: 22px; font-size: 13.5px; color: #7d8f9c; }

@media (max-width: 1100px) {
  .qr-grid { grid-template-columns: 1fr; }
  .supply-list { grid-template-columns: 1fr; }
}

.page-header-band {
  background: linear-gradient(180deg, #fdfeff 0%, var(--section-blue) 100%);
  border-bottom: 1px solid var(--card-border);
  padding: 56px 0;
}
.page-header-band h1 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 10px; }
.page-header-band p { margin: 0; color: var(--ink-soft); font-size: 16.5px; max-width: 760px; }

.content-area { padding: 60px 0 80px; }
.content-area .entry-content { max-width: 860px; }
.content-area h2 { font-size: 28px; margin-top: 1.6em; }
.content-area h3 { font-size: 21px; margin-top: 1.4em; }
.content-area table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  font-size: 15px;
}
.content-area th { background: var(--blue-bg); color: var(--navy); text-align: left; }
.content-area th, .content-area td { padding: 12px 16px; border-bottom: 1px solid #eef3f7; }

.post-list { display: grid; gap: 20px; max-width: 860px; }
.post-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 28px;
}
.post-card h2 { font-size: 23px; margin-bottom: 8px; }
.post-card h2 a { color: var(--navy); }
.post-card .meta { font-size: 13.5px; color: #8a97a1; margin-bottom: 10px; }
.post-card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; padding: 64px 0 72px; }
  .hero-card-media { position: static; width: auto; margin-top: 24px; min-height: 180px; }
  .protocol-grid, .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-section, .method-grid { grid-template-columns: 1fr; gap: 36px; }
  .calc-panel { grid-template-columns: 1fr; padding: 36px; gap: 36px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--card-border);
    box-shadow: var(--shadow-card);
    padding: 14px 20px 22px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav .sub-menu {
    position: static;
    display: flex;
    box-shadow: none;
    border: 0;
    padding: 0 0 6px 14px;
    max-height: none;
  }
  .search-form { display: none; }
  .header-inner { gap: 14px; }
  .header-actions { margin-left: auto; }
  .protocol-grid, .guide-grid, .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-title { font-size: 36px; }
  .cta-panel { padding: 48px 24px; }
  .calc-panel { padding: 26px; }
}

.mobile-bottom-nav,.mobile-menu-extra { display:none; }
#product[hidden], #not-found[hidden] { display:none !important; }
body.sim-embed .mobile-bottom-nav { display:none !important; }
#game[hidden] { display:none !important; }
.resource-menu { display:none; position:absolute; right:0; top:100%; width:min(680px,90vw); grid-template-columns:1fr 0.8fr; padding:22px; background:#fff; border:1px solid #d6e6f0; border-radius:14px; box-shadow:0 12px 30px #173b5524; }
.main-nav li:focus-within > .resource-menu,.main-nav li:hover > .resource-menu { display:grid; }
.resource-heading { display:block; color:#637d91; font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; margin:0 0 12px; }
.resource-menu a { display:flex; gap:12px; align-items:center; padding:9px; color:#174968; font-weight:600; }
.resource-lounge { border-left:1px solid #e0eaf1; padding-left:20px; }
.resource-lounge p { margin:0; padding:10px 0; color:#506d82; }
.resource-lounge small { display:block; color:#8a9da9; }
.toc-toggle { display:none; }
@media (max-width: 860px) {
  .main-nav li .resource-menu { position:static; display:grid; grid-template-columns:1fr; width:auto; box-shadow:none; border:0; padding:8px 0 12px 14px; }
  .resource-menu .resource-lounge { border-left:0; border-top:1px solid #e0eaf1; padding:12px 0 0; }
  .header-inner { min-height:65px; justify-content:center; position:relative; padding:0 62px; }
  .header-inner > .brand { margin:auto; }
  .header-inner .brand-logo { height:64px; max-width:190px; object-fit:contain; }
  .header-actions { position:absolute; inset:0; pointer-events:none; margin:0; }
  .header-actions > * { display:none; }
  .header-actions .nav-toggle { display:flex; align-items:center; justify-content:center; position:absolute; left:10px; top:10px; width:44px; height:44px; padding:0; pointer-events:auto; background:#f5fbff; border-color:#d6e7f3; }
  .header-actions .account-link { display:flex; position:absolute; right:10px; top:10px; width:44px; height:44px; pointer-events:auto; }
  .main-nav { max-height:calc(100vh - 65px); overflow-y:auto; }
  .mobile-menu-extra { display:block; }
  .hero-inner { padding:32px 20px 38px; gap:28px; }
  .hero-title { font-family:var(--font-body); font-size:36px; line-height:1.12; margin-bottom:24px; }
  .hero-text { font-size:15px; line-height:1.75; color:#496783; margin-bottom:22px; }
  .hero-actions { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
  .hero-actions .btn { justify-content:center; padding:12px 8px; font-size:12px; }
  .hero-actions .btn:last-child { grid-column:1 / -1; }
  .hero-card { padding:12px; }
  .hero-card-media { position:relative; margin-top:18px; min-height:240px; overflow:hidden; border-radius:12px; }
  .mobile-bottom-nav { position:fixed; z-index:99; display:grid; grid-template-columns:repeat(4,1fr); bottom:0; left:0; right:0; padding:8px 0 max(8px,env(safe-area-inset-bottom)); background:#fff; border-top:1px solid #d6e4ed; box-shadow:0 -4px 15px #193b5018; }
  .mobile-bottom-nav a { display:flex; align-items:center; flex-direction:column; gap:3px; color:#4b6985; font-size:11px; font-weight:700; }
  .mobile-bottom-nav i { color:#1675af; font-size:18px; }
  body { padding-bottom:66px; }
  .to-top { bottom:80px; }
  .quick-nav { position:static; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); overflow:visible; gap:9px; backdrop-filter:none; }
  .quick-nav a { white-space:normal; min-height:65px; border-radius:10px; justify-content:center; text-align:center; }
  .protocol-intro h1 { font-family:var(--font-body); line-height:1.16; letter-spacing:-.02em; }
  .protocol-intro p { font-size:15px; line-height:1.65; }
  .strength-toggle { flex-wrap:wrap; }
  .strength-toggle .st-label { flex-basis:100%; }
  .toc-collapsible h2,.toc-collapsible:not(.toc-open) ul { display:none; }
  .toc-toggle { display:block; background:none; border:0; color:#174968; font:700 14px var(--font-body); cursor:pointer; width:100%; text-align:left; }
  .toc-toggle::before { content:'▸ '; }
  .toc-open .toc-toggle::before { content:'▾ '; }
  .toc-open ul { margin-top:12px; }
  .calc-page-grid { min-width:0; }
  .calc-panel { grid-template-columns:minmax(0,1fr); }
  .calc-panel > * { min-width:0; }
  .calc-page-grid > * { min-width:0; }
  .calc-page-grid table { display:block; max-width:100%; overflow-x:auto; }
}
@media (min-width: 600px) and (max-width: 860px) {
  .container { padding-left:32px; padding-right:32px; }
  .quick-nav { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .header-inner .brand-logo { height:64px; }
}
@media (max-width:620px) { .sim-choice-grid.sim-catalog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:860px) {
  .footer-grid { grid-template-columns:minmax(0,1fr); }
  .footer-grid > * { min-width:0; overflow-wrap:anywhere; }
  .product-header { flex-wrap:wrap; }
  .product-header nav { flex-wrap:wrap; min-width:0; }
  .chart-table { display:block; max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .mobile-table-hint { display:block; margin:8px 0; color:#526d5c; font-size:13px; }
}
@media (min-width:861px) { .mobile-table-hint { display:none; } }
@media (max-width:620px) {
  body:has(#sim-app) .breadcrumb { margin:10px 0; }
  body:has(#sim-app) .calc-title-row { margin:10px 0; }
  body:has(#sim-app) .calc-h1 { font-size:24px;line-height:1.2; }
  body:has(#sim-app) .calc-lead { font-size:14px;line-height:1.5;margin:8px 0 16px; }
  .sim-top { padding:11px 14px;gap:8px; }
  .sim-top h3 { font-family:var(--font-body);font-size:14px; }
  .sim-step-label { font-size:11px; }
  .sim-stage.sim-landing { padding:16px 12px; }
  .sim-landing h4 { font-size:25px; }
  .sim-stage .sim-instruction { font-size:14px;line-height:1.45;margin-bottom:12px; }
  .sim-choose-label { margin:14px 0 8px; }
  .sim-random { padding:10px 12px; }
  .sim-catalog-grid { max-height:265px; }
  .sim-catalog-grid .sim-choice { min-height:53px;padding:7px; }
  .sim-scene { gap:8px;padding:8px; }
  .sim-scene .sim-stage { padding:15px; }
  .sim-scene .sim-stage h4 { font-size:19px; }
  .sim-demo-replay { float:none;display:inline-flex;margin-bottom:7px; }
  .sim-workbench { min-height:0;padding:10px; }
  .sim-bench-objects { gap:12px; }
  .sim-bench-item { max-width:82px; }
  .sim-bench-item figcaption { font-size:10px; }
  .sim-object-actions { margin:8px 0 4px; }
  .sim-language-hint { margin-bottom:10px;padding:8px;font-size:13px; }
  .sim-demo { padding:14px; }
  .sim-demo-title { font-size:19px; }
  .sim-demo-description { font-size:13px;margin-bottom:8px; }
  .sim-demo-visual { min-height:105px;padding:10px;gap:12px; }
  .sim-demo-bottle { width:min(34%,105px); }
  .sim-demo-note { margin:8px 0;font-size:11px; }
  .sim-demo-begin { min-height:44px; }
  .sim-quiz { grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }
  .sim-quiz button { padding:10px;min-height:48px; }
  .sim-actions { margin-top:14px;gap:8px;flex-wrap:wrap; }
  .sim-bench-item { max-width:72px; }
  .sim-tools-guide { margin:8px 0;padding:8px 10px; }
  .sim-scene-compact .sim-stage { padding:14px; }
  .sim-scene-compact .sim-workbench { margin:10px 0 4px;padding:10px;background:#eff8fd;border-radius:11px; }
  .sim-scene-workspace .sim-workbench { background-image:linear-gradient(45deg,#cbe5f370 1px,transparent 1px),linear-gradient(-45deg,#cbe5f370 1px,transparent 1px);background-size:24px 24px;min-height:160px; }
  .sim-scene-workspace .sim-bench-objects { min-height:105px; }
  .sim-scene-compact .sim-inline-next,.sim-scene-compact .sim-object-actions { display:none; }
  .sim-scene-compact .sim-actions { display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;margin-top:10px; }
  .sim-scene-compact .sim-actions .sim-feedback { grid-column:1 / -1;grid-row:1;min-height:0;font-size:12px; }
  .sim-scene-compact .sim-actions .btn { min-height:44px;justify-content:center;padding:8px 14px; }
  .sim-scene-compact .sim-bench-objects { gap:12px; }
  .sim-scene-compact .sim-bench-item { max-width:80px; }
  .sim-scene-compact .sim-vial-row { grid-template-columns:1fr;gap:0;margin-bottom:8px; }
  .sim-scene-compact .sim-vial-art { display:none; }
  .sim-scene-compact .sim-vial-row > div:last-child { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px; }
  .sim-scene-compact .sim-vial-row .qr-row { padding:5px 0;border:0; }
  .sim-scene-compact .sim-vial-row .qr-value { font-size:14px !important;line-height:1.3; }
  .sim-scene-compact .sim-vial-row .qr-label { font-size:11px; }
  .sim-scene-compact .sim-bench-note { font-size:10px; }
  .sim-scene-compact .sim-choice-grid.sim-volume-options { grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }
  .sim-scene-compact .sim-volume-options .sim-choice { min-height:46px;padding:8px;border-radius:9px; }
  .sim-scene-compact .sim-volume-options .sim-choice .name { margin:0;font-size:15px; }
  .sim-scene-compact .sim-transfer { margin-top:8px;padding:9px; }
  .sim-scene-compact .sim-transfer-scene { padding-top:12px; }
  .sim-scene-compact .sim-diagram-vial { width:40px;height:52px; }
  .sim-scene-compact .sim-transfer-status { margin-top:4px; }
}
@media(prefers-reduced-motion:reduce){.sim-liquid-active .sim-liquid-track i{animation:none;width:75%}.sim-bottle-swirl{animation:none}}
@media(prefers-reduced-motion:reduce){.sim-liquid-active .sim-flow-drop{animation:none;opacity:0}.sim-target-vial i{transition:none}}
@media(prefers-reduced-motion:reduce){.sim-demo-bottle img,.sim-demo-arrow{animation:none}}
