/* 速六财易: 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 }
:root[data-accent="blue"][data-theme="light"] { --accent:#496a95; --edge-active:#496a95 }
:root[data-accent="blue"][data-theme="dark"] { --accent:#a5c6f2; --edge-active:#a5c6f2 }
:root[data-accent="green"][data-theme="light"] { --accent:#34785d; --edge-active:#34785d }
:root[data-accent="green"][data-theme="dark"] { --accent:#83d8ae; --edge-active:#83d8ae }
:root[data-accent="purple"][data-theme="light"] { --accent:#765c9a; --edge-active:#765c9a }
:root[data-accent="purple"][data-theme="dark"] { --accent:#c3a5f2; --edge-active:#c3a5f2 }

* { 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) }

/* Compact, persistent appearance controls shared by every site header. */
.header-actions,.reading-header .header-actions { display:flex; flex:0 0 auto; align-items:center; gap:8px; margin-left:auto }
.appearance-controls { display:flex; min-height:40px; flex:0 0 auto; align-items:center; gap:6px; padding:3px 7px; border:1px solid var(--border); border-radius:11px; background:var(--surface); box-shadow:0 2px 6px #10283b0a }
.appearance-colors,.appearance-segment { display:flex; flex:0 0 auto; align-items:center }
.appearance-colors { gap:1px }
.appearance-choice { display:grid; width:24px; height:30px; flex:0 0 24px; place-items:center; padding:0; border:1px solid transparent; border-radius:7px; background:transparent; color:var(--muted); cursor:pointer; transition:background .16s ease,border-color .16s ease,transform .16s ease }
.appearance-choice:hover { background:var(--surface-soft); transform:translateY(-1px) }
.appearance-choice:focus-visible { outline-offset:2px }
.appearance-choice[aria-pressed="true"] { border-color:color-mix(in srgb,var(--swatch) 42%,var(--border)); background:color-mix(in srgb,var(--swatch) 10%,var(--surface)) }
.appearance-choice .color-dot { width:11px; height:11px; border:1px solid #ffffff90; border-radius:50%; background:var(--swatch); box-shadow:0 0 0 1px color-mix(in srgb,var(--swatch) 30%,transparent); transition:transform .16s ease }
.appearance-choice[aria-pressed="true"] .color-dot { transform:scale(1.18) }
.appearance-divider { width:1px; height:20px; flex:0 0 1px; background:var(--border) }
.appearance-segment { gap:2px; padding:2px; border:1px solid var(--border); border-radius:8px; background:var(--surface-soft) }
.appearance-segment button { display:grid; width:30px; height:28px; flex:0 0 30px; place-items:center; padding:0; border:0; border-radius:6px; background:transparent; color:var(--muted); font-size:11px; font-weight:700; line-height:1; cursor:pointer; transition:background .16s ease,color .16s ease,box-shadow .16s ease }
.appearance-segment button:hover { color:var(--text) }
.appearance-segment button[aria-pressed="true"] { background:var(--surface); color:var(--accent); box-shadow:0 1px 3px #0d25351a }
.appearance-segment button:focus-visible { outline-offset:1px }
.appearance-segment svg { display:block; width:15px; height:15px; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.65 }
.appearance-segment.locale-segment button { width:27px; flex-basis:27px; font-size:10px }
.appearance-controls button:disabled { cursor:not-allowed; opacity:.55 }
.source-reference { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:14px 0 24px; padding:10px 14px; border:1px solid var(--border); border-radius:9px; background:var(--surface); color:var(--muted); font-size:13px }
.source-reference strong { color:var(--text); font-size:12px }
.source-reference a { color:var(--accent); font-weight:600; text-decoration:none }
.source-reference a:hover { text-decoration:underline; text-underline-offset:3px }
.header-actions .text-button:hover,.round-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 }
@media(max-width:900px) {
  .header,.reading-header { display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"brand actions" "nav nav"; height:auto; min-height:0; gap:6px 10px; padding:10px 16px; flex-wrap:initial }
  .brand,.reading-brand { grid-area:brand; min-width:0; max-width:100%; font-size:15px }
  .primary-nav,.reading-header nav { grid-area:nav; order:initial; width:100%; min-width:0; gap:clamp(14px,4vw,24px); overflow-x:auto; overflow-y:hidden; flex-wrap:nowrap; scrollbar-width:none }
  .primary-nav::-webkit-scrollbar,.reading-header nav::-webkit-scrollbar { display:none }
  .header-actions,.reading-header .header-actions { grid-area:actions; justify-self:end; margin:0; gap:5px }
  .header .round-button { display:none }
}
@media(max-width:600px) {
  .header,.reading-header { padding:9px 12px; gap:5px 8px }
  .brand,.reading-brand { gap:7px; font-size:14px }
  .brand img,.reading-brand img { width:26px; height:26px }
  .brand span,.reading-brand span { min-width:0; overflow:hidden; text-overflow:ellipsis }
  .brand small,.reading-brand small { font-size:8px; letter-spacing:1px }
  .appearance-controls { min-height:34px; gap:4px; padding:2px 4px; border-radius:9px }
  .appearance-choice { width:19px; height:26px; flex-basis:19px }
  .appearance-choice .color-dot { width:10px; height:10px }
  .appearance-divider { height:18px }
  .appearance-segment { gap:1px; padding:2px }
  .appearance-segment button { width:24px; height:24px; flex-basis:24px }
  .appearance-segment button svg { width:13px; height:13px }
  .appearance-segment.locale-segment button { width:21px; flex-basis:21px; font-size:9px }
  .primary-nav,.reading-header nav { gap:15px; font-size:12px }
  .primary-nav a,.reading-header nav a { min-height:38px; padding:5px 0 }
}

/* 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% }
}

/* Keep the English wordmark readable beside the appearance controls on phones. */
@media(max-width:680px){html[data-locale="en-US"] .brand>span,html[data-locale="en-US"] .reading-brand>span{font-size:0}html[data-locale="en-US"] .brand>span::before,html[data-locale="en-US"] .reading-brand>span::before{content:"Suliu AI";font-size:14px;letter-spacing:0}}

/* Uniform case cards: readers can compare pain, approach and disclosed results at a glance. */
.result-card,.mini-card{block-size:540px;min-block-size:540px;max-block-size:540px;display:flex;flex-direction:column;align-items:stretch;overflow:hidden;padding:20px}
.result-card .card-type,.mini-card .card-type{min-block-size:20px;display:flex;align-items:center;gap:7px}
.result-card h3,.mini-card h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-block-size:49px;max-block-size:49px;margin:10px 0 12px;font-size:17px;line-height:1.45;overflow-wrap:anywhere}
.card-section{flex:none;min-width:0;padding-top:8px;margin-top:8px;border-top:1px solid var(--border)}
.card-section h4{margin:0 0 4px;color:var(--accent);font-size:12px;font-weight:700;line-height:1.5}
.card-section p{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;margin:0;color:var(--muted);font-size:12px;line-height:1.55;overflow-wrap:anywhere}
.card-pain-section p,.card-solution-section p{-webkit-line-clamp:3}
.card-benefit{min-height:0}
.card-benefit-note{-webkit-line-clamp:3}
.card-benefit-empty{display:block;margin:0 0 3px;color:var(--text);font-size:13px;line-height:1.5}
.card-metrics{display:grid;gap:3px;margin:0 0 4px}
.card-metric{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:8px;min-width:0;line-height:1.45}
.card-metric span{min-width:0;color:var(--muted);font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.card-metric strong{max-width:150px;color:var(--text);font-size:12px;font-weight:700;text-align:right;overflow-wrap:anywhere}
.result-card>.project-reading-actions,.mini-card>.project-reading-actions{flex-shrink:0;min-height:50px;margin-top:auto;padding-top:8px;border-top:1px solid var(--border);align-items:center}
.result-card .quick-preview,.mini-card .quick-preview{min-height:42px;padding:8px 4px}
.result-card .article-entry,.mini-card .article-entry{min-height:42px;white-space:normal}
@media(max-width:640px){.result-card,.mini-card{block-size:540px;min-block-size:540px;max-block-size:540px;padding:17px}.result-card h3,.mini-card h3{font-size:16px}.card-section p{font-size:12px}}

/* Keep every project card the same height across the atlas, catalog, guides and detail pages. */
.case-card{box-sizing:border-box;block-size:540px;min-block-size:540px;max-block-size:540px;display:flex;flex-direction:column;align-items:stretch;overflow:hidden;padding:20px;border:1px solid var(--border);border-radius:var(--radius-card);background:var(--surface);box-shadow:var(--shadow-soft)}
.case-card>.page-kicker{flex:none;min-block-size:20px;line-height:1.5}
.case-card h2,.case-card h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-block-size:49px;max-block-size:49px;margin:10px 0 12px;color:var(--text);font-size:17px;font-weight:700;line-height:1.45;overflow-wrap:anywhere}
.case-card h2 a,.case-card h3 a{color:inherit;text-decoration:none}
.case-card .card-section{flex:none;min-width:0;padding-top:8px;margin-top:8px;border-top:1px solid var(--border)}
.case-card .card-section h4{margin:0 0 4px;color:var(--accent);font-size:12px;font-weight:700;line-height:1.5}
.case-card .card-section p{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;margin:0;color:var(--muted);font-size:12px;line-height:1.55;overflow-wrap:anywhere}
.case-card .card-pain-section p,.case-card .card-solution-section p{-webkit-line-clamp:3}
.case-card .card-benefit{min-height:0}
.case-card .card-benefit-note{-webkit-line-clamp:3}
.case-card .card-benefit-empty{display:block;margin:0 0 3px;color:var(--text);font-size:13px;line-height:1.5}
.case-card .card-metrics{display:grid;gap:3px;margin:0 0 4px}
.case-card .card-metric{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:8px;min-width:0;line-height:1.45}
.case-card .card-metric span{min-width:0;color:var(--muted);font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.case-card .card-metric strong{max-width:150px;color:var(--text);font-size:12px;font-weight:700;text-align:right;overflow-wrap:anywhere}
.case-card>.case-read{flex:none;min-height:42px;display:flex;align-items:center;margin-top:auto;padding-top:8px;border-top:1px solid var(--border);color:var(--accent);font-size:13px;font-weight:650;text-decoration:none}
.case-card:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--accent) 45%,var(--border));box-shadow:var(--shadow-card)}
@media(max-width:640px){.case-card{block-size:540px;min-block-size:540px;max-block-size:540px;padding:17px}.case-card h2,.case-card h3{font-size:16px}.case-card .card-section p{font-size:12px}}

/* Case reading pages use an editorial canvas; navigation stays in the header and breadcrumbs. */
.reading-site.page-article:has(.article-page) .site-workspace{display:block;min-height:calc(100dvh - var(--site-header))}
.reading-site.page-article:has(.article-page) .site-sidebar{display:none}
.reading-site.page-article:has(.article-page) main#article{width:min(100%,1400px);margin:0 auto;padding:clamp(22px,3.2vw,48px) clamp(18px,3.2vw,48px) 72px}
.reading-site.page-article:has(.article-page) .breadcrumbs{margin-bottom:24px}
.reading-site.page-article:has(.article-page) footer{margin-left:0}
.article-page{width:100%;max-width:1240px;margin:0 auto}
.article-page > .article-heading{position:relative;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(320px,.92fr);align-items:center;gap:clamp(24px,4vw,60px);overflow:hidden;padding:clamp(26px,4vw,54px);border:1px solid var(--border);border-radius:28px;background:color-mix(in srgb,var(--surface) 93%,var(--accent) 7%)}
.article-page > .article-heading:after{position:absolute;right:-155px;bottom:-235px;width:440px;height:440px;border:1px solid color-mix(in srgb,var(--accent) 16%,transparent);border-radius:50%;content:"";pointer-events:none}
.article-page > .article-heading .article-heading-copy{position:relative;z-index:1;min-width:0}
.article-page > .article-heading .article-heading-top{display:flex;align-items:center;justify-content:space-between;gap:16px}
.article-page > .article-heading .article-heading-top .page-kicker{margin:0;color:var(--accent);font-size:13px;font-weight:700;letter-spacing:.08em}
.article-page .article-directory-link{flex:none;padding:8px 12px;border:1px solid var(--border);border-radius:999px;color:var(--muted);font-size:12px;font-weight:650;text-decoration:none}
.article-page .article-directory-link:hover{border-color:var(--accent);color:var(--accent)}
.article-page .article-directory-link:focus-visible,.article-page > .article-summary a:focus-visible,.article-toc a:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 35%,transparent);outline-offset:2px}
.article-page > .article-heading h1{max-width:15ch;margin:22px 0 18px;color:var(--text);font-size:clamp(38px,4.2vw,60px);font-weight:760;letter-spacing:-.045em;line-height:1.16}
.article-page .project-identity{margin:0 0 12px;color:var(--muted);font-size:14px;line-height:1.7}
.article-page .article-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 18px;color:var(--muted);font-size:13px}
.article-page .page-lead{max-width:40ch;margin:0;color:var(--text);font-size:18px;line-height:1.8}
.case-hero-visual{position:relative;z-index:1;min-width:0;margin:0;padding:20px;border:1px solid var(--border);border-radius:24px;background:var(--surface);box-shadow:var(--shadow-soft)}
.case-visual-canvas{position:relative;display:flex;min-height:220px;align-items:center;justify-content:center;overflow:hidden;border-radius:17px;background:var(--surface-soft);background-image:linear-gradient(color-mix(in srgb,var(--border) 24%,transparent) 1px,transparent 1px),linear-gradient(90deg,color-mix(in srgb,var(--border) 24%,transparent) 1px,transparent 1px);background-size:24px 24px}
.receipt-sheet{position:relative;display:flex;width:148px;height:174px;flex-direction:column;gap:10px;transform:rotate(-5deg);padding:22px 18px;border:1px solid var(--border);border-radius:8px;background:var(--surface);box-shadow:0 14px 30px color-mix(in srgb,var(--text) 13%,transparent)}
.receipt-label{width:58%;height:8px;margin-bottom:5px;border-radius:4px;background:color-mix(in srgb,var(--text) 78%,var(--surface))}
.receipt-line{display:block;width:74%;height:5px;border-radius:4px;background:var(--border)}
.receipt-line--wide{width:94%}.receipt-line--short{width:48%}
.receipt-divider{height:1px;margin:5px 0;background:var(--border)}
.receipt-code{width:42px;height:25px;margin-top:auto;border:1px solid color-mix(in srgb,var(--text) 28%,transparent);background:repeating-linear-gradient(90deg,var(--text) 0 2px,transparent 2px 4px);opacity:.48}
.ocr-focus{position:absolute;top:35%;left:22%;width:54%;height:26%;border:2px solid var(--accent);border-radius:7px;box-shadow:0 0 0 7px color-mix(in srgb,var(--accent) 10%,transparent)}
.ocr-scanline{position:absolute;top:48%;right:12%;left:12%;height:2px;background:var(--accent);box-shadow:0 0 12px color-mix(in srgb,var(--accent) 42%,transparent)}
.ocr-fields{position:absolute;top:22%;right:8%;display:grid;gap:6px;padding:10px 12px;border:1px solid color-mix(in srgb,var(--accent) 30%,var(--border));border-radius:10px;background:color-mix(in srgb,var(--surface) 90%,var(--accent) 10%);color:var(--accent);font-size:9px;font-weight:750;letter-spacing:.08em}
.ocr-fields i{display:block;width:56px;height:3px;border-radius:4px;background:color-mix(in srgb,var(--accent) 28%,var(--border))}
.case-visual-index{position:absolute;right:14px;bottom:12px;color:var(--muted);font-size:10px;font-weight:750;letter-spacing:.12em}
.case-hero-visual figcaption{display:grid;gap:6px;padding:16px 2px 2px}
.case-hero-visual figcaption strong{color:var(--text);font-size:15px}
.case-hero-visual figcaption span{color:var(--muted);font-size:12px;line-height:1.6}
.case-hero-visual--generic .case-visual-canvas:before,.case-hero-visual--generic .case-visual-canvas:after{position:absolute;width:145px;height:145px;border:1px solid color-mix(in srgb,var(--accent) 22%,var(--border));border-radius:50%;content:""}
.case-hero-visual--generic .case-visual-canvas:before{top:-52px;right:-34px}
.case-hero-visual--generic .case-visual-canvas:after{right:38px;bottom:-92px;width:220px;height:220px}
.case-file-sheet{position:relative;z-index:1;display:grid;width:min(58%,230px);gap:12px;padding:23px;border:1px solid var(--border);border-radius:14px;background:var(--surface);box-shadow:0 14px 30px color-mix(in srgb,var(--text) 12%,transparent);transform:rotate(-3deg)}
.case-file-sheet span,.case-file-sheet i,.case-file-sheet b{display:block;height:6px;border-radius:5px;background:var(--border)}
.case-file-sheet span{width:42%;height:8px;background:var(--accent)}
.case-file-sheet i:nth-of-type(1){width:92%}.case-file-sheet i:nth-of-type(2){width:76%}.case-file-sheet i:nth-of-type(3){width:56%}
.case-file-sheet b{width:32%;height:25px;margin-top:8px;background:color-mix(in srgb,var(--accent) 18%,var(--surface-soft))}
.article-page > .article-summary{display:grid;grid-template-columns:minmax(180px,.62fr) minmax(0,2.38fr);gap:clamp(24px,3vw,42px);margin:26px auto clamp(50px,6vw,78px);padding:24px 0 30px;border:0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);border-radius:0;background:transparent;box-shadow:none}
.article-page .article-summary-heading{display:flex;min-width:0;flex-direction:column;align-items:flex-start}
.article-page .article-summary-heading>span{color:var(--accent);font-size:10px;font-weight:800;letter-spacing:.14em}
.article-page .article-summary-heading h2{margin:10px 0;color:var(--text);font-size:17px;line-height:1.5}
.article-page .article-summary-heading>a{margin-top:auto;padding-top:12px;color:var(--accent);font-size:13px;font-weight:700;text-decoration:none}
.article-page .article-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}
.article-page .article-summary-item{min-width:0;padding:2px clamp(14px,2vw,28px);border-left:1px solid var(--border)}
.article-page .article-summary-item>span{color:var(--accent);font-size:11px;font-weight:750;letter-spacing:.04em}
.article-page .article-summary-item p{margin:9px 0 0;color:var(--text);font-size:13px;line-height:1.75}
.article-page > .long-article{display:grid;grid-template-columns:minmax(0,1fr) 230px;align-items:start;gap:clamp(26px,4vw,52px);width:100%;max-width:1200px;margin:0 auto}
.article-page .article-content{display:block;min-width:0;max-width:none}
.article-page .article-outline{position:sticky;top:calc(var(--site-header) + 20px);min-width:0;align-self:start}
.article-page .article-outline .article-toc{display:flex;max-height:none;flex-direction:column;gap:3px;overflow:visible;margin:0;padding:14px;border:1px solid var(--border);border-radius:18px;background:var(--surface);box-shadow:var(--shadow-soft)}
.article-page .article-outline .article-toc>strong{margin:0 0 6px;color:var(--text);font-size:13px;font-weight:750}
.article-page .article-outline .article-toc>a{display:flex;min-height:42px;align-items:center;gap:10px;padding:8px 9px;border-radius:9px;color:var(--muted);font-size:12px;line-height:1.4;text-decoration:none}
.article-page .article-toc-number{flex:none;color:var(--accent);font-size:11px;font-variant-numeric:tabular-nums;font-weight:800}
.article-toc-label{min-width:0}
.article-page .article-content>section{position:relative;margin:0;padding:30px 0 34px;border:0;border-bottom:1px solid var(--border);border-radius:0;background:transparent;box-shadow:none}
.article-page .article-content>section h2{margin:7px 0 16px;color:var(--text);font-size:clamp(22px,2vw,28px);line-height:1.4}
.article-page .article-content>section p,.article-page .article-content>section li{max-width:74ch;color:var(--text);font-size:16px;line-height:1.85}
.article-page .article-content>section p:last-child{margin-bottom:0}
.article-page .article-content>section .section-step{display:inline-flex;min-height:25px;align-items:center;padding:4px 9px;border:1px solid color-mix(in srgb,var(--accent) 24%,var(--border));border-radius:999px;background:color-mix(in srgb,var(--accent) 8%,var(--surface));color:var(--accent);font-size:11px;font-weight:750;letter-spacing:.06em}
.article-page .article-content>section .section-kind{display:inline-block;margin-left:8px;color:var(--muted);font-size:11px;letter-spacing:.06em}
.article-page .article-content>section:has(.data-table),.article-page .article-content>section:has(.reading-cards){grid-column:auto}
.article-page .article-content .data-table{max-width:100%}
.reading-site.page-article:has(.article-page) footer{padding-right:clamp(18px,3.2vw,48px);padding-left:clamp(18px,3.2vw,48px)}
@media(min-width:1800px){.article-page .article-content{display:block;grid-template-columns:none}}
@media(max-width:1000px){.article-page > .article-heading{grid-template-columns:minmax(0,1fr) minmax(260px,.78fr);gap:24px;padding:30px}.article-page > .article-heading h1{font-size:clamp(36px,5vw,50px)}.article-page > .article-summary{grid-template-columns:1fr;gap:18px}.article-page .article-summary-heading h2{margin:6px 0}.article-page .article-summary-heading>a{margin-top:4px}.article-page > .long-article{grid-template-columns:minmax(0,1fr) 210px;gap:24px}}
@media(max-width:820px){.article-page > .article-heading{grid-template-columns:1fr;gap:22px}.case-hero-visual{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1fr);align-items:center;gap:18px}.case-hero-visual figcaption{padding:4px}.case-visual-canvas{min-height:180px}.article-page .article-summary-grid{grid-template-columns:1fr}.article-page .article-summary-item{padding:15px 0;border-top:1px solid var(--border);border-left:0}.article-page .article-summary-item p{max-width:72ch}.article-page > .long-article{display:flex;flex-direction:column;gap:20px}.article-page .article-outline{position:sticky;top:calc(var(--site-header) + 4px);z-index:25;order:-1;width:100%;align-self:stretch}.article-page .article-outline .article-toc{flex-direction:row;align-items:center;gap:6px;overflow-x:auto;padding:8px;scrollbar-width:thin;white-space:nowrap}.article-page .article-outline .article-toc>strong{position:sticky;left:0;z-index:1;flex:none;margin:0;padding:7px 8px;background:var(--surface)}.article-page .article-outline .article-toc>a{flex:none;min-height:38px;padding:7px 10px;border:1px solid var(--border);background:var(--surface);white-space:nowrap}.article-page .article-content>section{padding:25px 0 28px}}
@media(max-width:560px){.reading-site.page-article:has(.article-page) main#article{padding:18px 16px 44px}.reading-site.page-article:has(.article-page) .breadcrumbs{margin-bottom:18px;font-size:12px}.article-page > .article-heading{gap:20px;padding:21px 18px;border-radius:21px}.article-page > .article-heading .article-heading-top{align-items:flex-start}.article-page > .article-heading .article-heading-top .page-kicker{font-size:11px}.article-page .article-directory-link{padding:7px 9px;font-size:11px}.article-page > .article-heading h1{margin:16px 0 12px;font-size:clamp(34px,9vw,43px);line-height:1.2}.article-page .project-identity{font-size:12px}.article-page .article-meta{font-size:12px}.article-page .page-lead{font-size:16px}.case-hero-visual{grid-template-columns:minmax(0,.85fr) minmax(0,1fr);gap:12px;padding:12px;border-radius:18px}.case-visual-canvas{min-height:145px;border-radius:13px;background-size:18px 18px}.receipt-sheet{width:102px;height:130px;gap:7px;padding:16px 12px}.receipt-label{height:6px}.receipt-line{height:4px}.ocr-focus{left:15%;width:61%}.ocr-fields{right:4%;gap:4px;padding:7px;font-size:7px}.ocr-fields i{width:39px}.case-visual-index{right:8px;bottom:8px;font-size:8px}.case-hero-visual figcaption strong{font-size:13px}.case-hero-visual figcaption span{font-size:11px;line-height:1.5}.case-file-sheet{width:70%;gap:9px;padding:15px}.article-page > .article-summary{gap:12px;margin:20px auto 36px;padding:19px 0 22px}.article-page .article-summary-heading h2{font-size:16px}.article-page .article-summary-heading>a{padding-top:8px;font-size:12px}.article-page .article-summary-item{padding:12px 0}.article-page .article-summary-item p{font-size:13px}.article-page .article-outline{top:calc(var(--site-header) + 2px)}.article-page .article-outline .article-toc{gap:4px;padding:6px}.article-page .article-outline .article-toc>strong{font-size:11px}.article-page .article-outline .article-toc>a{min-height:36px;padding:6px 8px;font-size:11px}.article-page .article-toc-number{font-size:10px}.article-page .article-content>section{padding:22px 0 25px}.article-page .article-content>section h2{font-size:22px}.article-page .article-content>section p,.article-page .article-content>section li{font-size:15px;line-height:1.8}.article-page .article-content>section .data-table{margin-right:-2px;margin-left:-2px}.sidebar-note{display:none}}
@media(max-width:820px){.article-page .article-content{width:100%;max-width:100%;align-self:stretch;box-sizing:border-box}.article-page .article-content>section{width:100%;box-sizing:border-box}.article-page .article-outline .article-toc{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden}.article-page .article-outline .article-toc>a{display:flex;width:auto;max-width:none;flex:0 0 auto}}
@media(max-width:560px){.article-page > .article-summary{grid-template-columns:1fr;gap:10px;margin:16px auto 22px;padding:14px 0}.article-page .article-summary-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px}.article-page .article-summary-heading>span{display:none}.article-page .article-summary-heading h2{margin:0;font-size:14px}.article-page .article-summary-heading>a{margin:0;padding:0;font-size:11px}.article-page .article-summary-grid{display:none}}

