:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #202822;
  background: #fbfcfa;
  line-height: 1.75;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #245240; text-underline-offset: .22em; }
a:hover { color: #0d3625; }
a:focus-visible { outline: 2px solid #245240; outline-offset: .25rem; }
.encyclopedia-shell { width: min(100% - 2.5rem, 71rem); margin-inline: auto; }
.encyclopedia-header { border-bottom: 1px solid #dce3dc; background: #fff; }
.encyclopedia-header .encyclopedia-shell { display: flex; gap: 1.25rem; align-items: center; min-height: 3.75rem; }
.encyclopedia-brand { color: #202822; font-weight: 700; text-decoration: none; }
.encyclopedia-header nav, .encyclopedia-crumb, .encyclopedia-meta { font-size: .9rem; color: #505d54; }
main { padding-block: clamp(1.5rem, 5vw, 4rem); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.22; margin-block: .5rem .85rem; }
h2 { font-size: 1.35rem; line-height: 1.35; }
h3 { font-size: 1rem; }
p + p { margin-top: .7rem; }
.encyclopedia-intro { color: #46554a; max-width: 48rem; }
.encyclopedia-directory-heading { border-bottom: 1px solid #dce3dc; padding-bottom: 1.1rem; margin-bottom: 1.75rem; }
.encyclopedia-directory-heading h1 { margin-bottom: .4rem; }
.encyclopedia-count { color: #505d54; font-size: .875rem; font-variant-numeric: tabular-nums; }
.encyclopedia-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem clamp(1.75rem, 5vw, 4rem); }
.encyclopedia-category { scroll-margin-top: 1rem; }
.encyclopedia-category-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  padding: .7rem .85rem;
  border-block-end: 1px solid #c8d7cc;
  border-inline-start: 3px solid #51846b;
  background: #edf4ee;
}
.encyclopedia-category-heading h2 { font-size: 1.2rem; }
.encyclopedia-category-heading a, .encyclopedia-subjects a, .encyclopedia-listing a { text-decoration: none; }
.encyclopedia-category-heading a:hover, .encyclopedia-subjects a:hover span:first-child, .encyclopedia-listing a:hover { text-decoration: underline; }
.encyclopedia-subjects, .encyclopedia-listing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1rem;
  list-style: none;
  padding: 0;
  margin: .45rem 0 0;
}
.encyclopedia-subjects li, .encyclopedia-listing li { display: flex; min-width: 0; border-bottom: 1px solid #e1e8e1; }
.encyclopedia-subjects a, .encyclopedia-listing a {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: space-between;
  gap: .5rem;
  min-height: 2.65rem;
  padding: .35rem .5rem;
  overflow-wrap: anywhere;
}
.encyclopedia-category-heading .encyclopedia-count, .encyclopedia-subjects .encyclopedia-count { white-space: nowrap; }
.encyclopedia-subjects a:hover, .encyclopedia-listing a:hover { background: #edf4ee; }
.encyclopedia-browse-section + .encyclopedia-browse-section { margin-top: 2rem; }
.encyclopedia-browse-section .encyclopedia-subjects, .encyclopedia-listing { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.encyclopedia-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 1.5rem; }
.encyclopedia-pagination a { padding: .3rem .75rem; border: 1px solid #c8d7cc; border-radius: .25rem; }
.encyclopedia-pagination span { color: #505d54; font-size: .9rem; }
.encyclopedia-links { display: flex; flex-wrap: wrap; gap: .25rem 1rem; list-style: none; margin: .3rem 0 0; padding: 0; }
.encyclopedia-term { max-width: 47rem; margin-inline: auto; overflow-wrap: anywhere; }
.encyclopedia-term > section { margin-block-start: 1.85rem; }
.encyclopedia-term h2 { margin-bottom: .5rem; }
.encyclopedia-term ol { padding-inline-start: 1.5rem; margin: .25rem 0 0; }
.encyclopedia-term .encyclopedia-meta { margin-block: .25rem .9rem; }
.encyclopedia-term .encyclopedia-intro { font-size: 1.08rem; }
.encyclopedia-figure { margin: 1.35rem 0; }
.encyclopedia-figure img { display: block; max-width: 100%; max-height: 28rem; width: auto; height: auto; object-fit: contain; }
.encyclopedia-figure figcaption { margin-top: .45rem; font-size: .85rem; color: #505d54; overflow-wrap: anywhere; }
.encyclopedia-footer { border-top: 1px solid #dce3dc; padding-block: 1rem; font-size: .9rem; }
@media (max-width: 48rem) {
  .encyclopedia-grid { grid-template-columns: 1fr; }
  .encyclopedia-browse-section .encyclopedia-subjects, .encyclopedia-listing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 26rem) {
  .encyclopedia-subjects, .encyclopedia-browse-section .encyclopedia-subjects, .encyclopedia-listing { grid-template-columns: 1fr; }
}
