/* Shared visual system; loaded after the individual learning tools. */
:root {
  --bg:#f7f8f6; --surface:#fff; --surface-2:#f3f5f1; --panel:#fff;
  --text:#26372f; --muted:#6e7972; --accent:#a75c30; --accent-soft:#f5ebe3;
  --accent-dim:#f3e8df; --border:#e0e5df; --line:#e0e5df; --hi:#203b2e;
  --highlight:#f7eccb; --selected:#efdfc5; --radius:10px; --sidebar-width:224px;
  --shadow:0 2px 8px #26372f05; --shadow-lg:0 8px 32px #26372f20;
}
[hidden] { display:none!important; }
html { color-scheme:light; }
body { padding:72px 0 0 var(--sidebar-width); font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif; }
button,input,select { font:inherit; }
button,a,input,select { -webkit-tap-highlight-color:transparent; }
:focus-visible { outline:2px solid #a75c30!important; outline-offset:4px; }
.site-sidebar { position:fixed; inset:0 auto 0 0; width:var(--sidebar-width); background:#fcfdfb; border-right:1px solid var(--border); display:flex; flex-direction:column; padding:27px 18px 20px; z-index:70; overflow-y:auto; font-size:14px; }
.site-brand { display:flex; align-items:center; gap:11px; color:var(--text); text-decoration:none; font-weight:700; line-height:1.4; padding:0 4px 33px; font-size:16px; }
.site-brand small { display:block; font-size:9px; font-weight:500; letter-spacing:.8px; color:var(--muted); margin-top:4px; }
.site-mark { display:grid; place-items:center; width:39px; height:42px; color:#fff; background:#365944; font-family:Georgia,serif; border-radius:12px 12px 12px 3px; font-size:36px; line-height:1; position:relative; }
.site-mark span { color:#e1b88c; position:absolute; right:6px; bottom:7px; font-size:24px; }
.site-nav { display:flex; flex-direction:column; gap:5px; }
.site-nav a { display:flex; align-items:center; gap:12px; color:#657267; text-decoration:none; font-size:13px; padding:11px 14px; border-radius:7px; transition:background .15s; }
.site-nav a:hover { background:#eef2eb; color:#294733; }
.site-nav a.active { background:#e8eee4; color:#34553e; font-weight:650; }
.site-nav svg { width:19px; height:19px; flex-shrink:0; }
.site-nav-label { color:#8c958a; font-size:10px; letter-spacing:1.2px; padding:24px 14px 8px; }
.nav-dot { width:5px; height:5px; border-radius:50%; background:#5b7752; margin-left:auto; }
.site-nav a:not(.active) .nav-dot { display:none; }
.site-sidebar-note { margin-top:auto; padding:35px 14px 3px; color:#7e897d; }
.site-note-line { display:block; width:24px; height:1px; background:#bec8b6; }
.site-sidebar-note p { font:italic 16px Georgia,serif; margin:16px 0 6px; }
.site-sidebar-note small { font-size:10px; }
.site-topbar { position:fixed; top:0; left:var(--sidebar-width); right:0; height:72px; z-index:60; border-bottom:1px solid var(--border); background:#fcfdfbf5; display:flex; align-items:center; padding:0 38px; gap:16px; }
.site-breadcrumb { display:flex; align-items:center; gap:15px; color:#92998f; font-size:12px; }
.site-breadcrumb b { color:#4f6052; font-weight:500; }
.site-divider { color:#c1c9bd; }
.site-account { margin-left:auto; }
.site-login { border:1px solid var(--border); background:white; color:#53604e; border-radius:6px; padding:8px 13px; cursor:pointer; font-size:12px; }
.site-login span { margin-left:13px; }
#helloBox { display:flex; align-items:center; gap:10px; font-size:12px; }
.site-avatar { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:#e7eddf; color:#5b714a; font-family:Georgia,serif; }
.site-logout { border:0; background:none; color:var(--muted); font-size:12px; cursor:pointer; }
.site-menu { display:none; border:0; background:none; color:var(--text); font-size:22px; padding:4px 8px; cursor:pointer; }
.site-scrim { position:fixed; inset:72px 0 0; z-index:65; background:#1a2b2355; }
.site-skip { position:fixed; top:-100px; left:240px; padding:12px; background:white; color:var(--text); z-index:100; }
.site-skip:focus { top:10px; }
.site-module-tabs { display:flex; gap:22px; padding:0 24px; border-bottom:1px solid var(--line); flex-shrink:0; background:#fcfdfb; }
.site-module-tabs a { font-size:13px; text-decoration:none; color:var(--muted); padding:13px 0; border-bottom:2px solid transparent; }
.site-module-tabs a[aria-current] { color:var(--accent); border-color:var(--accent); }
body[data-section="app"] { min-height:100vh; }
body[data-section="app"] .wrap { max-width:1180px; padding:0 38px; }
body[data-section="app"] .foot { margin-top:44px; font-size:10px; color:#8b9588; padding:20px; }
body:not([data-section="app"]) { background:var(--bg); color:var(--text); }
body:not([data-section="app"]) > header { padding:16px 24px; background:#fff; gap:12px; }
body:not([data-section="app"]) > header .home { display:none; }
body:not([data-section="app"]) > header select { background:#f8f9f6; border-radius:7px; min-height:40px; max-width:100%; }
body:not([data-section="app"]) #bookSel { max-width:46%; }
body:not([data-section="app"]) #list { min-height:0; padding:18px 0; }
body:not([data-section="app"]) .line { padding:13px 30px; font-size:17px; line-height:1.8; }
body:not([data-section="app"]) .line:hover { background:#f0f3ec; }
body:not([data-section="app"]) .line .num { color:#899382; }
body:not([data-section="app"]) .line.active { background:#f5ece3; color:#2b3f2d; }
body:not([data-section="app"]) button.ctrl:hover { background:#ccd6c5; }
body:not([data-section="app"]) button.play:hover { background:#8c4823; }
body:not([data-section="app"]) .ana-drawer { left:var(--sidebar-width); }
body:not([data-section="app"]) .subbar { min-height:42px; flex-wrap:wrap; }
body:not([data-section="app"]) .track:hover { background:#eff3ea; }
body:not([data-section="app"]) footer { padding-top:14px; }
.page-title { font-weight:650; font-size:25px; margin-top:32px; }
.view-intro { margin:0 0 26px; color:var(--muted); font-size:13px; }
.cat-card { box-shadow:none; }
.cat-card .cat-name-en { letter-spacing:.3px; }
.article-card { box-shadow:none; }
.article-card .ac-title b { font-family:Georgia,"Times New Roman",serif; font-size:18px; font-weight:500; }
.article-notes { top:90px; }
.filters { align-items:center; }
.filters label { font-size:13px; color:var(--muted); }
.filters input[type="search"], .library-search { min-height:40px; border:1px solid var(--border); border-radius:7px; padding:8px 12px; background:white; color:var(--text); }
@media (max-width:1100px) {
  :root { --sidebar-width:196px; }
  .site-sidebar { padding-left:12px; padding-right:12px; }
  .site-brand { font-size:14px; gap:8px; }
  .site-topbar { padding:0 24px; }
  body[data-section="app"] .wrap { padding:0 24px; }
}
@media (max-width:800px) {
  :root { --sidebar-width:0px; }
  .site-sidebar { width:224px; transform:translateX(-100%); transition:transform .2s; top:72px; }
  .site-sidebar.is-open { transform:translateX(0); }
  .site-brand { padding-bottom:20px; }
  .site-menu { display:block; }
  .site-topbar { padding:0 15px; gap:10px; }
  .site-breadcrumb>span { display:none; }
  .site-skip { left:16px; }
  body[data-section="app"] .wrap { padding:0 20px; }
  body:not([data-section="app"]) > header { padding:12px 16px; }
  body:not([data-section="app"]) .line { padding:12px 16px; }
  body:not([data-section="app"]) .line .ltext { min-width:0; overflow-wrap:anywhere; }
  .article-card { flex-wrap:wrap; }
  .article-card .ac-meta { white-space:normal; }
}
@media (max-width:480px) {
  .site-login { padding:8px 10px; }
  .site-topbar { height:64px; }
  body { padding-top:64px; }
  .site-sidebar,.site-scrim { top:64px; }
  body:not([data-section="app"]) #bookSel { max-width:100%; width:100%; }
  body:not([data-section="app"]) > header select { font-size:13px; }
  body:not([data-section="app"]) .controls { gap:5px; flex-wrap:wrap; }
  body:not([data-section="app"]) button.ctrl { width:38px; height:38px; }
  body:not([data-section="app"]) button.play { width:48px; height:48px; }
  body:not([data-section="app"]) .chip { padding:7px 9px; }
  .site-module-tabs { padding:0 16px; gap:24px; }
  .filters input[type="search"] { width:100%; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; } }
