:root {
  color-scheme: light;
  --bg: #f7f7f1; --bg-card: #fffef8; --bg-elev: #edeee6; --bg-hover: #e8eee8;
  --text: #182f32; --text-muted: #536463; --border: #cdd3c9;
  --gold: #806024; --gold-soft: #f1ead6; --teal: #246257; --blue: #3c6591;
  --crimson: #963d4a; --violet: #715889; --shadow: 0 12px 40px #132c3410;
  --display: "Baskervville", "Georgia", "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
  --body: "Source Sans 3", "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --gutter: clamp(1rem, 4.5vw, 4.75rem); --nav-height: 67px;
}
[data-theme="dark"] {
  color-scheme: dark; --bg:#152629; --bg-card:#1c3134; --bg-elev:#22393c; --bg-hover:#2d4241;
  --text:#f1f0df; --text-muted:#bac5bc; --border:#3c5454; --gold:#dfbc79; --gold-soft:#39382e;
  --teal:#9ed5c9; --blue:#9cbfe5; --crimson:#ffa6a7; --violet:#c5abdd; --shadow:0 12px 36px #0d191a44;
}
* {box-sizing:border-box}
[hidden] {display:none !important}
html {scroll-padding-top:calc(var(--nav-height) + 16px);scrollbar-gutter:stable}
body {margin:0; background:var(--bg); color:var(--text); font:1rem/1.65 var(--body); -webkit-font-smoothing:antialiased}
button, input, select {font:inherit; color:inherit}
button, summary, select {cursor:pointer}
a {color:inherit;text-decoration:none}
button {background:none}
:focus-visible {outline:3px solid var(--teal);outline-offset:3px}
main:focus {outline:none}
.skip {position:fixed;left:1rem;top:-6rem;z-index:120;background:var(--bg-card);padding:.6rem 1rem}
.skip:focus {top:.5rem}
.wrap,.header-inner {width:100%;max-width:1500px;margin:auto;padding-inline:var(--gutter)}
.site-header {position:sticky;top:0;z-index:30;background:var(--bg-card);border-bottom:1px solid var(--border)}
.header-inner {min-height:var(--nav-height);display:flex;align-items:center;justify-content:space-between;gap:1.5rem}
.brand {display:inline-flex;align-items:center;gap:.8rem;white-space:nowrap;color:var(--text);font:700 1.35rem/1 var(--display);letter-spacing:.055em}
.brand-tail {font:600 .82rem/1 var(--body);letter-spacing:.04em;margin-left:.55rem;padding-left:.55rem;border-left:1px solid var(--border)}
.sigil {display:grid;place-items:center;width:32px;height:37px;background:#80512d;clip-path:polygon(0 8%,30% 8%,50% 0,70% 8%,100% 8%,92% 70%,50% 100%,8% 70%);position:relative}
.sigil::before {content:"";position:absolute;inset:2px;background:#29434a;clip-path:inherit}
.sigil i {position:relative;width:17px;height:23px;background:#edd398;clip-path:polygon(50% 0,57% 33%,83% 17%,69% 43%,100% 46%,69% 55%,52% 100%,36% 56%,2% 46%,31% 43%,16% 18%,43% 33%)}
.main-nav {display:flex;align-self:stretch;align-items:stretch;gap:clamp(.8rem,1.7vw,1.9rem);white-space:nowrap}
.main-nav a {display:flex;align-items:center;font-size:.91rem;font-weight:550;color:var(--text-muted);border-bottom:3px solid transparent;padding:.2rem .05rem 0}
.main-nav a:hover,.main-nav a[aria-current="page"] {color:var(--text);border-bottom-color:var(--gold)}
.header-actions,.zoom-group {display:flex;gap:.35rem;align-items:center}
.icon-btn {width:39px;height:39px;display:grid;place-items:center;border:1px solid transparent;border-radius:50%;color:var(--text)}
.icon-btn:hover {background:var(--bg-elev);border-color:var(--border)}
.search-icon {width:15px;height:15px;border:1.7px solid currentColor;border-radius:50%;position:relative;display:inline-block;flex:none;margin:0 3px 3px 0}
.search-icon::after {content:"";position:absolute;width:8px;height:1.8px;right:-6px;bottom:-3px;transform:rotate(45deg);background:currentColor;border-radius:2px}
.theme-icon {display:block;width:17px;height:17px;border:1.7px solid currentColor;border-radius:50%;background:linear-gradient(90deg,currentColor 50%,transparent 50%);transform:rotate(-33deg)}
.load-status,noscript {display:block;padding:1rem var(--gutter);background:var(--gold-soft);margin:0}
.load-status a,.load-status button {text-decoration:underline}
.hero {position:relative;isolation:isolate;color:#fff9e8;background:#224245;overflow:hidden}
.hero-art {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:67% 53%;z-index:-2}
.hero::before {content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#10292df0 0%,#153136dd 16%,#18323895 36%,#1b303725 63%,transparent 86%),linear-gradient(0deg,#112e3947,transparent 29%)}
.hero-inner {display:flex;align-items:center;min-height:clamp(322px,26vw,391px);padding-block:34px 38px}
.hero-copy {max-width:36rem}
.hero-series {display:flex;align-items:center;gap:.65rem;margin:0 0 .3rem;color:#f1d49c;font-size:.9rem;letter-spacing:.17em;font-weight:600}
.hero-series span {display:inline-block;width:24px;height:1px;background:#c9a86c}
.hero h1 {margin:0;color:#fff8df;font:600 clamp(3.6rem,5.6vw,5.4rem)/1.22 var(--display);letter-spacing:.105em;text-shadow:0 2px 10px #09212648}
.hero-en {margin:.05rem 0 1.55rem;font:italic 1.27rem/1.3 Georgia,var(--display);letter-spacing:.035em;color:#e9e1c9}
.hero-search {display:flex;align-items:center;gap:.95rem;min-height:46px;padding:0 .8rem 0 1.1rem;width:clamp(282px,27vw,386px);border:1px solid #e5e6d2;border-radius:4px;color:#294344;background:#fffdf1f5;text-align:left;box-shadow:0 3px 14px #10212925;font-size:.92rem}
.hero-search:hover {background:#fff}
.hero-search kbd {margin-left:auto;border:1px solid #c7cabb;color:#62706c;border-radius:3px;padding:0 .42rem;font:1rem/1.45 Georgia,serif}
.art-credit {position:absolute;right:var(--gutter);bottom:12px;padding:1px 6px;color:white;background:#152a2caa;font-size:.75rem;letter-spacing:.025em}
.home-content {padding-block:2rem 3.6rem}
.section-head {display:flex;gap:1rem;align-items:baseline;justify-content:space-between;margin:0 0 1rem}
h1,h2,h3,h4 {font-family:var(--display);line-height:1.38}
.section-head h2,.sub-heading {margin:0;font-size:clamp(1.45rem,2.1vw,2.05rem);font-weight:700;letter-spacing:.045em}
.text-link {font-size:.87rem;color:var(--text-muted);padding-bottom:.1rem;border-bottom:1px solid var(--border);white-space:nowrap}
.text-link:hover {color:var(--teal);border-color:currentColor}
.route-shelf {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(.65rem,1.45vw,1.4rem)}
.route-poster {--livery:#344b60;--shade:#20374a;--light:#d9c1a1;min-width:0;border:1px solid var(--border);background:var(--bg-card);border-radius:4px;overflow:hidden}
.poster-dit {--livery:#665163;--shade:#45364d;--light:#ddbfab}
.poster-seo {--livery:#496158;--shade:#2d4743;--light:#dfd2ad}
.poster-led {--livery:#88525a;--shade:#5c3545;--light:#dfbdac}
.poster-link {height:clamp(146px,12.4vw,192px);display:flex;flex-direction:column;justify-content:center;padding:1rem clamp(.78rem,1.45vw,1.55rem);isolation:isolate;position:relative;overflow:hidden;background:linear-gradient(110deg,var(--shade),var(--livery) 72%);color:#fff7df}
.poster-link::before {content:"";position:absolute;z-index:-1;inset:0;background:repeating-linear-gradient(125deg,transparent 0 27px,#fff2 28px,transparent 29px 51px);opacity:.32}
.poster-link::after {position:absolute;inset:0;z-index:-1;content:"";background:linear-gradient(90deg,var(--shade),color-mix(in srgb,var(--shade) 89%,transparent) 22%,transparent 66%)}
.poster-link img {position:absolute;z-index:-1;height:115%;width:auto;right:-13%;top:1%;object-fit:contain;filter:drop-shadow(-3px 2px 5px #08181c29);transition:transform .24s ease}
.poster-link:hover img {transform:scale(1.045);transform-origin:60% 55%}
.poster-faction {font-size:.79rem;color:#fff1ce;letter-spacing:.055em}
.poster-link h3 {margin:.39rem 0 0;font-size:clamp(1.4rem,1.9vw,2rem);text-shadow:0 1px 7px #15272daf}
.poster-en {font:italic 1.01rem/1.4 Georgia,serif;color:#f2e7cd}
.poster-foot {display:flex;align-items:center;justify-content:space-between;gap:.35rem;padding:.58rem .95rem;font-size:.84rem}
.poster-foot a:hover {text-decoration:underline}
.poster-foot a:last-child {color:var(--text-muted);border-left:1px solid var(--border);padding-left:.65rem}
.home-columns {display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:clamp(2rem,4vw,4rem);margin-top:2.45rem}
.collections {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:1.5rem;border-top:1px solid var(--border)}
.collection,.reading-entry {display:flex;align-items:center;gap:.8rem;border-bottom:1px solid var(--border);padding:.94rem .2rem;min-width:0}
.collection:hover strong,.reading-entry:hover strong {color:var(--teal);text-decoration:underline;text-underline-offset:.25em}
.collection-icon {display:grid;place-items:center;flex:none;width:42px;height:42px;color:var(--teal);background:var(--bg-elev);border:1px solid var(--border);border-radius:50%}
.collection-icon img {width:27px;height:27px;object-fit:contain}
.collection-icon span {font:1.48rem Georgia,"Segoe UI Symbol",serif}
.collection strong,.reading-entry strong {display:block;font-size:1.04rem;font-weight:650;line-height:1.45}
.collection small,.reading-entry small {display:block;color:var(--text-muted);font-size:.82rem;margin-top:.1rem}
.reading-list {border-top:1px solid var(--border)}
.reading-entry {display:block;padding:.66rem 0 .65rem 1.05rem;position:relative}
.reading-entry::before {content:"";position:absolute;width:5px;height:5px;transform:rotate(45deg);background:var(--gold);top:1.18rem;left:1px}
.reading-entry small {color:var(--gold);margin:0 0 .1rem}
.inner-panel {padding-block:clamp(1.75rem,4vw,3.2rem) 4rem;min-height:70vh}
.panel-head {margin-bottom:1.45rem}
.panel-head h1 {font-size:clamp(2rem,3.5vw,3.2rem);margin:0}
.panel-head p {margin:.5rem 0 0;max-width:56rem;color:var(--text-muted)}
.controls,.tag-pills,.badge-row,.legend-filters,.tl-meta,.holder-chips,.dual-date-row {display:flex;align-items:center;gap:.55rem;flex-wrap:wrap}
.controls {background:var(--bg-elev);padding:.75rem;margin:0 0 1.15rem;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
input[type=search],select,.btn-secondary {background:var(--bg-card);border:1px solid var(--border);border-radius:3px;min-height:40px;padding:.42rem .7rem;font-size:.91rem;max-width:100%}
input[type=search] {width:min(100%,20rem)}
input::placeholder {color:var(--text-muted)}
select {appearance:none;padding-right:2.05rem;background-image:linear-gradient(45deg,transparent 50%,var(--text-muted) 50%),linear-gradient(135deg,var(--text-muted) 50%,transparent 50%);background-position:calc(100% - 16px) center,calc(100% - 11px) center;background-size:5px 5px;background-repeat:no-repeat}
input[type=checkbox] {accent-color:var(--teal)}
.toggle-check,.legend-filters label {display:inline-flex;gap:.3rem;align-items:center;min-height:32px;font-size:.91rem}
.tag-pills {margin-bottom:1.3rem}
.pill {padding:.32rem .68rem;color:var(--text-muted);font-size:.87rem;border-radius:99px;border:1px solid var(--border);background:var(--bg-card)}
.pill.active,.pill[aria-pressed=true] {background:var(--text);color:var(--bg-card)}
.muted,.mono,.char-names,.career-mini {color:var(--text-muted)}
.mono,.source-box li {font-size:.82rem;overflow-wrap:anywhere;font-family:var(--body)}
.badge,.chip,.holder-chip-avatar {display:inline-flex;align-items:center;line-height:1.5;gap:.25rem;padding:.12rem .45rem;border:1px solid var(--border);border-radius:3px;background:var(--bg-elev);color:var(--text-muted);font-size:.8rem}
.badge.gold,.badge.warn {background:var(--gold-soft);color:var(--gold)}
.badge.ok {color:var(--teal)}
.sub-heading,.subsection {margin:2.2rem 0 1rem}
.cards-grid,.rules-grid,.anchor-grid,.cross-cols {display:grid;gap:.95rem}
.cols-2,.anchor-grid,.cross-cols {grid-template-columns:repeat(2,minmax(0,1fr))}
.cols-3,.rules-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
.card,.route-card,.graph-detail,.tl-item,.anchor-box {border:1px solid var(--border);border-radius:4px;padding:1.1rem 1.25rem;background:var(--bg-card);min-width:0;overflow-wrap:anywhere}
.card h3,.card h4,.graph-detail h3 {font-size:1.25rem;margin:0 0 .4rem}
.card p {margin:.4rem 0}
.tl-top,.char-head,.footer-inner {display:flex;justify-content:space-between;gap:.7rem;align-items:baseline;flex-wrap:wrap}
.timeline {max-width:65rem;padding-left:1rem;border-left:1px solid var(--border);margin-left:5px}
.tl-item {position:relative;margin:.65rem 0 1.15rem}
.tl-item::before {content:"";position:absolute;width:7px;height:7px;left:-21px;top:1.6rem;transform:rotate(45deg);background:var(--gold)}
.tl-title {margin:0;font-size:1.28rem}
.tl-date,.era-divider,.formula-banner {color:var(--gold);font-weight:650}
.tl-summary {max-width:54rem;margin:.6rem 0}
.era-divider {margin:1.15rem 0 .45rem;font-size:1.05rem}
details {margin-top:.6rem}
summary {color:var(--teal);font-size:.9rem;width:fit-content}
.source-box ul {padding-left:1.3rem}
.table-wrap {border:1px solid var(--border);background:var(--bg-card);border-radius:4px;overflow:auto}
.data-table {width:100%;border-collapse:collapse;font-size:.95rem;line-height:1.55}
.data-table th,.data-table td {text-align:left;vertical-align:top;padding:1.05rem;border-bottom:1px solid var(--border);overflow-wrap:anywhere}
.data-table th {background:var(--bg-elev);font-size:.88rem}
.data-table tbody tr:last-child td {border-bottom:none}
.data-table td:first-child {width:23%}
.crown-cell,.char-card-top,.modal-hero,.detail-hero {display:flex;gap:.85rem;align-items:flex-start}
.crown-icon-lg,.crown-icon-fallback {width:44px;height:44px;flex:none;object-fit:contain;padding:4px;background:#334247;border:1px solid #7b775f;border-radius:5px;color:#ebd297}
.crown-icon-fallback,.avatar-fallback {display:grid;place-items:center}
.crown-icon-sm {width:21px;height:21px;object-fit:contain;vertical-align:middle}
.avatar-xs,.avatar-md,.avatar-lg {object-fit:cover;object-position:center top;flex:none;background:var(--bg-elev);border:1px solid var(--border)}
.avatar-xs {width:25px;height:25px;border-radius:50%}
.avatar-md {width:66px;height:66px;border-radius:3px}
.avatar-lg {width:90px;height:90px;border-radius:4px}
.holder-chip-avatar {gap:.3rem;padding:.13rem .46rem .13rem .15rem;border-radius:20px}
.char-card-main {min-width:0;flex:1}
.char-count {font-size:.92rem}
.char-card {position:relative}
.char-card:hover {border-color:var(--teal)}
.char-heading-link::after {content:"";position:absolute;inset:0}
.char-names,.career-mini {font-size:.9rem}
.career-mini {padding-left:1.2rem;margin-bottom:0}
.dot {width:9px;height:9px;border-radius:50%;display:inline-block}
.dot.bloodline {background:#ab8242}.dot.family {background:#398779}.dot.faction {background:#497ca6}.dot.conflict {background:#b25867}
.graph-layout {display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,27%);gap:1rem;align-items:start}
.graph-stage {overflow:auto;max-width:100%;border:1px solid var(--border);border-radius:4px;background:var(--bg-card)}
#relSvg {display:block;width:100%;min-width:760px;height:auto;aspect-ratio:1260/820;user-select:none}
.g-node {touch-action:none}
.graph-detail {max-height:600px;overflow:auto}.graph-detail p {margin:0}
.rel-edge-item {padding:.65rem 0;border-top:1px solid var(--border)}
.route-card {margin:0 0 1rem}
.chapter-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(15rem,100%),1fr));gap:.45rem}
.chapter-item {padding:.4rem .65rem;background:var(--bg-elev);font-size:.95rem;overflow-wrap:anywhere}
.ch-num {margin-right:.6rem;color:var(--gold);font-variant-numeric:tabular-nums}
.modal-backdrop {position:fixed;inset:0;z-index:60;background:#0e262ac4;display:grid;place-items:center;padding:1rem}
.modal-card {position:relative;background:var(--bg-card);border:1px solid var(--border);border-top:3px solid var(--gold);border-radius:4px;padding:1.5rem;max-height:86dvh;width:min(680px,100%);overflow:auto;overflow-wrap:anywhere}
.modal-hero {padding-right:2rem;align-items:center}
.modal-close {position:absolute;right:.65rem;top:.65rem;width:38px;height:38px;line-height:1;font-size:1.4rem;border:1px solid var(--border);background:var(--bg-elev);border-radius:50%}
.anchor-box,.cross-box {background:var(--bg-elev);padding:.85rem}
.cross-cols,.anchor-grid {margin-top:.8rem}
.cross-box h5 {font:600 .91rem var(--body);margin:0 0 .35rem;color:var(--teal)}
.site-footer {padding-block:1.4rem;border-top:1px solid var(--border);background:var(--bg-elev)}
.footer-inner {align-items:center}
.footer-inner strong {font:700 1.05rem var(--display)}
.footer-inner p,.footer-inner a {font-size:.82rem;color:var(--text-muted);margin:.3rem 0}
.footer-inner a {text-decoration:underline;text-underline-offset:3px}
@media(max-width:1050px) {
  :root {--nav-height:98px}
  .header-inner {display:grid;grid-template-columns:1fr auto;gap:0;padding-top:.5rem}
  .header-actions {grid-column:2;grid-row:1}.main-nav {grid-column:1/-1;grid-row:2;gap:1.5rem;overflow-x:auto;scrollbar-width:thin}
  .main-nav a {min-height:44px;flex:none}
  .route-shelf {grid-template-columns:repeat(2,minmax(0,1fr))}
  .poster-link {height:150px}.poster-link img {right:0;height:124%}.poster-link h3 {font-size:1.85rem}
  .cols-3,.rules-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .graph-layout {grid-template-columns:1fr}.graph-detail {max-height:none}
}
@media(max-width:720px) {
  :root {--gutter:1.05rem;--nav-height:95px}
  .brand {font-size:1.12rem}.sigil {width:26px;height:31px}.main-nav {gap:1.12rem}.main-nav a {font-size:.88rem}
  .hero-inner {min-height:299px}.hero-art {object-position:69% 50%}
  .hero::before {background:linear-gradient(90deg,#10292de8,#10292dad 45%,#10292d15 92%)}
  .hero-search {width:min(285px,82vw)}.hero h1 {font-size:3.5rem}.hero-en {font-size:1.09rem}.art-credit {font-size:.75rem;bottom:7px}
  .home-content {padding-block:1.35rem 2.3rem}.section-head {margin-bottom:.75rem}
  .route-shelf {gap:.6rem}.poster-link {height:134px;padding:.7rem}.poster-link img {height:98%;right:-23%;top:auto;bottom:0}
  .poster-link h3 {font-size:1.4rem;letter-spacing:0}.poster-en {font-size:.88rem}.poster-faction {font-size:.76rem}
  .poster-foot {padding:.38rem .5rem;font-size:.8rem}.poster-foot a:last-child {padding-left:.38rem}
  .home-columns {grid-template-columns:1fr;gap:1.6rem;margin-top:1.75rem}.collections {column-gap:.9rem}
  .collection {gap:.5rem}.collection-icon {width:33px;height:33px}.collection strong {font-size:.96rem}.collection small {font-size:.78rem}
  .cols-2,.cols-3,.rules-grid,.anchor-grid,.cross-cols {grid-template-columns:1fr}
  .inner-panel {padding-top:1.35rem}.controls {gap:.5rem}.controls input[type=search] {width:100%}
  .controls select {flex:auto}.card,.route-card,.tl-item {padding:.9rem}
  .table-wrap {background:none;border:0;overflow:visible}.data-table,.data-table tbody,.data-table tr,.data-table td {display:block;width:100%}
  .data-table thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .data-table tbody tr {border:1px solid var(--border);background:var(--bg-card);margin-bottom:.9rem;border-radius:4px;padding:.5rem .95rem}
  .data-table td {padding:.6rem .1rem;border-bottom:1px solid var(--border)}.data-table td:first-child {width:100%}
  .data-table td[data-column]::before {content:attr(data-column);display:block;color:var(--text-muted);font:.8rem/1.4 var(--body);margin-bottom:.35rem}
  .modal-card {padding:1rem}.modal-hero {align-items:flex-start}.avatar-lg {width:64px;height:64px}
  .graph-detail {order:-1}
}
@media(max-width:360px) {
  .poster-foot {flex-wrap:wrap;row-gap:.1rem}.poster-foot a:last-child {border:0;padding:0}
  .poster-faction {max-width:6em}.collections {grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {scroll-behavior:auto!important;transition:none!important;animation:none!important}
}
.person-links {display:flex;gap:1.2rem;flex-wrap:wrap}
.person-links a,.holder-chip-avatar[href]:hover,.badge[href]:hover {color:var(--teal);text-decoration:underline;text-underline-offset:.25em}
.person-links:empty {display:none}
.menu-toggle {display:none}
.poster-dit .poster-link img {right:-3%}
.shelf-symbol {display:block;width:20px;height:20px;position:relative}
.shelf-symbol::before,.shelf-symbol::after {content:"";position:absolute}
.symbol-person::before {border:1.6px solid;border-radius:50%;width:6px;height:6px;left:6px;top:0}
.symbol-person::after {border:1.6px solid;border-radius:9px 9px 3px 3px;width:16px;height:8px;left:1px;bottom:0}
.symbol-crown {background:center / contain no-repeat url('assets/crowns/winnercrown.png')}
.symbol-network {background:linear-gradient(33deg,transparent 45%,currentColor 45% 51%,transparent 52%) 1px 6px / 9px 9px no-repeat,linear-gradient(-33deg,transparent 45%,currentColor 45% 51%,transparent 52%) 10px 6px / 9px 9px no-repeat}
.symbol-network::before {width:5px;height:5px;border:1px solid;border-radius:50%;top:0;left:7px;box-shadow:-7px 13px 0 -1px var(--bg-elev),-7px 13px 0 0 currentColor,7px 13px 0 -1px var(--bg-elev),7px 13px 0 0 currentColor}
.symbol-years::before {height:16px;width:1.5px;background:currentColor;left:3px;top:2px}
.symbol-years::after {width:12px;height:2px;left:6px;top:3px;background:currentColor;box-shadow:0 6px currentColor,0 12px currentColor}
.symbol-book::before,.symbol-book::after {top:3px;height:14px;width:8px;border:1.4px solid}
.symbol-book::before {left:0;transform:skewY(8deg);border-radius:3px 0 0 0}
.symbol-book::after {right:0;transform:skewY(-8deg);border-radius:0 3px 0 0}
.symbol-comparison::before,.symbol-comparison::after {width:10px;height:13px;border:1.5px solid;transform:rotate(37deg);top:3px;border-radius:3px}
.symbol-comparison::before {left:1px}.symbol-comparison::after {right:0}
@media(max-width:720px) {
  :root {--nav-height:56px}
  .header-inner {display:flex;min-height:var(--nav-height);padding-top:0;gap:.2rem}
  .menu-toggle {display:flex;gap:.4rem;align-items:center;min-height:38px;padding:0 .4rem;border:0;color:var(--text);font-size:.85rem}
  .menu-toggle i {width:13px;height:8px;border-block:1.5px solid;position:relative}
  .menu-toggle i::after {content:"";position:absolute;height:1px;background:currentColor;top:2px;left:0;right:0}
  .main-nav {display:none}
  .site-header.menu-open .main-nav {position:absolute;display:grid;grid-template-columns:1fr 1fr;gap:0 .8rem;padding:.35rem var(--gutter) .7rem;top:100%;left:0;right:0;background:var(--bg-card);border-bottom:1px solid var(--border);box-shadow:var(--shadow)}
  .main-nav a {padding:.5rem .6rem;border-bottom:0}
  .main-nav a[aria-current="page"] {background:var(--bg-elev);border-left:2px solid var(--gold)}
  .header-actions {gap:.12rem}.icon-btn {width:35px}
  .poster-dit .poster-link img {right:-10%}
  .poster-seo .poster-link img {right:-27%}
  .poster-link::after {background:linear-gradient(90deg,var(--shade),color-mix(in srgb,var(--shade) 90%,transparent) 29%,transparent 84%)}
  .hero-search span {white-space:nowrap}
}
@media(max-width:360px) {
 .hero-search {width:91%;min-width:245px}.brand {gap:.4rem}.brand-tail{margin-left:.3rem;padding-left:.3rem}
}
.official-links {display:flex;gap:.35rem 1rem;flex-wrap:wrap;margin:.6rem 0 0}
.official-links a,.inline-link {font-size:.9rem;color:var(--teal);text-decoration:underline;text-underline-offset:.2em}
.chapter-grid {align-items:start}
.chapter-item {margin:0;min-width:0}
.chapter-item summary {display:block;position:relative;width:100%;min-height:2rem;padding:.26rem 1.25rem .26rem 0;color:var(--text);font-size:.94rem}
.chapter-item summary::after {content:"+";position:absolute;top:.15rem;right:.1rem;color:var(--teal);font:1.2rem/1.5 Georgia,serif}
.chapter-item[open] summary::after {content:"−"}
.chapter-names {display:grid;grid-template-columns:auto 1fr;gap:.25rem .6rem;margin:.6rem 0;padding-top:.6rem;border-top:1px solid var(--border);font-size:.9rem}
.chapter-names dt {color:var(--text-muted)}.chapter-names dd {margin:0}
.chapter-item small {display:block}
.main-nav {min-width:0;overflow-x:auto;scrollbar-width:thin}
.main-nav a,.header-actions {flex:none}
.hero-copy {min-width:0}
@media(max-width:720px) {
  .header-inner {flex-wrap:wrap}
  .route-shelf {grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr))}
  .hero-search {max-width:100%}
  .hero-search span {white-space:normal}
  .home-columns section {min-width:0}
}
@media(max-width:360px) {
  .header-inner {padding-inline:12px}
  .brand {white-space:normal}
  .brand-tail {display:inline-block}
  .hero-search {min-width:0}
  .modal-hero {flex-wrap:wrap}
}
.subsection {flex-wrap:wrap}
.support-partners {padding:.6rem .8rem;background:var(--bg-elev);border-left:2px solid var(--teal)}
.partner-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(235px,100%),1fr));gap:0 1rem;margin:.4rem 0;padding:0;list-style:none}
.partner-grid li {display:flex;align-items:center;justify-content:space-between;gap:.65rem;padding:.4rem 0;border-top:1px solid var(--border)}
.partner-link {display:flex;align-items:center;gap:.45rem;color:var(--teal)}
.partner-link:hover {text-decoration:underline}
.partner-levels {color:var(--text-muted);font-size:.84rem;font-weight:600;white-space:nowrap}
.support-partners .source-box li {margin:.4rem 0}
.support-note {margin:.55rem 0;color:var(--text-muted);font-size:.85rem}
