/* 2026-10-18 · warm paper, navy ink, precise engineering details.
   Final shared layer. Never override MathML's native display mode. */
:root {
  --bg: #f5f2eb;
  --paper: #fffefa;
  --ink: #1d2f43;
  --ink-2: #4e6070;
  --muted: #5f6c79;
  --line: #deded5;
  --line-soft: #e9e7df;
  --blue: #245b78;
  --blue-soft: #eaf1f3;
  --gold: #90612c;
  --gold-soft: #f4ead7;
  --portal-blue: #245b78;
  --portal-navy: #172f43;
  --portal-muted: #4e6070;
  --card: var(--paper);
  --surface-inset: #eeeae1;
  --teal: #356c72;
  --teal-soft: #e9f0eb;
  --editorial-border: #d4d8cb;
  --radius: 14px;
  --shadow-soft: 0 12px 36px -26px #1d2f4340;
  --motion: 180ms;
}
body, body.is-home { background: var(--bg); color: var(--ink); }
::selection { background: #e8d5ae; color: #172f43; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #357699; outline-offset: 4px;
}
.skip-link { position: fixed; z-index: 30; top: 8px; left: 16px; padding: 9px 16px; border-radius: 8px; background: var(--ink); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
/* Masthead: clear navigation, a fine brass rule rather than a bright stripe. */
.site-header, .is-home .site-header { background: #fffefaed; border-color: var(--line); }
.site-header::before, .is-home .site-header::before { height: 3px; background: linear-gradient(90deg, #193b51 0 80%, #bb9155 80%); }
.bar, .is-home .bar { height: 82px; }
.brand-title, .is-home .brand-title { font-size: 23px; letter-spacing: .14em; }
.brand-sub, .is-home .brand-sub { font-size: 11px; letter-spacing: .1em; color: var(--muted) !important; }
.brand .logo { width: 34px; height: 34px; }
.site-header nav a, .is-home .site-header nav a { position: relative; font-size: 14px; padding: 11px 14px; border-radius: 8px; transition: color var(--motion), background var(--motion); }
.site-header nav a[aria-current="page"] { color: #234e66; background: #eaf0ed; box-shadow: inset 0 -2px #9f7940; }
.site-header nav a:hover { background: #eeeae1; color: #234e66; }
/* The illustration stays on a warm, quiet drawing board. */
.home-hero { position: relative; background: linear-gradient(110deg, #f3eee2, #f9f6ee 58%, #eee9de); border-color: #dad9cd; }
.home-hero-grid { padding-top: 56px; padding-bottom: 34px; gap: 36px; }
.home-eyebrow { font-size: 12px; color: #566356; letter-spacing: .1em; margin-bottom: 24px; }
.home-eyebrow > span { width: 23px; background: #9f7940; }
.home-intro h1 { color: #1b3347; font-size: clamp(36px, 3.7vw, 49px); letter-spacing: -.02em; line-height: 1.36; }
.home-intro h1 > span { color: #2d6577; text-decoration: underline; text-decoration-color: #c4a16b; text-decoration-thickness: 2px; text-underline-offset: 10px; }
.home-lead { font-size: 15px; line-height: 1.95; color: var(--ink-2); margin-bottom: 26px; }
.home-hero-art { position: relative; isolation: isolate; margin: 0; padding: 0; min-width: 0; border: 1px solid var(--editorial-border); border-radius: 20px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow-soft); }
.home-hero-art::before { content: none; }
.home-hero-art img { position: relative; display: block; width: 100%; height: auto; max-height: none; aspect-ratio: 3 / 2; object-fit: contain; mix-blend-mode: normal; }
.art-caption { position: absolute; top: 0; left: 20px; right: 20px; display: flex; justify-content: space-between; gap: 12px; color: #5c695f; font: 10px/1.5 var(--mono); letter-spacing: .07em; }
.art-caption span:last-child { font-family: var(--sans); letter-spacing: .1em; }
.home-intro .portal-search { border-radius: 11px; border-color: #b5bcba; min-height: 58px; padding: 6px 6px 6px 18px; box-shadow: 0 7px 18px -14px #1b334766, inset 0 1px #fff; background: #fffefb; }
.home-intro .portal-search:focus-within { border-color: #38738b; box-shadow: 0 0 0 4px #32718a16; }
.home-intro .portal-search input { font-size: 14px; color: var(--ink); }
.home-intro .portal-search input::placeholder { color: #65717b; }
.home-intro .portal-search button { min-height: 44px; font-size: 14px; padding: 11px 19px; background: #224e65; border-radius: 7px; box-shadow: inset 0 1px #ffffff24; }
.home-intro .portal-search button:hover { background: #173c51; }
.home-intro .portal-hot { font-size: 12px; color: #5f6b70; margin-top: 8px; gap: 6px 12px; }
.home-intro .portal-hot button { font-size: 12px; padding: 8px 3px; color: #405e70; }
.home-stats { margin-top: 17px; gap: 18px; color: #626e73; font-size: 12px; }
.home-stats strong { font-size: 19px; color: #244458; }
.home-stats i { height: 14px; background: #cbcbbf; }
.home-models { border-color: #cfcfc2; padding: 18px 0; gap: 26px; }
.home-models-label { color: #606d70; font-size: 12px; }
.home-models > div { gap: 28px; }
.home-models > div > a { padding: 6px 0; color: #314d60; }
.home-models strong { font-size: 14px; }
.home-models a span, .home-models a b, .home-models-all { font-size: 12px; color: #607078; }
/* Live article retained from main; publication is not inferred from the source branch. */
.home-latest { margin: 32px 0 28px; border: 1px solid #243f52; border-radius: 18px; background: #193548; overflow: hidden; box-shadow: 0 16px 32px -26px #183a5a99; }
.home-latest:focus-within { outline: 3px solid #357699; outline-offset: 4px; }
.home-latest-link { display: grid; grid-template-columns: minmax(0,1fr) 230px; align-items: center; gap: 28px; padding: 31px 34px; color: #f8f7ee; position: relative; }
.home-latest-link:hover { color: #fff; text-decoration: none; }
.latest-label { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin: 0 0 13px; font-size: 12px; color: #e4c391; letter-spacing: .05em; }
.latest-label > span { height: 6px; width: 6px; background: #d5ac6b; border-radius: 50%; box-shadow: 0 0 0 4px #d5ac6b16; }
.latest-label i { font-style: normal; color: #c2ced2; margin-left: 5px; font-size: 11px; }
.home-latest h2 { margin: 0 0 11px; color: #fffaf0; font-size: clamp(21px,2.25vw,28px); line-height: 1.6; font-weight: 600; letter-spacing: -.02em; max-width: 31em; text-wrap: balance; }
.home-latest h2 > span { display: block; }
.home-latest h2 em { font-style: normal; white-space: nowrap; color: #e4c995; font-family: var(--mono); font-size: .94em; }
.latest-description { margin: 0; max-width: 55em; font-size: 14px; line-height: 1.9; color: #c5d0d3; }
.latest-more { margin-top: 18px; display: inline-flex; gap: 22px; font-size: 13px; color: #f0d2a4; align-items: center; }
.latest-more b { font-size: 19px; font-weight: 400; transition: transform var(--motion); }
.home-latest-link:hover .latest-more b { transform: translate(2px,-2px); }
.latest-visual { position: relative; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; align-content: center; min-height: 170px; padding: 18px 0; border-left: 1px solid #ffffff24; }
.timing-orbit { position: absolute; width: 160px; height: 160px; top: 0; left: calc(50% - 80px); border: 1px solid #d1b17750; border-radius: 50%; pointer-events: none; }
.timing-orbit::before { content: ""; position: absolute; inset: 14px; border: 1px dashed #c6d4d321; border-radius: 50%; }
.timing-value { font: 500 35px/1.5 var(--mono); color: #f0d3a4; z-index: 1; }
.timing-value small { font-size: 14px; color: #d0d8d8; }
.timing-separator { font-size: 22px; color: #acb9bf; }
.timing-caption { width: 100%; text-align: center; font-size: 11px; color: #c0cdd1; z-index: 1; }
/* Three explicit starting points. */
.home-paths { gap: 14px; padding: 0 0 24px; border: 0; }
.home-paths > a, .home-paths > a:first-child, .home-paths > a:last-child { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 22px 24px; box-shadow: 0 2px 0 #18334803; transition: border-color var(--motion), transform var(--motion), box-shadow var(--motion); }
.home-paths > a:hover { border-color: #a9b6b5; background: #fffef9; box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.home-path-num { color: #8d642f; font-size: 12px; letter-spacing: .04em; }
.home-paths h2 { font-size: 20px; margin: 9px 0 7px; color: #233f51; }
.home-paths h2 b { color: #738b93; }
.home-paths p { color: var(--ink-2); font-size: 14px; line-height: 1.8; }
.home-section { padding-top: 40px; }
.home-section-head { margin-bottom: 24px; }
.home-overline { font: 11px/1.5 var(--mono); letter-spacing: .12em; color: #786849; margin-bottom: 10px; }
.home-section-head h2 { font-size: 28px; color: var(--ink); font-weight: 600; }
.home-section-head > a, .home-section-note { font-size: 13px; color: var(--ink-2); }
.home-topics { gap: 14px; }
.home-topic { border: 1px solid var(--line); background: #faf8f2; padding: 23px 21px; gap: 14px; border-radius: var(--radius); transition: border-color var(--motion), background var(--motion); }
.home-topic:hover { border-color: #aab9b8; background: var(--paper); }
.home-topic-num { color: #956e37; font-size: 12px; padding-top: 5px; }
.home-topic h3 { font-size: 19px; color: #254554; margin-bottom: 9px; }
.home-topic h3 b { color: #758e91; }
.home-topic p { font-size: 14px; line-height: 1.85; color: var(--ink-2); margin-bottom: 17px; }
.home-topic-meta { font-size: 11px; color: #586d75; }
.home-topic-meta i { color: #a4afa9; }
/* Reading cards: a quiet paper set, one warm feature. */
.home-reading-grid { gap: 16px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.home-reading-item, .home-reading-feature { grid-row: auto; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; transition: border-color var(--motion), box-shadow var(--motion); }
.home-reading-item:hover { border-color: #9fb1b6; box-shadow: var(--shadow-soft); }
.home-reading-feature { background: #eee5d3; border-color: #dfd1b8; }
.home-reading-new { background: #edf2ee; border-color: #cfdcd4; }
.home-reading-label { font-size: 12px; color: #6e5839; letter-spacing: .05em; }
.home-reading-item h3, .home-reading-feature h3 { font-size: 23px; line-height: 1.7; max-width: none; margin: 13px 0 10px; color: #203e50; }
.home-reading-item p, .home-reading-feature p { font-size: 14px; line-height: 1.9; max-width: none; color: #4e6070; margin-bottom: 24px; }
.home-reading-end, .home-reading-feature .home-reading-end { margin-top: auto; border-top: 1px solid #d8dcd2; padding-top: 16px; font-size: 12px; color: #365c70; }
.home-library { margin-top: 52px; gap: 48px; padding-top: 40px; border-color: #d6d8cd; }
.home-library-intro h2 { color: #254151; font-size: 30px; }
.home-library-intro > p:not(.home-overline) { font-size: 14px; color: var(--ink-2); line-height: 1.9; }
.home-library-intro > a { font-size: 13px; color: #315e73; }
.home-library-list { gap: 12px; }
.home-library-list > a { border: 1px solid var(--line); border-radius: 11px; padding: 19px 32px 18px 19px; background: #fffefa; transition: border-color var(--motion); }
.home-library-list > a:hover { border-color: #95aeb5; }
.home-library-list strong { font-size: 17px; color: #284c60; }
.home-library-list span { color: #5f7076; font-size: 11px; }
.home-library-list p { font-size: 13px; line-height: 1.85; color: var(--ink-2); }
.home-library-list b { right: 13px; color: #6e858e; }
.home-journal { border-color: #d6d8cd; margin-top: 48px; padding-top: 38px; }
.home-journal-list article { border-color: var(--line); padding: 25px 0; }
.home-journal-list time { font-size: 12px; color: #6e654f; }
.home-journal-list h3 { font-size: 19px; }
.home-journal-list h3 a { color: #26485d; }
.home-journal-list p { color: var(--ink-2); font-size: 14px; line-height: 1.85; }
.home-journal-arrow { color: #52778a; }
.home-about { border-color: #d6d8cd; gap: 44px; margin-top: 35px; }
.home-about h2 { font-size: 21px; color: #2a4959; }
.home-about > p { font-size: 14px; color: var(--ink-2); }
.home-about > p > a { font-size: 13px; color: #315e73; }
/* Shared inner pages: readable paper and consistent material detail. */
.post { max-width: 844px; padding: 40px 42px 32px; margin-top: 32px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-soft); }
.post-head { border-color: var(--line); margin-bottom: 30px; }
.post-title { color: #213b4d; letter-spacing: .01em; text-wrap: balance; }
.content { color: #283b47; }
.content h2 { border-left-width: 3px; border-left-color: #b58e52; color: #23495e; }
.content h3 { color: #29495b; }
.content strong { background: none; color: #16374a; }
.content a:not(.btn) { text-decoration: underline; text-decoration-color: #91b0ba; text-underline-offset: 4px; }
.content blockquote { background: #f2ecde; border-color: #ac854b; }
.content pre { background: #f1f1e9; border-color: #d7dace; border-radius: 10px; padding: 18px; }
.content th { background: #eaf0eb; color: #284b56; border-color: #d5ddd5; }
.content td { border-color: #dce0d7; }
.content tbody tr:nth-child(even) { background: #f6f6ee; }
.card, .wiki-index, .topic-guide { background: var(--paper); border-color: var(--line); box-shadow: var(--shadow-soft); }
.wiki-head { border-color: #d5d8ce; }
.wiki-head .page-title { color: #24475b; }
.wiki-description { color: var(--ink-2); }
.wiki-meta { color: var(--muted); }
.wiki-actions .btn { border-radius: 8px; }
.wiki-actions .btn.ghost { border-color: #bbcbd0; }
.model-card-visual { border-color: var(--line); background: #fffefa; padding: 24px; }
.model-card .wiki-content > ul:has(>li>strong) > li { border-color: var(--line); }
.model-card .wiki-content > ul:has(>li>strong) > li > strong { font-size: 13px; color: #5b6c70; }
.model-card .wiki-content > ul:not(:first-of-type) { display: block; padding-left: 1.2em; list-style: disc; }
.model-card .wiki-content > ul:not(:first-of-type) > li { border: 0; padding: 0; margin: 0 0 1em; }
.model-card .wiki-content > ul:not(:first-of-type) > li > strong { display: inline; font: inherit; font-weight: 650; color: #24475b; }
.model-basic-links { background: #eaf0eb; padding: 13px 17px; border-radius: 10px; font-size: 13px; }
.wiki-index-card { background: #fffefa; border-color: var(--line); }
.wiki-index-card:hover { background: #eef2eb; }
.topic-guide-deck, .topic-guide-aside p { color: var(--ink-2); font-size: 14px; }
.topic-guide-body { font-size: 16px; }
.topic-guide-meta, .topic-back { font-size: 12px; color: #5b6d75; }
.topic-guide-aside > a, .topic-guide-aside .topic-library-link { font-size: 13px; }
.topic-guide-aside h2 { font-size: 12px; color: #5b6d75; }
.item { border-color: var(--line); }
.chip { border-radius: 5px; padding: 7px 10px; }
.chip.model { background: #e6eff0; color: #28546a; }
.chip.company { background: #f1e7d3; color: #7a5726; }
.chip.tag { background: #e7eee3; color: #3e6245; }
.prevnext a { background: var(--paper); border-color: var(--line); }
.site-footer, .is-home .site-footer { background: #eae8de; border-color: #d6d7cb; }
.sutra-foot, .is-home .sutra-foot { font-size: 13px; color: #4a5b5c; letter-spacing: .1em; }
.foot .muted { color: #596b70; font-size: 12px; }
.is-home .foot-qr { height: 72px; width: 72px; }
.portal-results { background: var(--paper); border-color: #c7d4d3; border-radius: 14px; box-shadow: var(--shadow-soft); }
.portal-results h2 { color: #24475b; }
.search-result { border-color: var(--line); background: #fafbf5; border-radius: 10px; padding: 20px; }
.search-result:hover { background: #eff3ec; }
.result-kind, .search-count { color: #5c6e75; font-size: 12px; }
.search-result p { color: var(--ink-2); font-size: 14px; }
.search-kinds button, .search-more, .text-button { font-size: 13px; min-height: 40px; color: #3d5e70; }
.portal-section-head .text-button { flex-shrink: 0; white-space: nowrap; }
.search-kinds button.active { background: #245b78; border-color: #245b78; color: white; }
.kth7111-article svg { display: block; width: 100%; height: auto; margin: 28px 0; border-radius: 12px; }
.kth7111-article .lead { font-size: 19px; font-weight: 600; max-width: none; }
.kth7111-article .formula { background: #edf2ef; border-left: 3px solid #71908d; padding: 17px 20px; border-radius: 0 10px 10px 0; margin: 22px 0; font: 15px/1.8 var(--mono); color: #24495d; overflow-wrap: anywhere; }
.kth7111-article .notes { font-size: 14px; color: #536975; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 40px; }
/* Fine-detail pass: registration marks, catalogue labels and engraved rules. */
.home-hero { background: radial-gradient(ellipse at 80% 45%, #fffdf6a6, transparent 56%), linear-gradient(110deg, #f1ebdc, #f9f6ee 58%, #eee8db); }
.art-register { display: none; }
.art-caption { z-index: 1; top: 12px; left: 12px; right: 12px; padding: 7px 10px; font-size: 10px; border: 1px solid #d4d8cbba; border-radius: 7px; background: #fffefaeb; color: var(--ink-2); pointer-events: none; }
.home-eyebrow { color: #645b42; }
.home-stats strong { font-variant-numeric: tabular-nums; letter-spacing: -.045em; margin-right: 6px; }
.home-models strong { letter-spacing: -.035em; }
.home-models > div > a { transition: color var(--motion); }
.home-models > div > a + a { border-left: 1px solid #c7c8b9; padding-left: 24px; }
.home-models a span { font-size: 10px; font-variant-numeric: tabular-nums; }
.home-models a b { font-size: 12px; line-height: 1; }
.home-models > div > a:hover { color: #8c652d; text-decoration: none; }
.home-intro .portal-search { box-shadow: 0 8px 20px -17px #213b4d70, inset 0 1px #fff, 0 0 0 3px #fffefa65; }
.home-intro .portal-search button { background: linear-gradient(180deg,#2b596c,#21485c); }
.home-intro .portal-search button:active { transform: translateY(1px); }
.home-latest { position: relative; background: radial-gradient(ellipse at 100% 0,#38606a66,transparent 65%), linear-gradient(115deg,#1b3548,#172f40); border-color: #315563; }
.home-latest::before { content: ""; position: absolute; z-index: 1; top: 0; left: 20px; right: 20px; height: 1px; background: linear-gradient(90deg,#d8bb8580,transparent 70%); pointer-events: none; }
.latest-visual { border-color: #d0dcda2b; }
.timing-orbit::after { content: ""; position: absolute; inset: -7px; background: linear-gradient(#c7ad79,#c7ad79) center top/1px 8px no-repeat, linear-gradient(#c7ad79,#c7ad79) center bottom/1px 8px no-repeat, linear-gradient(#c7ad79,#c7ad79) left center/8px 1px no-repeat, linear-gradient(#c7ad79,#c7ad79) right center/8px 1px no-repeat; opacity: .7; }
.home-paths > a, .home-paths > a:first-child, .home-paths > a:last-child { position: relative; padding-top: 24px; background: linear-gradient(135deg,#fffefa,#faf9f2); box-shadow: inset 0 1px #fff, 0 2px 0 #233f5103; }
.path-icon { position: absolute; top: 18px; right: 22px; color: #5e7d81; }
.path-icon-accent { stroke: #a27c40; }
.home-path-num { display: inline-block; padding-right: 38px; font-size: 11px; letter-spacing: .06em; }
.home-paths h2 { margin-top: 16px; }
.home-paths h2 b, .home-topic h3 b { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; border-radius: 50%; font-size: 15px; background: #e9eee7; transition: background var(--motion), color var(--motion); }
.home-paths a:hover h2 b, .home-topic:hover h3 b { color: #f8f7ec; background: #345b67; }
.home-overline { display: flex; align-items: center; gap: 10px; font-size: 10px; letter-spacing: .14em; }
.home-overline::before { content: ""; width: 15px; height: 1px; background: #a8854c; }
.home-topic { position: relative; border-color: #dcded2; box-shadow: inset 0 1px #fffefa; }
.home-topic > div { display: flex; flex-direction: column; }
.home-topic-num { display: inline-flex; justify-content: center; align-items: center; align-self: flex-start; flex-shrink: 0; width: 25px; height: 25px; border: 1px solid #d9d3bf; border-radius: 6px; padding: 0; font-size: 10px; color: #846534; background: #f3eee0; }
.home-topic h3 { line-height: 1.4; align-items: center; }
.home-topic h3 b { width: 22px; height: 22px; flex-shrink: 0; font-size: 13px; background: transparent; }
.home-topic-meta { display: block; padding-top: 13px; margin-top: auto; border-top: 1px solid #e0e2d7; font-size: 10px; letter-spacing: .025em; }
.home-reading-grid { counter-reset: reading; }
.home-reading-item { position: relative; counter-increment: reading; box-shadow: inset 0 1px #ffffffa0; }
.home-reading-item::before { content: counter(reading,decimal-leading-zero); position: absolute; top: 31px; right: 28px; color: #536a6c; font: 11px/1.5 var(--mono); letter-spacing: .08em; }
.home-reading-label { display: inline-block; align-self: flex-start; padding: 3px 9px; margin-right: 38px; border: 1px solid #c9c8b9; border-radius: 4px; background: #fffefa50; font-size: 11px; line-height: 1.7; }
.home-reading-item h3 { margin-top: 17px; letter-spacing: -.025em; }
.home-reading-end b { transition: transform var(--motion); }
.home-reading-item:hover .home-reading-end b { transform: translate(2px,-2px); }
.home-library-list > a { box-shadow: inset 0 1px #fff, inset 3px 0 #c9d7ca; }
.home-library-list > a > div { align-items: center; }
.home-library-list span { padding: 2px 6px; border-radius: 4px; background: #edf1e9; color: #49616b; font-size: 10px; }
.home-library-list strong { font-variant-numeric: tabular-nums; }
.home-journal-list time { position: relative; padding-top: 8px; font-size: 11px; }
.home-journal-list time::after { content: ""; position: absolute; top: 15px; right: -7px; width: 4px; height: 4px; border-radius: 50%; background: #b79b6b; box-shadow: 0 0 0 4px #b79b6b10; }
.home-journal-list article { column-gap: 26px; }
.post-head .date { display: inline-block; padding: 6px 10px; background: #f2eddf; border: 1px solid #e2d7c0; border-radius: 5px; font-size: 11px; color: #7b602f; letter-spacing: .07em; }
.post-head .orig { font-size: 13px; color: #607079; }
.content table { scrollbar-color: #9ab0a7 #efefe6; scrollbar-width: thin; }
.model-card-visual { box-shadow: inset 0 1px #fff, 0 10px 24px -24px #23455c80; }
.model-card-visual figcaption { border-top: 1px solid #e7e8de; padding-top: 13px; font-size: 11px; }
.wiki-head .kicker, .page-head .kicker { font-size: 11px; letter-spacing: .14em; }
.wiki-actions .btn { box-shadow: 0 4px 9px -7px #1d425b80, inset 0 1px #ffffff25; }
.topic-guide-head { background: radial-gradient(circle at 100% 0,#e7e8d940,transparent 60%); }
.wiki-index-card { box-shadow: inset 0 1px #fff; }
/* Shared editorial illustrations are concepts, not measurement or wiring data. */
.basics-hero { background: linear-gradient(125deg, #eee9dc, var(--paper) 78%); border-color: var(--editorial-border); box-shadow: inset 0 1px #fff, var(--shadow-soft); }
.basics-hero h1 { color: var(--portal-navy); }
.basics-hero h1 span { color: var(--teal); }
.basics-hero-art { margin: 0; background: var(--paper); border-color: var(--editorial-border); border-radius: 16px; }
.basics-hero-art img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; mix-blend-mode: normal; }
.basics-hero-art figcaption { padding: 10px 14px; border-top: 1px solid var(--line-soft); font-size: 11px; line-height: 1.7; color: var(--muted); }
.basics-kicker { color: var(--teal); }
.basics-count { display: block; line-height: 1.8; }
.basics-hero-links a { display: inline-flex; align-items: center; min-height: 44px; }
.basics-number { background: var(--gold-soft); border-color: #dfd3b9; color: var(--gold); }
.basics-group:nth-of-type(2) .basics-number { background: var(--teal-soft); border-color: #d1ddd2; color: var(--teal); }
.basics-group:nth-of-type(3) .basics-number { background: #efe5db; border-color: #ddcebd; color: #805836; }
.basics-card { background: var(--paper); border-color: var(--line); box-shadow: inset 0 1px #fff; }
.basics-card:hover { border-color: #9fb5ad; box-shadow: var(--shadow-soft); }
.basics-card h3 { color: var(--portal-navy); }
.basic-article { min-width: 0; background: var(--paper); box-shadow: var(--shadow-soft); }
.basic-sidebar { scrollbar-width: thin; scrollbar-color: #aabbb1 transparent; }
.basic-sidebar nav a { min-height: 36px; }
.basic-sidebar nav a:hover { color: var(--teal); background: var(--teal-soft); }
.basic-sidebar nav a[aria-current="page"] { color: var(--teal); background: var(--teal-soft); box-shadow: inset 2px 0 var(--teal); }
.basic-back { display: inline-flex; align-items: center; min-height: 44px; }
.basic-toc { background: #f0f1e8; border-color: var(--editorial-border); }
.basic-practice { background: var(--teal-soft); }
.basics-practice-links a { background: var(--paper); border-color: #cbd9d1; }
/* Four application covers lead to four real, separately counted scene groups. */
.home-applications .home-section-head { align-items: flex-end; }
.home-applications .home-section-head > div { min-width: 0; }
.home-applications .home-section-head > a { flex-shrink: 0; white-space: nowrap; }
.home-app-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.home-app-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; color: var(--ink); background: var(--paper); border: 1px solid var(--editorial-border); border-radius: 16px; box-shadow: inset 0 1px #fff; transition: transform var(--motion), border-color var(--motion), box-shadow var(--motion); }
.home-app-card > img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; background: var(--paper); border-bottom: 1px solid var(--line-soft); }
.home-app-card > div { flex: 1; min-width: 0; padding: 19px 18px 21px; }
.app-category-label { font: 10px/1.6 var(--mono); letter-spacing: .04em; color: var(--gold); }
.home-app-card h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 9px 0 8px; color: var(--portal-navy); font-size: 19px; line-height: 1.5; font-weight: 600; }
.home-app-card h3 b { flex-shrink: 0; font-size: 19px; font-weight: 400; color: var(--teal); }
.home-app-card p { margin: 0; font-size: 13px; line-height: 1.85; color: var(--ink-2); }
.home-app-card:hover { text-decoration: none; color: var(--ink); border-color: #9bb3a9; box-shadow: var(--shadow-soft); transform: translateY(-3px); }
.home-app-card:hover h3 { color: var(--teal); }
/* Application directory: readable scene cards, with category art outside the prose. */
.applications-home { min-width: 0; padding: 30px 0 64px; }
.applications-hero { position: relative; padding: 44px 46px 36px; margin-bottom: 44px; border: 1px solid var(--editorial-border); border-radius: 24px; background: radial-gradient(ellipse at 100% 0, #dce8df7a, transparent 55%), linear-gradient(125deg, #ede7d9, var(--paper) 82%); box-shadow: inset 0 1px #fff; }
.applications-hero h1 { margin: 0 0 18px; font-size: clamp(31px, 3.6vw, 46px); line-height: 1.38; font-weight: 650; letter-spacing: -.035em; color: var(--portal-navy); }
.applications-hero h1 span { color: var(--teal); }
.applications-lead { max-width: 43em; margin: 0 0 24px; font-size: 16px; line-height: 1.95; color: var(--ink-2); }
.applications-count { margin: 0 0 23px; font-size: 13px; color: var(--ink-2); line-height: 1.9; }
.applications-count strong { font: 600 24px/1.4 var(--mono); margin-right: 5px; color: var(--teal); font-variant-numeric: tabular-nums; }
.applications-count i { font-style: normal; margin: 0 10px; color: #8e9c91; }
.application-jump { display: flex; width: auto; flex-wrap: wrap; gap: 10px; white-space: normal; }
.application-jump a { display: inline-flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 44px; padding: 10px 16px; border: 1px solid #c9d3c8; border-radius: 9px; background: #fffefabf; color: var(--ink); font-size: 13px; line-height: 1.6; transition: background var(--motion), border-color var(--motion); }
.application-jump a:hover { color: var(--teal); background: var(--paper); border-color: #9eb4a7; text-decoration: none; }
.application-jump a span { color: var(--teal); }
.application-group { min-width: 0; margin: 0 0 52px; scroll-margin-top: 112px; }
.application-group > header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .85fr); gap: 36px; align-items: center; padding: 27px 30px; margin-bottom: 20px; border: 1px solid var(--editorial-border); border-radius: 20px; background: var(--paper); }
.application-group > header > div { min-width: 0; }
.application-group h2 { margin: 0 0 11px; font-size: 29px; line-height: 1.45; font-weight: 600; letter-spacing: -.025em; color: var(--portal-navy); }
.application-group > header p:not(.home-overline) { max-width: 36em; margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.95; }
.application-group figure { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 13px; background: var(--paper); }
.application-group figure img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; mix-blend-mode: normal; }
.application-group figcaption { padding: 8px 12px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 11px; line-height: 1.6; }
.application-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.application-card { display: flex; flex-direction: column; min-width: 0; padding: 23px 22px 19px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); box-shadow: inset 0 1px #fff; transition: border-color var(--motion), background var(--motion), box-shadow var(--motion); }
.application-card-kicker { margin-bottom: 10px; color: var(--gold); font-size: 10px; line-height: 1.8; letter-spacing: .035em; }
.application-card h3 { margin: 0 0 12px; font-size: 18px; line-height: 1.65; color: var(--portal-navy); letter-spacing: -.01em; overflow-wrap: anywhere; }
.application-card p { flex: 1; margin: 0 0 20px; color: var(--ink-2); font-size: 13px; line-height: 1.9; }
.application-card-end { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line-soft); font-size: 11px; line-height: 1.7; color: var(--teal); }
.application-card-end b { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 25px; height: 25px; border-radius: 50%; background: var(--teal-soft); font-size: 16px; font-weight: 400; }
.application-card:hover { text-decoration: none; color: var(--ink); border-color: #9fb4a8; background: #fffef6; box-shadow: var(--shadow-soft); }
.application-card:hover h3 { color: var(--teal); }
.application-card:hover .application-card-end b { color: var(--paper); background: var(--teal); }
/* Application detail inherits the same readable paper as foundation articles. */
.application-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 34px; }
.application-article { width: 100%; min-width: 0; }
.application-article > header { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.application-article h1 { color: var(--portal-navy); letter-spacing: -.025em; text-wrap: balance; }
.application-article .basic-updated span { display: inline-block; }
.application-article .content { min-width: 0; }
.application-article .content a, .application-article .content code { overflow-wrap: anywhere; }
.application-scope { padding: 18px 20px; margin: 30px 0; border: 1px solid #e0d4bb; border-left: 3px solid #a48249; border-radius: 0 11px 11px 0; background: var(--gold-soft); font-size: 13px; line-height: 1.9; color: var(--ink-2); }
.application-scope > strong { display: block; margin-bottom: 6px; font-size: 14px; color: #71552c; }
.application-scope p { margin: 0; }
@media(max-width:1000px) {
  .home-latest-link { grid-template-columns: minmax(0,1fr) 190px; padding: 27px; }
  .home-hero-grid { gap: 20px; }
  .home-paths > a, .home-paths > a:first-child, .home-paths > a:last-child { padding: 20px; }
  .home-library { gap: 30px; }
  .site-header nav a, .is-home .site-header nav a { padding-left: 8px; padding-right: 8px; font-size: 12px; }
  .home-app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .application-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .application-group > header { gap: 24px; padding: 24px; }
  .application-layout { grid-template-columns: 165px minmax(0, 1fr); gap: 24px; }
}
@media(max-width:760px) {
  .wrap, .is-home .wrap { padding-left: 20px; padding-right: 20px; }
  .bar, .is-home .bar { height: auto; min-height: 74px; gap: 14px; padding-top: 18px; padding-bottom: 10px; }
  .brand-title, .is-home .brand-title { font-size: 22px; }
  .brand-sub, .is-home .brand-sub { font-size: 10px; }
  .site-header nav { width: 100%; min-width: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 2px; white-space: normal; }
  .site-header nav a, .is-home .site-header nav a { display: flex; justify-content: center; align-items: center; min-width: 0; min-height: 44px; padding: 5px 1px; font-size: 12px; line-height: 1.6; text-align: center; letter-spacing: 0; white-space: normal; overflow-wrap: anywhere; }
  .home-hero-grid { padding-top: 32px; padding-bottom: 18px; gap: 26px; }
  .home-eyebrow { font-size: 11px; margin-bottom: 19px; }
  .home-intro h1 { font-size: clamp(33px,7vw,42px); margin-bottom: 21px; }
  .home-lead { font-size: 14px; margin-bottom: 22px; }
  .home-hero-art { width: min(100%, 480px); max-width: 100%; padding-top: 0; border-radius: 16px; }
  .home-hero-art img { max-height: none; }
  .art-caption { top: 9px; font-size: 9px; left: 9px; right: 9px; padding: 5px 7px; }
  .home-intro .portal-search { padding-left: 12px; gap: 9px; }
  .home-intro .portal-search input { font-size: 13px; }
  .home-intro .portal-search button { padding: 11px 13px; font-size: 13px; }
  .home-stats { font-size: 11px; gap: 13px; }
  .home-stats strong { font-size: 17px; }
  .home-models { gap: 8px 15px; padding: 14px 0 18px; }
  .home-models-label { font-size: 11px; padding-top: 5px; }
  .home-models > div { display: flex; flex-wrap: wrap; gap: 3px 17px; }
  .home-models > div > a + a { border-left: 0; padding-left: 0; }
  .home-models strong { font-size: 12px; }
  .home-latest { margin-top: 24px; border-radius: 14px; }
  .home-latest-link { grid-template-columns: 1fr; padding: 25px 23px; gap: 0; }
  .latest-label { gap: 8px; font-size: 11px; }
  .latest-label i { width: 100%; margin-left: 0; font-size: 10px; }
  .home-latest h2 { font-size: 22px; line-height: 1.65; }
  .latest-description { font-size: 14px; }
  .latest-visual { display: none; }
  .home-paths { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 0 0 5px; }
  .home-paths > a, .home-paths > a:first-child, .home-paths > a:last-child { padding: 20px 22px; border: 1px solid var(--line); }
  .home-paths h2 { font-size: 20px; margin: 7px 0; }
  .home-path-num { font-size: 11px; }
  .home-paths p, .home-topic p { font-size: 14px; }
  .home-section { padding-top: 35px; }
  .home-section-head { align-items: flex-end; gap: 15px; margin-bottom: 20px; }
  .home-section-head h2 { font-size: 24px; }
  .home-section-head > a, .home-section-note { font-size: 11px; }
  .home-overline { font-size: 10px; }
  .home-topics { grid-template-columns: 1fr; gap: 10px; }
  .home-topic { padding: 21px; gap: 14px; }
  .home-topic-num { font-size: 12px; }
  .home-topic h3 { font-size: 19px; }
  .home-topic-meta { font-size: 11px; }
  .home-reading-grid { grid-template-columns: 1fr; gap: 12px; }
  .home-reading-item, .home-reading-item:not(.home-reading-feature), .home-reading-feature { padding: 24px; }
  .home-reading-item h3, .home-reading-feature h3 { font-size: 21px; }
  .home-reading-item p { font-size: 14px; }
  .home-library { gap: 22px; margin-top: 35px; padding-top: 32px; }
  .home-library-intro h2 { font-size: 27px; }
  .home-library-intro > p:not(.home-overline), .home-library-list p, .home-journal-list p, .home-about > p { font-size: 14px; }
  .home-library-list { grid-template-columns: 1fr; gap: 10px; }
  .home-library-list strong { font-size: 17px; }
  .home-library-list span { display: inline; font-size: 11px; }
  .home-journal-list h3 { font-size: 18px; }
  .home-journal-list time { font-size: 12px; }
  .home-about { gap: 12px; }
  .home-about h2 { font-size: 20px; }
  .post { padding: 28px 22px; margin-top: 22px; border-radius: 12px; }
  .post-title { font-size: 26px; }
  .content h2 { font-size: 22px; }
  .topic-guide-body { font-size: 16px; }
  .topic-guide-deck, .topic-guide-aside p { font-size: 14px; }
  .portal-results { padding: 21px; }
  .search-result { padding: 18px; }
  .foot .muted { font-size: 12px; }
  .kth7111-article .lead { font-size: 18px; }
  .basics-hero { gap: 24px; }
  .home-applications .home-section-head { align-items: flex-start; }
  .home-applications .home-section-head h2 { font-size: 23px; line-height: 1.5; }
  .home-applications .home-section-head > a { margin-top: 26px; }
  .home-app-grid { gap: 12px; }
  .home-app-card > div { padding: 16px; }
  .home-app-card h3 { font-size: 17px; }
  .home-app-card p { font-size: 13px; }
  .applications-home { padding-top: 20px; padding-bottom: 40px; }
  .applications-hero { padding: 29px 26px 24px; border-radius: 18px; margin-bottom: 30px; }
  .applications-hero h1 { font-size: clamp(29px, 5.2vw, 38px); }
  .applications-lead { font-size: 15px; }
  .applications-count { font-size: 12px; }
  .applications-count i { margin: 0 6px; }
  .application-jump { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .application-jump a { min-width: 0; gap: 8px; padding: 10px 12px; font-size: 12px; }
  .application-group { margin-bottom: 34px; scroll-margin-top: 20px; }
  .application-group > header { grid-template-columns: minmax(0, 1fr) minmax(190px, .85fr); gap: 20px; padding: 22px; border-radius: 16px; }
  .application-group h2 { font-size: 25px; }
  .application-group > header p:not(.home-overline) { font-size: 13px; }
  .application-grid { gap: 12px; }
  .application-card { padding: 20px 18px 16px; }
  .application-card h3 { font-size: 17px; }
  .application-layout { display: block; padding-top: 20px; }
  .application-layout .basic-sidebar { position: static; max-height: none; padding: 0 0 14px; }
  .application-layout .basic-sidebar nav { display: none; }
  .application-article { max-width: none; padding: 27px 24px; }
  .application-article h1 { font-size: 27px; }
}
@media(max-width:560px) {
  .home-app-grid, .application-grid { grid-template-columns: minmax(0, 1fr); }
  .home-app-card { border-radius: 14px; }
  .home-app-card > div { padding: 19px 20px 21px; }
  .home-app-card h3 { font-size: 20px; }
  .home-app-card p { font-size: 14px; }
  .applications-hero { padding: 25px 20px 21px; }
  .applications-hero h1 { font-size: 30px; }
  .applications-lead { font-size: 14px; }
  .applications-count { max-width: 22em; }
  .application-group > header { grid-template-columns: minmax(0, 1fr); padding: 21px; gap: 20px; }
  .application-group h2 { font-size: 26px; }
  .application-group figure { width: 100%; }
  .application-card { padding: 22px 21px 18px; }
  .application-card h3 { font-size: 19px; }
  .application-card p { font-size: 14px; }
  .application-card-kicker, .application-card-end { font-size: 12px; }
  .application-article { padding: 25px 20px; border-radius: 14px; }
  .application-article h1 { font-size: 26px; }
  .application-scope { padding: 16px; }
}
@media(max-width:400px) {
  .wrap, .is-home .wrap { padding-left: 16px; padding-right: 16px; }
  .home-intro .portal-search input { font-size: 12px; }
  .home-intro .portal-search button span { margin-left: 3px; }
  .home-stats { gap: 11px; }
  .post { padding: 24px 18px; }
  .content { font-size: 16px; }
  .post-title { font-size: 25px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Catalog filters use the same quiet, warm-paper treatment as model cards. */
.topic-hub-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: center; padding: 32px 0 36px; }
.topic-hub-hero .content { max-width: 36em; color: var(--muted); }
.topic-hub-hero figure { margin: 0; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: #e8efe7; transform: rotate(1deg); }
.topic-hub-hero img { display: block; width: 100%; height: auto; }
.topic-hub-stats { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 28px; color: var(--muted); font-size: 13px; }
.topic-hub-stats strong { display: block; color: #356c72; font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.topic-hub-nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-bottom: 32px; }
.topic-hub-nav a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fffefa; color: #1d2f43; text-decoration: none; font-size: 14px; }
.topic-hub-nav a span { color: #90612c; font-variant-numeric: tabular-nums; font-size: 12px; }
.topic-hub-nav a b { margin-left: auto; color: #356c72; }
.topic-hub-nav a:hover { background: #eaf0e9; border-color: #356c72; }
.topic-spotlight { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 28px 32px; margin-bottom: 36px; border: 1px solid #c5d3c8; border-left: 4px solid #356c72; border-radius: 4px 20px 20px 4px; background: #eaf0e8; }
.topic-spotlight h2 { margin: 8px 0; font-size: 24px; line-height: 1.5; }
.topic-spotlight p { margin: 0; max-width: 50em; color: #4e6070; font-size: 14px; line-height: 1.8; }
.topic-spotlight .btn { flex-shrink: 0; }
.topic-dossiers { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.topic-dossier { display: flex; flex-direction: column; min-width: 0; scroll-margin-top: 120px; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: #fffefa; box-shadow: 0 4px 0 rgba(29,47,67,.025); }
.topic-dossier:nth-child(3n+2) { border-top: 3px solid #b48a56; }
.topic-dossier:nth-child(3n+1) { border-top: 3px solid #749b92; }
.topic-dossier:nth-child(3n) { border-top: 3px solid #bd8e7d; }
.topic-dossier h2 { font-size: 25px; margin: 12px 0; }
.topic-dossier header > p:last-child { color: #4e6070; font-size: 15px; line-height: 1.9; margin: 12px 0 20px; }
.topic-question { font-size: 18px; line-height: 1.7; color: #1d2f43; font-weight: 600; margin: 0; }
.topic-reading-path { border-top: 1px solid var(--line); padding-top: 16px; }
.topic-dossier h3 { font-size: 13px; font-weight: 500; color: #4e6070; letter-spacing: .06em; margin: 0 0 12px; }
.topic-reading-path ol { list-style: none; counter-reset: reading; margin: 0; padding: 0; }
.topic-reading-path li { counter-increment: reading; position: relative; padding: 0 0 0 30px; }
.topic-reading-path li::before { content: '0' counter(reading); position: absolute; top: 12px; left: 0; color: #90612c; font-size: 12px; font-variant-numeric: tabular-nums; }
.topic-reading-path a { display: block; position: relative; padding: 10px 24px 14px 0; color: #1d2f43; text-decoration: none; }
.topic-reading-path h4 { margin: 0 0 5px; font-size: 16px; line-height: 1.7; }
.topic-reading-path p { margin: 0; font-size: 14px; color: #4e6070; line-height: 1.8; }
.topic-reading-path a > span { position: absolute; right: 0; top: 12px; color: #356c72; }
.topic-reading-path a:hover h4 { color: #356c72; text-decoration: underline; text-underline-offset: 4px; }
.topic-check { font-size: 14px; line-height: 1.8; padding: 14px 16px; border-radius: 10px; background: #f5f2eb; color: #4e6070; margin: 12px 0 22px; }
.topic-check strong { display: block; font-size: 12px; color: #90612c; font-weight: 500; margin-bottom: 4px; }
.topic-resources { display: grid; gap: 18px; margin-top: auto; }
.topic-resources .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-resources .chip { font-size: 13px; min-height: 36px; display: inline-flex; align-items: center; }
.topic-dossier footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }
.topic-dossier footer a { color: #356c72; text-decoration: none; }
.topic-dossier footer > span { color: #4e6070; }
.topic-hub-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 36px; padding: 30px; border-radius: 20px; border: 1px solid var(--line); background: #fffefa; }
.topic-hub-bottom h2 { font-size: 24px; line-height: 1.5; }
.topic-hub-bottom p { color: #4e6070; font-size: 14px; line-height: 1.8; max-width: 42em; }
.topic-hub-bottom > div:last-child { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }
@media(max-width: 800px) { .topic-hub-hero { gap: 22px; } .topic-dossier { padding: 22px; } .topic-spotlight,.topic-hub-bottom { align-items: start; flex-direction: column; padding: 24px; } }
@media(max-width: 600px) { .topic-hub-hero { grid-template-columns: 1fr; padding-top: 20px; } .topic-hub-hero figure { max-width: 100%; transform: none; } .topic-hub-stats { gap: 20px; } .topic-hub-nav { grid-template-columns: repeat(2,minmax(0,1fr)); } .topic-hub-nav a { padding: 10px; gap: 6px; font-size: 12px; } .topic-dossiers { grid-template-columns: 1fr; } .topic-dossier h2 { font-size: 23px; } .topic-spotlight h2 { font-size: 21px; } .topic-hub-bottom > div:last-child { width: 100%; } }

.catalog-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 18px 0 10px; }
.catalog-filters label { display: grid; gap: 6px; flex: 1 1 180px; color: var(--muted); font-size: 14px; }
.catalog-filters select { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper, #fffefa); color: var(--ink, #1d2f43); font: inherit; }
.catalog-filters button { min-height: 44px; cursor: pointer; }
.model-family { margin: 24px 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #f1f5ee; }
.model-family h2 { margin: 0 0 12px; font-size: 18px; }
.wiki-index-card[hidden] { display: none !important; }
@media(max-width: 600px) { .catalog-filters label { flex-basis: calc(50% - 12px); min-width: 0; } .catalog-filters button { width: 100%; } }

/* 词条目录：长论断标题排成可扫的列表，不让它读成一坨段落（2026-10-22） */
.wiki-toc .card { padding: 20px 18px 12px; }
.wiki-toc .card-title { margin: 0 0 10px; font-size: 15px; letter-spacing: .04em; }
.wiki-toc nav ul { margin: 0; }
.wiki-toc nav li { border-top: 1px solid var(--line-soft); }
.wiki-toc nav li:first-child { border-top: 0; }
.wiki-toc nav ul ul { border-top: 0; }
.wiki-toc nav a {
  display: block;
  padding: 7px 0 7px 13px;
  text-indent: -13px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-2);
  transition: color var(--motion);
}
.wiki-toc nav a::before { content: "·"; display: inline-block; width: 13px; color: var(--editorial-border); }
.wiki-toc nav a:hover { color: var(--blue); background: transparent; }
.wiki-toc nav a:hover::before { color: var(--blue); }
.wiki-toc .wiki-posts-link { display: block; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; }

/* 侧栏目录必须能换行：portal.css 的 nav 规则已收窄到主导航，这里再加一道兜底（2026-10-22） */
.wiki-toc nav, .wiki-toc nav a, .wiki-toc nav ul, .wiki-toc nav li { white-space: normal; }
.wiki-toc nav a { overflow-wrap: anywhere; }
.wiki-content, .wiki-description { overflow-wrap: break-word; }

/* Detailed model parameter tables must not enlarge their grid column. */
.model-card-overview > .wiki-content { min-width: 0; }
.model-card .wiki-content table { width: 100%; }
.model-card .wiki-content th, .model-card .wiki-content td { overflow-wrap: anywhere; }
