:root {
  color-scheme: light;
  --bg: #e9eeeb;
  --surface: #ffffff;
  --surface-2: #f4f7f5;
  --line: #e3ebe6;
  --line-strong: #cbd8d0;
  --text: #182820;
  --muted: #7c8d84;
  --accent: #217c54;
  --cyan: #54a77e;
  --amber: #a97938;
  --danger: #bd655c;
  --purple: #706fa3;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-width: 320px; color: var(--text);
  background: linear-gradient(rgba(184,255,106,.025) 1px,transparent 1px), linear-gradient(90deg,rgba(184,255,106,.025) 1px,transparent 1px), var(--bg);
  background-size: 42px 42px;
  font: 400 16px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button,input,select { font: inherit; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1380px, calc(100% - 40px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(58,81,73,.7); background: rgba(7,17,15,.9); backdrop-filter: blur(18px); }
.nav { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 760; letter-spacing: -.03em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--bg); background: var(--accent); font-size: .82rem; }
.nav-links { display: flex; align-items: center; gap: 10px; }
.nav-link { padding: 9px 13px; border: 1px solid transparent; border-radius: 999px; color: var(--muted); font-size: .84rem; }
.nav-link:hover,.nav-link.active { color: var(--text); border-color: var(--line-strong); background: var(--surface); }
.theme-toggle {
  min-height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 9px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--text); background: var(--surface);
  box-shadow: 0 4px 16px rgba(21,63,37,.07); cursor: pointer; font-size: .8rem; font-weight: 700;
  transition: transform .18s ease,border-color .18s ease,background .18s ease;
}
.theme-toggle:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.theme-toggle:focus-visible { outline: 3px solid rgba(84,167,126,.24); outline-offset: 2px; }
.theme-toggle-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #1f734e; font-size: .9rem; }
.theme-toggle-icon::before { content: "☾"; }
main { padding: 38px 0 80px; }
.page-intro { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.eyebrow { color: var(--accent); font: 700 .74rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 11px 0 8px; font-size: clamp(2.2rem, 4.5vw, 4.4rem); line-height: .96; letter-spacing: -.06em; }
.lede { max-width: 720px; margin: 0; color: var(--muted); }
.model-chip { flex: 0 0 auto; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(13,24,21,.8); }
.model-chip strong { display: block; color: var(--cyan); font-size: .84rem; }
.model-chip span { color: var(--muted); font-size: .74rem; }
.sim-layout { display: grid; grid-template-columns: 320px minmax(0,1fr); gap: 16px; align-items: start; }
.panel { border: 1px solid var(--line-strong); border-radius: 18px; background: rgba(9,20,17,.94); box-shadow: 0 20px 65px rgba(0,0,0,.22); }
.controls { position: sticky; top: 82px; padding: 22px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 19px; }
.panel-title h2 { margin: 0; font-size: 1.05rem; letter-spacing: -.025em; }
.panel-title span { color: #71877f; font: 700 .68rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1/-1; }
label { color: #cbd5d0; font-size: .78rem; font-weight: 650; }
.field-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 20px; }
.field-label > span { color: #cbd5d0; font-size: .78rem; font-weight: 650; }
.info-tip {
  position: relative; z-index: 3; flex: 0 0 auto; width: 18px; height: 18px; padding: 0;
  border: 1px solid #4b655c; border-radius: 50%; color: var(--cyan); background: #0a1713;
  font: 800 .67rem/16px ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; cursor: help;
}
.info-tip:hover,.info-tip:focus { color: #07110f; border-color: var(--cyan); background: var(--cyan); outline: none; }
.info-tip::before,.info-tip::after { position: absolute; right: -8px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s ease, transform .15s ease, visibility .15s; }
.info-tip::before {
  content: ""; top: 23px; right: 1px; z-index: 42; border: 6px solid transparent; border-bottom-color: #d9f5eb;
  transform: translateY(-3px);
}
.info-tip::after {
  content: attr(data-tooltip); top: 34px; z-index: 41; width: 250px; padding: 11px 12px;
  border: 1px solid #d9f5eb; border-radius: 9px; color: #10211b; background: #eaf8f3;
  box-shadow: 0 14px 35px rgba(0,0,0,.35); font: 600 .73rem/1.42 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0; text-align: left; white-space: normal; transform: translateY(-3px);
}
.info-tip:hover::before,.info-tip:hover::after,.info-tip:focus::before,.info-tip:focus::after { opacity: 1; visibility: visible; transform: translateY(0); }
.input-wrap { position: relative; }
input,select { width: 100%; min-height: 45px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--text); background: #08120f; outline: none; }
input { padding-right: 47px; }
input:focus,select:focus { border-color: #54d6a8; box-shadow: 0 0 0 3px rgba(84,214,168,.11); }
.suffix { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: #71857e; font: 700 .7rem/1 ui-monospace,SFMono-Regular,Menlo,monospace; pointer-events:none; }
.helper { color: #71857e; font-size: .7rem; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 45px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 9px; background: #08120f; }
.switch-row span { color: #cbd5d0; font-size: .78rem; font-weight: 650; }
.switch { position: relative; width: 42px; height: 24px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: #2c3d37; transition: .18s; }
.switch i::after { content:""; position:absolute; width:18px; height:18px; left:3px; top:3px; border-radius:50%; background:#a7b7b0; transition:.18s; }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(18px); background: #07110f; }
.run-button { width: 100%; min-height: 50px; margin-top: 18px; border: 0; border-radius: 10px; color: #07110f; background: var(--accent); cursor: pointer; font-weight: 800; letter-spacing: -.01em; }
.run-button:hover { background: #c9ff8d; }
.run-button:disabled { cursor: progress; opacity: .68; }
.control-note { margin: 12px 0 0; color: #71857e; font-size: .7rem; text-align: center; }
.dashboard { min-width: 0; padding: 18px; }
.summary-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; margin-bottom: 12px; }
.summary-card { min-height: 112px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.summary-card span { display:block; color:#758b83; font-size:.72rem; }
.summary-card strong { display:block; margin-top:10px; font-size:clamp(1.25rem,2.2vw,2rem); line-height:1; letter-spacing:-.05em; }
.summary-card small { display:block; margin-top:7px; color:#789088; font-size:.68rem; }
.summary-card.accent strong { color: var(--accent); }
.summary-card.danger strong { color: var(--danger); }
.chart-card { padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(150deg,#111f1b,#0b1612); }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 8px; }
.chart-head h2 { margin: 0; font-size: 1rem; }
.legend { display: flex; flex-wrap: wrap; gap: 13px; color: var(--muted); font-size: .7rem; }
.legend span::before { content:""; display:inline-block; width:16px; height:2px; margin-right:6px; vertical-align:middle; background:currentColor; }
.legend .all-paths { color:#8b9b96; }.legend .all-paths::before { height:1px; opacity:.65; }
.legend .best { color:var(--accent); }.legend .median { color:var(--cyan); }.legend .worst { color:var(--danger); }
.chart-wrap { position: relative; height: 390px; }
canvas { width: 100%; height: 100%; display: block; }
.chart-axis-note { display:flex; justify-content:space-between; gap:16px; margin-top:5px; color:#6f837c; font-size:.66rem; }
.case-title { display:flex; align-items:end; justify-content:space-between; gap:20px; margin:24px 0 12px; }
.case-title h2 { margin:0; font-size:1.2rem; }.case-title p{margin:0;color:var(--muted);font-size:.76rem;}
.case-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.case-card { padding:17px; border:1px solid var(--line); border-radius:13px; background:var(--surface); }
.case-card.best { border-top:2px solid var(--accent); }.case-card.median { border-top:2px solid var(--cyan); }.case-card.worst { border-top:2px solid var(--danger); }
.case-kicker { display:flex; justify-content:space-between; gap:12px; color:var(--muted); font-size:.72rem; text-transform:uppercase; letter-spacing:.08em; }
.case-kicker b { color:var(--text); }
.case-value { margin:15px 0; font-size:1.65rem; font-weight:750; letter-spacing:-.045em; }
.case-metrics { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.case-metric { padding-top:9px; border-top:1px solid var(--line); }
.case-metric span { display:block; color:#71857e; font-size:.68rem; }.case-metric strong { font-size:.82rem; }
.status-survived { color:var(--accent)!important; }.status-ruined { color:var(--danger)!important; }
.explain { display:grid; grid-template-columns:.85fr 1.15fr; gap:50px; padding:72px 0 28px; }
.explain h2 { margin:9px 0 12px; font-size:clamp(1.8rem,3.5vw,3rem); line-height:1; letter-spacing:-.05em; }
.explain p { color:var(--muted); }
.steps { display:grid; gap:9px; }
.step { display:grid; grid-template-columns:34px 1fr; gap:13px; padding:15px 0; border-top:1px solid var(--line); }
.step b { color:var(--accent); font:700 .74rem/1.5 ui-monospace,SFMono-Regular,Menlo,monospace; }.step strong{display:block;margin-bottom:4px}.step p{margin:0;font-size:.82rem}
.warning { margin-top:20px; padding:14px 16px; border-left:2px solid var(--amber); background:rgba(255,202,98,.05); color:#aebeb7; font-size:.76rem; }
footer { border-top:1px solid var(--line); background:#060e0c; }
.footer-inner { display:flex; justify-content:space-between; gap:50px; padding:28px 0; color:#74867f; font-size:.72rem; }
.hidden { display:none!important; }

/* Terra-inspired premium workspace theme */
body { background: #e9eeeb; background-size: auto; }
.site-header { border-bottom-color: rgba(24,40,32,.08); background: rgba(249,251,250,.9); box-shadow: 0 1px 18px rgba(21,63,37,.05); }
.brand-mark { color: #fff; background: linear-gradient(145deg,#114b31,#25845a); box-shadow: 0 6px 15px rgba(24,103,67,.18); }
.nav-link:hover,.nav-link.active { border-color: var(--line); background: #fff; box-shadow: 0 3px 14px rgba(21,63,37,.07); }
main { padding-top: 34px; }
.eyebrow { color: var(--accent); }
h1 { font-weight: 640; }
.model-chip { border: 0; border-radius: 16px; background: #fff; box-shadow: 0 5px 22px rgba(21,63,37,.07); }
.model-chip strong { color: var(--accent); }
.panel { border: 0; border-radius: 22px; background: #fff; box-shadow: 0 8px 35px rgba(21,63,37,.08); }
.controls { color: #fff; background: radial-gradient(circle at 110% 110%,rgba(79,169,119,.78),transparent 40%), linear-gradient(145deg,#103b26,#1d7049); box-shadow: 0 18px 45px rgba(18,67,43,.2); }
.controls .panel-title span { color: #a8c9b8; }
.controls label,.controls .field-label > span,.controls .switch-row span { color: #edf7f1; }
.controls input,.controls select { color: #fff; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.075); }
.controls select option { color: #182820; background: #fff; }
.controls input:focus,.controls select:focus { border-color: #9de0ba; box-shadow: 0 0 0 3px rgba(157,224,186,.16); }
.controls .suffix,.controls .helper,.controls .control-note { color: #a8c9b8; }
.controls .switch-row { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.075); }
.controls .switch i { background: rgba(255,255,255,.2); }
.controls .switch input:checked + i { background: #83d1a4; }
.controls .switch input:checked + i::after { background: #123f2a; }
.controls .info-tip { color: #d7f2e2; border-color: rgba(255,255,255,.42); background: transparent; }
.controls .info-tip:hover,.controls .info-tip:focus { color: #16462f; border-color: #fff; background: #fff; }
.run-button { color: #fff; border-radius: 999px; background: #2b8b5e; box-shadow: 0 9px 20px rgba(4,34,20,.2); }
.run-button:hover { background: #34a06c; transform: translateY(-1px); }
.dashboard { background: #fff; }
.summary-grid { gap: 12px; }
.summary-card { border: 0; border-radius: 16px; background: #f3f6f4; }
.summary-card strong { font-weight: 650; }
.summary-card.accent { color: #fff; background: linear-gradient(140deg,#10482f,#238558); }
.summary-card.accent span,.summary-card.accent small { color: #cce5d6; }
.summary-card.accent strong { color: #fff; }
.chart-card { border: 0; border-radius: 18px; background: #fbfcfb; box-shadow: inset 0 0 0 1px #edf2ef; }
.legend .all-paths { color: #89988f; }
.legend .best { color: #217c54; }.legend .median { color: #54a77e; }.legend .worst { color: #bd655c; }
.chart-wrap { cursor: crosshair; touch-action: pan-y; }
.chart-cursor { position: absolute; z-index: 4; width: 1px; border-left: 1px dashed rgba(33,124,84,.38); opacity: 0; pointer-events: none; transform: translateX(-.5px); transition: opacity .12s; }
.chart-hover-dot { position: absolute; z-index: 6; width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: #217c54; box-shadow: 0 0 0 3px rgba(33,124,84,.17); opacity: 0; pointer-events: none; transform: translate(-50%,-50%); transition: opacity .12s; }
.chart-hover-tooltip { position: absolute; z-index: 8; width: 224px; display: grid; gap: 3px; padding: 12px 13px; border: 1px solid #d8e5dd; border-radius: 13px; color: #182820; background: rgba(255,255,255,.97); box-shadow: 0 14px 35px rgba(18,67,43,.18); opacity: 0; pointer-events: none; transform: translateY(5px); transition: opacity .12s,transform .12s; }
.chart-cursor.visible,.chart-hover-dot.visible { opacity: 1; }
.chart-hover-tooltip.visible { opacity: 1; transform: translateY(0); }
.chart-hover-tooltip strong { font-size: .76rem; }
.chart-hover-tooltip span { color: #71877b; font-size: .68rem; }
.chart-hover-tooltip b { margin-top: 3px; font-size: 1.05rem; letter-spacing: -.02em; }
.chart-hover-tooltip em { color: #217c54; font-size: .74rem; font-style: normal; font-weight: 750; }
.chart-hover-tooltip[data-tone="loss"] em { color: #bd655c; }
.chart-hover-tooltip[data-tone="flat"] em { color: #71877b; }
.case-card { border: 0; border-radius: 16px; background: #f3f6f4; }
.case-card.best { border-top: 3px solid #217c54; }.case-card.median { border-top: 3px solid #54a77e; }.case-card.worst { border-top: 3px solid #bd655c; }
.status-survived { color: #217c54!important; }
.explain { margin-top: 36px; padding: 36px; border-radius: 22px; background: rgba(255,255,255,.64); }
.step { border-color: #dbe6df; }
.warning { border-left-color: #b48644; background: rgba(180,134,68,.07); color: #6e7d75; }
footer { border-top-color: #dce5df; background: #f4f7f5; }

/* User-selectable dark theme */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07110f;
  --surface: #0e1a16;
  --surface-2: #14231e;
  --line: #23372f;
  --line-strong: #365047;
  --text: #edf4f0;
  --muted: #91a49b;
  --accent: #69c997;
  --cyan: #54d6a8;
  --amber: #d0a25f;
  --danger: #ee8a80;
}
html[data-theme="dark"] body { background: #07110f; }
html[data-theme="dark"] .site-header { border-bottom-color: rgba(134,173,154,.13); background: rgba(7,17,15,.9); box-shadow: 0 1px 18px rgba(0,0,0,.2); }
html[data-theme="dark"] .brand-mark { background: linear-gradient(145deg,#2a9868,#5cc28d); }
html[data-theme="dark"] .nav-link:hover,
html[data-theme="dark"] .nav-link.active { border-color: #2b4439; background: #101e19; box-shadow: none; }
html[data-theme="dark"] .theme-toggle { border-color: #2c443a; color: #eaf3ee; background: #101e19; box-shadow: 0 5px 18px rgba(0,0,0,.2); }
html[data-theme="dark"] .theme-toggle-icon { color: #173326; background: #8bd6ad; }
html[data-theme="dark"] .theme-toggle-icon::before { content: "☀"; }
html[data-theme="dark"] .model-chip { background: #0e1b17; box-shadow: 0 7px 25px rgba(0,0,0,.2); }
html[data-theme="dark"] .panel { background: #0d1815; box-shadow: 0 14px 44px rgba(0,0,0,.24); }
html[data-theme="dark"] .controls { background: radial-gradient(circle at 110% 110%,rgba(61,144,96,.68),transparent 40%),linear-gradient(145deg,#0b3020,#15593b); }
html[data-theme="dark"] .dashboard { background: #0d1815; }
html[data-theme="dark"] .summary-card { background: #14231e; }
html[data-theme="dark"] .summary-card span,
html[data-theme="dark"] .summary-card small { color: #8fa49a; }
html[data-theme="dark"] .summary-card.accent { background: linear-gradient(140deg,#17613f,#279261); }
html[data-theme="dark"] .chart-card { background: #0a1511; box-shadow: inset 0 0 0 1px #20342b; }
html[data-theme="dark"] .legend .all-paths { color: #899c92; }
html[data-theme="dark"] .legend .best { color: #72d59f; }
html[data-theme="dark"] .legend .median { color: #5fe0b0; }
html[data-theme="dark"] .legend .worst { color: #f09288; }
html[data-theme="dark"] .chart-cursor { border-left-color: rgba(105,201,151,.48); }
html[data-theme="dark"] .chart-hover-dot { border-color: #07110f; background: #72d59f; box-shadow: 0 0 0 3px rgba(105,201,151,.2); }
html[data-theme="dark"] .chart-hover-tooltip { border-color: #355044; color: #edf4f0; background: rgba(13,27,22,.97); box-shadow: 0 16px 40px rgba(0,0,0,.38); }
html[data-theme="dark"] .chart-hover-tooltip span { color: #91a49b; }
html[data-theme="dark"] .chart-hover-tooltip em { color: #72d59f; }
html[data-theme="dark"] .chart-hover-tooltip[data-tone="loss"] em { color: #f09288; }
html[data-theme="dark"] .case-card { background: #14231e; }
html[data-theme="dark"] .case-card.best { border-top-color: #72d59f; }
html[data-theme="dark"] .case-card.median { border-top-color: #5fe0b0; }
html[data-theme="dark"] .case-card.worst { border-top-color: #f09288; }
html[data-theme="dark"] .status-survived { color: #72d59f!important; }
html[data-theme="dark"] .explain { background: rgba(14,27,23,.82); }
html[data-theme="dark"] .step { border-color: #263b33; }
html[data-theme="dark"] .warning { border-left-color: #d0a25f; color: #b8c6bf; background: rgba(208,162,95,.08); }
html[data-theme="dark"] footer { border-top-color: #20332b; background: #07110f; }
@media (max-width: 1050px) {
  .sim-layout { grid-template-columns:1fr; }
  .controls { position:static; }
  .fields { grid-template-columns:repeat(4,1fr); }
  .field.full { grid-column:auto; }
  .summary-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width: 760px) {
  .wrap{width:min(100% - 24px,1380px)}
  .nav-link:not(.active){display:none}
  .theme-toggle { width: 40px; padding: 7px; justify-content: center; }
  .theme-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  main{padding-top:27px}.page-intro{align-items:start;flex-direction:column}.model-chip{width:100%}
  .fields{grid-template-columns:1fr 1fr}.field.full{grid-column:1/-1}
  .dashboard{padding:11px}.summary-grid{grid-template-columns:1fr 1fr}.chart-head{align-items:start;flex-direction:column}.chart-wrap{height:330px}
  .case-grid{grid-template-columns:1fr}.explain{grid-template-columns:1fr;gap:24px;padding-top:55px}.footer-inner{flex-direction:column;gap:12px}
}
@media (max-width: 480px) {
  .fields,.summary-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.controls{padding:17px}.chart-wrap{height:290px}.case-metrics{grid-template-columns:1fr 1fr}
}

/* Educational guide: the same restrained surfaces as the simulators. */
.guide-main { padding: 48px 0 88px; }
.guide-wrap { max-width: 1160px; display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 64px; align-items: start; }
.guide-article { min-width: 0; }
.guide-header { padding-bottom: 28px; border-bottom: 1px solid var(--line-strong); }
.guide-header h1 { max-width: 850px; margin-top: 18px; font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: 1.04; }
.guide-header .lede { max-width: 780px; font-size: 1.13rem; line-height: 1.65; }
.guide-byline { margin: 22px 0 0; color: var(--muted); font-size: .88rem; }
.guide-summary { margin-top: 32px; padding: 22px 26px; border: 1px solid var(--line-strong); border-left: 4px solid var(--accent); border-radius: 14px; background: var(--surface); }
.guide-summary strong { color: var(--accent); }
.guide-summary p { margin: 8px 0 0; line-height: 1.7; }
.guide-summary a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.guide-article section { padding-top: 34px; scroll-margin-top: 90px; }
.guide-article h2 { margin: 0 0 13px; font-size: clamp(1.55rem, 2.4vw, 2.1rem); line-height: 1.2; letter-spacing: -.035em; }
.guide-article h3 { margin: 0 0 9px; font-size: 1.1rem; }
.guide-article section > p,.guide-article li { max-width: 75ch; color: var(--text); font-size: 1rem; line-height: 1.8; }
.guide-article section > p { margin: 0 0 16px; }
.guide-article ul { margin: 10px 0 20px; padding-left: 22px; }
.guide-article li + li { margin-top: 10px; }
.guide-article section a,.guide-compare a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.guide-article a:focus-visible,.guide-sidebar a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.guide-example { margin: 22px 0; padding: 22px 24px; border-radius: 15px; background: var(--surface-2); }
.guide-example span { color: var(--accent); font: 700 .76rem/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .11em; text-transform: uppercase; }
.guide-example p { margin: 9px 0 0; line-height: 1.75; }
.guide-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.guide-compare > div { padding: 23px; border: 1px solid var(--line-strong); border-radius: 15px; background: var(--surface); }
.guide-compare p { margin: 0 0 16px; line-height: 1.7; }
.guide-compare a { font-weight: 700; }
.guide-notice { margin-top: 40px; padding: 18px 22px; border-left: 3px solid var(--amber); border-radius: 10px; color: var(--muted); background: var(--surface-2); line-height: 1.65; }
.guide-notice strong { color: var(--text); }
.guide-sidebar { position: sticky; top: 102px; display: grid; gap: 10px; padding: 24px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); }
.guide-sidebar > strong { margin-bottom: 5px; font-size: .9rem; }
.guide-sidebar > a { color: var(--muted); font-size: .88rem; }
.guide-sidebar > a:hover { color: var(--accent); }
.guide-side-cta { display: grid; gap: 8px; margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .83rem; }
.guide-side-cta span { color: var(--muted); }
.guide-side-cta a { color: var(--accent); font-weight: 750; }
.guide-inline-link { display: inline-flex; margin-top: 22px; color: var(--accent); font-weight: 750; text-decoration: underline; text-underline-offset: 4px; }
footer .footer-inner a { text-decoration: underline; text-underline-offset: 3px; }
footer .footer-inner a:hover { color: var(--accent); }
@media (max-width: 960px) { .guide-wrap { grid-template-columns: 1fr; } .guide-sidebar { position: static; grid-row: 1; display: flex; flex-wrap: wrap; gap: 10px 18px; } .guide-sidebar > strong { flex-basis: 100%; } .guide-side-cta { display: none; } }
@media (max-width: 760px) { .guide-main { padding-top: 28px; } .guide-compare { grid-template-columns: 1fr; } .guide-header .lede { font-size: 1rem; } .guide-sidebar { padding: 16px; } }
