:root {
  --bg: #fafcfb;
  --surface: #fff;
  --text: #24312b;
  --muted: #64736b;
  --line: #dce5df;
  --accent: #27694f;
  --soft: #edf4ef;
  --code: #f0f3f1;
  --reading-size: 18px;
  --reading-line: 1.9;
  color-scheme: light;
  font-family:
    Inter, "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
}
:root[data-theme="dark"] {
  --bg: #191e1b;
  --surface: #222923;
  --text: #e5ece7;
  --muted: #a5b4aa;
  --line: #3a473e;
  --accent: #99d4b6;
  --soft: #27382e;
  --code: #2d352f;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
  letter-spacing: 0;
}
html {
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}
button,
input,
select {
  font: inherit;
}
button,
summary,
select {
  cursor: pointer;
}
button {
  color: inherit;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
a,
button,
input,
select,
summary {
  outline-offset: 4px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
}
button {
  background: none;
  border: 0;
}
svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  stroke-width: 1.65;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-weight: 600;
  overflow-wrap: anywhere;
}
h1 {
  font-size: 36px;
  line-height: 1.35;
  margin-bottom: 18px;
}
h2 {
  font-size: 23px;
  line-height: 1.5;
}
h3 {
  font-size: 19px;
  line-height: 1.5;
}
p {
  overflow-wrap: anywhere;
}
.muted {
  color: var(--muted);
}
.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;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 20px;
  z-index: 100;
  background: var(--surface);
  padding: 8px 16px;
}
.skip-link:focus {
  top: 10px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1240px;
  margin: auto;
  height: 76px;
  padding: 0 36px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  background: var(--accent);
  color: var(--bg);
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 400;
}
.brand-en {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 8px;
}
.site-nav {
  display: flex;
  align-self: stretch;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}
.site-nav a {
  display: flex;
  align-items: center;
  height: 100%;
  border-bottom: 2px solid transparent;
  padding-top: 2px;
}
.site-nav a[aria-current] {
  color: var(--accent);
  border-color: var(--accent);
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  flex: 0 0 36px;
  padding: 0;
}
.icon-button:hover {
  background: var(--soft);
  color: var(--accent);
}
.icon-button svg {
  display: block;
}
.site-footer {
  max-width: 1168px;
  width: calc(100% - 72px);
  margin: 72px auto 0;
  padding: 23px 0 28px;
  display: flex;
  gap: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.site-footer span:first-child {
  margin-right: auto;
}
.library-shell {
  max-width: 1168px;
  width: calc(100% - 72px);
  margin: 0 auto;
  flex: 1;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 51px 0 28px;
}
.page-heading h1 {
  margin: 0;
}
.eyebrow {
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 12px;
}
.library-count {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--muted);
  white-space: nowrap;
  font-size: 13px;
}
.library-count strong {
  font-size: 38px;
  line-height: 1.1;
  font-weight: 400;
  color: var(--text);
  font-family: Georgia, serif;
}
.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 195px 140px 36px;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  min-width: 0;
}
.search-box input {
  border: 0;
  background: transparent;
  color: var(--text);
  width: 100%;
  min-width: 0;
  padding: 9px 0;
  font-size: 15px;
  outline-offset: 2px;
}
.search-box input::placeholder {
  color: var(--muted);
}
input[type="search"]::-webkit-search-cancel-button {
  display: none;
}
.filter-select select {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 0;
  border-left: 1px solid var(--line);
  padding: 8px 12px;
  font-size: 14px;
  min-height: 40px;
}
.list-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  padding: 17px 0;
}
.report-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 218px 36px;
  gap: 22px;
  padding: 26px 0 35px;
  border-bottom: 1px solid var(--line);
  align-items: start;
  min-width: 0;
}
.row-number {
  font-family: Georgia, serif;
  color: #9aada1;
  font-size: 20px;
  padding-top: 25px;
}
.row-body {
  min-width: 0;
}
.row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 17px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 13px;
}
.category-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.category-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--category-color, var(--accent));
  flex-shrink: 0;
}
.report-row h2 {
  font-size: 25px;
  margin-bottom: 13px;
}
.entry-summary {
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 14px;
}
.row-tags {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}
.row-tags span::before {
  content: "#";
  padding-right: 3px;
  opacity: 0.65;
}
.report-thumbnail {
  margin-top: 17px;
  display: block;
  aspect-ratio: 5/3;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.report-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.row-arrow {
  margin-top: 24px;
}
.empty-state {
  padding: 45px 0;
  color: var(--muted);
  text-align: center;
  border-bottom: 1px solid var(--line);
}
[hidden] {
  display: none !important;
}
.up-next {
  margin-top: 45px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.section-heading h2 {
  font-size: 19px;
  margin: 0;
}
.section-heading a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--accent);
}
.section-heading svg {
  width: 16px;
}
.next-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.next-item {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.topic-id {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.next-item h3 {
  font-size: 18px;
  line-height: 1.7;
  margin: 10px 0;
}
.next-item p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}
.topic-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 36px;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 25px 0;
}
.topic-row > .topic-id {
  padding-top: 3px;
}
.topic-row h2 {
  font-size: 21px;
  margin-bottom: 9px;
}
.topic-row .entry-summary {
  margin-bottom: 0;
}
.topic-row .row-meta {
  margin-bottom: 9px;
}
.detail-shell {
  max-width: 800px;
  width: calc(100% - 72px);
  margin: 42px auto 0;
  flex: 1;
}
.detail-shell h1 {
  font-size: 33px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 29px;
}
.back-link svg {
  width: 16px;
}
.article-lead {
  font-size: 18px;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 26px;
}
.read-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--accent);
  font-size: 16px;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
}
.concept-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
}
.concept-grid article {
  border-top: 1px solid var(--line);
  padding: 25px 0;
}
.concept-grid h2 {
  font-size: 21px;
}
.concept-grid h2 a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.concept-grid p {
  color: var(--muted);
  line-height: 1.9;
}
.parent-list article {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr) 95px;
  gap: 22px;
  border-top: 1px solid var(--line);
  padding: 18px 0;
  scroll-margin-top: 95px;
}
.parent-list time,
.parent-list a {
  font-size: 12px;
  color: var(--muted);
}
.parent-list h2 {
  font-size: 16px;
  font-weight: 400;
  margin: 0;
  line-height: 1.8;
}
.parent-list a {
  display: flex;
  gap: 5px;
  align-items: start;
}
.parent-list svg {
  width: 14px;
  height: 18px;
}
.reading-layout {
  max-width: 1110px;
  width: calc(100% - 72px);
  margin: 42px auto 0;
  display: grid;
  grid-template-columns: 210px minmax(0, 760px);
  gap: 60px;
  align-items: start;
  flex: 1;
}
.toc-sidebar {
  position: sticky;
  top: 105px;
  max-height: calc(100vh - 132px);
  overflow: auto;
  padding: 0 4px 16px 0;
}
.toc-sidebar .back-link {
  margin-bottom: 28px;
}
.toc-sidebar summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  list-style: none;
  margin-bottom: 12px;
  cursor: default;
}
.toc-sidebar summary svg {
  display: none;
}
.toc-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.toc-sidebar nav a {
  display: block;
  font-size: 13px;
  color: var(--muted);
  padding: 6px 12px;
  line-height: 1.7;
  border-left: 2px solid var(--line);
}
.toc-sidebar nav a[aria-current] {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--soft);
}
.toc-sidebar nav .toc-level-3 {
  padding-left: 24px;
  font-size: 12px;
}
.toc-sidebar nav .toc-level-4 {
  padding-left: 32px;
  font-size: 12px;
}
.reading-article {
  min-width: 0;
}
.article-heading h1 {
  font-size: 34px;
  line-height: 1.45;
  margin: 0 0 19px;
}
.article-heading .row-meta {
  margin-bottom: 17px;
}
.article-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  gap: 16px;
  padding: 7px 0 18px;
  margin-bottom: 31px;
  border-bottom: 1px solid var(--line);
}
.reading-tools {
  display: flex;
  gap: 4px;
  align-items: center;
}
.reading-settings {
  position: relative;
}
.reading-settings summary {
  list-style: none;
  color: var(--text);
}
summary::-webkit-details-marker {
  display: none;
}
.settings-panel {
  position: absolute;
  right: 0;
  top: 44px;
  width: 226px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 10px 30px #00000012;
  z-index: 30;
  display: grid;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
}
.settings-panel label {
  display: flex;
  justify-content: space-between;
}
.settings-panel select {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 6px;
  color: var(--text);
}
.settings-panel input {
  accent-color: var(--accent);
  width: 100%;
  margin: 6px 0 12px;
}
.text-command {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 5px 0;
  font-size: 13px;
  color: var(--muted);
  text-align: left;
}
.text-command:hover {
  color: var(--accent);
}
.text-command svg {
  width: 16px;
  height: 16px;
}
.prose {
  font-size: var(--reading-size);
  line-height: var(--reading-line);
  overflow-wrap: anywhere;
}
.prose p {
  margin-bottom: 1.25em;
}
.prose h2 {
  font-size: 25px;
  margin: 2.1em 0 0.85em;
  font-weight: 600;
  line-height: 1.6;
  scroll-margin-top: 100px;
}
.prose h3 {
  font-size: 20px;
  line-height: 1.7;
  margin: 1.6em 0 0.7em;
}
.prose h4 {
  font-size: 18px;
}
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose strong {
  font-weight: 600;
}
.prose ul,
.prose ol {
  padding-left: 1.45em;
  margin: 1em 0 1.5em;
}
.prose li {
  margin: 0.45em 0;
}
.prose blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.6em 0;
  padding: 2px 0 2px 22px;
  color: var(--muted);
}
.prose blockquote p:last-child {
  margin-bottom: 0;
}
.prose code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.83em;
  background: var(--code);
  padding: 2px 5px;
  border-radius: 3px;
  overflow-wrap: anywhere;
}
.prose pre {
  font-size: 14px;
  line-height: 1.7;
  background: var(--code);
  padding: 18px;
  overflow: auto;
  border-radius: 4px;
  max-width: 100%;
  white-space: pre;
}
.prose pre code {
  padding: 0;
  overflow-wrap: normal;
  background: none;
}
.prose table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  line-height: 1.8;
}
.prose th,
.prose td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  min-width: 110px;
}
.prose th {
  font-weight: 600;
  background: var(--soft);
}
.table-scroll {
  overflow: auto;
  max-width: 100%;
  margin: 1.5em 0;
}
.prose figure {
  margin: 2em 0;
}
.prose img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.8;
  object-fit: contain;
  background: white;
  border: 1px solid var(--line);
  cursor: zoom-in;
}
.prose figcaption {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin-top: 10px;
}
.prose .citation {
  font-family: system-ui, sans-serif;
  font-size: 0.72em;
  text-decoration: none;
  vertical-align: super;
  padding: 1px 5px;
  margin: 0 1px;
  background: var(--soft);
  border-radius: 3px;
}
.source-section {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.source-section > h2,
.related-section h2 {
  font-size: 19px;
  margin-bottom: 23px;
}
.source-list {
  padding: 0;
  list-style: none;
}
.source-list > li {
  display: grid;
  grid-template-columns: 85px minmax(0, 1fr);
  gap: 18px;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.source-label {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.source-label span {
  font-size: 11px;
}
.source-detail h3 {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
  margin-bottom: 6px;
}
.source-detail h3 svg {
  width: 13px;
  height: 13px;
  margin-left: 5px;
  display: inline;
}
.source-detail p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin: 3px 0;
}
.source-detail .source-location {
  color: var(--text);
}
.source-local {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: var(--accent);
  margin-top: 7px;
}
.source-local svg {
  width: 14px;
  height: 14px;
}
.related-section {
  margin-top: 35px;
  border-top: 1px solid var(--line);
  padding-top: 25px;
}
.concept-links {
  display: flex;
  gap: 13px 22px;
  flex-wrap: wrap;
}
.concept-links a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: var(--accent);
}
.concept-links svg {
  width: 14px;
  height: 14px;
}
.article-end {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  color: var(--muted);
  font-size: 12px;
}
#reading-progress {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  border: 0;
  background: transparent;
  appearance: none;
}
#reading-progress::-webkit-progress-bar {
  background: transparent;
}
#reading-progress::-webkit-progress-value {
  background: var(--accent);
}
#reading-progress::-moz-progress-bar {
  background: var(--accent);
}
.katex-display {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 0;
}
.prose .katex {
  font-size: 1.07em;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  width: 640px;
  max-width: calc(100% - 32px);
  max-height: 85vh;
  padding: 24px;
  box-shadow: 0 20px 80px #0003;
}
dialog::backdrop {
  background: #10201980;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}
.dialog-head h2 {
  font-size: 17px;
  margin: 0;
}
.dialog-head .icon-button {
  margin: -7px -7px -7px 0;
}
.dialog-head svg {
  width: 18px;
}
#dialog-content .source-label {
  margin-bottom: 12px;
}
#dialog-content img {
  max-width: 100%;
  height: auto;
  display: block;
  background: white;
}
dialog.image-dialog {
  width: 1100px;
}
#dialog-content figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}
mark {
  color: var(--text);
  background: #e6dca866;
  border-radius: 1px;
}
@media (max-width: 1000px) {
  .brand-en {
    display: none;
  }
  .report-row {
    grid-template-columns: 30px minmax(0, 1fr) 180px 32px;
    gap: 16px;
  }
  .reading-layout {
    grid-template-columns: 175px minmax(0, 760px);
    gap: 32px;
  }
  .report-row h2 {
    font-size: 23px;
  }
  .header-inner {
    gap: 20px;
  }
}
@media (max-width: 760px) {
  .header-inner {
    height: 63px;
    padding: 0 20px;
    gap: 14px;
  }
  .brand {
    font-size: 16px;
    gap: 8px;
  }
  .brand-mark {
    width: 25px;
    height: 25px;
    font-size: 21px;
  }
  .site-nav {
    gap: 18px;
    font-size: 14px;
  }
  .library-shell,
  .detail-shell,
  .reading-layout {
    width: calc(100% - 40px);
  }
  .page-heading {
    padding: 32px 0 24px;
  }
  .page-heading h1 {
    font-size: 29px;
  }
  .library-count strong {
    font-size: 30px;
  }
  .library-count {
    font-size: 11px;
    gap: 7px;
    align-items: center;
    flex-direction: column;
  }
  .filter-bar {
    grid-template-columns: minmax(0, 1fr) 128px 36px;
    gap: 6px 10px;
  }
  .search-box {
    grid-column: 1/-1;
    border-bottom: 1px solid var(--line);
    padding: 0 0 8px;
  }
  .filter-select select {
    border-left: 0;
    padding: 6px 0;
    font-size: 13px;
  }
  .report-row {
    grid-template-columns: 25px minmax(0, 1fr) 32px;
    gap: 10px;
    padding: 21px 0 25px;
  }
  .report-thumbnail {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    max-width: 320px;
    margin: 0;
  }
  .report-row h2 {
    font-size: 22px;
  }
  .row-meta {
    gap: 8px 12px;
  }
  .row-tags {
    gap: 12px;
  }
  .row-number {
    font-size: 17px;
  }
  .row-arrow {
    grid-column: 3;
    grid-row: 1;
  }
  .next-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .next-item {
    padding: 19px 0;
  }
  .up-next {
    margin-top: 31px;
  }
  .site-footer {
    width: calc(100% - 40px);
    margin-top: 40px;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 11px;
  }
  .site-footer span:first-child {
    flex: 1 1 100%;
    margin: 0;
  }
  .topic-row {
    grid-template-columns: 32px minmax(0, 1fr) 30px;
    gap: 12px;
    padding: 21px 0;
  }
  .topic-row h2 {
    font-size: 19px;
  }
  .detail-shell {
    margin-top: 28px;
  }
  .detail-shell h1 {
    font-size: 28px;
  }
  .article-lead {
    font-size: 17px;
  }
  .concept-grid {
    grid-template-columns: 1fr;
  }
  .parent-list article {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .parent-list h2 {
    font-size: 15px;
  }
  .reading-layout {
    display: block;
    margin-top: 20px;
  }
  .toc-sidebar {
    position: static;
    max-height: none;
    padding: 0;
  }
  .toc-sidebar .back-link {
    margin-bottom: 16px;
  }
  .toc-sidebar details {
    border-bottom: 1px solid var(--line);
    margin-bottom: 25px;
  }
  .toc-sidebar summary {
    cursor: pointer;
    padding: 10px 0;
    margin: 0;
    font-size: 13px;
  }
  .toc-sidebar summary svg {
    display: block;
    width: 15px;
  }
  .toc-sidebar nav {
    padding: 8px 0 18px;
    max-height: 45vh;
    overflow: auto;
  }
  .article-heading h1 {
    font-size: 28px;
  }
  .article-heading .row-meta {
    font-size: 11px;
  }
  .article-byline {
    margin-bottom: 25px;
  }
  .prose h2 {
    font-size: 23px;
  }
  .prose h3 {
    font-size: 20px;
  }
  .source-list > li {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
  }
  .source-section {
    margin-top: 45px;
  }
  .settings-panel {
    width: 210px;
  }
  .prose table {
    font-size: 13px;
  }
  dialog {
    padding: 18px;
  }
  .source-label {
    font-size: 11px;
  }
}
@media (max-width: 390px) {
  .header-inner {
    padding: 0 12px;
    gap: 8px;
  }
  .brand {
    font-size: 15px;
    gap: 6px;
  }
  .site-nav {
    gap: 12px;
    font-size: 13px;
  }
  .icon-button {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
  .library-shell,
  .detail-shell,
  .reading-layout {
    width: calc(100% - 28px);
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .article-heading h1,
  .detail-shell h1 {
    font-size: 25px;
  }
  .site-footer {
    width: calc(100% - 28px);
  }
  .row-meta {
    font-size: 11px;
  }
  .prose {
    font-size: var(--reading-size);
  }
}
@media print {
  @page {
    size: A4;
    margin: 18mm;
  }
  :root {
    --bg: #fff;
    --surface: #fff;
    --text: #000;
    --muted: #444;
    --line: #ccc;
    --accent: #000;
    --reading-size: 12pt;
    --reading-line: 1.7;
  }
  .site-header,
  .site-footer,
  .toc-sidebar,
  .reading-tools,
  .article-end button,
  .back-link,
  dialog,
  .skip-link {
    display: none !important;
  }
  .reading-layout,
  .reading-article,
  .detail-shell {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
  }
  .article-heading h1 {
    font-size: 24pt;
  }
  .article-lead {
    font-size: 12pt;
  }
  .prose h2 {
    font-size: 17pt;
    break-after: avoid;
  }
  .prose h3 {
    font-size: 14pt;
    break-after: avoid;
  }
  .prose figure,
  .source-list > li {
    break-inside: avoid;
  }
  .prose img {
    max-height: 220mm;
  }
  .prose a {
    color: #000;
  }
  .source-detail h3 a::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    overflow-wrap: anywhere;
  }
  .table-scroll {
    overflow: visible;
  }
  .prose table {
    font-size: 10pt;
  }
  .source-section {
    margin-top: 25px;
  }
  .source-local {
    display: none;
  }
}
@media print {
  :root[data-theme] {
    --bg: #fff;
    --surface: #fff;
    --text: #000;
    --muted: #444;
    --line: #ccc;
    --accent: #000;
    color-scheme: light;
  }
}
