/* 黑白校样 · 付印之前 */
body.theme-printproof {
  --bg: #fff;
  --card-bg: #fff;
  --header-bg: #fff;
  --text-primary: #111;
  --text-secondary: #333;
  --accent: #111;
  --border-light: #555;
  --archive-metal: #111;
  --archive-tint: #fff;
  --archive-shadow: none;
  --proof-serif: "Songti SC", "Noto Serif SC", SimSun, Georgia, serif;
  transition: none;
}

.theme-printproof .app :focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

body.theme-printproof .archive-home .archive-header {
  min-height: 0;
  padding: clamp(20px, 5vw, 52px) 0 22px;
  border: 0;
  border-bottom: 1px solid #111;
  background: #fff;
}
body.theme-printproof .archive-home .archive-header::after {
  display: block;
  position: absolute;
  inset: auto 0 4px;
  height: 5px;
  background: #111;
  content: "";
}
.theme-printproof .archive-architecture,
.theme-printproof .archive-header .layout-status,
.theme-printproof .archive-header .layout-caption { display: none; }
body.theme-printproof .archive-home .archive-title {
  font: 700 clamp(2rem, 6vw, 4.5rem)/1.2 var(--proof-serif);
  letter-spacing: .06em;
}
.theme-printproof .archive-home .archive-meta { margin-top: 16px; }
.theme-printproof .archive-home .archive-subtitle { max-width: none; }
body.theme-printproof .archive-home .archive-grid {
  display: block;
  counter-reset: proof-volume;
}
body.theme-printproof .archive-home .archive-card.collection-card {
  display: grid;
  width: 100%;
  grid-template-columns: clamp(2.5rem, 9vw, 5rem) minmax(0, 1fr) auto;
  grid-template-areas: "number title foot" "number description foot";
  align-items: center;
  column-gap: clamp(.6rem, 3vw, 1.75rem);
  min-height: 0;
  margin: 0;
  padding: 12px 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #111;
  box-shadow: none;
  text-align: start;
  transform: none;
  counter-increment: proof-volume;
}
body.theme-printproof .archive-home .archive-card::before,
body.theme-printproof .archive-home .archive-card::after,
.theme-printproof .archive-card :is(.collection-emblem, .collection-graphic, .card-tag) { display: none; }
body.theme-printproof .archive-home .archive-card:hover .card-name,
body.theme-printproof .archive-home .archive-card:focus-visible .card-name { text-decoration: underline; }
body.theme-printproof .archive-home .archive-card.special-collection {
  margin-top: 12px;
  border-top: 1px solid #111;
}
.theme-printproof .archive-card .card-number {
  grid-area: number;
  align-self: stretch;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-inline-end: 1px solid #111;
  color: #111;
  font-size: 0;
}
.theme-printproof .archive-card .card-number::before {
  content: counter(proof-volume, upper-roman);
  font: 700 1rem Georgia, serif;
}
.theme-printproof .archive-card.special-collection .card-number::before { content: "附"; }
.theme-printproof .archive-card .card-name {
  grid-area: title;
  margin: 0;
  color: #111;
  font: 700 clamp(1.2rem, 3vw, 1.7rem)/1.45 var(--proof-serif);
}
.theme-printproof .archive-card .card-subtitle {
  grid-area: description;
  margin: 0;
  color: #333;
}
.theme-printproof .archive-card .card-foot {
  grid-area: foot;
  margin: 0;
  padding: 0;
  border: 0;
  color: #333;
}
.theme-printproof .archive-card .card-enter { display: none; }

.theme-printproof #menuSidebar .sidebar-section-title { opacity: 1; }
.theme-printproof #menuSidebar .sidebar-entry-divider { opacity: 1; }
body.theme-printproof[data-view-layout="article"] #menuSidebar a[aria-current="page"],
.theme-printproof:has(#reader[data-osi-page]) #osiVestibuleLink {
  box-shadow: inset 3px 0 #111;
  padding-inline-start: .65rem;
  font-weight: 700;
}

body.theme-printproof[data-view-layout="article"] .page-single {
  padding: 0 0 1.75rem;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  color: #111;
  font-family: var(--proof-serif);
  overflow-wrap: anywhere;
}
body.theme-printproof[data-view-layout="article"] .article-header::after {
  display: block;
  width: 2.75rem;
  margin-top: 1rem;
  border-top: 3px solid #111;
  content: "";
}
body.theme-printproof[data-view-layout="article"] .page-single h2 {
  padding-inline-start: 0;
  border: 0;
}
body.theme-printproof[data-view-layout="article"] .page-single blockquote {
  background: transparent;
  color: #111;
}
body.theme-printproof[data-view-layout="article"] .page-single a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: .18em;
}
.theme-printproof .page-single img { filter: grayscale(1); }
.theme-printproof #reader[data-osi-page="biography"] .osi-biography-cover {
  margin: 0 0 1.2rem;
  padding: 0;
  border: 0;
  text-align: start;
}
.theme-printproof .osi-biography-cover :is(.osi-bio-kicker, h2) { display: none; }

body.theme-printproof .osi-page {
  --osi-paper: #fff;
  --osi-ink: #111;
  --osi-panel: #fff;
}
body.theme-printproof .osi-page .osi-exhibit {
  gap: clamp(1rem, 4vw, 2.5rem);
  padding: 0 0 2rem;
}
body.theme-printproof .osi-page .osi-portrait {
  border: 3px double #111;
  margin: 0;
}
body.theme-printproof .osi-page .osi-portrait-frame {
  padding: 0;
  border: 0;
  border-radius: 0;
}
body.theme-printproof .osi-page .osi-portrait-frame img {
  border-radius: 0;
  filter: grayscale(1);
}
.theme-printproof .osi-page .osi-portrait-star { display: none; }
.theme-printproof .osi-page .osi-portrait figcaption {
  margin: 0;
  padding: .5rem .3rem;
  border-top: 1px solid #111;
  font-size: .75rem;
}
body.theme-printproof .osi-page button.osi-biography {
  grid-template-columns: auto minmax(0, 1fr) auto;
  border: 1px solid #111;
}
.theme-printproof .osi-page .osi-book-seal {
  place-content: center;
  border: 0;
  background: #111;
  color: #fff;
}
.theme-printproof .osi-page .osi-book-seal :is(span, small) { display: none; }
.theme-printproof .osi-page .osi-book-action { min-width: 0; }

@media (max-width: 620px) {
  body.theme-printproof .archive-home .archive-card.collection-card {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    grid-template-areas: "number title" "number description" "number foot";
    row-gap: .25rem;
  }
  body.theme-printproof .osi-page .osi-exhibit {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.theme-printproof .osi-page .osi-portrait {
    width: min(64%, 14rem);
    justify-self: center;
  }
  body.theme-printproof .osi-page button.osi-biography {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .theme-printproof .osi-page .osi-book-seal { grid-row: 1 / 3; }
}
