:root {
  color-scheme: light;
  --color-page: #fbfdff;
  --color-surface: #ffffff;
  --color-wash: #edf5fc;
  --color-wash-soft: #f4f8fc;
  --color-text: #22364a;
  --color-muted: #587086;
  --color-brand: #28638c;
  --color-brand-dark: #19496d;
  --color-border: #d9e5ef;
  --color-focus: #28638c;
  --font-ui: Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-reading: Georgia, "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  --font-code: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --radius: 6px;
  --content-width: 1080px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body { margin: 0; background: var(--color-page); color: var(--color-text); font-family: var(--font-ui); font-size: 16px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--color-brand); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--color-brand-dark); }
a, button, input, textarea, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 4px; }
img { max-width: 100%; height: auto; display: block; }
svg { flex-shrink: 0; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin-top: 0; }
h1, h2, h3, h4 { font-family: var(--font-ui); font-weight: 600; line-height: 1.5; }
h1 { font-size: clamp(32px, 4.2vw, 46px); letter-spacing: -.025em; margin-bottom: 16px; }
h2 { font-size: 26px; letter-spacing: -.015em; margin-bottom: 16px; }
h3 { font-size: 19px; margin-bottom: 10px; }
p { margin-bottom: 16px; }
.shell { width: min(var(--content-width), calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -100px; background: white; padding: 8px 16px; }
.skip-link:focus { top: 8px; }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--color-page); border-bottom: 1px solid var(--color-border); }
.header-inner { min-height: 80px; display: flex; gap: 28px; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--color-text); text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #b6cfe2; color: var(--color-brand); font-family: Georgia, serif; font-size: 23px; line-height: 1; }
.brand-name { font-size: 16px; font-weight: 600; }
.brand-sub { font: 13px var(--font-code); color: var(--color-muted); letter-spacing: .04em; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { position: relative; color: var(--color-muted); text-decoration: none; font-size: 14px; padding-block: 28px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--color-brand); }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; bottom: 17px; left: 0; right: 0; height: 2px; background: var(--color-brand); }
.nav-toggle { display: none; border: 1px solid var(--color-border); color: var(--color-brand); background: var(--color-surface); padding: 5px 12px; border-radius: var(--radius); font-size: 14px; }
.eyebrow { color: var(--color-brand); font: 13px/1.6 var(--font-code); letter-spacing: .1em; margin-bottom: 10px; text-transform: uppercase; }
.muted, .small-note { color: var(--color-muted); }
.small-note { font-size: 13px; line-height: 1.9; }
.hero { background: var(--color-wash); border-bottom: 1px solid var(--color-border); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 140px; align-items: center; gap: 36px; padding-block: 32px; }
.hero h1 { font-size: clamp(38px, 5vw, 52px); line-height: 1.2; font-weight: 550; letter-spacing: .015em; margin: 0 0 6px; }
.hero-english { color: var(--color-brand); font-family: Georgia, serif; font-size: 23px; letter-spacing: .015em; margin-bottom: 16px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 7px 28px; margin: 0; max-width: 780px; }
.hero-facts > div { display: flex; align-items: baseline; gap: 9px; font-size: 14px; line-height: 1.7; min-width: 0; max-width: 100%; }
.hero-facts dt { color: var(--color-muted); white-space: nowrap; }
.hero-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.hero-portrait { margin: 0; }
.portrait-frame { padding: 8px; background: white; border: 1px solid #cbdde9; }
.portrait-frame img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; object-position: center 28%; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 43px; border: 1px solid var(--color-brand); border-radius: var(--radius); padding: 8px 18px; background: var(--color-brand); color: white; text-decoration: none; font-size: 14px; line-height: 1.6; }
.button:hover { background: var(--color-brand-dark); color: white; }
.button-secondary { background: transparent; color: var(--color-brand); border-color: #b9cfe0; }
.button-secondary:hover { background: var(--color-surface); color: var(--color-brand-dark); }
.text-link { font-size: 14px; white-space: nowrap; }
.section { padding-block: 32px; }
.section + .section { border-top: 1px solid var(--color-border); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 16px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading .eyebrow { margin-bottom: 6px; }
.section-description { color: var(--color-muted); max-width: 680px; margin-bottom: 20px; }
.learning-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 44px; align-items: start; }
.learning-overview { padding-block: 20px; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.learning-sidebar { position: sticky; top: 108px; border-right: 1px solid var(--color-border); padding-right: 22px; }
.learning-sidebar .eyebrow { font-family: var(--font-ui); font-size: 12px; letter-spacing: .05em; margin-bottom: 12px; }
.learning-sidebar nav { display: flex; flex-direction: column; gap: 6px; }
.sidebar-item { display: block; color: var(--color-muted); text-decoration: none; padding: 12px 13px; border-left: 2px solid transparent; border-radius: 0 var(--radius) var(--radius) 0; }
.sidebar-item:hover, .sidebar-item[aria-current="page"], .sidebar-item.is-active { color: var(--color-brand); background: var(--color-wash); border-left-color: var(--color-brand); }
.sidebar-item-heading { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; font-size: 15px; }
.sidebar-count { font-family: var(--font-code); font-size: 11px; color: var(--color-muted); }
.sidebar-english { display: block; font: 12px/1.7 var(--font-code); margin-top: 5px; }
.sidebar-submenu { margin: 0 0 10px 15px; font-size: 13px; }
.sidebar-submenu summary { color: var(--color-muted); cursor: pointer; padding: 6px 0; }
.sidebar-submenu ul { list-style: none; padding: 0 0 0 10px; margin: 4px 0 0; border-left: 1px solid var(--color-border); }
.sidebar-subitem { display: flex; justify-content: space-between; gap: 10px; padding: 8px 9px; text-decoration: none; color: var(--color-muted); }
.sidebar-subitem:hover, .sidebar-subitem[aria-current="page"] { color: var(--color-brand); background: var(--color-wash); text-decoration: underline; text-underline-offset: 4px; }
.sidebar-submenu .sidebar-series { margin: 0 0 6px 9px; padding-left: 10px; }
.sidebar-series .sidebar-subitem { font-size: 12px; }
.learning-content { min-width: 0; }
.recent-notes-section > h3 { font-size: 22px; margin: 0 0 8px; }
.recent-notes { padding: 0; margin: 0; list-style: none; }
.recent-notes li { padding-block: 15px; border-bottom: 1px solid var(--color-border); }
.recent-notes li:last-child { border-bottom: 0; padding-bottom: 0; }
.recent-note-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--color-muted); font-size: 12px; }
.recent-note-meta time { font-family: var(--font-code); }
.note-example { color: var(--color-brand); background: var(--color-wash); padding: 1px 7px; border-radius: var(--radius); font-size: 11px; }
.recent-notes h4 { margin: 5px 0 0; font-size: 16px; line-height: 1.65; }
.recent-notes h4 a { color: var(--color-text); text-decoration: none; }
.recent-notes h4 a:hover { color: var(--color-brand); text-decoration: underline; }
.learning-content > .section { padding-block: 32px; }
.learning-content > .toc { position: static; border-left: 0; border-bottom: 1px solid var(--color-border); padding: 0 0 20px; margin-bottom: 30px; }
.two-column { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
.meta { color: var(--color-muted); font-size: 13px; line-height: 1.8; }
.mono { font-family: var(--font-code); }
.entry-list { border-top: 1px solid var(--color-border); }
.entry-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; gap: 20px; align-items: baseline; padding: 25px 0; border-bottom: 1px solid var(--color-border); color: var(--color-text); text-decoration: none; }
.entry-row:hover h3 { color: var(--color-brand); text-decoration: underline; text-underline-offset: 5px; }
.entry-row h3 { margin: 0 0 8px; }
.entry-row p { color: var(--color-muted); font-size: 14px; margin: 0 0 12px; line-height: 1.9; }
.entry-number { color: var(--color-brand); font: 12px var(--font-code); }
.entry-arrow { color: var(--color-brand); font-size: 20px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { display: inline-block; padding: 2px 8px; border: 1px solid var(--color-border); border-radius: 3px; font: 11px/1.7 var(--font-ui); color: var(--color-muted); }
.tag-blue { background: var(--color-wash); color: var(--color-brand); border-color: #c6dbe9; }
.page-header { padding-block: 28px 20px; border-bottom: 1px solid var(--color-border); }
.page-header p:last-child, .page-header h1:last-child { margin-bottom: 0; }
.breadcrumbs { font-size: 12px; color: var(--color-muted); display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 20px; }
.breadcrumbs a { text-decoration: none; }
.page-description { color: var(--color-muted); max-width: 720px; line-height: 1.95; }
.page-body { padding-block: 28px 40px; min-height: 40vh; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 218px; gap: 64px; align-items: start; }
.prose { min-width: 0; font-family: var(--font-reading); font-size: 18px; line-height: 1.95; overflow-wrap: anywhere; }
.prose h2 { margin-top: 40px; padding-top: 8px; font-size: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 28px; }
.prose li { margin-bottom: 9px; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose strong { font-weight: 700; }
.prose blockquote { margin: 24px 0; border-left: 3px solid #a8c8df; background: var(--color-wash-soft); padding: 14px 22px; color: var(--color-muted); }
.prose blockquote p:last-child { margin: 0; }
.prose a { overflow-wrap: anywhere; }
.prose hr { border: 0; border-top: 1px solid var(--color-border); margin-block: 36px; }
code, pre { font-family: var(--font-code); }
code { font-size: .86em; background: var(--color-wash); padding: 2px 5px; border-radius: 3px; }
pre { background: var(--color-wash-soft); border: 1px solid var(--color-border); border-radius: var(--radius); font-size: 14px; line-height: 1.75; padding: 20px; overflow-x: auto; max-width: 100%; position: relative; }
pre code { background: none; padding: 0; font-size: inherit; border-radius: 0; }
.code-tools { display: flex; justify-content: flex-end; margin-bottom: -12px; }
.copy-code { background: transparent; border: 0; padding: 4px 8px; font-size: 12px; color: var(--color-brand); }
.table-scroll { overflow-x: auto; max-width: 100%; margin-block: 24px; }
table { border-collapse: collapse; width: 100%; font-family: var(--font-ui); font-size: 14px; }
th, td { border-bottom: 1px solid var(--color-border); padding: 12px 14px; text-align: left; vertical-align: top; }
th { background: var(--color-wash); font-weight: 600; white-space: nowrap; }
.math.block { overflow-x: auto; overflow-y: hidden; padding: 22px 16px; margin: 26px 0; border: 1px solid var(--color-border); background: var(--color-surface); border-radius: var(--radius); font-family: serif; }
.math.block .katex-display { margin: 0; }
.math.inline { white-space: normal; }
.math-error { white-space: pre-wrap; font-family: var(--font-code); font-size: 14px; }
.toc { position: sticky; top: 108px; padding-left: 22px; border-left: 1px solid var(--color-border); font: 13px/1.8 var(--font-ui); }
.toc h2 { font-size: 12px; color: var(--color-muted); font-weight: 400; margin-bottom: 16px; letter-spacing: .05em; }
.toc ul { display: flex; flex-direction: column; gap: 10px; list-style: none; padding: 0; margin: 0; }
.toc li { min-width: 0; margin: 0; }
.toc a { display: block; overflow-wrap: anywhere; text-decoration: none; color: var(--color-muted); }
.toc a:hover { color: var(--color-brand); }
.toc-extra { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--color-border); }
.fact-list { margin: 0; }
.fact-list > div { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 18px; border-bottom: 1px solid var(--color-border); padding-block: 13px; }
.fact-list dt { color: var(--color-muted); font-size: 13px; }
.fact-list dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.portrait-small { width: 170px; margin-bottom: 24px; padding: 7px; border: 1px solid var(--color-border); background: white; }
.education-entry { padding-block: 20px; border-bottom: 1px solid var(--color-border); }
.education-entry:first-child { padding-top: 0; }
.education-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px 24px; flex-wrap: wrap; margin-bottom: 5px; }
.education-heading h2, .education-heading h3 { font-size: 22px; line-height: 1.5; margin: 0; }
.education-period { font-size: 15px; color: var(--color-muted); white-space: nowrap; margin: 0; line-height: 1.6; }
.education-major { font-size: 16px; line-height: 1.65; margin-bottom: 6px; }
.education-grades { display: flex; flex-wrap: wrap; gap: 4px 20px; color: var(--color-brand); font-size: 14px; line-height: 1.75; margin-bottom: 6px; }
.education-courses { font-size: 14px; line-height: 1.85; color: var(--color-muted); margin: 0; }
.home-education .section-heading { margin-bottom: 12px; }
.home-education > .text-link { display: inline-block; margin-top: 16px; }
.course-list { color: var(--color-muted); font-size: 14px; line-height: 2; }
.record { padding-block: 20px; border-bottom: 1px solid var(--color-border); }
.record ul { padding-left: 20px; color: var(--color-muted); font-size: 14px; line-height: 2; }
.record p { color: var(--color-muted); font-size: 14px; }
.record .record-award { color: var(--color-brand); font-size: 20px; line-height: 1.5; font-weight: 600; margin: 8px 0 12px; }
.record h3 { margin-bottom: 8px; }
.project-label { color: var(--color-brand); font-size: 14px; display: block; margin-bottom: 8px; font-family: var(--font-ui); }
.project-detail-list { padding-left: 22px; }
.project-detail-list li { margin-bottom: 18px; }
.notice { background: var(--color-wash); padding: 20px 24px; border-left: 2px solid #98bbd5; margin-block: 24px; color: var(--color-muted); font-size: 14px; }
.notice p:last-child { margin: 0; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 28px; }
.filter-button { color: var(--color-muted); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 7px 14px; font-size: 13px; }
.filter-button[aria-pressed="true"] { color: var(--color-brand); background: var(--color-wash); border-color: #a6c4db; }
.search-form { margin-bottom: 20px; max-width: 680px; }
.search-form label { display: block; font-size: 13px; color: var(--color-muted); margin-bottom: 8px; }
.search-controls { display: flex; gap: 10px; }
.search-controls .button { flex: 0 0 auto; white-space: nowrap; }
.search-controls input { width: 100%; min-width: 0; padding: 10px 14px; border-radius: var(--radius); border: 1px solid #b5cbdc; color: var(--color-text); background: white; font-size: 15px; }
.search-result-count { font-size: 12px; color: var(--color-muted); margin-bottom: 20px; }
.empty-state { padding: 38px 28px; background: var(--color-wash-soft); border: 1px dashed #c5d8e7; border-radius: var(--radius); }
.empty-state h3 { font-size: 18px; }
.empty-state p { max-width: 660px; font-size: 14px; color: var(--color-muted); margin-bottom: 0; }
.topic-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 20px 0 30px; padding: 0; list-style: none; }
.topic-links a { font-size: 13px; text-decoration: none; }
.note-item { padding: 24px 0; border-bottom: 1px solid var(--color-border); }
.note-item h3 { margin: 8px 0; font-size: 20px; }
.note-item h3 a { color: var(--color-text); text-decoration: none; }
.note-item h3 a:hover { color: var(--color-brand); }
.note-item p { color: var(--color-muted); font-size: 14px; margin-bottom: 12px; }
.category-context { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; }
.category-context a { font-size: 13px; }
.download-list { padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--color-border); }
.download-list li { border-bottom: 1px solid var(--color-border); }
.download-list a { display: flex; justify-content: space-between; padding: 16px 0; text-decoration: none; font-size: 14px; gap: 16px; }
.download-list .meta { flex-shrink: 0; }
.contact-box { padding: 28px; background: var(--color-wash); border: 1px solid var(--color-border); }
.contact-box a { overflow-wrap: anywhere; }
.copy-button { border: 1px solid #b5ccde; background: white; color: var(--color-brand); font-size: 12px; padding: 4px 10px; border-radius: 4px; }
.historical-info { margin-top: 24px; border-bottom: 1px solid var(--color-border); padding-bottom: 16px; }
.historical-info summary { color: var(--color-muted); cursor: pointer; font-size: 13px; }
.historical-info .fact-list { margin-top: 14px; }
.swatch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-block: 24px; font-family: var(--font-ui); }
.swatch { border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.swatch-color { height: 58px; }
.swatch-label { padding: 10px 12px; font-size: 12px; background: white; }
.swatch-label code { display: block; font-size: 11px; background: none; padding: 0; color: var(--color-muted); }
.site-footer { border-top: 1px solid var(--color-border); padding-block: 28px; font-size: 12px; color: var(--color-muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--color-muted); text-decoration: none; }
.footer-links a:hover { color: var(--color-brand); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
@media (max-width: 900px) {
  .shell { width: calc(100% - 48px); }
  .site-nav { gap: 18px; }
  .brand-sub { display: none; }
  .hero-grid { gap: 28px; grid-template-columns: minmax(0, 1fr) 125px; }
  .two-column { gap: 36px; }
  .learning-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 28px; }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .toc { position: static; grid-row: 1; border-left: 0; border-bottom: 1px solid var(--color-border); padding: 0 0 20px; }
  .toc-extra { display: none; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 86px; }
  .shell { width: calc(100% - 40px); }
  .header-inner { min-height: 66px; flex-wrap: wrap; gap: 0; }
  .js .nav-toggle { display: block; }
  .site-nav { width: 100%; gap: 18px; flex-wrap: wrap; padding-block: 8px 16px; }
  .js .site-nav:not(.is-open) { display: none; }
  .site-nav a { padding-block: 6px; }
  .site-nav a[aria-current="page"]::after { bottom: 0; }
  .hero-grid { padding-block: 24px; grid-template-columns: minmax(0, 1fr) 82px; gap: 12px 16px; align-items: start; }
  .hero h1 { font-size: 36px; }
  .hero-english { font-size: 21px; margin-bottom: 0; }
  .hero-grid .hero-copy { display: contents; }
  .hero-heading { grid-column: 1; }
  .hero-portrait { grid-column: 2; grid-row: 1; margin-top: 0; }
  .hero-details { grid-column: 1 / -1; }
  .hero-facts { gap: 6px 22px; }
  .hero-facts > div { font-size: 13px; gap: 8px; }
  .portrait-frame { padding: 4px; }
  .section { padding-block: 24px; }
  .section-heading { gap: 14px; margin-bottom: 14px; }
  h2 { font-size: 23px; }
  .section-heading .text-link { font-size: 12px; }
  .learning-layout, .two-column { grid-template-columns: minmax(0, 1fr); }
  .learning-sidebar { position: static; border-right: 0; border-bottom: 1px solid var(--color-border); padding: 0 0 20px; }
  .sidebar-item { min-height: 44px; padding-block: 10px; }
  .recent-notes-section > h3 { font-size: 21px; }
  .two-column { gap: 28px; }
  .entry-row { gap: 12px; grid-template-columns: 27px minmax(0, 1fr) 16px; padding-block: 21px; }
  .entry-row h3 { font-size: 17px; }
  .page-header { padding-block: 24px 16px; }
  .breadcrumbs { margin-bottom: 16px; }
  .page-body { padding-block: 24px 32px; }
  .education-entry { padding-block: 18px; }
  .education-heading { gap: 3px 16px; margin-bottom: 5px; }
  .education-heading h2, .education-heading h3 { font-size: 21px; }
  .education-period { font-size: 14px; }
  .education-major { font-size: 15px; }
  .education-grades { gap: 3px 16px; font-size: 13px; }
  .education-courses { font-size: 13px; }
  .prose { font-size: 16px; line-height: 1.95; }
  .prose h2 { font-size: 22px; margin-top: 32px; }
  .prose h3 { font-size: 18px; }
  .prose pre { font-size: 12px; padding: 16px; }
  .fact-list > div { grid-template-columns: 82px minmax(0, 1fr); gap: 12px; }
  .search-controls { flex-direction: column; }
  .search-controls .button { align-self: flex-start; }
  .empty-state, .contact-box { padding: 22px; }
  .filter-bar { gap: 6px; }
  .filter-button { padding: 6px 10px; font-size: 12px; }
  .swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { gap: 14px; }
  .footer-links { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .actions, .toc, .learning-sidebar, .filter-bar, .search-form, .copy-button, .copy-code { display: none !important; }
  body { background: white; color: black; }
  .shell { width: 100%; max-width: none; }
  .article-layout, .learning-layout, .two-column { display: block; }
  .hero { background: white; }
  .page-header { padding-top: 0; }
  .record, .education-block, .entry-row { break-inside: avoid; }
  a { color: black; }
}
/* The glossary uses the existing article table and pale-blue palette. */
.notation-filter { margin: 1.5rem 0; }
.notation-filter label { display: block; margin-bottom: .5rem; font-weight: 600; }
.notation-filter input { width: 100%; padding: .7rem .85rem; border: 1px solid var(--color-border); border-radius: 6px; color: var(--color-text); background: var(--color-page); font: inherit; }
.notation-filter input:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 3px; }
.note-notation { margin: 0 0 32px; border: 1px solid var(--color-border); border-radius: var(--radius); }
.note-notation > summary { padding: 14px 18px; cursor: pointer; color: var(--color-brand); background: var(--color-wash); font: 600 15px/1.7 var(--font-ui); }
.note-notation > summary:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 3px; }
.note-notation-hint { margin-left: 12px; color: var(--color-muted); font-size: 13px; font-weight: 400; }
.note-notation-body { padding: 16px 18px; min-width: 0; }
.note-notation-body > p { margin-top: 0; font: 14px/1.8 var(--font-ui); }
.note-notation-body .table-scroll { margin-bottom: 0; }
.sidebar-submenu .sidebar-groups { margin: 4px 0 8px 10px; padding-left: 9px; border-left: 1px solid var(--color-border); list-style: none; }
.sidebar-groups .sidebar-subitem { font-size: 12px; }
