:root {
  color-scheme: light;
  --ink: #14201c;
  --ink-soft: #405149;
  --paper: #f2eee4;
  --paper-deep: #e7e0d2;
  --panel: #fffdf7;
  --forest: #10231d;
  --forest-soft: #1e4034;
  --blueprint: #315b67;
  --orange: #d96128;
  --orange-soft: #f2d4c3;
  --brass: #c7a55a;
  --green-soft: #d8e4db;
  --line: #c9c1b1;
  --line-dark: rgba(244, 239, 227, 0.22);
  --danger: #8a371f;
  --shadow: 0 26px 70px rgba(14, 28, 23, 0.18);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --page: min(1240px, calc(100vw - 40px));
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, var(--forest) 0 430px, var(--paper) 430px),
    var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body.drawer-open {
  overflow: hidden;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  background: var(--panel);
  color: var(--forest);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
}

.site-header {
  position: relative;
  z-index: 20;
  width: var(--page);
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(0, 1.6fr) auto;
  gap: 28px;
  align-items: center;
  margin: 0 auto;
  border-bottom: 1px solid var(--line-dark);
  color: #f5f0e4;
}

.site-brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 240, 228, 0.55);
  border-top: 4px solid var(--orange);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1;
}

.site-brand strong,
.site-brand small {
  display: block;
}

.site-brand strong {
  font-family: var(--serif);
  font-size: 1.34rem;
  letter-spacing: 0.02em;
}

.site-brand small {
  margin-top: 2px;
  color: rgba(245, 240, 228, 0.65);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
}

.collection-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-label {
  color: rgba(245, 240, 228, 0.48);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.collection-links {
  min-width: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.collection-links::-webkit-scrollbar {
  display: none;
}

.collection-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 13px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(245, 240, 228, 0.72);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 760;
}

.collection-link[aria-current="page"] {
  border-color: rgba(245, 240, 228, 0.32);
  color: #fffdf7;
  background: rgba(255, 253, 247, 0.08);
}

.source-index-button {
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(245, 240, 228, 0.5);
  background: transparent;
  color: rgba(245, 240, 228, 0.78);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 780;
}

.collection-masthead {
  position: relative;
  width: var(--page);
  min-height: 260px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: end;
  margin: 0 auto;
  padding: 52px 0 44px;
  color: #f5f0e4;
}

.masthead-ruler {
  position: absolute;
  top: 26px;
  right: 0;
  width: min(46vw, 520px);
  height: 9px;
  opacity: 0.45;
  background:
    repeating-linear-gradient(90deg, transparent 0 19px, rgba(245, 240, 228, 0.58) 19px 20px),
    linear-gradient(rgba(245, 240, 228, 0.55), rgba(245, 240, 228, 0.55)) 0 100% / 100% 1px no-repeat;
}

.collection-eyebrow,
.toolbar-kicker,
.drawer-kicker,
.section-number {
  margin: 0 0 10px;
  color: var(--brass);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.masthead-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.8rem, 8vw, 7.5rem);
  font-weight: 500;
  line-height: 0.82;
  letter-spacing: -0.055em;
}

.collection-title-zh {
  margin: 13px 0 0;
  color: var(--orange-soft);
  font-size: 0.98rem;
  font-weight: 720;
  letter-spacing: 0.18em;
}

.collection-intro {
  max-width: 520px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
}

.collection-intro p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.1vw, 1.58rem);
  line-height: 1.35;
}

.collection-intro .collection-summary-zh {
  margin-top: 12px;
  color: rgba(245, 240, 228, 0.68);
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.6;
}

.book-library {
  position: relative;
  padding: 0 0 24px;
  background: var(--paper);
}

.library-toolbar {
  width: var(--page);
  min-height: 82px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
}

.library-toolbar h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  font-weight: 520;
}

.library-toolbar .toolbar-kicker {
  margin-bottom: 4px;
  color: var(--orange);
}

.position-readout {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1rem;
}

.position-readout strong {
  color: var(--forest);
  font-size: 2rem;
  font-weight: 500;
}

.rail-shell {
  position: relative;
  width: 100%;
}

.book-rail {
  width: 100%;
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
  cursor: grab;
}

.book-rail:active {
  cursor: grabbing;
}

.book-rail::-webkit-scrollbar {
  display: none;
}

.book-slide {
  width: 100vw;
  min-width: 100vw;
  display: grid;
  place-items: stretch center;
  padding: 0 20px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.book-card {
  position: relative;
  width: min(1240px, calc(100vw - 40px));
  min-height: min(770px, calc(100svh - 178px));
  display: grid;
  grid-template-columns: minmax(330px, 0.78fr) minmax(0, 1.22fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--forest);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.cover-column {
  position: relative;
  min-width: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(34px, 5vw, 68px);
  background:
    linear-gradient(90deg, transparent 0 49px, rgba(255, 255, 255, 0.08) 49px 50px, transparent 50px),
    linear-gradient(0deg, transparent 0 49px, rgba(255, 255, 255, 0.06) 49px 50px, transparent 50px),
    var(--forest-soft);
  background-size: 50px 50px;
}

.cover-column::after {
  content: "";
  position: absolute;
  inset: 16px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.rank-tab {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  min-width: 56px;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  background: var(--orange);
  color: #fffaf2;
  text-align: center;
}

.rank-tab span {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rank-tab strong {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1;
}

.book-cover {
  position: relative;
  z-index: 1;
  width: min(84%, 420px);
  max-height: 67svh;
  object-fit: contain;
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.34));
}

.book-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(28px, 4.2vw, 58px);
}

.book-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.book-heading h3 {
  margin: 0;
  max-width: 690px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 3.8rem);
  font-weight: 520;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.book-title-zh {
  margin: 9px 0 0;
  color: var(--blueprint);
  font-size: 0.9rem;
  font-weight: 780;
  line-height: 1.4;
}

.book-byline {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.5;
}

.evidence-stamps {
  width: 174px;
  display: grid;
  gap: 8px;
}

.quality-stamp,
.availability-stamp {
  min-width: 0;
  padding: 10px 12px;
  border-left: 3px solid var(--brass);
  background: #f6efd9;
  text-align: right;
}

.quality-stamp[data-qualified="false"] {
  border-left-color: var(--orange);
  background: #f8e7dc;
}

.availability-stamp {
  border-left-color: var(--forest-soft);
  background: var(--green-soft);
}

.quality-stamp strong,
.availability-stamp strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 520;
}

.quality-stamp span,
.availability-stamp span {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.68rem;
  line-height: 1.35;
}

.quality-stamp small {
  display: block;
  margin-top: 7px;
  color: var(--danger);
  font-size: 0.58rem;
  font-weight: 760;
  letter-spacing: 0.05em;
  line-height: 1.3;
  text-transform: uppercase;
}

.quality-stamp[data-qualified="true"] small {
  color: #476653;
}

.hook {
  margin: 0;
  padding-left: 16px;
  border-left: 4px solid var(--orange);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.7vw, 1.38rem);
  font-weight: 600;
  line-height: 1.45;
}

.book-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  gap: 20px;
}

.book-copy p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.72;
}

.book-copy .why-zh {
  color: var(--ink);
  font-size: 0.94rem;
}

.editorial-take {
  padding: 14px 15px;
  border-top: 1px solid var(--blueprint);
  background: #edf2f0;
  font-family: var(--serif);
  font-size: 0.95rem;
}

.editorial-take b {
  display: block;
  margin-bottom: 7px;
  color: var(--blueprint);
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.professional-review {
  padding: 16px 18px;
  border-left: 4px solid var(--blueprint);
  background: #e9efed;
}

.professional-review[data-status="not-found"] {
  border-left-color: var(--line);
  background: #f4f0e7;
}

.review-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 8px;
}

.review-header > span {
  color: var(--blueprint);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.review-source {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--forest-soft);
  font-size: 0.72rem;
  font-weight: 780;
  text-align: right;
}

.professional-review p {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.65;
}

.professional-review small {
  display: block;
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 0.66rem;
  line-height: 1.45;
}

.book-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  min-width: 0;
  padding: 12px 10px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric b,
.source-item b {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: 0.62rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.metric span {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.78rem;
  font-weight: 710;
  line-height: 1.4;
}

.safety-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #d5a992;
  background: #fff2ea;
}

.safety-callout[data-level="guided"] {
  border-color: #c8b985;
  background: #fbf6df;
}

.safety-callout[data-level="basic"] {
  border-color: #a9c4b2;
  background: #edf5ef;
}

.safety-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--danger);
  font-family: var(--serif);
  font-weight: 800;
}

.safety-callout strong {
  display: block;
  margin-bottom: 4px;
  color: var(--danger);
  font-size: 0.78rem;
}

.safety-callout p {
  margin: 0;
  color: #643826;
  font-size: 0.78rem;
  line-height: 1.5;
}

.disclosure {
  margin: -6px 0 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.5;
}

.disclosure b {
  color: var(--ink);
}

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.category {
  padding: 5px 8px;
  border: 1px solid #b9c7bf;
  color: var(--forest-soft);
  font-size: 0.68rem;
  font-weight: 760;
}

.card-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: auto;
}

.book-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.action {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 820;
}

.action-primary {
  grid-column: 1 / -1;
  min-height: 52px;
  padding-inline: 22px;
  border-color: var(--forest);
  background: var(--forest);
  color: #fffdf7;
  font-size: 0.84rem;
}

.action-libby {
  border-color: var(--blueprint);
  color: var(--blueprint);
  background: #edf3f4;
}

.action-primary.action-libby {
  border-color: var(--blueprint);
  background: var(--blueprint);
  color: #fffdf7;
}

.action-kcls {
  border-color: #9ab2a2;
  background: #f0f5f1;
  color: var(--forest-soft);
}

.action-retailer {
  color: var(--ink-soft);
}

.sources-button {
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1px solid var(--ink-soft);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 790;
}

.rail-arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 253, 247, 0.58);
  border-radius: 50%;
  background: rgba(255, 253, 247, 0.74);
  box-shadow: 0 12px 32px rgba(15, 33, 27, 0.22);
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(9px);
}

.rail-arrow:hover {
  background: #fffdf7;
}

.rail-arrow span {
  margin-top: -4px;
  font-family: var(--serif);
  font-size: 2.7rem;
  line-height: 1;
}

.rail-arrow-prev {
  left: clamp(7px, 2.1vw, 30px);
}

.rail-arrow-next {
  right: clamp(7px, 2.1vw, 30px);
}

.pagination {
  min-height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
}

.page-dot {
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.page-dot::before {
  width: 26px;
  height: 8px;
  border-radius: 999px;
  background: #b5ad9f;
  content: "";
  transition: width 180ms ease, background 180ms ease;
}

.page-dot[aria-current="true"]::before {
  width: 46px;
  background: var(--orange);
}

.interaction-hint {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 690;
  letter-spacing: 0.04em;
  text-align: center;
}

.collection-safety {
  width: var(--page);
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 86px);
  margin: 48px auto 72px;
  padding: 32px 0;
  border-top: 4px solid var(--forest);
  border-bottom: 1px solid var(--line);
}

.collection-safety .section-number {
  color: var(--orange);
}

.collection-safety h2 {
  margin: 0;
  max-width: 800px;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  font-weight: 520;
  line-height: 1.03;
}

.collection-safety p:last-child {
  max-width: 850px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.source-backdrop {
  position: fixed;
  inset: 0;
  z-index: 39;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(8, 17, 14, 0.58);
  cursor: default;
}

.source-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 40;
  width: min(520px, 94vw);
  overflow-y: auto;
  padding: 26px;
  background: var(--panel);
  box-shadow: -28px 0 70px rgba(8, 17, 14, 0.28);
  transform: translateX(105%);
  transition: transform 240ms ease;
}

.source-drawer[aria-hidden="false"] {
  transform: translateX(0);
}

.drawer-header {
  position: sticky;
  top: -26px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  margin: -26px -26px 24px;
  padding: 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.96);
  backdrop-filter: blur(12px);
}

.drawer-header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 520;
}

.drawer-kicker {
  margin-bottom: 4px;
  color: var(--orange);
}

.drawer-close {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}

.drawer-book {
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 4px solid var(--forest);
}

.drawer-book h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 540;
}

.drawer-book p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.55;
}

.source-list {
  display: grid;
  gap: 12px;
}

.source-item {
  padding: 14px;
  border: 1px solid var(--line);
  background: #f7f3e9;
}

.source-item strong,
.source-item span,
.source-item a {
  display: block;
}

.source-item strong {
  font-family: var(--serif);
  font-size: 1rem;
}

.source-item span {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.5;
}

.source-item a {
  width: max-content;
  max-width: 100%;
  margin-top: 10px;
  color: var(--blueprint);
  font-size: 0.75rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.source-disclaimer {
  margin: 24px 0 0;
  padding: 14px;
  border-left: 4px solid var(--orange);
  background: var(--orange-soft);
  font-size: 0.78rem;
  line-height: 1.6;
}

.load-status {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: 320px;
  padding: 10px 12px;
  background: var(--forest);
  color: #fffdf7;
  font-size: 0.75rem;
  box-shadow: 0 10px 30px rgba(8, 17, 14, 0.28);
}

.load-status[hidden] {
  display: none;
}

.noscript-message {
  width: var(--page);
  margin: 24px auto 60px;
  padding: 16px;
  border: 1px solid var(--danger);
  background: #fff2ea;
}

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
  }

  .nav-label {
    display: none;
  }

  .book-card {
    grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  }

  .book-content {
    gap: 14px;
    padding: 30px;
  }

  .book-copy {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .book-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metric:nth-child(3) {
    border-right: 0;
  }

  .metric:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  :root {
    --page: calc(100vw - 32px);
    --header-height: 64px;
  }

  body {
    background: var(--paper);
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    width: 100%;
    min-height: var(--header-height);
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    padding: 0 16px;
    border-bottom-color: rgba(245, 240, 228, 0.18);
    background: rgba(16, 35, 29, 0.96);
    backdrop-filter: blur(14px);
  }

  .brand-mark {
    width: 28px;
    height: 34px;
    font-size: 1rem;
  }

  .site-brand strong {
    font-size: 1.05rem;
  }

  .site-brand small {
    display: none;
  }

  .collection-nav {
    justify-content: flex-end;
  }

  .collection-link {
    min-height: 44px;
    padding: 0 10px;
    font-size: 0.76rem;
  }

  .source-index-button {
    width: 44px;
    min-height: 44px;
    overflow: hidden;
    border: 1px solid rgba(245, 240, 228, 0.35);
    color: transparent;
  }

  .source-index-button::before {
    content: "i";
    color: #fffdf7;
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 700;
  }

  .collection-masthead {
    width: 100%;
    min-height: 230px;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
    padding: 34px 20px 28px;
    background: var(--forest);
  }

  .masthead-ruler {
    top: 20px;
    right: 20px;
    width: 42vw;
  }

  .masthead-copy h1 {
    font-size: clamp(3.6rem, 18vw, 5.5rem);
  }

  .collection-intro {
    max-width: none;
    padding-top: 14px;
  }

  .collection-intro p {
    font-size: 1.04rem;
  }

  .collection-intro .collection-summary-zh {
    font-size: 0.8rem;
  }

  .library-toolbar {
    width: 100%;
    min-height: 66px;
    padding: 0 18px;
  }

  .library-toolbar h2 {
    font-size: 1.45rem;
  }

  .toolbar-kicker {
    display: none;
  }

  .position-readout strong {
    font-size: 1.55rem;
  }

  .book-slide {
    padding: 0;
  }

  .book-card {
    width: 100vw;
    min-height: calc(100svh - var(--header-height));
    grid-template-columns: 1fr;
    overflow: visible;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .cover-column {
    min-height: 67svh;
    padding: 72px 42px 34px;
  }

  .cover-column::after {
    inset: 12px;
  }

  .rank-tab {
    top: 16px;
    left: 16px;
  }

  .book-cover {
    width: min(86vw, 410px);
    max-height: 54svh;
  }

  .book-content {
    gap: 18px;
    padding: 28px 20px 38px;
  }

  .book-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .book-heading h3 {
    font-size: clamp(2.25rem, 11vw, 3.35rem);
  }

  .evidence-stamps {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quality-stamp,
  .availability-stamp {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    text-align: left;
  }

  .quality-stamp strong,
  .availability-stamp strong {
    font-size: 1.25rem;
  }

  .book-copy {
    grid-template-columns: 1fr;
  }

  .review-header {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
  }

  .review-source {
    text-align: left;
  }

  .book-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric,
  .metric:nth-child(3) {
    border-right: 1px solid var(--line);
    border-top: 1px solid var(--line);
  }

  .metric:nth-child(odd) {
    border-left: 0;
  }

  .metric:nth-child(even) {
    border-right: 0;
  }

  .metric:first-child,
  .metric:nth-child(2) {
    border-top: 0;
  }

  .metric:last-child {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .card-footer {
    grid-template-columns: 1fr;
  }

  .book-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .action-primary {
    grid-column: 1 / -1;
  }

  .rail-arrow {
    top: calc(66px + 33.5svh);
    width: 44px;
    height: 44px;
  }

  .rail-arrow span {
    font-size: 2.2rem;
  }

  .rail-arrow-prev {
    left: 7px;
  }

  .rail-arrow-next {
    right: 7px;
  }

  .pagination {
    gap: 0;
    margin-top: 10px;
  }

  .page-dot::before {
    width: 18px;
  }

  .page-dot[aria-current="true"]::before {
    width: 32px;
  }

  .collection-safety {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 40px auto 56px;
  }

  .collection-safety h2 {
    font-size: 2.15rem;
  }

  .source-drawer {
    width: 100vw;
    padding: 20px;
  }

  .drawer-header {
    top: -20px;
    margin: -20px -20px 20px;
    padding: 20px;
  }
}

@media (max-width: 390px) {
  .collection-links {
    max-width: 118px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
