/* 速六财易: accessible, calm visual system for a data-heavy knowledge site. */
:root {
  color-scheme: light;
  --bg: #f5f8fb;
  --surface: #ffffff;
  --surface-soft: #eef4f7;
  --border: #d9e3eb;
  --line: var(--border);
  --text: #172b3d;
  --muted: #536b80;
  --accent: #c62828;
  --edge: #6e95a4;
  --edge-active: #c62828;
  --tooltip-bg: #fffffff2;
  --title: #173b50;
  --hover: #e9f3f4;
  --font: Inter, "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --shadow-soft: 0 8px 26px #18364b0a;
  --shadow-card: 0 10px 28px #19394d0b;
  --radius-card: 12px;
  --site-header: 72px;
  --site-rail: 240px;
  --site-pad: 32px;
}
:root[data-theme="light"] { color-scheme: light; --bg:#f5f8fb; --surface:#fff; --surface-soft:#eef4f7; --border:#d9e3eb; --line:var(--border); --text:#172b3d; --muted:#536b80; --accent:#c62828; --edge:#6e95a4; --edge-active:#c62828; --tooltip-bg:#fffffff2; --title:#173b50; --hover:#e9f3f4; --shadow-soft:0 8px 26px #18364b0a; --shadow-card:0 10px 28px #19394d0b }
:root[data-theme="dark"] { color-scheme:dark; --bg:#0b1623; --surface:#111f2e; --surface-soft:#15283a; --border:#293b4c; --line:var(--border); --text:#e8eff6; --muted:#afbfcd; --accent:#ff7166; --edge:#4f7789; --edge-active:#ff7166; --tooltip-bg:#132333f2; --title:#d9edf2; --hover:#1a3340; --shadow-soft:0 8px 26px #0000001f; --shadow-card:0 10px 28px #00000024 }

* { box-sizing:border-box }
html { scroll-padding-top:calc(var(--site-header) + 20px); overflow-x:clip }
body,.reading-site { font-family:var(--font); font-size:16px; line-height:1.7; color:var(--text); background:var(--bg); overflow-wrap:anywhere }
button,input,select,textarea { font:inherit }
button,a,select,input[type="checkbox"],summary { cursor:pointer }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[role="button"]:focus-visible { outline:3px solid color-mix(in srgb,var(--accent) 72%,white); outline-offset:3px }
::selection { background:color-mix(in srgb,var(--accent) 22%,transparent); color:var(--text) }
body,.header,.reading-header,.sidebar,.site-sidebar,.inspector,.graph-section,.finance-intro,.problem-hub,.problem-choice,.result-card,.catalog-card,.task,.start-map,.start-page section,.article-content section,dialog,.search,.view-switch,.filters select { transition:background-color .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease }

/* Global navigation and control rhythm. */
.header,.reading-header { height:var(--site-header); min-height:var(--site-header); padding:0 clamp(16px,2.3vw,36px); gap:clamp(18px,2.2vw,34px); background:var(--surface); border-color:var(--border); box-shadow:0 1px 0 #203d5010 }
.brand,.reading-brand { min-width:0; font:700 17px/1.25 var(--font); letter-spacing:0; color:var(--text) }
.brand svg { width:32px }
.brand small,.reading-brand small { display:block; margin-top:3px; color:var(--muted); font:600 10px/1.4 var(--font); letter-spacing:2px }
.primary-nav,.reading-header nav { gap:clamp(14px,2vw,28px); font-size:14px; font-weight:600 }
.primary-nav a,.reading-header nav a { display:inline-flex; align-items:center; min-height:44px; padding:8px 0; color:var(--muted); transition:color .18s ease }
.primary-nav a:hover,.reading-header nav a:hover { color:var(--accent) }
.primary-nav a[aria-current="page"],.reading-header nav a[aria-current="page"] { position:relative; color:var(--accent) }
.primary-nav a[aria-current="page"]::after,.reading-header nav a[aria-current="page"]::after { position:absolute; right:0; bottom:3px; left:0; height:2px; border-radius:2px; background:var(--accent); content:"" }
.header-actions { gap:8px }
.header-actions .text-button,.theme-button,.round-button,.reading-header nav button { min-height:42px; padding:8px 11px; border:1px solid var(--border); border-radius:9px; background:var(--surface); color:var(--muted); font-size:13px; font-weight:550; transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease }
.round-button { width:42px; height:42px; min-width:42px; padding:0; border-radius:50%; font-size:18px }
.theme-button { display:inline-flex; align-items:center; justify-content:center; gap:8px }
.theme-button svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.7 }
.header-actions .text-button:hover,.theme-button:hover,.round-button:hover,.reading-header nav button:hover { border-color:color-mix(in srgb,var(--accent) 38%,var(--border)); background:var(--surface-soft); color:var(--accent) }
.header-actions .text-button span { color:var(--accent); font-weight:700; font-variant-numeric:tabular-nums }
.workspace,.site-workspace { grid-template-columns:var(--site-rail) minmax(0,1fr) }
.sidebar,.site-sidebar { top:var(--site-header); height:calc(100dvh - var(--site-header)); padding:22px 14px 18px; border-color:var(--border); background:var(--surface) }
.sidebar-caption,.site-sidebar .sidebar-caption { padding:0 10px 14px; color:var(--muted); font-size:13px }
.sidebar-caption span { color:var(--muted); font-size:12px }
.nav-item,.business-link { min-height:44px; margin:2px 0; padding:9px 11px; border-radius:9px; color:var(--muted); font-size:14px; line-height:1.4; transition:background .18s ease,color .18s ease }
.nav-item:hover,.business-link:hover { background:var(--surface-soft); color:var(--text) }
.nav-item.active,.business-link.active { background:color-mix(in srgb,var(--accent) 11%,var(--surface)); color:var(--accent); font-weight:650 }
.nav-icon { color:var(--accent); font-size:16px }
.nav-count,.business-link small { color:var(--muted); font-size:12px; font-variant-numeric:tabular-nums }
.sidebar-foot { padding:18px 8px 4px; border-color:var(--border); color:var(--muted); font-size:12px }
.sidebar-foot p { color:var(--muted); font-size:11px }

/* Home and the business graph. */
.main { background:var(--bg) }
.first-screen { height:clamp(660px,calc(100dvh - var(--site-header)),900px); min-height:660px; grid-template-columns:minmax(290px,.34fr) minmax(0,.66fr); border-color:var(--border) }
.first-screen-copy { border-right:1px solid var(--border); background:linear-gradient(145deg,var(--surface),var(--bg)) }
.finance-intro { padding:clamp(28px,3vw,48px); background:transparent }
.eyebrow,.page-kicker { color:var(--accent); font-family:var(--font); font-size:12px; font-weight:700; line-height:1.5; letter-spacing:.07em }
.finance-intro h1 { margin:16px 0 18px; color:var(--text); font-size:clamp(30px,2.55vw,42px); font-weight:700; line-height:1.42; letter-spacing:-.025em }
.intro-lead { max-width:44ch; color:var(--muted); font-size:16px; line-height:1.8 }
.intro-lead strong { color:var(--text); font-weight:650 }
.hero-entry { margin-top:20px }
.hero-entry .intro-inline,.hero-entry .intro-reading { min-height:46px; margin:0; padding:11px 16px; border-radius:9px; font-size:14px; font-weight:650 }
.hero-entry .intro-inline { border:1px solid var(--accent); background:var(--accent); color:#fff }
.hero-entry .intro-inline:hover { transform:translateY(-1px); background:color-mix(in srgb,var(--accent) 85%,#000); color:#fff }
.hero-entry .intro-reading { border:1px solid var(--border); background:var(--surface); color:var(--text) }
.hero-entry .intro-reading:hover { border-color:var(--accent); background:var(--surface-soft); color:var(--accent) }
.hero-entry p,.hero-start,.intro-boundary { color:var(--muted); font-size:13px; line-height:1.65 }
.hero-start { display:inline-block; margin-top:18px }
.graph-section,.first-screen-atlas .graph-section { height:100%; min-height:0; background:radial-gradient(ellipse at 56% 45%,color-mix(in srgb,var(--accent) 11%,transparent),transparent 60%),var(--bg) }
.graph-section:before { background-image:radial-gradient(circle,color-mix(in srgb,var(--muted) 24%,transparent) 1px,transparent 1px); background-size:34px 34px; opacity:.45 }
.graph-controls,.dimension-switch,.focus-reset { border:1px solid var(--border); border-radius:10px; background:color-mix(in srgb,var(--surface) 94%,transparent); box-shadow:var(--shadow-soft); backdrop-filter:blur(10px) }
.graph-controls { gap:5px; padding:5px }
.graph-controls select,.filters select { min-height:40px; padding:7px 30px 7px 11px; border:1px solid var(--border); border-radius:8px; background:var(--surface); color:var(--text); font-size:13px }
.graph-controls button,.dimension-switch button { min-width:38px; min-height:38px; border-radius:7px; color:var(--muted); font-size:15px }
.graph-controls button:hover,.dimension-switch button:hover { background:var(--surface-soft); color:var(--accent) }
.dimension-switch { gap:4px; padding:4px }
.dimension-switch button { min-width:45px; font-size:13px }
.dimension-switch button.active { background:color-mix(in srgb,var(--accent) 14%,var(--surface)); color:var(--accent); font-weight:700 }
.focus-reset { min-height:40px; padding:8px 12px; color:var(--text); font-size:13px }
.graph-heading { top:26px; left:28px }
.graph-heading h2 { color:var(--text); font-size:19px; font-weight:650; line-height:1.5 }
.graph-heading p,.graph-label,.graph-tip { color:var(--muted); font-size:12px }
.graph-label span { color:var(--muted); font-size:11px }
.graph-footer { bottom:18px }
.legend { max-width:75%; color:var(--muted); font-size:11px }
.graph-tooltip { padding:16px; border:1px solid var(--border); border-radius:12px; background:var(--tooltip-bg); box-shadow:0 14px 38px #162d401f; color:var(--text); font-size:14px; backdrop-filter:blur(12px) }
.graph-tooltip p,.graph-tooltip small { color:var(--muted); font-size:13px; line-height:1.65 }
.atlas-title { paint-order:stroke; stroke:var(--bg); stroke-width:3px; stroke-linejoin:round; font-family:var(--font); font-weight:650 }
.edge-hit { stroke-width:12px }
.toolbar { height:auto; min-height:76px; gap:12px; padding-top:16px; padding-bottom:14px }
.search { min-height:48px; padding:0 14px; border:1px solid var(--border); border-radius:10px; background:var(--surface); box-shadow:var(--shadow-soft) }
.search:focus-within { border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 15%,transparent) }
.search input { min-height:44px; color:var(--text); font-size:15px }
.search input::placeholder { color:var(--muted) }
.search kbd { padding:2px 6px; border-color:var(--border); background:var(--surface-soft); color:var(--muted); font-size:11px }
.view-switch { padding:4px; border:1px solid var(--border); border-radius:10px; background:var(--surface) }
.view-switch button { min-height:38px; padding:7px 13px; border-radius:7px; color:var(--muted); font-size:13px }
.view-switch button.active { background:color-mix(in srgb,var(--accent) 12%,var(--surface)); color:var(--accent); font-weight:650 }
.filters { min-height:64px; gap:10px 12px; padding-bottom:14px; border-color:var(--border) }
.checkbox-label { min-height:40px; padding:0 6px; color:var(--muted); font-size:13px }
.checkbox-label input { width:16px; height:16px; accent-color:var(--accent) }
.reset-filters { min-height:40px; padding:8px 10px; border-radius:8px; color:var(--accent); font-size:13px }
.reset-filters:hover { background:var(--surface-soft) }
.filter-count { color:var(--muted); font-size:12px; font-variant-numeric:tabular-nums }
.list-heading h2,.problem-hub>h2 { color:var(--text); font-size:24px; font-weight:700; line-height:1.4; letter-spacing:-.02em }
.problem-hub { padding-top:36px; padding-bottom:36px; border-color:var(--border); background:var(--surface) }
.problem-hub>h2 { margin:8px 0 22px }
.problem-cards { gap:14px }
.problem-choice { min-height:150px; padding:21px; border:1px solid var(--border); border-radius:var(--radius-card); background:var(--bg); box-shadow:var(--shadow-soft) }
.problem-choice h3 { color:var(--text); font-size:16px; font-weight:650; line-height:1.55 }
.problem-choice p { color:var(--muted); font-size:14px; line-height:1.7 }
.problem-choice>span { color:var(--accent); font-size:12px; font-weight:650 }
.problem-choice:hover,.problem-choice.active { transform:translateY(-1px); border-color:color-mix(in srgb,var(--accent) 58%,var(--border)); background:color-mix(in srgb,var(--accent) 5%,var(--surface)); box-shadow:var(--shadow-card) }
.list-section { padding-top:26px; padding-bottom:44px }
.result-grid,.catalog-grid,.reading-cards,.related-project-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; align-items:stretch; max-width:1680px }
.result-card,.catalog-card,.mini-card,.reading-cards article { padding:22px; border:1px solid var(--border); border-radius:var(--radius-card); background:var(--surface); box-shadow:var(--shadow-soft); transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background-color .18s ease }
.result-card:hover,.catalog-card:hover,.mini-card:hover,.reading-cards article:hover { transform:translateY(-2px); border-color:color-mix(in srgb,var(--accent) 45%,var(--border)); box-shadow:var(--shadow-card) }
.result-card h3,.catalog-card h2,.mini-card h3 { color:var(--text); font-size:18px; font-weight:700; line-height:1.55 }
.result-card p,.catalog-card p,.mini-card p,.inspector p { color:var(--muted); font-size:14px; line-height:1.75 }
.card-label,.card-source-title,.tag { font-size:12px }
.card-value,.card-outcome { font-size:14px; line-height:1.7 }
.article-entry,.page-action { min-height:42px; border-radius:9px; font-size:13px }
.article-entry { border-color:color-mix(in srgb,var(--accent) 30%,var(--border)); background:color-mix(in srgb,var(--accent) 9%,var(--surface)); color:var(--accent) }
.article-entry:hover { background:color-mix(in srgb,var(--accent) 15%,var(--surface)); color:var(--accent) }
.inspector { background:var(--bg); border-color:var(--border); font-size:15px }
.inspector h2 { font-size:24px; font-weight:700; line-height:1.4 }
.inspector .section-label { color:var(--muted); font-size:13px }
.inspector .business-method h3,.inspector .path-card span { color:var(--accent) }
.inspector .path-card { padding:17px; border:1px solid var(--border); border-radius:10px; background:var(--surface); box-shadow:var(--shadow-soft) }
.inspector .path-card h3 { color:var(--text); font-size:15px; line-height:1.55 }
.inspector .path-card p { font-size:13px }
.business-task-grid article,.business-setup-grid section { border-color:var(--border); border-radius:var(--radius-card); background:var(--surface); box-shadow:var(--shadow-soft) }
.mobile-business-guide { border-color:var(--border); background:var(--surface) }

/* Reading pages: clearer type scale, narrower text measure, consistent cards. */
.reading-header { z-index:50; box-shadow:0 1px 0 #203d5010 }
.reading-header nav button { min-height:42px; margin-left:auto; padding:7px 12px }
.site-sidebar { z-index:20 }
.reading-site main,.reading-site:has(.article-toc) main { padding:clamp(24px,3vw,42px) clamp(20px,3vw,40px) 64px }
.breadcrumbs { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 24px; color:var(--muted); font-size:13px }
.breadcrumbs a { color:var(--muted); text-decoration:none }
.breadcrumbs a:hover { color:var(--accent); text-decoration:underline; text-underline-offset:3px }
.reading-site h1 { max-width:32ch; margin:12px 0 18px; color:var(--text); font-size:clamp(30px,3.2vw,44px); font-weight:750; line-height:1.28; letter-spacing:-.025em }
.reading-site h2 { color:var(--text); font-size:clamp(21px,2vw,26px); font-weight:700; line-height:1.4; letter-spacing:-.015em }
.reading-site h3 { color:var(--text); font-size:18px; font-weight:650; line-height:1.5 }
.page-kicker { font-size:12px }
.page-lead { max-width:68ch; color:var(--muted); font-size:17px; line-height:1.8 }
.page-action { display:inline-flex; min-height:44px; align-items:center; justify-content:center; margin:12px 0 16px; padding:10px 15px; border:1px solid var(--border); background:var(--surface); color:var(--accent); font-weight:650; box-shadow:var(--shadow-soft) }
.page-action:hover { border-color:var(--accent); background:color-mix(in srgb,var(--accent) 7%,var(--surface)); color:var(--accent) }
.reading-site section { scroll-margin-top:calc(var(--site-header) + 22px) }
.page-guide main { gap:20px }
.page-guide main>section { padding:24px; margin:0; border:1px solid var(--border); border-radius:var(--radius-card); background:var(--surface); box-shadow:var(--shadow-soft) }
.page-guide main>section>p,.page-guide main>section>ol { max-width:72ch }
.page-guide .task { margin:0; padding:20px; border:1px solid var(--border); border-radius:10px; background:var(--bg) }
.page-guide .task h3 { font-size:17px }
.page-guide .task p,.page-guide li { color:var(--muted); font-size:15px; line-height:1.8 }
.reading-cards { margin:24px 0 }
.reading-cards article { min-height:210px; margin:0 }
.reading-cards h2,.reading-cards h3 { font-size:18px; line-height:1.5 }
.reading-cards p { color:var(--muted); font-size:14px; line-height:1.75 }
.catalog-search { gap:9px; margin:24px 0 0; color:var(--text); font-size:14px; font-weight:650 }
.catalog-search input { min-height:48px; padding:11px 14px; border:1px solid var(--border); border-radius:10px; background:var(--surface); color:var(--text); font-size:15px; box-shadow:var(--shadow-soft) }
.catalog-search input:focus { border-color:var(--accent); outline:3px solid color-mix(in srgb,var(--accent) 15%,transparent) }
.catalog-filters { gap:8px; margin:18px 0 }
.catalog-filters button { min-height:42px; padding:8px 13px; border-color:var(--border); border-radius:999px; background:var(--surface); color:var(--muted); font-size:13px; font-weight:600 }
.catalog-filters button:hover { border-color:var(--accent); color:var(--accent) }
.catalog-filters button[aria-pressed="true"] { border-color:var(--accent); background:color-mix(in srgb,var(--accent) 12%,var(--surface)); color:var(--accent) }
#catalogCount { margin:14px 0; color:var(--muted); font-size:13px; font-variant-numeric:tabular-nums }
.catalog-card { min-height:260px }
.catalog-card .page-kicker { display:block }
.catalog-card h2 { margin:12px 0; font-size:18px }
.catalog-card p { margin:0 0 20px; color:var(--muted); font-size:14px; line-height:1.8 }
.catalog-card .page-action { margin-top:auto; align-self:flex-start }
.long-article { grid-template-columns:minmax(0,1fr) 260px; gap:28px }
.article-outline { top:calc(var(--site-header) + 20px) }
.article-outline .article-toc { max-height:calc(100dvh - var(--site-header) - 44px); border-color:var(--border); border-radius:var(--radius-card); background:var(--surface); box-shadow:var(--shadow-soft) }
.article-toc strong { color:var(--text); font-size:14px; font-weight:700 }
.article-toc a { min-height:36px; padding:7px 9px; border-radius:7px; color:var(--muted); font-size:13px; line-height:1.5 }
.article-toc a:hover,.article-toc a[aria-current="true"] { background:var(--surface-soft); color:var(--accent) }
.article-content { max-width:1160px }
.article-heading { grid-template-columns:minmax(0,1.4fr) minmax(270px,.8fr); gap:18px 28px; margin:0 0 8px }
.article-heading>.article-summary { align-self:stretch; padding:20px; border:1px solid var(--border); border-radius:var(--radius-card); background:var(--surface); box-shadow:var(--shadow-soft) }
.project-identity,.article-meta { color:var(--muted); font-size:13px }
.article-meta { margin-bottom:14px }
.article-summary strong { color:var(--accent); font-size:13px }
.article-summary p { color:var(--muted); font-size:14px; line-height:1.75 }
.article-content section { margin:18px 0; padding:24px 26px; border:1px solid var(--border); border-radius:var(--radius-card); background:var(--surface); box-shadow:var(--shadow-soft) }
.article-content section h2 { margin-bottom:14px; font-size:22px }
.article-content section p,.article-content section li { max-width:72ch; color:var(--text); font-size:16px; line-height:1.85 }
.article-content section li { margin:8px 0 }
.section-kind { font-size:12px; font-weight:700; line-height:1.5; letter-spacing:.04em }
.article-content .data-table { max-width:100%; margin:18px 0; overflow-x:auto; border:1px solid var(--border); border-radius:10px }
.article-content table { min-width:680px; font-size:14px; line-height:1.65 }
.article-content th,.article-content td { padding:12px 14px; border-color:var(--border) }
.article-content th { background:var(--surface-soft); color:var(--text); font-weight:650 }
.article-content td { color:var(--muted) }
.article-content details { border-color:var(--border); border-radius:10px; background:var(--bg) }
.article-content summary { min-height:40px; color:var(--text); font-size:15px }
.article-content .article-links a { border-color:var(--border); border-radius:9px; background:var(--bg); color:var(--accent) }
.article-content .reading-cards { grid-template-columns:repeat(2,minmax(0,1fr)) }
.article-content .reading-cards article { box-shadow:none }
.start-hero { gap:clamp(24px,4vw,56px); padding:12px 0 32px }
.start-hero h1 { font-size:clamp(32px,3.2vw,48px); line-height:1.3 }
.start-hero .page-lead { font-size:17px; line-height:1.8 }
.start-map { border-color:var(--border); border-radius:var(--radius-card); background:var(--surface); box-shadow:var(--shadow-card) }
.start-map a { min-height:70px; border-color:var(--border) }
.start-map strong { color:var(--text); font-size:16px }
.start-map span { color:var(--muted); font-size:14px; line-height:1.65 }
.start-chapters { position:sticky; top:calc(var(--site-header) + 10px); z-index:10; display:flex; flex-wrap:wrap; gap:8px 18px; border-color:var(--border); border-radius:10px; background:color-mix(in srgb,var(--surface) 94%,transparent); backdrop-filter:blur(10px) }
.start-chapters a { display:inline-flex; min-height:40px; align-items:center; color:var(--muted); font-size:13px }
.start-chapters a:hover { color:var(--accent) }
.start-page section { border:1px solid var(--border); border-radius:var(--radius-card); background:var(--surface); box-shadow:var(--shadow-soft) }
.start-page section p { max-width:72ch; color:var(--text); font-size:16px; line-height:1.85 }
.start-example-grid article { border-color:var(--border); border-radius:var(--radius-card); background:var(--bg); box-shadow:var(--shadow-soft) }
.reading-site footer,.guide-directory { border-color:var(--border); color:var(--muted); font-size:13px }
.reading-site footer a,.guide-directory a { color:var(--accent) }

@media(max-width:1180px) {
  :root { --site-rail:200px; --site-pad:24px }
  .first-screen { grid-template-columns:minmax(270px,.38fr) minmax(0,.62fr) }
  .finance-intro { padding:28px }
  .long-article { grid-template-columns:minmax(0,1fr) 230px; gap:20px }
  .article-heading { grid-template-columns:minmax(0,1fr) minmax(240px,.78fr); gap:18px }
  .result-grid,.catalog-grid,.reading-cards,.related-project-grid { grid-template-columns:repeat(2,minmax(0,1fr)) }
}
@media(max-width:900px) {
  :root { --site-rail:180px; --site-header:76px; --site-pad:22px }
  .first-screen { grid-template-columns:1fr; grid-template-rows:auto minmax(410px,1fr); height:auto; min-height:0 }
  .first-screen-copy { position:static; max-width:none; border-right:0; border-bottom:1px solid var(--border) }
  .finance-intro { padding:28px 30px }
  .finance-intro h1 { font-size:32px }
  .intro-lead { max-width:70ch }
  .first-screen-atlas { height:520px }
  .first-screen-atlas .graph-section { height:100%; min-height:0 }
  .graph-heading { display:block; top:22px; left:22px }
  .graph-controls { top:20px; right:18px }
  .dimension-switch { top:66px; right:18px }
  .focus-reset { top:110px; right:18px }
  .inspector { padding:24px }
  .long-article { display:flex; flex-direction:column }
  .article-outline { position:sticky; top:calc(var(--site-header) + 8px); z-index:12; order:-1 }
  .article-outline .article-toc { display:flex; max-height:116px; flex-direction:row; align-items:center; gap:6px; overflow:auto; padding:10px; white-space:nowrap }
  .article-toc strong { position:sticky; left:0; z-index:1; padding:5px 8px; background:var(--surface) }
  .article-toc .toc-return { margin:0 0 0 auto; padding:7px 12px; border-top:0; border-left:1px solid var(--border) }
  .article-heading { grid-template-columns:minmax(0,1fr) minmax(250px,.8fr) }
  .article-content { max-width:none }
  .page-guide main { display:block }
  .page-guide main>section { margin:18px 0 }
  .page-guide main>section:has(.task) { grid-template-columns:repeat(2,minmax(0,1fr)) }
}
@media(max-width:680px) {
  :root { --site-header:112px; --site-rail:0px; --site-pad:17px }
  html { scroll-padding-top:124px }
  .header,.reading-header { display:grid; height:112px; min-height:112px; grid-template-columns:minmax(0,1fr) auto; grid-template-rows:44px 44px; gap:4px 10px; padding:8px 14px }
  .brand,.reading-brand { min-width:0; font-size:16px }
  .brand svg { width:28px }
  .header-actions { grid-column:2; grid-row:1; gap:5px }
  .header-actions .text-button { display:none }
  .theme-button { min-height:40px; padding:7px 9px }
  .theme-button span { display:inline; font-size:12px }
  .round-button { width:40px; height:40px; min-width:40px }
  .primary-nav,.reading-header nav { grid-column:1/-1; grid-row:2; order:unset; width:100%; min-width:0; gap:8px; overflow-x:auto; flex-wrap:nowrap; scrollbar-width:none; font-size:12px }
  .primary-nav::-webkit-scrollbar,.reading-header nav::-webkit-scrollbar { display:none }
  .primary-nav a,.reading-header nav a { flex:0 0 auto; min-height:42px; font-size:12px }
  .reading-header nav button { min-height:38px; flex:0 0 auto; margin-left:0; padding:6px 9px; font-size:12px }
  .workspace,.site-workspace { display:block }
  .sidebar,.site-sidebar { position:static; display:flex; width:100%; height:auto; max-height:none; gap:6px; overflow-x:auto; padding:8px 12px; border-right:0; border-bottom:1px solid var(--border); scrollbar-width:thin }
  .sidebar-caption,.site-sidebar .sidebar-caption,.sidebar-foot,.sidebar #allTopics { display:none }
  .topic-nav { display:flex; flex:0 0 auto; gap:5px; margin:0; overflow:visible }
  .nav-item,.business-link { width:auto; min-height:40px; flex:0 0 auto; margin:0; padding:8px 11px; white-space:nowrap; font-size:13px }
  .nav-count,.business-link small { display:none }
  .reading-site main,.reading-site:has(.article-toc) main { padding:20px 16px 44px }
  .finance-intro { padding:24px 18px }
  .finance-intro h1 { font-size:30px; line-height:1.38 }
  .intro-lead { font-size:16px }
  .hero-entry .intro-inline,.hero-entry .intro-reading { min-height:46px; font-size:14px }
  .first-screen-atlas { height:460px }
  .graph-heading { top:18px; left:16px; max-width:calc(100% - 120px) }
  .graph-heading h2 { font-size:16px }
  .graph-heading p { font-size:12px }
  .graph-controls { top:14px; right:12px; padding:3px }
  .graph-controls select { max-width:105px; min-height:38px; font-size:12px }
  .graph-controls button { min-width:36px; min-height:36px }
  .dimension-switch { top:60px; right:12px }
  .focus-reset { top:105px; right:12px }
  .graph-label { bottom:66px; left:16px; font-size:11px }
  .graph-label span { display:block; margin:2px 0 0 }
  .graph-footer { right:14px; bottom:14px; left:14px }
  .legend { max-width:100%; font-size:10px }
  .graph-tip { display:none }
  .toolbar,.filters { padding-right:16px; padding-left:16px }
  .toolbar { align-items:stretch; flex-direction:column; gap:10px; padding-top:14px }
  .search { width:100%; flex:auto }
  .view-switch { width:100% }
  .view-switch button { flex:1 }
  .filters { align-items:stretch; gap:8px }
  .filters label:has(select) { flex:1 1 calc(50% - 8px) }
  .filters select { width:100%; min-height:44px }
  .checkbox-label,.reset-filters { min-height:44px }
  .filter-count { width:100%; margin:0 }
  .problem-hub,.list-section,.inspector { padding:22px 16px }
  .problem-hub>h2,.list-heading h2 { font-size:22px }
  .problem-cards,.result-grid,.catalog-grid,.reading-cards,.related-project-grid,.article-content .reading-cards { grid-template-columns:1fr }
  .problem-choice { min-height:0; padding:18px }
  .result-card,.catalog-card,.mini-card,.reading-cards article { padding:19px }
  .result-card h3,.catalog-card h2,.mini-card h3 { font-size:17px }
  .reading-site h1 { font-size:30px; line-height:1.32 }
  .page-lead { font-size:16px }
  .page-guide main>section { padding:19px }
  .page-guide main>section:has(.task) { display:grid; grid-template-columns:1fr }
  .page-guide main>section:has(.task)>h2 { grid-column:1 }
  .long-article { gap:16px }
  .article-outline { top:calc(var(--site-header) + 5px); margin:0 -2px }
  .article-outline .article-toc { max-height:105px; gap:3px; padding:8px }
  .article-toc strong { font-size:12px }
  .article-toc a,.article-toc .toc-return { min-height:36px; font-size:12px }
  .article-heading { display:flex; flex-direction:column; gap:8px }
  .article-heading>.article-summary { width:100%; padding:16px }
  .article-content section { margin:14px 0; padding:18px }
  .article-content section h2 { font-size:20px }
  .article-content section p,.article-content section li { font-size:15px; line-height:1.8 }
  .catalog-card { min-height:0 }
  .catalog-filters { flex-wrap:nowrap; overflow-x:auto; padding-bottom:5px; scrollbar-width:thin }
  .catalog-filters button { flex:0 0 auto }
  .start-hero { display:flex; flex-direction:column; align-items:stretch; padding-top:0 }
  .start-hero h1 { font-size:32px }
  .start-map { padding:18px }
  .start-chapters { position:static; gap:3px 12px; padding:9px 12px }
  .start-chapters a { font-size:12px }
  .start-principles,.start-example-grid { grid-template-columns:1fr; gap:14px; margin:16px 0 }
  .start-page section { padding:19px }
  .start-page section h2 { font-size:21px }
  .start-page section p { font-size:15px }
  .guide-directory { margin:18px 16px; padding:16px 0 }
  .reading-site footer { padding:20px 16px }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important } }

/* Compact the left business navigation while keeping clear tap targets on mobile. */
.nav-item,.business-link { min-height:36px; margin:0; padding:4px 11px }
.topic-nav,.site-sidebar { gap:4px }
@media(max-width:680px) { .nav-item,.business-link { min-height:44px; padding:4px 11px } }

/* A reader route from business pain to a project they can evaluate. */
.guide-scope { max-width:88ch; margin:12px 0 18px; color:var(--muted); font-size:14px; line-height:1.75 }
.guide-actions { display:flex; flex-wrap:wrap; gap:10px; margin:8px 0 18px }
.guide-actions .page-action { margin:0 }
.guide-actions .secondary-action { border:1px solid var(--border); background:var(--surface); color:var(--text) }
.guide-route { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:16px 0 30px }
.guide-route a { display:flex; align-items:center; gap:11px; min-height:58px; padding:11px 14px; border:1px solid var(--border); border-radius:10px; background:var(--surface); color:var(--text); text-decoration:none }
.guide-route a:hover { border-color:var(--accent); background:var(--hover) }
.guide-route span { display:grid; width:30px; height:30px; flex:0 0 30px; place-items:center; border-radius:50%; background:color-mix(in srgb,var(--accent) 12%,var(--surface)); color:var(--accent); font-size:12px; font-weight:700 }
.guide-route strong { font-size:13px; line-height:1.45 }
.page-guide main>section.guide-work { display:block; grid-column:1/-1 }
.guide-tasks { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-top:18px }
.guide-tasks .task { padding:20px; border:1px solid var(--border); background:var(--surface); box-shadow:var(--shadow-soft) }
.task-index { display:block; color:var(--accent); font-size:12px; font-weight:700; letter-spacing:.02em }
.page-guide main>section.guide-projects,.page-guide main>section.guide-materials,.page-guide main>section.guide-pilot,.page-guide main>section.guide-connections { grid-column:1/-1 }
.starter-project { margin:18px 0 22px; padding:18px; border:1px solid color-mix(in srgb,var(--accent) 42%,var(--border)); border-radius:12px; background:color-mix(in srgb,var(--accent) 5%,var(--surface)) }
.starter-project .reading-cards { margin-top:10px }
.starter-project .reading-cards article { border-color:color-mix(in srgb,var(--accent) 28%,var(--border)) }
.more-projects { margin-top:18px; padding:14px 16px; border:1px solid var(--border); border-radius:10px; background:var(--surface) }
.more-projects summary { color:var(--accent); font-weight:650; line-height:1.6 }
.more-projects .reading-cards { margin-top:16px }
.connection-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:14px; margin-top:16px }
.connection-card { padding:18px; border:1px solid var(--border); border-radius:10px; background:var(--surface) }
.connection-card h3 { margin:8px 0 10px; font-size:17px; line-height:1.55 }
.connection-card h3 a,.connection-card>a { color:var(--accent); text-decoration:none }
.connection-card p { margin:8px 0; font-size:14px; line-height:1.75 }
.reading-cards .card-problem,.catalog-card .catalog-pain { color:var(--text) }
.reading-cards .card-read { display:inline-block; margin-top:auto; padding-top:12px; color:var(--accent); font-size:14px; font-weight:650; text-decoration:none }
.reading-cards article .takeaway,.catalog-card .takeaway { color:var(--muted) }
.sidebar-note { display:block; margin:4px 10px 9px; color:var(--muted); font-size:11px; line-height:1.45 }
.task-projects { margin-top:16px; padding-top:13px; border-top:1px solid var(--border) }
.task-project-label { display:block; margin-bottom:8px; color:var(--muted); font-size:12px; line-height:1.5 }
.task-project { padding:10px 0 }
.task-project + .task-project { border-top:1px solid var(--border) }
.task-project-kind { display:block; color:var(--accent); font-size:11px; font-weight:700 }
.task-project a { display:inline-block; margin-top:4px; color:var(--text); font-size:14px; font-weight:700; line-height:1.55; text-decoration:none }
.task-project a:hover { color:var(--accent); text-decoration:underline; text-underline-offset:3px }
.task-project p { margin:5px 0 0; color:var(--muted); font-size:12px; line-height:1.65 }
.relation-scope { color:var(--muted); font-size:12px !important }
.drawer-project-links { display:grid; gap:10px; margin-top:12px }
.drawer-project { padding:12px 14px; border:1px solid var(--border); border-radius:9px; background:var(--surface) }
.drawer-project>span { display:block; color:var(--accent); font-size:11px; font-weight:700 }
.drawer-project>a { display:block; margin-top:5px; color:var(--text); font-size:14px; font-weight:700; line-height:1.5; text-decoration:none }
.drawer-project>a:hover { color:var(--accent); text-decoration:underline; text-underline-offset:3px }
.drawer-project p { margin:5px 0 0; color:var(--muted); font-size:12px; line-height:1.65 }
.deliverable-preview>.secondary-button { display:inline-block; margin:14px 0 0; text-decoration:none }
.article-summary>strong { display:block; margin-bottom:10px; color:var(--text); font-size:15px }
.article-summary p { margin-top:10px; padding-top:10px; border-top:1px solid var(--border) }
.mini-problem,.mini-value { margin:7px 0; color:var(--muted); font-size:13px; line-height:1.7 }
.mini-method strong,.mini-value strong { color:var(--text) }
@media(max-width:1000px) { .guide-route { grid-template-columns:repeat(2,minmax(0,1fr)) } .guide-tasks { grid-template-columns:1fr } }
@media(max-width:600px) { .guide-route { grid-template-columns:1fr 1fr; gap:7px } .guide-route a { min-height:52px; gap:7px; padding:9px } .guide-route strong { font-size:12px } .starter-project { padding:12px } .guide-actions { flex-direction:column; align-items:stretch } .guide-actions .page-action { justify-content:center; text-align:center } }

.section-step { display:inline-flex; align-items:center; margin:0 0 10px; padding:3px 10px; border:1px solid color-mix(in srgb,var(--accent) 28%,var(--border)); border-radius:999px; background:color-mix(in srgb,var(--accent) 9%,var(--surface)); color:var(--accent); font-size:12px; font-weight:700; line-height:1.5 }
@media(min-width:1001px) {
  .article-outline .article-toc { align-items:stretch }
  .article-outline .article-toc a { display:block; width:100%; white-space:normal; overflow-wrap:anywhere }
  .article-outline .article-toc a span { margin-right:6px; color:var(--accent) }
}
@media(min-width:1001px) {
  .article-outline .article-toc { flex-wrap:nowrap; overflow-x:hidden }
  .article-outline .article-toc a { min-width:0; max-width:100% }
}
