@charset "UTF-8";
:root {
  --paper: #f7f8fa;
  --white: #fff;
  --ink: #172124;
  --muted: #5c6870;
  --line: #dce2e7;
  --blue: #2852e8;
  --blue-soft: #edf1ff;
  --sidebar: #fff;
  --body: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font: 20px;
  --sidebar-width: 310px;
  --topbar-height: 76px;
  --reading-width: 78ch;
  --radius: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--font)/1.75 var(--body); -webkit-font-smoothing: antialiased; }
body[data-font="large"] { --font: 22px; }
body[data-font="larger"] { --font: 24px; }
button, input, select, textarea { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { color: inherit; border: 0; background: none; cursor: pointer; }
button:disabled { cursor: default; }
a { color: var(--blue); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a, button { touch-action: manipulation; }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
p { margin: 0 0 1.2em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--body); font-style: normal; line-height: 1.18; margin: 0; font-weight: 700; text-wrap: balance; }
em, i { font-style: normal; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 20px; top: -100px; padding: 12px 20px; color: white; background: var(--blue); z-index: 100; border-radius: 8px; font-size: 16px; }
.skip-link:focus { top: 12px; }
.reading-line { position: fixed; inset: 0 0 auto; height: 4px; z-index: 70; pointer-events: none; }
.reading-line span { display: block; width: 0; height: 100%; background: var(--blue); transition: width .1s linear; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); padding: 30px 22px 22px; display: flex; flex-direction: column; background: var(--sidebar); border-right: 1px solid var(--line); z-index: 45; }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 30px; }
.brand { display: flex; align-items: center; gap: 18px; color: var(--ink); text-decoration: none; }
.brand-word { font-size: 37px; font-weight: 850; letter-spacing: -2.6px; line-height: 1; }
.brand-dot { color: var(--blue); }
.brand-caption { padding-left: 16px; border-left: 1px solid var(--line); font-size: 14px; font-weight: 550; line-height: 1.35; color: var(--muted); }
.search-trigger { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); text-align: left; font-size: 15px; }
.search-trigger:hover { border-color: #b8c6f2; background: var(--blue-soft); }
.search-trigger svg { width: 19px; height: 19px; color: var(--muted); }
.search-trigger kbd { margin-left: auto; font: 14px var(--body); color: var(--muted); }
.sidebar-label { display: flex; align-items: center; gap: 10px; margin: 24px 10px 8px; font-size: 14px; color: var(--muted); font-weight: 650; }
.sidebar-label span { margin-left: auto; font-variant-numeric: tabular-nums; }
.toc { flex: 1; min-height: 80px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: #cbd4df transparent; overscroll-behavior: contain; }
.toc a { display: flex; align-items: baseline; gap: 10px; margin: 2px 0; padding: 10px; border-radius: 8px; color: #4f5e67; text-decoration: none; font-size: 15px; line-height: 1.45; }
.toc a:hover { background: #f3f5f8; color: var(--ink); }
.toc a.active { background: var(--blue-soft); color: var(--blue); font-weight: 650; }
.toc .toc-number { width: 22px; flex-shrink: 0; color: #74808a; font-size: 14px; font-variant-numeric: tabular-nums; }
.toc a.active .toc-number { color: var(--blue); }
.toc a.is-read .toc-number { color: #22745b; }
.toc a.is-read .toc-number::before { content: '✓'; }
.toc a.is-read .toc-number .number-value { display: none; }
.toc .toc-intro { margin-bottom: 8px; font-weight: 600; color: var(--ink); }
.toc-intro > span { margin-left: auto; color: var(--blue); }
.glossary-nav { display: flex; align-items: center; gap: 11px; padding: 18px 10px; margin-top: 12px; border-top: 1px solid var(--line); text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink); }
.glossary-nav > span:first-child { font-size: 15px; font-weight: 700; color: var(--blue); }
.glossary-nav > span:last-child { margin-left: auto; font-size: 14px; color: var(--muted); font-weight: 400; }
.sidebar-bottom { padding: 16px 10px 0; border-top: 1px solid var(--line); }
.progress-label { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; line-height: 1.4; }
.progress-label b { font-size: 14px; color: var(--blue); font-weight: 650; font-variant-numeric: tabular-nums; }
.completion-track { height: 6px; background: #e8ecf2; margin-top: 12px; border-radius: 8px; overflow: hidden; }
.completion-track span { display: block; height: 100%; width: 0; background: var(--blue); transition: width .3s; border-radius: inherit; }
.progress-note { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.page-shell { margin-left: var(--sidebar-width); }
.topbar { height: var(--topbar-height); padding: 0 6%; display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); background: rgba(247,248,250,.93); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 35; }
.current-location { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; font-size: 15px; color: var(--muted); }
.current-location > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.location-dot { width: 7px; height: 7px; background: var(--blue); border-radius: 50%; flex-shrink: 0; }
.reading-tools { display: flex; align-items: center; gap: 12px; }
.tool-button { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 5px 10px; min-width: 44px; min-height: 44px; font-size: 15px; border-radius: 8px; }
.tool-button:hover { color: var(--blue); background: var(--blue-soft); }
.font-tool > span:first-child { font-size: 23px; font-weight: 650; line-height: 1; }
.font-tool > span:first-child > span { font-size: 17px; margin-left: 1px; }
.menu-button, .mobile-brand, .mobile-search, .drawer-close { display: none; }
.icon-button { width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 9px; font-size: 29px; line-height: 1; flex-shrink: 0; }
.icon-button:hover { background: var(--blue-soft); color: var(--blue); }
main { max-width: 1500px; margin: 0 auto; }
.hero { padding: 68px 6% 0; }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; font-weight: 650; letter-spacing: .045em; margin-bottom: 28px; }
.eyebrow-line { width: 28px; height: 3px; background: var(--blue); }
.hero h1 { max-width: 1000px; font-size: clamp(60px,6.1vw,100px); line-height: .99; font-weight: 750; letter-spacing: -.055em; }
.title-dot { color: var(--blue); }
.hero-subtitle { font-size: clamp(25px,2.4vw,38px); font-weight: 600; line-height: 1.25; letter-spacing: -.035em; color: var(--blue); margin: 28px 0 0; }
.hero-bottom { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 38px; align-items: end; padding: 32px 0 42px; }
.hero-lead { font-size: 20px; line-height: 1.7; max-width: 640px; color: #4e5d66; margin: 0; }
.hero-actions { display: flex; flex-direction: column; gap: 10px; min-width: 244px; }
.primary-button { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 18px; background: var(--blue); color: #fff; text-decoration: none; font-size: 15px; font-weight: 600; line-height: 1.5; border-radius: 10px; min-height: 54px; transition: background .15s,transform .15s; }
.primary-button:hover { background: #1e43c7; transform: translateY(-2px); }
.primary-button > span { font-size: 23px; }
.continue-button { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 11px 0; font-size: 15px; color: var(--blue); }
.hero-facts { display: grid; grid-template-columns: repeat(3,1fr); padding: 26px 0; border-block: 1px solid var(--line); }
.hero-fact { display: flex; align-items: center; gap: 14px; padding: 0 24px; border-right: 1px solid var(--line); }
.hero-fact:first-child { padding-left: 0; }
.hero-fact:last-child { border-right: 0; padding-right: 0; }
.hero-fact b { font-size: 42px; font-weight: 700; line-height: 1; letter-spacing: -.05em; color: var(--blue); font-variant-numeric: tabular-nums; }
.hero-fact span { font-size: 15px; line-height: 1.45; color: var(--muted); }
.practice-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 18px 0; font-size: 15px; color: var(--muted); }
.practice-summary-mark { display: grid; place-items: center; width: 26px; height: 26px; color: var(--blue); background: #e9eefe; border-radius: 50%; font-size: 18px; }
.practice-summary b { font-size: 14px; font-weight: 600; color: #3159bb; margin-left: auto; }
.page-section { padding: 68px 6%; scroll-margin-top: 24px; }
.section-label { font-size: 14px; color: var(--blue); font-weight: 650; letter-spacing: .02em; line-height: 1.5; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 30px; }
.section-heading h2 { margin-top: 14px; font-size: clamp(36px,3.5vw,56px); letter-spacing: -.045em; line-height: 1.1; }
.chapter-total { flex-shrink: 0; font-size: 15px; line-height: 1.5; color: var(--muted); padding-bottom: 5px; }
.chapter-directory { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #cbd4dd; }
.directory-link { display: grid; grid-template-columns: 34px minmax(0,1fr) 18px; gap: 12px; align-items: baseline; color: var(--ink); text-decoration: none; padding: 24px 0; border-bottom: 1px solid var(--line); }
.directory-link:nth-child(odd) { padding-right: 25px; }
.directory-link:nth-child(even) { padding-left: 25px; border-left: 1px solid var(--line); }
.directory-number { font-size: 17px; font-weight: 650; color: var(--blue); font-variant-numeric: tabular-nums; }
.directory-title { display: block; font-size: 18px; font-weight: 650; line-height: 1.45; letter-spacing: -.02em; }
.directory-lead { display: block; margin-top: 7px; font-size: 15px; color: var(--muted); line-height: 1.5; }
.directory-arrow { color: var(--blue); font-size: 20px; }
.directory-link:hover .directory-title { color: var(--blue); }
.directory-link.is-read .directory-number { color: #22745b; }
.directory-link.is-read .directory-number::after { content: ' ✓'; font-size: 14px; }
.systems-note { margin: 0 6% 72px; padding: 32px; border: 1px solid #d1dcf7; border-radius: var(--radius); background: #edf2ff; }
.systems-note h2 { font-size: 36px; letter-spacing: -.04em; margin: 16px 0 20px; }
.systems-note > p { font-size: 18px; color: #4c6079; max-width: 76ch; line-height: 1.7; }
.strategy-levels { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin-top: 26px; }
.strategy-levels > div { position: relative; padding: 18px 16px 20px; border-radius: 10px; background: white; border-top: 3px solid #8ba5f6; }
.strategy-levels > div:not(:last-child)::after { content: '→'; position: absolute; right: -14px; top: 24px; z-index: 1; width: 16px; color: var(--blue); font-size: 20px; background: #edf2ff; text-align: center; }
.strategy-levels span { display: block; font-size: 14px; color: var(--blue); font-variant-numeric: tabular-nums; margin-bottom: 14px; }
.strategy-levels b { display: block; font-size: 16px; line-height: 1.4; font-weight: 700; overflow-wrap: anywhere; }
.strategy-levels small { display: block; font-size: 14px; line-height: 1.5; color: #586d83; margin-top: 10px; }
.chapter { border-top: 1px solid #cbd4dd; padding-top: 64px; scroll-margin-top: var(--topbar-height); }
.chapter-header { padding: 0 6% 36px; }
.chapter-kicker { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; }
.chapter-index { display: grid; place-items: center; width: 66px; height: 66px; flex-shrink: 0; color: var(--blue); background: var(--blue-soft); border: 1px solid #d4defe; border-radius: 16px; font-size: 30px; font-weight: 700; letter-spacing: -.04em; }
.chapter-kicker .section-label { max-width: 600px; color: var(--muted); font-size: 15px; }
.chapter h2 { max-width: 1100px; font-size: clamp(40px,4vw,64px); letter-spacing: -.045em; line-height: 1.09; }
.chapter-lead { font-size: 22px; max-width: 74ch; line-height: 1.7; color: #53636d; margin: 26px 0 20px; }
.chapter-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 15px; color: var(--muted); }
.chapter-time { display: flex; align-items: center; gap: 7px; }
.chapter-time svg { width: 18px; height: 18px; }
.chapter-minitoc { margin: 0 6% 38px; padding: 24px 26px; background: #eef1f5; border: 1px solid var(--line); border-radius: 12px; }
.chapter-minitoc-label { font-size: 15px; color: var(--ink); font-weight: 650; margin-bottom: 14px; }
.chapter-minitoc ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.chapter-minitoc a { display: block; font-size: 16px; line-height: 1.5; text-decoration: none; color: #4f6486; }
.chapter-minitoc a:hover { color: var(--blue); text-decoration: underline; }
.chapter-content { padding: 0 6%; }
.content-section { max-width: var(--reading-width); padding-bottom: 38px; scroll-margin-top: 110px; min-width: 0; }
.content-section + .content-section { padding-top: 16px; }
.section-title-row { margin-bottom: 24px; }
.content-section h3 { font-size: clamp(27px,2.2vw,34px); font-weight: 700; line-height: 1.3; letter-spacing: -.035em; }
.prose { color: #35464f; font-size: 1em; line-height: 1.8; overflow-wrap: break-word; }
.prose p { margin: 0 0 1.25em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 650; color: var(--ink); }
.prose small { font-size: 16px; }
.prose h4 { margin: 1.7em 0 .75em; font-size: 1.12em; font-weight: 700; line-height: 1.4; letter-spacing: -.025em; }
.prose h5 { margin: 1.5em 0 .5em; font-size: 1em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: .8em 0 1.5em; }
.prose li { margin: .6em 0; padding-left: .2em; }
.prose li::marker { color: var(--blue); }
.prose li > p { margin: .5em 0; }
.prose ul ul, .prose ol ol, .prose ul ol, .prose ol ul { margin: .5em 0; }
.prose blockquote { border-left: 4px solid var(--blue); padding: 4px 0 4px 26px; margin: 1.8em 0; font-size: 1.15em; color: #355ab3; line-height: 1.65; font-weight: 550; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose code { font-family: var(--body); font-size: .9em; background: #edf0f4; padding: 2px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.prose mark { background: #fcf0bf; padding: 1px 3px; }
.prose .callout, .callout { padding: 24px; border: 1px solid #d5e6db; border-left: 4px solid #459d77; background: #eef7f1; border-radius: 8px; margin: 1.7em 0; font-size: 1em; line-height: 1.75; }
.prose .callout.info, .callout.info, .prose .callout--blue { border-color: #d2ddfa; border-left-color: var(--blue); background: var(--blue-soft); }
.prose .callout.warning, .callout.warning { border-color: #e9dab2; border-left-color: #bb963b; background: #fff7e5; }
.prose .callout p:last-child, .callout p:last-child { margin: 0; }
.prose .callout h4 { margin: 0 0 .5em; }
.prose .table-wrap, .table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin: 1.6em 0; scrollbar-width: thin; background: white; }
.prose table { border-collapse: collapse; width: 100%; font-size: 17px; line-height: 1.65; margin: 1.7em 0; }
.prose .table-wrap table { margin: 0; min-width: 460px; }
.prose th { text-align: left; background: #eef2fa; font-weight: 650; color: #304d78; }
.prose td, .prose th { padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose td + td, .prose th + th { border-left: 1px solid var(--line); }
.prose .flow, .flow { display: flex; gap: 14px; align-items: stretch; margin: 1.6em 0; padding: 10px 0; }
.prose .flow > *, .flow > * { position: relative; min-width: 0; flex: 1; padding: 18px; border: 1px solid #d8e1f4; border-top: 3px solid #7f9ded; border-radius: 10px; background: #eef3fc; font-size: 17px; line-height: 1.6; }
.prose .flow > *:not(:last-child)::after, .flow > *:not(:last-child)::after { content: '→'; position: absolute; right: -15px; top: 50%; transform: translateY(-50%); width: 16px; font-size: 18px; color: var(--blue); z-index: 1; }
.prose .flow strong, .flow strong { display: block; margin-bottom: 7px; line-height: 1.45; }
.prose .flow small, .flow small { display: block; font-size: 16px; line-height: 1.55; color: #52687c; }
.prose details { margin: 1.5em 0; border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; background: #f0f3f7; }
.prose summary { cursor: pointer; font-weight: 650; color: #3154a5; }
.prose details[open] summary { margin-bottom: 18px; }
.prose .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.prose .eyebrow { font-size: 15px; font-weight: 600; color: var(--muted); }
.prose .formula { padding: 26px; background: var(--blue-soft); border: 1px solid #d0dbfb; border-radius: 12px; font-size: 1.12em; color: #244ca6; margin: 1.5em 0; line-height: 1.7; text-align: center; font-weight: 600; }
.knowledge-map { margin: 0 0 34px; padding: 24px 0; border-block: 1px solid var(--line); }
.knowledge-map figcaption { font-size: 18px; font-weight: 650; line-height: 1.5; margin-bottom: 18px; color: var(--ink); }
.knowledge-map figcaption span { display: block; margin-top: 7px; font-size: 15px; font-weight: 400; color: var(--muted); }
.knowledge-map .flow { margin: 0; }
.knowledge-map .flow small { font-size: 16px; }
.chapter-footer { max-width: var(--reading-width); margin: 8px 6% 64px; padding-top: 25px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.read-button { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border: 1px solid #bfcce6; border-radius: 10px; background: white; color: #3b5679; min-height: 50px; font-size: 16px; font-weight: 550; }
.check-icon { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid #a6b8d8; border-radius: 5px; font-size: 15px; color: transparent; }
.read-button:hover { border-color: var(--blue); color: var(--blue); }
.read-button[aria-pressed="true"] { background: var(--blue-soft); color: var(--blue); border-color: #b8c9ff; }
.read-button[aria-pressed="true"] .check-icon { color: white; background: var(--blue); border-color: var(--blue); }
.next-chapter { display: flex; align-items: center; justify-content: end; gap: 14px; max-width: 49%; font-size: 16px; line-height: 1.5; color: #4d6587; text-decoration: none; text-align: right; }
.next-chapter:hover { color: var(--blue); }
.next-chapter > span { font-size: 23px; }
.glossary { background: #eef2f6; border-top: 1px solid #d5dfe9; }
.section-description { font-size: 20px; line-height: 1.75; max-width: 70ch; color: #526575; margin-bottom: 28px; }
.glossary-search { display: flex; align-items: center; gap: 14px; padding: 16px 18px; max-width: 700px; background: white; border: 1px solid #cbd7e3; border-radius: 10px; color: #60758d; margin: 26px 0 22px; }
.glossary-search input { min-width: 0; flex: 1; border: 0; background: transparent; outline: 0; color: var(--ink); font-size: 18px; min-height: 28px; }
.glossary-search:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.glossary-search input:focus-visible { outline: 0; }
.glossary-search input::placeholder, .global-search input::placeholder { color: #64778a; opacity: 1; }
.glossary-letters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.glossary-letters a { display: grid; place-items: center; width: 40px; min-height: 42px; border: 1px solid #ced9e5; border-radius: 8px; font-size: 16px; text-decoration: none; color: #49617e; background: #f8fafc; }
.glossary-letters a:hover { color: var(--blue); background: white; border-color: var(--blue); }
.glossary-group { scroll-margin-top: 110px; }
.glossary-letter { padding-bottom: 14px; border-bottom: 1px solid #c6d4e3; margin-top: 40px; font-size: 38px; color: var(--blue); }
.glossary-entry { display: grid; grid-template-columns: minmax(180px,25%) minmax(0,1fr); gap: 28px; padding: 27px 0; border-bottom: 1px solid #d0dbe6; scroll-margin-top: 110px; }
.glossary-entry h4 { font-size: 20px; font-weight: 650; color: #203e63; line-height: 1.5; overflow-wrap: anywhere; }
.glossary-entry p { font-size: 20px; line-height: 1.75; color: #455d74; margin: 0; }
.glossary-entry .term-chapter { display: inline-block; margin-top: 12px; font-size: 15px; color: #4d6b91; line-height: 1.5; text-decoration: none; }
.glossary-entry .term-chapter:hover { color: var(--blue); text-decoration: underline; }
.empty-state { font-size: 18px; color: var(--muted); padding: 20px 0; }
.page-footer { margin: 0 6%; padding: 36px 0 42px; display: flex; align-items: center; gap: 26px; border-top: 1px solid var(--line); }
.footer-brand { font-size: 32px; font-weight: 800; text-decoration: none; color: var(--ink); letter-spacing: -2px; line-height: 1; }
.footer-brand span { color: var(--blue); }
.page-footer p { font-size: 15px; color: var(--muted); line-height: 1.5; margin: 0; }
.back-to-top { display: flex; align-items: center; gap: 12px; margin-left: auto; font-size: 15px; text-decoration: none; white-space: nowrap; }
.search-dialog { padding: 0; width: calc(100% - 32px); max-width: 780px; max-height: min(780px,88dvh); border: 1px solid #cad5e1; border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 100px #112d4b35; overflow: hidden; margin: 6vh auto auto; }
.search-dialog::backdrop { background: #182b446b; backdrop-filter: blur(6px); }
.search-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px 14px; }
.search-dialog-header h2 { font-size: 28px; letter-spacing: -.035em; }
.search-dialog-header .icon-button { display: flex; color: var(--muted); }
.global-search { display: flex; align-items: center; gap: 14px; padding: 15px 18px; margin: 0 28px; border: 1px solid #bdcce1; border-radius: 10px; background: white; color: #60758d; }
.global-search input { min-width: 0; flex: 1; border: 0; background: transparent; font-size: 18px; color: var(--ink); outline: 0; min-height: 30px; }
.global-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px #2852e81c; }
.global-search input:focus-visible { outline: 0; }
.search-summary { padding: 16px 28px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--muted); line-height: 1.5; }
.search-results { overflow-y: auto; max-height: calc(88dvh - 270px); padding: 0 28px; overscroll-behavior: contain; }
.search-result { display: block; padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.search-result:last-child { border: 0; }
.search-result:hover b { color: var(--blue); }
.result-type { display: block; margin-bottom: 6px; font-size: 14px; color: #60758d; }
.search-result b { display: block; font-size: 20px; font-weight: 650; line-height: 1.45; }
.search-result p { margin: 10px 0 0; color: #546a80; font-size: 17px; line-height: 1.7; }
.search-result mark { background: #dce6ff; color: #234aab; padding: 1px 0; }
.search-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 28px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); background: #eef1f6; }
.search-dialog-footer kbd { font: 14px var(--body); padding: 3px 6px; border: 1px solid #c4d0de; border-radius: 4px; margin-right: 4px; }
.search-empty { padding: 24px 0; font-size: 18px; color: var(--muted); }
.toast { position: fixed; bottom: 24px; left: calc(50% + 155px); transform: translate(-50%,15px); opacity: 0; pointer-events: none; max-width: calc(100vw - 32px); padding: 14px 22px; border-radius: 10px; font-size: 16px; color: white; background: #263b4b; text-align: center; box-shadow: 0 8px 35px #14230a20; z-index: 100; transition: opacity .2s,transform .2s; }
.toast.visible { opacity: 1; transform: translate(-50%,0); }
.noscript { position: fixed; inset: auto 0 0; background: #f9ecc6; padding: 18px; color: #674f16; text-align: center; z-index: 100; font-size: 16px; }
.load-error { margin: 30px 6%; padding: 26px; background: #fff7e5; border: 1px solid #e9dab2; border-radius: 12px; font-size: 18px; }
.drawer-shade { display: none; }
@media (max-width: 1280px) {
  .hero h1 { font-size: 76px; }
  .hero-bottom { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions { flex-direction: row; align-items: center; gap: 24px; }
  .primary-button { min-width: 255px; }
  .hero-fact { display: block; padding-inline: 20px; }
  .hero-fact b { display: block; font-size: 38px; margin-bottom: 9px; }
  .hero-fact span { display: block; }
  .chapter-directory { grid-template-columns: 1fr; }
  .directory-link:nth-child(odd), .directory-link:nth-child(even) { padding: 22px 0; border-left: 0; }
  .chapter-minitoc ol { grid-template-columns: 1fr; }
  .strategy-levels { grid-template-columns: 1fr; gap: 14px; }
  .strategy-levels > div { display: grid; grid-template-columns: 34px minmax(150px,1fr) minmax(0,1.5fr); align-items: baseline; gap: 16px; border-top: 0; border-left: 3px solid #8ba5f6; padding: 16px 20px; }
  .strategy-levels span, .strategy-levels small { margin: 0; }
  .strategy-levels > div:not(:last-child)::after { content: '↓'; right: auto; left: 24px; top: auto; bottom: -19px; width: 18px; background: #edf2ff; }
  .prose .flow, .flow { flex-direction: column; gap: 18px; }
  .prose .flow > *:not(:last-child)::after, .flow > *:not(:last-child)::after { content: '↓'; right: auto; left: 22px; top: auto; bottom: -21px; transform: none; font-size: 20px; }
  .glossary-entry { grid-template-columns: 1fr; gap: 10px; }
  .chapter-footer { align-items: start; }
}
@media (max-width: 1000px) {
  :root { --topbar-height: 70px; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; z-index: 60; max-width: min(88vw,350px); width: 350px; }
  .drawer-close { display: flex; }
  .menu-open .sidebar { transform: translateX(0); }
  .drawer-shade { position: fixed; inset: 0; background: #14283966; backdrop-filter: blur(3px); z-index: 55; }
  .menu-open .drawer-shade { display: block; }
  body.menu-open { overflow: hidden; }
  .page-shell { margin-left: 0; }
  .menu-button, .mobile-search { display: flex; }
  .mobile-brand { display: block; color: var(--ink); text-decoration: none; font-size: 28px; font-weight: 850; line-height: 1; letter-spacing: -2px; }
  .mobile-brand span { color: var(--blue); }
  .topbar { padding-inline: 4%; gap: 14px; }
  .current-location { justify-content: center; font-size: 14px; }
  .location-dot { display: none; }
  .hero { padding-top: 54px; }
  .hero h1 { font-size: clamp(68px,10vw,92px); }
  .hero-bottom { grid-template-columns: minmax(0,1fr) auto; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .hero-fact { display: flex; align-items: center; gap: 16px; }
  .hero-fact b { margin: 0; }
  .chapter-directory { grid-template-columns: 1fr 1fr; }
  .directory-link:nth-child(odd) { padding-right: 20px; }
  .directory-link:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .toast { left: 50%; }
}
@media (max-width: 680px) {
  :root { --font: 18px; --topbar-height: 66px; scroll-padding-top: 90px; }
  body[data-font="large"] { --font: 20px; }
  body[data-font="larger"] { --font: 22px; }
  .topbar { gap: 8px; padding-inline: 14px; }
  .menu-button { margin-left: -5px; }
  .mobile-brand { font-size: 27px; }
  .current-location { display: none; }
  .reading-tools { margin-left: auto; gap: 4px; }
  .font-tool-label { display: none; }
  .tool-button { padding-inline: 8px; }
  .sidebar { padding: 24px 18px 20px; }
  .sidebar-header { margin-bottom: 24px; }
  .brand-word { font-size: 34px; }
  .brand-caption { font-size: 14px; padding-left: 12px; }
  .brand { gap: 13px; }
  .sidebar-label { margin-top: 20px; }
  .toc a { padding-block: 11px; font-size: 15px; }
  .glossary-nav { padding-block: 15px; }
  .sidebar-bottom { padding-top: 14px; }
  .hero { padding: 38px 6% 0; }
  .hero-eyebrow { font-size: 14px; gap: 10px; margin-bottom: 26px; letter-spacing: 0; }
  .eyebrow-line { width: 20px; }
  .hero h1 { font-size: clamp(55px,13vw,80px); letter-spacing: -.055em; }
  .hero-subtitle { font-size: clamp(25px,6vw,32px); line-height: 1.35; margin-top: 24px; }
  .hero-bottom { grid-template-columns: 1fr; gap: 26px; padding: 24px 0 30px; }
  .hero-lead { font-size: 18px; line-height: 1.75; }
  .hero-actions { align-items: stretch; gap: 6px; min-width: 0; }
  .primary-button { min-width: 0; padding: 15px 18px; font-size: 16px; }
  .continue-button { font-size: 15px; min-height: 48px; }
  .hero-facts { padding: 24px 0; }
  .hero-fact { display: block; padding: 0 12px; }
  .hero-fact b { display: block; font-size: 32px; margin-bottom: 8px; }
  .hero-fact span { font-size: 14px; line-height: 1.5; }
  .practice-summary { padding: 16px 0; align-items: start; gap: 9px; font-size: 15px; line-height: 1.5; }
  .practice-summary > span:nth-child(2) { flex: 1; }
  .practice-summary b { margin-left: 35px; flex-basis: 100%; }
  .practice-summary-mark { width: 25px; height: 25px; }
  .page-section { padding: 46px 6%; }
  .section-heading { align-items: start; gap: 12px; margin-bottom: 26px; }
  .section-heading h2 { font-size: 38px; letter-spacing: -.045em; margin-top: 14px; }
  .section-label { font-size: 14px; }
  .chapter-total { font-size: 14px; max-width: 84px; text-align: right; padding-top: 3px; white-space: normal; }
  .chapter-directory { grid-template-columns: 1fr; }
  .directory-link:nth-child(odd), .directory-link:nth-child(even) { padding: 22px 0; border-left: 0; }
  .directory-link { grid-template-columns: 30px minmax(0,1fr) 18px; gap: 10px; }
  .directory-title { font-size: 18px; }
  .directory-lead { font-size: 15px; }
  .directory-number { font-size: 16px; }
  .systems-note { padding: 24px 20px; margin: 0 6% 48px; }
  .systems-note h2 { font-size: 32px; line-height: 1.15; }
  .systems-note > p { font-size: 18px; }
  .strategy-levels { margin-top: 22px; }
  .strategy-levels > div { grid-template-columns: 28px minmax(0,1fr); gap: 6px 12px; padding: 16px 14px; }
  .strategy-levels span { grid-row: 1/3; padding-top: 1px; }
  .strategy-levels small { font-size: 15px; }
  .strategy-levels b { font-size: 17px; }
  .strategy-levels > div:not(:last-child)::after { left: 20px; }
  .chapter { padding-top: 42px; }
  .chapter-header { padding-bottom: 28px; }
  .chapter-kicker { gap: 15px; margin-bottom: 26px; }
  .chapter-index { width: 55px; height: 55px; font-size: 26px; border-radius: 13px; }
  .chapter-kicker .section-label { font-size: 15px; line-height: 1.5; }
  .chapter h2 { font-size: clamp(34px,8vw,48px); letter-spacing: -.04em; line-height: 1.14; }
  .chapter-lead { font-size: 20px; line-height: 1.75; margin-top: 24px; }
  .chapter-meta { font-size: 15px; }
  .chapter-minitoc { padding: 22px 20px; margin-bottom: 32px; }
  .chapter-minitoc ol { grid-template-columns: 1fr; gap: 12px; }
  .chapter-minitoc a { font-size: 16px; }
  .content-section { padding-bottom: 32px; scroll-margin-top: 95px; }
  .content-section + .content-section { padding-top: 8px; }
  .content-section h3 { font-size: 27px; line-height: 1.35; }
  .section-title-row { margin-bottom: 22px; }
  .prose { line-height: 1.85; }
  .prose h4 { font-size: 1.1em; line-height: 1.45; }
  .prose ul, .prose ol { padding-left: 1.25em; }
  .prose li { padding-left: .1em; }
  .prose blockquote { padding-left: 20px; font-size: 1.1em; }
  .prose .callout, .callout { padding: 20px 18px; }
  .prose .two-col { grid-template-columns: 1fr; gap: 12px; }
  .prose th, .prose td { padding: 13px 14px; }
  .prose table { font-size: 16px; }
  .prose .flow > *, .flow > * { padding: 18px; font-size: 17px; }
  .prose .flow small, .flow small, .knowledge-map .flow small { font-size: 16px; }
  .prose details { padding: 20px 18px; }
  .prose .formula { padding: 22px 18px; }
  .knowledge-map { margin-bottom: 28px; padding: 22px 0; }
  .knowledge-map figcaption { font-size: 18px; }
  .knowledge-map figcaption span { font-size: 15px; }
  .chapter-footer { margin-bottom: 42px; padding-top: 24px; flex-direction: column; align-items: stretch; gap: 20px; }
  .read-button { justify-content: center; padding: 15px 18px; min-height: 54px; font-size: 16px; }
  .next-chapter { max-width: none; justify-content: space-between; text-align: left; font-size: 16px; min-height: 44px; }
  .section-description { font-size: 18px; }
  .glossary-search { margin-top: 24px; padding: 14px 15px; gap: 10px; }
  .glossary-search input { font-size: 17px; }
  .glossary-letters { gap: 7px; }
  .glossary-letters a { width: 39px; min-height: 42px; font-size: 16px; }
  .glossary-letter { font-size: 34px; margin-top: 34px; }
  .glossary-entry { grid-template-columns: 1fr; padding-block: 25px; gap: 10px; }
  .glossary-entry h4 { font-size: 20px; }
  .glossary-entry p { font-size: 18px; line-height: 1.8; }
  .glossary-entry .term-chapter { font-size: 15px; }
  .page-footer { padding: 28px 0 34px; gap: 17px; align-items: center; flex-wrap: wrap; }
  .footer-brand { font-size: 29px; }
  .page-footer p { font-size: 14px; }
  .back-to-top { font-size: 15px; gap: 8px; }
  .search-dialog { max-height: 92dvh; margin-top: 4dvh; border-radius: 14px; }
  .search-dialog-header { padding: 20px 18px 14px; gap: 8px; }
  .search-dialog-header h2 { font-size: 25px; }
  .global-search { margin-inline: 18px; padding: 13px 14px; gap: 10px; }
  .global-search input { font-size: 17px; }
  .search-summary { padding: 14px 18px; font-size: 15px; }
  .search-results { padding-inline: 18px; max-height: calc(92dvh - 282px); }
  .search-result { padding: 20px 0; }
  .search-result b { font-size: 19px; }
  .search-result p { font-size: 17px; }
  .result-type { font-size: 14px; }
  .search-dialog-footer { padding: 13px 18px; font-size: 14px; align-items: start; }
  .search-dialog-footer > span:last-child { max-width: 120px; text-align: right; }
  .toast { bottom: 18px; font-size: 15px; padding: 13px 18px; width: max-content; max-width: calc(100vw - 30px); }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
