
:root { --paper:#f7f8f6; --surface:#fff; --surface-soft:#f0f3ef; --ink:#192c27; --muted:#52645a; --line:#dbe3da; --accent:#175e49; --accent-soft:#e5f0e9; --warn:#765214; --warn-bg:#faf2df; --lesson:#eef0fa; --focus:#a65b18; color-scheme:light; }
:root[data-theme="dark"] { --paper:#161e1b; --surface:#202a25; --surface-soft:#29362f; --ink:#edf3ed; --muted:#bdcec1; --line:#45564b; --accent:#a5dec2; --accent-soft:#2b4738; --warn:#f4d389; --warn-bg:#41371f; --lesson:#2b324a; --focus:#f1be7b; color-scheme:dark; }
body { background:var(--paper); color:var(--ink); }
::selection { background:#c1e4cf; color:#132b20; }
.wiki-shell { width:min(100% - 3rem,1600px); padding:0 0 2rem; }
.wiki-shell a, #mobile-dialog a { color:var(--accent); text-underline-offset:.19em; overflow-wrap:anywhere; }
.wiki-shell :is(button,select,input,textarea),dialog :is(button,select,input) { font:inherit; }
.wiki-shell button,dialog button { background:var(--accent); color:var(--surface); border:1px solid var(--accent); border-radius:7px; font-size:.85rem; min-height:38px; padding:.55rem .85rem; }
.wiki-shell button:hover,dialog button:hover { filter:brightness(.93); }
.wiki-shell :is(select,input[type=search],textarea) { background:var(--surface); color:var(--ink); border:1px solid var(--line); border-radius:7px; padding:.6rem; min-width:0; }
.wiki-shell :is(a,summary,button,input,select,textarea):focus-visible,dialog :focus-visible { outline:3px solid var(--focus); outline-offset:3px; }
.wiki-header { display:flex; align-items:center; gap:1.25rem; min-height:92px; margin:0; border-bottom:1px solid var(--line); }
.wiki-brand { display:flex; align-items:center; gap:.75rem; text-decoration:none; font-size:1.15rem; font-weight:750; letter-spacing:-.025em; color:var(--ink)!important; white-space:nowrap; }
.wiki-brand svg { width:34px; height:34px; flex-shrink:0; color:var(--accent); }
.wiki-brand small { display:block; font-size:.75rem; line-height:1.7; font-weight:450; letter-spacing:.01em; color:var(--muted); }
.utility-nav { margin-left:auto; display:flex; align-items:center; gap:.8rem; font-size:.8rem; }
.utility-nav>a { text-decoration:none; padding:.65rem .3rem; }
.utility-nav details { position:relative; }
.utility-nav summary { cursor:pointer; padding:.65rem; }
.utility-nav details[open] a { display:block; padding:.5rem; background:var(--surface); }
.theme-control { font-size:.7rem; color:var(--muted); display:flex; align-items:center; gap:.5rem; }
.theme-control select { font-size:.75rem!important; padding:.4rem!important; }
.subject-nav { display:flex; align-items:center; gap:.25rem; overflow-x:auto; white-space:nowrap; border-bottom:1px solid var(--line); min-height:54px; margin-bottom:1.25rem; scrollbar-width:thin; }
.subject-nav a { color:var(--muted); font-size:.82rem; padding:.95rem .8rem; text-decoration:none; flex-shrink:0; }
.subject-nav a:hover { background:var(--surface-soft); color:var(--ink); }
.subject-nav a[aria-current] { color:var(--accent); box-shadow:inset 0 -2px var(--accent); font-weight:700; }
.wiki-search { background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:.9rem 1.1rem; margin:0 0 1.5rem; }
#search-menu>summary { display:none; }
#search-form>label { font-size:.8rem; color:var(--muted); }
.search-row { display:flex; align-items:stretch; gap:.6rem; margin-top:.4rem; }
.search-row input { flex:1; }
.search-row select { max-width:15rem; }
#search-hint,#search-status { font-size:.75rem; color:var(--muted); line-height:1.5; margin:.5rem 0 0; }
#search-results { max-height:27rem; overflow:auto; margin:.5rem 0 0; padding:0; list-style:none; }
#search-results li { padding:.8rem .4rem; border-bottom:1px solid var(--line); }
#search-results a { font-size:.95rem; font-weight:650; }
#search-results small { display:block; color:var(--muted); font-size:.7rem; }
#search-results p { font-size:.8rem; color:var(--muted); line-height:1.6; margin:.3rem 0; }
#search-results .search-group-heading { padding:.7rem .4rem; background:var(--surface-soft); color:var(--ink); font-weight:700; }
.wiki-grid { display:grid; grid-template-columns:230px minmax(0,850px) 190px; gap:2rem; justify-content:center; align-items:start; }
.reading-column,.topic-sidebar,.section-sidebar { min-width:0; }
.topic-sidebar,.section-sidebar { position:sticky; top:1rem; max-height:calc(100dvh - 2rem); overflow:auto; font-size:.8rem; line-height:1.55; scrollbar-width:thin; }
.topic-sidebar>details>summary { font-size:.95rem; margin-bottom:.75rem; }
.wiki-grid summary { cursor:pointer; font-weight:650; }
.nav-mode-label { display:block; font-size:.7rem; color:var(--muted); margin-bottom:.4rem; }
#wiki-mode { width:100%; font-size:.8rem; }
#mode-description { font-size:.72rem; color:var(--muted); line-height:1.5; }
#topic-tree>details { padding:.3rem 0; }
#topic-tree summary { padding:.5rem .3rem; }
#topic-tree ul { list-style:none; padding:0 0 0 .65rem; margin:0; }
#topic-tree a,#section-links a { display:block; text-decoration:none; padding:.5rem .55rem; color:var(--muted); border-radius:5px; }
#topic-tree a:hover,#section-links a:hover { background:var(--surface-soft); color:var(--ink); }
#topic-tree a[aria-current],#section-links a[aria-current] { background:var(--accent-soft); color:var(--accent); font-weight:650; }
#section-links .subsection { padding-left:1rem; font-size:.75rem; }
#section-menu>summary { font-size:.8rem; margin-bottom:.75rem; }
#reading-progress { width:100%; height:.3rem; accent-color:var(--accent); }
#reading-progress-text { color:var(--muted); font-size:.65rem; margin:.4rem 0 .75rem; }
.catalogue-picker { margin-top:1rem; border-top:1px solid var(--line); padding-top:1rem; }
#reader-form { display:grid; gap:.5rem; margin-top:.6rem; }
#reading { width:100%; font-size:.8rem; }
#breadcrumbs { color:var(--muted); font-size:.72rem; line-height:1.6; margin-bottom:.6rem; }
.chapter-tools { display:flex; align-items:start; gap:.5rem; margin:.5rem 0; }
.chapter-tools summary { font-size:.75rem; cursor:pointer; padding:.4rem .65rem; color:var(--muted); border:1px solid var(--line); border-radius:6px; min-height:32px; }
.term-help { flex:1; min-width:0; }
.term-help details[open],#reading-options[open] { background:var(--surface); border:1px solid var(--line); padding:.75rem; border-radius:8px; }
.term-help p { font-size:.8rem; line-height:1.65; }
.term-help select { display:block; width:100%; margin:.5rem 0; }
.term-toggle-label { display:flex; gap:.5rem; align-items:center; }
.term-toggle-label input { width:auto; }
#reader-status:not([hidden]) { padding:.8rem; background:var(--warn-bg); color:var(--warn); border:1px solid var(--line); border-radius:7px; }
#content { font-size:17px; line-height:1.75; padding:2rem 2.2rem; background:var(--surface); border:1px solid var(--line); border-radius:12px; overflow-wrap:anywhere; }
#content h1 { font-size:2.35rem; line-height:1.2; letter-spacing:-.03em; margin:.15rem 0 1.25rem; text-wrap:balance; }
#content h2 { font-size:1.55rem; letter-spacing:-.02em; line-height:1.35; margin:2.5rem 0 1rem; padding-top:1.1rem; border-top:1px solid var(--line); }
#content h3 { font-size:1.12rem; line-height:1.4; margin:1.7rem 0 .75rem; }
#content :is(p,ul,ol) { max-width:70ch; }
#content :is(h1,h2,h3,h4,h5,h6) { scroll-margin-top:1rem; }
#content pre { padding:1rem; background:#182b24; color:#eef4ee; border-radius:8px; overflow-x:auto; white-space:pre; }
#content code { font-family:Consolas,"Cascadia Code",monospace; font-size:.86em; }
#content .section-anchor { opacity:0; display:inline-block; min-width:1em; margin-left:.25rem; font-size:.6em; text-decoration:none; }
#content .section-anchor::before { content:'#'; }
#content :is(h1,h2,h3,h4):hover>.section-anchor,#content .section-anchor:focus-visible { opacity:1; }
#content .term-trigger { display:inline; padding:0 .04em; min-height:0; margin:0; border:0; border-bottom:1px dotted var(--accent); border-radius:0; background:transparent; color:inherit; font:inherit; line-height:inherit; cursor:pointer; }
#content .term-trigger:hover { background:var(--accent-soft); }
.chapter-meta { color:var(--muted); font-size:.72rem; line-height:1.8; padding-bottom:.75rem; border-bottom:1px solid var(--line); }
.evidence-note { color:var(--muted); font-size:.88em; }
.claim-label { display:inline-block; font-size:.72em; font-weight:650; color:var(--warn); background:var(--warn-bg); padding:.05rem .4rem; border-radius:4px; }
#chapter-terms { font-size:.8rem; margin:1rem 0; padding:.7rem .85rem; background:var(--surface-soft); border-radius:7px; }
#chapter-terms summary { cursor:pointer; }
.term-chips { display:flex; flex-wrap:wrap; gap:.4rem; max-height:20rem; overflow:auto; margin-top:.7rem; }
.term-chips button { font-size:.73rem; padding:.35rem .5rem; background:var(--surface); color:var(--accent); border-color:var(--line); }
#term-preview { position:fixed; z-index:80; width:min(320px,calc(100vw - 16px)); padding:.85rem; font-size:.8rem; line-height:1.6; color:var(--ink); background:var(--surface); border:1px solid var(--line); border-radius:8px; box-shadow:0 8px 28px #0002; }
.teaching-section { margin:2rem 0; }
#content .teaching-section>h2 { margin-top:.5rem; }
.teaching-worked,.teaching-mistake,.teaching-exercise,.reader-callout { padding:1.2rem; border-radius:8px; background:var(--surface-soft); border:1px solid var(--line); }
.teaching-mistake,.reader-callout.mistake { background:var(--warn-bg); }
.teaching-exercise,.reader-callout.exercise { background:var(--lesson); }
.exercise-copy { margin-top:.7rem; }
.teaching-exercise textarea { display:block; width:100%; min-height:8rem; }
.answer-reveal { padding:.85rem; border:1px solid var(--line); border-radius:8px; margin:1rem 0; }
.answer-reveal summary { cursor:pointer; font-weight:650; min-height:30px; }
.local-file-chip { display:inline-block; padding:.2rem .5rem; color:var(--muted); background:var(--surface-soft); border:1px solid var(--line); border-radius:4px; font-size:.78em; }
.table-box { position:relative; margin:1.5rem 0; }
.table-scroll { max-height:37rem; overflow:auto; max-width:100%; scrollbar-width:thin; }
.table-hint { font-size:.75rem; font-weight:650; color:var(--muted); }
.table-box.scroll-right::after { content:''; position:absolute; top:4rem; bottom:0; right:0; width:1rem; background:linear-gradient(90deg,transparent,var(--surface-soft)); pointer-events:none; }
#content table { border-collapse:separate; border-spacing:0; width:100%; font-size:.82em; line-height:1.6; }
#content caption { text-align:left; color:var(--muted); font-size:.85em; padding-bottom:.5rem; }
#content th,#content td { padding:.75rem; text-align:left; min-width:8rem; border-bottom:1px solid var(--line); }
#content th { position:sticky; top:0; z-index:2; background:var(--surface-soft); font-weight:700; }
#content tr>:first-child { position:sticky; left:0; z-index:1; background:var(--surface); }
#content thead th:first-child { z-index:3; background:var(--surface-soft); }
#content tbody tr:nth-child(even) td { background:var(--paper); }
#content .numeric { text-align:right; font-variant-numeric:tabular-nums; }
.table-controls { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; font-size:.75rem; margin:.5rem 0; }
.table-controls input { flex:1; min-width:7rem; }
.table-controls select { max-width:14rem; }
#landing-features h1 { font-size:2.8rem; line-height:1.12; letter-spacing:-.03em; margin:0 0 1rem; max-width:18ch; }
#landing-features>p { color:var(--muted); max-width:62ch; line-height:1.75; }
#subject-directory { margin:1.75rem 0 2.5rem; }
.subject-directory-list { display:grid; grid-template-columns:1fr 1fr; gap:0 2rem; border-top:1px solid var(--line); }
.subject-entry { padding:1.2rem 0; border-bottom:1px solid var(--line); }
.subject-entry h3 { margin:0 0 .5rem; font-size:1.15rem; }
.subject-entry h3 a { text-decoration:none; color:var(--ink); }
.subject-entry p { color:var(--muted); font-size:.85rem; line-height:1.65; margin:.4rem 0; }
.subject-entry small { font-size:.7rem; color:var(--accent); }
#continue-reading { background:var(--accent-soft); padding:1rem; border-radius:8px; font-weight:600; }
#continue-reading:empty { display:none; }
#route-cards { display:grid; grid-template-columns:1fr 1fr; gap:1.3rem; margin:1.25rem 0; }
.route-card { padding:0 0 1.25rem; border-bottom:1px solid var(--line); }
.route-card h3 { font-size:.95rem; margin:0 0 .5rem; }
.route-card p { color:var(--muted); font-size:.75rem; margin:.4rem 0; }
.route-card a { font-size:.8rem; display:inline-block; padding:.5rem 0; }
.route-card progress,#route-progress { display:block; width:100%; height:.35rem; accent-color:var(--accent); margin:.65rem 0; }
#recent-readings,#dashboard-course { margin:2rem 0; border-top:1px solid var(--line); padding-top:1.4rem; }
#recent-readings h2,#dashboard-course h2 { margin:0 0 1rem; }
#recent-readings li { padding:.5rem 0; font-size:.85rem; }
#dashboard-course p { font-size:.85rem; line-height:1.65; color:var(--muted); }
#dashboard-course button { margin-right:.75rem; }
#all-pages-link { display:block; margin-top:1.5rem; font-size:.85rem; }
#route-footer { margin:2rem 0; padding:1.25rem; background:var(--surface-soft); border:1px solid var(--line); border-radius:9px; }
#route-footer label { font-size:.8rem; }
#route-footer select { display:block; width:100%; margin:.6rem 0; }
#route-status { color:var(--muted); font-size:.8rem; line-height:1.65; }
#route-pager { display:flex; flex-wrap:wrap; justify-content:space-between; gap:.5rem; margin:1rem 0; }
#route-pager a { padding:.65rem; border:1px solid var(--line); border-radius:6px; text-decoration:none; font-size:.8rem; }
#reading-storage-status { color:var(--warn); font-size:.8rem; }
.chapter-references { font-size:.85em; }
.video-cards { display:grid; gap:.8rem; grid-template-columns:1fr 1fr; }
.video-cards section { padding:1rem; background:var(--surface-soft); border-radius:8px; }
.video-cards p,.video-cards small { font-size:.78rem; color:var(--muted); }
.teaching-figure { margin:1.5rem 0; }
#content img { display:block; max-width:100%; height:auto; margin:0 auto; }
.teaching-figure figcaption { color:var(--muted); font-size:.8rem; line-height:1.6; margin:.65rem 0; }
.diagram-open { background:var(--surface)!important; color:var(--accent)!important; border-color:var(--line)!important; font-size:.75rem!important; }
#glossary-browser { background:var(--surface-soft); padding:1rem; border-radius:8px; margin:1rem 0 2rem; }
#glossary-browser label { display:block; font-size:.8rem; }
#glossary-query { width:100%; margin:.5rem 0; }
#glossary-browser nav { display:flex; flex-wrap:wrap; gap:.4rem; }
#glossary-browser nav a { padding:.35rem; min-width:1.7rem; text-align:center; }
#glossary-status { font-size:.8rem; color:var(--muted); }
.search-match { background:#f6d883; color:#27331c; border-radius:2px; }
.read-aloud { margin:2rem 0 0; border-top:1px solid var(--line); padding-top:1rem; font-size:.8rem; }
.read-aloud summary { cursor:pointer; margin-bottom:.6rem; }
.read-aloud select { max-width:100%; }
.read-aloud button { margin:.5rem; }
.learning-tool { margin:2rem 0; padding:1.2rem; border:1px solid var(--line); border-radius:9px; background:var(--lesson); }
.tool-grid { display:grid; grid-template-columns:1fr 1fr; gap:.8rem; }
.learning-tool label { display:block; font-size:.82rem; }
.learning-tool input,.learning-tool select { width:100%; background:var(--surface); color:var(--ink); padding:.5rem; border:1px solid var(--line); border-radius:5px; }
.learning-tool input[type=checkbox],.learning-tool input[type=radio] { width:auto; }
.tool-results { background:var(--surface); padding:1rem; border-radius:7px; margin:1rem 0; font-variant-numeric:tabular-nums; }
.tool-feedback,.tool-storage { font-size:.85rem; line-height:1.65; }
.learning-tool fieldset { border:1px solid var(--line); margin:1rem 0; padding:1rem; }
.learning-tool button { margin:.4rem .5rem .4rem 0; }
footer { color:var(--muted); font-size:.72rem; line-height:1.6; margin:1.5rem 0; }
.skip-link { position:absolute; top:-100px; left:1rem; background:var(--surface); padding:1rem; z-index:100; }
.skip-link:focus { top:0; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.mobile-toolbar { display:none; }
dialog { background:var(--surface); color:var(--ink); border:1px solid var(--line); border-radius:12px; }
dialog::backdrop { background:#10251ecc; }
#term-dialog { width:min(40rem,calc(100% - 2rem)); max-height:85dvh; padding:1.5rem; line-height:1.65; overflow:auto; }
#term-title { margin-top:0; }
#mobile-dialog { width:min(34rem,95vw); height:100dvh; max-height:100dvh; margin:0 auto 0 0; border-radius:0 12px 12px 0; padding:1rem; }
#mobile-dialog header { display:flex; justify-content:space-between; align-items:center; gap:.5rem; position:sticky; top:0; background:var(--surface); z-index:5; padding:.3rem 0 .75rem; margin:0 0 1rem; }
#mobile-title { margin:0; font-size:1.1rem; }
#mobile-panel :is(.topic-sidebar,.section-sidebar,.wiki-search) { display:block; width:100%; position:static; max-height:none; border:0; padding:0; margin:0; }
#mobile-panel #topic-tree,#mobile-panel #section-links { max-height:none; }
#mobile-panel a,#mobile-panel summary { min-height:44px; }
#diagram-dialog { width:min(96vw,1400px); max-height:96dvh; overflow:auto; padding:1rem; }
#diagram-title { font-size:1.15rem; }
#diagram-body { overflow:visible; margin:1rem 0; }
#diagram-body svg,#diagram-body img { display:block; width:100%; height:auto; }
#diagram-zoom { margin:.5rem; }
#diagram-status { font-size:.8rem; }
@media (max-width:1200px) and (min-width:901px) { .wiki-grid { grid-template-columns:205px minmax(0,1fr); } .section-sidebar { display:none; } .utility-nav { gap:.3rem; } .subject-nav a { font-size:.75rem; padding:.9rem .6rem; } }
@media (max-width:900px) {
 .wiki-shell { width:calc(100% - 1.2rem); padding-top:0; }
 .wiki-header { min-height:64px; padding:.4rem 0; gap:.25rem; position:relative; }
 .wiki-brand { font-size:.88rem; gap:.4rem; }
 .wiki-brand svg { width:25px; height:25px; }
 .wiki-brand small { font-size:.6rem; }
 .utility-nav,.wiki-header>.theme-control { display:none; }
 .mobile-toolbar { display:flex; gap:.15rem; position:absolute; top:.55rem; right:.6rem; z-index:3; }
 .mobile-toolbar button { min-height:44px; width:40px; padding:.4rem; background:transparent; color:var(--accent); border:0; font-size:0; }
 .mobile-toolbar svg { width:20px; height:20px; }
 .subject-nav { min-height:40px; margin:0 0 .6rem; }
 .subject-nav a { font-size:.7rem; padding:.7rem .55rem; }
 .subject-nav a:first-child { display:none; }
 .wiki-search,.wiki-grid>.topic-sidebar,.wiki-grid>.section-sidebar { display:none; }
 .wiki-grid { display:block; }
 #breadcrumbs { font-size:.65rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin:.2rem 0; }
 #breadcrumbs>a:first-child,#breadcrumbs>span:first-of-type { display:none; }
 .chapter-tools { gap:.5rem; margin:.3rem 0; }
 .chapter-tools summary { min-height:36px; padding:.35rem .55rem; }
 #content { padding:.9rem; font-size:16px; border-radius:9px; }
 #content h1 { font-size:1.55rem; margin:.1rem 0 .8rem; line-height:1.2; }
 #content .section-anchor { opacity:1; }
 .chapter-meta { font-size:.68rem; }
 #landing-features h1 { font-size:2.1rem; margin-top:.8rem; }
 .subject-directory-list { display:block; }
 .subject-entry { padding:1.1rem 0; }
 #route-cards { grid-template-columns:1fr; }
 .video-cards,.tool-grid { grid-template-columns:1fr; }
 .table-controls select { width:100%; max-width:100%; }
 #route-pager a,.term-chips button,#mobile-panel button { min-height:44px; }
 #reading-options[open] .theme-control { display:block; margin-top:.6rem; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; animation:none!important; } }
@media print { .wiki-header,.subject-nav,.wiki-search,.topic-sidebar,.section-sidebar,.chapter-tools,.mobile-toolbar,#landing-features,#route-footer,.read-aloud,.diagram-open,.table-controls,#reading-storage-status,#reading-storage-retry { display:none!important; } .wiki-grid { display:block; } .wiki-shell { width:100%; } #content { border:0; padding:0; } #content .section-anchor { display:none; } .answer-reveal>* { display:block; } .table-scroll { overflow:visible; max-height:none; } }

/* Home is a subject directory, not an article with setup controls. */
.wiki-home .wiki-grid { grid-template-columns:230px minmax(0,1fr); }
.wiki-home .section-sidebar,.wiki-home .chapter-tools,.wiki-home #breadcrumbs { display:none; }
.wiki-home #landing-features { padding:1rem .4rem; }
.wiki-home #landing-features h1 { max-width:24ch; font-size:2.8rem; margin:0 0 1rem; }
.wiki-home .subject-directory-list { grid-template-columns:repeat(6,minmax(0,1fr)); gap:0 1.75rem; }
.wiki-home .subject-entry { grid-column:span 2; }
.wiki-home .subject-entry:nth-child(n+4) { grid-column:span 3; }
.wiki-home #route-cards { grid-template-columns:repeat(3,minmax(0,1fr)); }
.wiki-search { padding:.65rem .9rem; margin-bottom:1.2rem; }
#search-form>label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.search-row { margin-top:0; }
.wiki-search:not(:focus-within):not(.has-results) #search-hint,.wiki-search:not(:focus-within):not(.has-results) #search-status { display:none; }
@media (max-width:1100px) { .wiki-home .subject-directory-list { grid-template-columns:1fr 1fr; } .wiki-home .subject-entry,.wiki-home .subject-entry:nth-child(n+4) { grid-column:auto; } .wiki-home #route-cards { grid-template-columns:1fr 1fr; } }
@media (max-width:900px) { .wiki-home .wiki-grid { display:block; } .wiki-home #landing-features { padding:.7rem 0; } .wiki-home #landing-features h1 { font-size:2rem; } .wiki-home .subject-directory-list,.wiki-home #route-cards { display:block; } .wiki-home .route-card { margin-bottom:1rem; } #mobile-panel .wiki-search { padding:0; } }

#entry-paths { margin:1.5rem 0 2rem; }
#language-directory { margin:2rem 0; }
.language-groups { display:grid; grid-template-columns:2fr 1fr; gap:0 2rem; }
.language-groups ul { display:flex; flex-wrap:wrap; gap:.4rem 1.2rem; list-style:none; padding:0; }
.language-groups a { display:inline-flex; align-items:center; min-height:44px; }
@media(max-width:900px){.language-groups { grid-template-columns:1fr; }}
#entry-paths h2 { margin-bottom:.8rem; }
.entry-links { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.entry-links>a { display:block; padding:1rem 1.1rem; background:var(--accent-soft); border-radius:8px; text-decoration:none; font-weight:700; }
.entry-links span { display:block; color:var(--muted); font-size:.78rem; font-weight:400; line-height:1.6; margin-top:.4rem; }
@media(max-width:900px){.entry-links { grid-template-columns:1fr; }}

/* Owner direction: matte gunmetal, smoky depth and restrained backlighting. */
:root[data-theme="dark"] { --paper:#191e24; --surface:#232a32; --surface-soft:#2c3540; --ink:#e8edf4; --muted:#b3bfce; --line:#3e4a58; --accent:#82d5df; --accent-soft:#253e49; --warn:#f0ca82; --warn-bg:#3e3525; --lesson:#293449; --focus:#efc47f; }
:root[data-theme="dark"] body { background:radial-gradient(ellipse at 20% -15%,#47536140,transparent 62%),var(--paper); }
:root[data-theme="dark"] .wiki-header { background:linear-gradient(180deg,#26313b50,transparent); }
:root[data-theme="dark"] .wiki-brand svg { color:var(--accent); filter:drop-shadow(0 0 5px #60d2df70); }
:root[data-theme="dark"] .wiki-brand span { text-shadow:0 1px 8px #0005; }
:root[data-theme="dark"] .subject-nav a[aria-current] { box-shadow:inset 0 -2px var(--accent),0 5px 9px -8px #82d5df; }
:root[data-theme="dark"] #content { box-shadow:0 12px 35px #05090e25; border-color:#3b4653; }
:root[data-theme="dark"] .wiki-search { background:#242d36; }
:root[data-theme="dark"] .wiki-shell input::placeholder { color:#a5b1c0; opacity:1; }
:root[data-theme="dark"] .claim-label { color:#f0cf91; background:#443925; }
:root[data-theme="dark"] .search-match { background:#d7bb70; color:#18242b; }
:root[data-theme="dark"] ::selection { background:#577f92; color:#fff; }
:root[data-theme="dark"] .teaching-figure picture { display:block; background:#eaf0f4; border-radius:8px; overflow:hidden; }
