:root {
  color-scheme: light;
  --ink: #181b17;
  --night: #171b18;
  --night-alt: #202620;
  --night-line: #384238;
  --paper: #f6f5ed;
  --sheet: #fcfbf5;
  --line: #d6d7c9;
  --muted: #575e50;
  --muted-on-dark: #b9c3b4;
  --lime: #d9f541;
  --lime-deep: #bed92b;
  --max: 77rem;
  --ui: "Geist", "Inter", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: var(--ui);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-padding-top: 1.25rem; }
body { margin: 0; min-width: 0; }
img { max-width: 100%; height: auto; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid #5a7900;
  outline-offset: 4px;
}
::selection { color: var(--ink); background: var(--lime); }
h1, h2, h3, p, figure { margin: 0; }

.wrap { width: min(var(--max), calc(100% - 5rem)); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 5;
  top: 0.6rem;
  left: 0.6rem;
  padding: 0.8rem 1rem;
  background: var(--lime);
  color: var(--ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.masthead {
  background: var(--night);
  color: #f1f3e9;
  border-bottom: 1px solid var(--night-line);
}
.header-inner {
  min-height: 4.7rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.25rem;
}
.header-inner > .brand { justify-self: start; }
.header-inner > .locale { justify-self: end; }
.masthead a:focus-visible, .hero a:focus-visible, .detail-header a:focus-visible, .footer a:focus-visible {
  outline-color: var(--lime);
}
.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.75rem;
  color: #f3f6ed;
  font-size: 1.26rem;
  font-weight: 720;
  letter-spacing: -0.045em;
  text-decoration: none;
}
.brand-mark {
  width: 1.62rem;
  height: 1.62rem;
  display: inline-grid;
  place-items: center;
  flex: none;
  position: relative;
  background: var(--lime);
  border-radius: 2px;
}
.brand-mark::before, .brand-mark::after {
  content: "";
  position: absolute;
  width: 0.75rem;
  height: 0.62rem;
  border: 1.4px solid var(--night);
  transform: rotate(-43deg) skew(10deg, 10deg);
}
.brand-mark::before { margin-top: -0.24rem; }
.brand-mark::after { margin-top: 0.24rem; }
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem clamp(1rem, 3vw, 2.65rem);
  font-size: 0.9rem;
}
.nav a:not(.brand) {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--muted-on-dark);
  font-weight: 580;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { color: #f2f6ea; }
.locale { position: relative; flex: none; }
.locale summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding-inline: 0.85rem;
  border: 1px solid #566151;
  border-radius: 4px;
  color: #edf2e7;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 660;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}
.locale summary::-webkit-details-marker { display: none; }
.locale summary::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  margin-inline: 0.25rem 0.15rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-0.1rem) rotate(45deg);
}
.locale summary:hover, .locale[open] summary { border-color: var(--lime); color: var(--lime); }
.locale summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.locale ul {
  position: absolute;
  z-index: 10;
  inset-inline-end: 0;
  top: calc(100% + 0.4rem);
  min-width: 9rem;
  max-height: 62vh;
  overflow-y: auto;
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  border: 1px solid var(--night-line);
  border-radius: 4px;
  background: var(--night-alt);
}
.locale li a { display: block; padding: 0.42rem 0.65rem; border-radius: 2px; text-decoration: none; }
.locale li a:hover, .locale li a[aria-current] { background: var(--night); color: var(--lime); }

.hero, .detail-header {
  position: relative;
  background: var(--night);
  color: #f2f4e9;
}
.hero {
  background-image: radial-gradient(ellipse at 91% 41%, #2a3424 0%, transparent 57%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.98fr);
  align-items: center;
  column-gap: clamp(2rem, 5.8vw, 5.55rem);
  padding-block: clamp(3.2rem, 6vw, 4.75rem);
}
.hero-copy { min-width: 0; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.64rem;
  min-height: 1.25rem;
  color: #414b30;
  font: 650 0.8rem/1.5 var(--mono);
  letter-spacing: 0.115em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 1.1rem;
  height: 1px;
  flex: none;
  background: currentColor;
}
.hero .eyebrow, .detail-header .eyebrow { color: var(--lime); }
.hero h1 {
  margin-top: 0.9rem;
  font-size: clamp(3.2rem, 6.6vw, 6.4rem);
  font-weight: 750;
  line-height: 0.94;
  letter-spacing: -0.058em;
  text-wrap: balance;
}
.hero h1 span { display: block; color: var(--lime); }
:lang(zh) .hero h1 {
  font-size: clamp(3.15rem, 6.3vw, 5.6rem);
  font-weight: 740;
  line-height: 1.04;
  letter-spacing: -0.062em;
}
.hero-lede {
  max-width: 31rem;
  margin-block: 1.5rem 1.75rem;
  color: #ccd5c7;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.67;
  text-wrap: pretty;
}
.button {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.9rem;
  padding: 0.68rem 1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  text-align: center;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 690;
  line-height: 1.3;
  transition: border-color 140ms, background-color 140ms, color 140ms;
}
.button:hover { background: #e7ead9; border-color: #aeb49d; }
.button-primary {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}
.button-primary:hover { background: var(--lime-deep); border-color: var(--lime-deep); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.hero .button-secondary {
  border-color: #66735d;
  color: #f2f4e9;
}
.hero .button-secondary:hover {
  background: #2d3928;
  border-color: var(--lime);
}
.hero-art, .hero-art figure {
  display: block;
  min-width: 0;
  position: relative;
}
.hero-art img {
  display: block;
  width: 100%;
  aspect-ratio: 1.42;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
  background: var(--lime);
}
.hero-art figcaption {
  display: flex;
  align-items: center;
  gap: 0.56rem;
  margin-top: 0.74rem;
  color: var(--muted-on-dark);
  font: 500 0.78rem/1.4 var(--mono);
  letter-spacing: 0.04em;
}
.hero-art figcaption::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}

.index-strip {
  background: #edf0dc;
  border-block: 1px solid #d4d9bc;
}
.stats { display: flex; }
.stats-item {
  flex: 1 1 0;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.68rem;
  padding: 1.17rem 0.9rem;
  border-inline-start: 1px solid #d4d9bc;
}
.stats-item:last-child { border-inline-end: 1px solid #d4d9bc; }
.stats-item strong {
  font: 700 1.15rem/1.25 var(--mono);
  letter-spacing: -0.06em;
}
.stats-item span { color: #4f5841; font-size: 0.88rem; font-weight: 550; }

.catalog { padding-block: clamp(3.25rem, 6vw, 4.65rem) clamp(4rem, 8vw, 7rem); }
.section-heading { margin-bottom: 1.85rem; }
.section-heading h2, .about h1 {
  margin-top: 0.36rem;
  font-size: clamp(2.45rem, 5vw, 4.35rem);
  font-weight: 735;
  line-height: 1.03;
  letter-spacing: -0.063em;
}
.section-heading p {
  max-width: 41rem;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}
#catalog-controls {
  margin-bottom: 1.2rem;
}
.controls {
  display: grid;
  grid-template-columns: minmax(14rem, 1.2fr) minmax(18rem, 1fr);
  align-items: end;
  gap: 0.8rem;
}
.controls label {
  display: grid;
  gap: 0.34rem;
  color: #464c40;
  font-size: 0.84rem;
  font-weight: 600;
}
.searchbox {
  display: block;
  position: relative;
  min-width: 0;
}
.searchbox::before {
  content: "";
  position: absolute;
  bottom: 1.09rem;
  left: 0.9rem;
  width: 0.73rem;
  height: 0.73rem;
  border: 1.5px solid #616c53;
  border-radius: 50%;
  pointer-events: none;
}
.searchbox::after {
  content: "";
  position: absolute;
  bottom: 1.02rem;
  left: 1.48rem;
  width: 0.33rem;
  height: 1.5px;
  background: #616c53;
  transform: rotate(48deg);
  pointer-events: none;
}
.searchbox input, .filter-group select, .controls select {
  width: 100%;
  min-width: 0;
  min-height: 2.88rem;
  border: 1px solid #c9cdbb;
  border-radius: 4px;
  background: var(--sheet);
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 520;
}
.searchbox input { padding: 0.65rem 0.8rem 0.65rem 2.25rem; }
.searchbox input::placeholder { color: #616954; opacity: 1; }
.filter-group { min-width: 0; }
.filter-group { display: flex; align-items: end; gap: 0.8rem; }
.filter-group > label { flex: 1 1 0; min-width: 0; }
.controls select {
  appearance: none;
  padding: 0.62rem 2rem 0.62rem 0.72rem;
  background-image: linear-gradient(45deg, transparent 50%, #4b5840 50%), linear-gradient(135deg, #4b5840 50%, transparent 50%);
  background-position: right 15px center, right 10px center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.searchbox input:hover, .controls select:hover { border-color: #899375; }
.task-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  padding: 0;
  margin: 0.88rem 0 0;
  list-style: none;
}
.task-tabs button, .task-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 2.34rem;
  padding: 0.38rem 0.75rem;
  border: 1px solid #d8dacb;
  border-radius: 3px;
  background: transparent;
  color: #424b37;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 580;
  line-height: 1.22;
}
.task-tabs button:hover, .task-tabs a:hover { border-color: #8e9e72; }
.task-tabs button[aria-pressed="true"], .task-tabs a[aria-current="true"] {
  border-color: #262c20;
  background: #262c20;
  color: #f3f6e8;
}
.result-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0.95rem 0 0.75rem;
  color: #505844;
  font-size: 0.85rem;
}
.result-line button {
  padding: 0.15rem 0;
  border: 0;
  background: none;
  color: #3d5524;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  font-weight: 600;
}

.paper-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.paper-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  padding: clamp(1.1rem, 2.6vw, 1.9rem);
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: border-color 145ms, background-color 145ms;
}
.paper-card:hover, .paper-card:focus-within {
  border-color: #899875;
  background: #fffff6;
}
.card-meta, .card-bottom {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
}
.card-meta { justify-content: space-between; }
.card-meta > div {
  display: flex;
  flex: 1 1 8rem;
  flex-wrap: wrap;
  gap: 0.33rem;
}
.tag, .pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.16rem 0.45rem;
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 640;
  line-height: 1.2;
}
.tag { background: #e7ebd2; color: #36432a; }
.pill { border: 1px solid #d5d9c6; color: #4f5b43; }
.card-year { color: #59624e; font: 540 0.83rem/1.4 var(--mono); }
.paper-card h3 {
  margin-top: 0.78rem;
  font-size: clamp(1.55rem, 3.3vw, 2.35rem);
  font-weight: 740;
  line-height: 1.08;
  letter-spacing: -0.065em;
  overflow-wrap: anywhere;
}
.paper-card h3 a { text-decoration: none; }
.paper-card h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
.paper-title {
  margin-top: 0.42rem;
  color: #515949;
  font-size: 0.88rem;
  line-height: 1.43;
  overflow-wrap: anywhere;
}
.paper-summary {
  margin-top: 0.88rem;
  margin-bottom: 1.14rem;
  color: #333b2e;
  font-size: 0.975rem;
  line-height: 1.58;
}
.card-bottom {
  margin-top: auto;
  border-top: 1px solid #e2e4d7;
  padding-top: 0.85rem;
}
.empty {
  margin-top: 0.7rem;
  padding: 1.5rem;
  border: 1px dashed var(--line);
  border-radius: 4px;
  background: var(--sheet);
  color: #46513d;
  line-height: 1.6;
}

.footer {
  background: var(--night);
  color: #e3e9dd;
  border-top: 1px solid var(--night-line);
}
.footer-inner {
  min-height: 6.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding-block: 1.25rem;
}
.footer-inner > :not(.brand) {
  color: var(--muted-on-dark);
  font-size: 0.87rem;
  line-height: 1.5;
}
.footer-inner > div { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
.footer a { text-underline-offset: 0.2em; }
.footer a:hover { color: var(--lime); }

.detail-header {
  background-image: radial-gradient(ellipse at 87% 25%, #2c3a25 0%, transparent 54%);
  padding-block: 1.45rem clamp(3rem, 6vw, 5rem);
}
.back-link {
  width: fit-content;
  display: inline-flex;
  min-height: 2.7rem;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted-on-dark);
  text-underline-offset: 0.2em;
  font-size: 0.9rem;
  font-weight: 600;
}
.back-link:hover { color: var(--lime); }
.detail-header .eyebrow { margin-top: 1.3rem; }
.detail-title {
  margin-top: clamp(1rem, 3vw, 2.0rem);
  max-width: 58rem;
  font-size: clamp(3.4rem, 8.4vw, 7.1rem);
  font-weight: 750;
  line-height: 0.98;
  letter-spacing: -0.065em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.detail-subtitle {
  max-width: 49rem;
  margin-top: 0.85rem;
  color: #dce4d8;
  font-size: clamp(1.05rem, 2.1vw, 1.56rem);
  line-height: 1.35;
  text-wrap: pretty;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem 0.85rem;
  margin-top: 1.35rem;
  max-width: 62rem;
  color: #bfc8b9;
  font-size: 0.92rem;
  line-height: 1.6;
}
.detail-header .paper-summary {
  max-width: 49rem;
  margin-top: 1.1rem;
  color: #d6e0d1;
  font-size: 1.04rem;
}
.source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.57rem;
  margin-top: 1.35rem;
}
.detail-header .button:not(.button-primary) {
  color: #f0f4eb;
  border-color: #627155;
}
.detail-header .button:not(.button-primary):hover {
  background: #2d3928;
  border-color: var(--lime);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, min(28vw, 20rem));
  align-items: start;
  gap: clamp(1.8rem, 6vw, 6rem);
  padding-block: clamp(2.15rem, 5.5vw, 4.85rem) clamp(4rem, 8vw, 7rem);
}
.detail-body { min-width: 0; }
.detail-aside {
  position: sticky;
  top: 1.15rem;
  display: grid;
  gap: 1.15rem;
  min-width: 0;
}
.toc, .fact-list {
  margin: 0;
  padding: 1.12rem 1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--sheet);
  color: #404a37;
  font-size: 0.9rem;
  line-height: 1.52;
  overflow-wrap: anywhere;
}
.toc h2, .toc h3, .fact-list h2, .fact-list h3 {
  margin-bottom: 0.5rem;
  font-size: 0.96rem;
  color: var(--ink);
}
.toc ul, .toc ol { padding-left: 1.2em; margin: 0.45rem 0 0; }
.toc ul { list-style-type: square; }
.toc li + li { margin-top: 0.34rem; }
.toc > a {
  display: block;
  padding-block: 0.28rem;
}
.toc a, .fact-list a { text-underline-offset: 0.18em; }
.toc a:hover, .fact-list a:hover { color: #3b5a00; }
.fact-list dl { display: grid; gap: 0.8rem; margin: 0; }
.fact-list dt { color: var(--muted); font-size: 0.8rem; font-weight: 650; }
.fact-list dd { margin: 0; }

.reading-section { padding-block: 1.45rem 1.65rem; border-bottom: 1px solid var(--line); }
.reading-section:first-child { padding-top: 0; }
.reading-section h2, .about h2 {
  margin-bottom: 0.78rem;
  color: var(--ink);
  font-size: clamp(1.65rem, 3.6vw, 2.52rem);
  font-weight: 730;
  line-height: 1.13;
  letter-spacing: -0.055em;
}
.reading-section p, .about p, .about li {
  color: #353e31;
  font-size: 1.055rem;
  line-height: 1.76;
  overflow-wrap: anywhere;
}
.reading-section ul { list-style: none; padding: 0; margin: 0; }
.reading-section ol { margin: 0; padding-inline-start: 1.5rem; }
.reading-section ol > li::marker { font-weight: 750; color: #405a20; }
.reading-section h3 { font-size: 1.12rem; margin-bottom: 0.2rem; }
.claim + .claim { margin-top: 1.12rem; }
.paper-io { display: grid; gap: 0.7rem; margin: 1rem 0 0; }
.paper-io > div { padding: 0.65rem 0.85rem; border: 1px solid var(--line); background: var(--sheet); }
.paper-io dt { color: var(--muted); font-weight: 700; }
.paper-io dd { margin: 0.25rem 0 0; overflow-wrap: anywhere; }
.paper-references { overflow-wrap: anywhere; }
.paper-references li { margin-block: 0.6rem; }
.paper-references strong { display: block; }
.paper-references a { text-underline-offset: 0.18em; }
.claim-kind {
  display: inline-block;
  margin-top: 0.15rem;
  margin-right: 0.4rem;
  vertical-align: 0.09em;
  border-radius: 2px;
  padding: 0.12rem 0.35rem;
  background: #e7ebd4;
  color: #414c2b;
  font-size: 0.75rem;
  font-weight: 660;
  line-height: 1.35;
}
.kind-editorial { background: #e8e7d4; color: #4b432d; }
.citation {
  display: inline-block;
  color: #456122;
  text-underline-offset: 0.2em;
  font-size: 0.85rem;
  font-weight: 650;
}
.citation:hover { color: #283f08; }
.figure-box {
  display: grid;
  justify-items: start;
  gap: 0.63rem;
  margin-block: 1.3rem 0.3rem;
  padding: 1.15rem;
  border: 1px solid #d2d9b5;
  border-left: 3px solid #91a73c;
  border-radius: 3px;
  background: #eef0db;
  color: #303c25;
  line-height: 1.56;
}
.figure-box figcaption { font-size: 0.91rem; }
.figure-box a { text-underline-offset: 0.18em; }
.original-figure { display: block; width: 100%; background: #fff; }
.original-figure img { display: block; width: 100%; }
.figure-box .source-actions { margin-top: 0.22rem; }
.about { padding-block: clamp(3rem, 8vw, 7.5rem); min-height: 59vh; }
.about h1 { margin-bottom: 1.3rem; text-wrap: balance; }
.about h2 { margin-top: 2.1rem; }
.about p, .about ul { max-width: 52rem; margin-block: 0.5rem; }
.about a { color: #3c5722; text-underline-offset: 0.2em; }

@media (max-width: 60rem) {
  .wrap { width: calc(100% - 3.5rem); }
  .hero-grid { column-gap: 2rem; }
}

@media (max-width: 47rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { min-height: 3.95rem; gap: 0.55rem; }
  .hero-grid { grid-template-columns: 1fr; row-gap: 2rem; padding-block: 2.9rem 2rem; }
  .hero h1 { font-size: clamp(2.65rem, 11.4vw, 5.1rem); }
  :lang(zh) .hero h1 { font-size: clamp(3rem, 12vw, 5.1rem); }
  .hero h1 { text-wrap: initial; }
  .hero-lede { margin-block: 1.1rem 1.4rem; }
  .hero-art img { aspect-ratio: 1.53; }
  .hero-art figcaption { margin-top: 0.55rem; }
  .stats-item { padding-inline: 0.6rem; gap: 0.42rem; }
  .detail-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .detail-aside { display: contents; }
  .toc { display: block; grid-row: 1; }
  .toc > a { display: inline-block; margin-inline-end: 0.8rem; }
  .toc ul, .toc ol { display: flex; gap: 0.45rem 1.65rem; flex-wrap: wrap; }
  .toc li + li { margin-top: 0; }
  .fact-list dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 36rem) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 0; padding-block: 0.3rem; }
  .brand { font-size: 1.12rem; gap: 0.42rem; }
  .brand-mark { width: 1.43rem; height: 1.43rem; }
  .nav { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; font-size: 0.81rem; gap: 0.26rem 0.8rem; }
  .locale summary { padding-inline: 0.52rem; font-size: 0.78rem; min-height: 2.36rem; }
  .stats-item { flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; }
  .stats-item span { font-size: 0.79rem; }
  .controls { grid-template-columns: minmax(0, 1fr); gap: 0.65rem; }
  .searchbox input, .filter-group select, .controls select { font-size: 1rem; }
  .paper-grid { grid-template-columns: minmax(0, 1fr); gap: 0.62rem; }
  .paper-card h3 { font-size: 1.85rem; }
  .section-heading { margin-bottom: 1.18rem; }
  .detail-header { padding-block: 0.85rem 2.3rem; }
  .detail-title { font-size: clamp(2.75rem, 12vw, 4.2rem); }
  .fact-list dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { min-height: 0; }
}

@media (max-width: 22rem) {
  .header-inner { align-items: flex-start; padding-block: 0.38rem; }
  .brand { font-size: 1rem; }
  .nav { gap: 0 0.42rem; }
  .nav a:not(.brand) { min-height: 2.32rem; }
  .stats-item { padding-inline: 0.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
