/* Base map keeps the warm cloth palette; the Nomai chart is a dark inset, the DLC route reads as part of the page. */
.topic-nav{display:flex;gap:4px 18px;flex-wrap:wrap;margin-top:8px;padding-right:84px;font-size:13px}
.topic-nav a{text-decoration:none;min-height:30px;display:inline-flex;align-items:center;border-bottom:1px solid transparent}
.topic-nav a:hover,.topic-nav a:focus-visible{border-color:var(--accent)}
.topic-section{margin:32px 18px 44px;scroll-margin-top:20px}
.section-heading{display:flex;gap:20px;justify-content:space-between;align-items:end;margin:0 6px 12px}
.section-heading h2{font-size:clamp(22px,2.1vw,29px);line-height:1.3;margin:4px 0 8px}
.section-heading p{margin:0;max-width:850px;font-size:14px;color:var(--muted)}
.section-actions{display:flex;gap:7px;flex:none;flex-wrap:wrap}
.section-actions a{font-size:12px;text-decoration:none;border:1px solid var(--line);border-radius:5px;background:var(--surface);padding:9px 11px;min-height:40px}
.topic-frame{display:block;width:100%;height:min(880px,90dvh);min-height:580px;border:1px solid #bdac8e;border-radius:8px;background:#eee4d1;box-shadow:0 5px 15px #7254370c}
.topic-frame#nomai-frame{background:#101820;border-color:#2a3640}
.topic-frame.dlc-frame{height:2400px;min-height:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:hidden}
.topic-footnote{font-size:12px;line-height:1.7;color:var(--muted);margin:10px 6px 0}
.topic-footnote a{margin-right:15px;display:inline-block;min-height:28px}
.article{scroll-margin-top:25px}
html{scroll-behavior:smooth}
@media(max-width:640px){.topic-section{margin:28px 10px 35px}.section-heading{display:block;margin-inline:3px}.section-heading p{font-size:13px}.section-actions{margin-top:12px}.section-actions a{min-height:44px}.topic-frame{height:82dvh;min-height:530px}.topic-nav{gap:3px 13px;padding-right:0;margin-top:10px}.topic-nav a{min-height:44px}.top .basis{display:none}.stage{height:max(320px,calc(100dvh - 205px))}}
@media(max-height:520px) and (min-width:641px){.topic-section{margin-top:20px}.section-heading{margin-bottom:8px}.section-heading h2{font-size:21px;margin-block:2px 4px}.section-heading p{display:none}.topic-frame:not(.dlc-frame){height:calc(100dvh - 110px);min-height:240px}.section-actions a{padding:6px 9px;min-height:34px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

@media(max-width:640px){#blog-back-fab{width:44px!important;height:44px!important;right:10px!important;bottom:10px!important;padding:0!important;justify-content:center}#blog-back-fab span{display:none!important}.lang{min-height:44px;display:flex;align-items:center}.topic-footnote a{min-height:44px}}

/* The supporting material is a continuous reading canvas, with visible branches and sequences. */
.support-canvas{max-width:1540px;margin:30px auto 50px;padding:24px 30px 40px;border:1px solid var(--line);border-radius:8px;background:#eee5d4;outline:1px dashed #baa88a;outline-offset:-7px}
.support-canvas h2{margin:38px 0 20px}.support-canvas .leads{gap:28px;align-items:start}.support-canvas .lead-card{background:none;border:0;outline:0;box-shadow:none;padding:0}.support-canvas .lead-card h3{position:relative;padding:14px 18px;background:#faf6eb;border:1px solid #baa98d;border-radius:4px}.support-canvas .lead-card ul{position:relative;margin:0 0 0 16px;padding:24px 0 0 20px;border-left:1px solid #aa9677;gap:18px}.support-canvas .lead-card ul li{position:relative;border:1px solid #d1c1a5;background:#fffdf7;padding:13px 15px;border-radius:4px}.support-canvas .lead-card ul li::before{content:'';position:absolute;left:-21px;top:25px;width:20px;border-top:1px solid #aa9677}.support-canvas .lead-card .to{font-size:15px}.support-canvas .lead-card .said{font-size:14px;line-height:1.8;color:var(--fg)}
.support-canvas .steps{list-style:none;padding:0;margin:25px 0 0;gap:26px;counter-reset:step}.support-canvas .steps li{position:relative;border:1px solid #cbbba0;border-radius:4px;background:#fffdf7;padding:13px 15px;font-size:14px}.support-canvas .steps li::before{content:'↓';position:absolute;top:-26px;left:50%;height:25px;color:#917c5d}.support-canvas .end-line{margin-top:26px;background:#e1e9dd;border-color:#6a8878}.support-canvas .question-map{max-width:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 32px}.question-route{display:grid;grid-template-columns:minmax(130px,.65fr) 1fr;align-items:start;gap:28px}.question-route h3{position:relative;border:1px solid #b9aa8d;border-radius:4px;background:#faf6eb;padding:14px;font-size:15px;margin:0}.question-route h3::after{content:'→';position:absolute;right:-25px;top:14px;color:#917c5d}.support-canvas .question-route p{margin:0;background:#fffdf7;border:1px solid #d1c1a5;border-radius:4px;padding:14px;font-size:14px;line-height:1.85}.support-canvas .src{font-size:12px}
@media(max-width:900px){.support-canvas{margin-inline:12px;padding:18px}.support-canvas .question-map{grid-template-columns:1fr}}
@media(max-width:480px){.support-canvas{margin-inline:10px;padding:15px}.question-route{grid-template-columns:1fr;gap:24px}.question-route h3::after{content:'↓';top:auto;bottom:-24px;left:50%;right:auto}.support-canvas .leads{gap:30px}.support-canvas .timeline{overflow:auto}.support-canvas .timeline svg{min-width:760px}}

.support-canvas .ending-alternatives li+li::before{content:'或';font-size:12px}.support-canvas:lang(en) .ending-alternatives li+li::before{content:'or'}
