/* A drawer of stiff divider sheets, printed in two inks on uncoated stock. */
.archive-drawer {
  --drawer-ink: #231f17;
  --drawer-ink-soft: #4f493b;
  --drawer-red: #852f31;
  --drawer-paper: #ebe0be;
  --drawer-border: #83745b;
  --drawer-mono: var(--mono, ui-monospace, monospace);
  container-type: inline-size;
  align-self: center;
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0 5px;
  color: var(--drawer-ink);
}
.drawer-tabs {
  position: relative;
  z-index: 6;
  display: flex;
  gap: 2px;
  margin: 0 11px -1px;
  padding: 0;
  align-items: end;
}
.drawer-tabs a {
  flex: 1;
  min-width: 0;
  display: grid;
  place-items: center;
  min-height: 45px;
  position: relative;
  color: #302a20;
  isolation: isolate;
  font: 650 clamp(0.7rem, 2.4cqi, 0.86rem) / 1.05 var(--sans, sans-serif);
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
  padding: 8px 2px 4px;
}
.drawer-tabs a::before {
  content: "";
  z-index: -1;
  position: absolute;
  inset: 6px 0 0;
  border-radius: 7px 9px 0 0;
  border-top: 2px solid #d9c9a1;
  background: linear-gradient(105deg, #c5b28c, #afa483 75%);
  box-shadow: inset -2px 0 0 #776e56;
  transform: skewX(-3deg);
  transform-origin: bottom;
}
.drawer-tabs a:nth-child(2)::before {
  background: #b8ada0;
}
.drawer-tabs a:nth-child(3)::before {
  background: #c3aa85;
}
.drawer-tabs a:nth-child(4)::before {
  background: #b7b7a5;
}
.drawer-tabs a:nth-child(5)::before {
  background: #c0a595;
}
.drawer-tabs a:hover span {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
.drawer-tabs a[aria-selected="true"] {
  color: #3b1e15;
  font-weight: 800;
}
.drawer-tabs a[aria-selected="true"]::before {
  inset-block-start: 0;
  background: var(--drawer-paper);
  border-top: 3px solid var(--drawer-red);
  box-shadow: inset 1px 1px 0 #f5ecd4;
}
.drawer-tabs a:focus-visible,
.drawer-card a:focus-visible {
  outline: 3px solid #ad551b;
  outline-offset: -3px;
}
.drawer-pocket {
  position: relative;
  padding: 0 7px 0;
}
.drawer-stock {
  display: none;
}
.drawer-pages {
  position: relative;
  display: grid;
  gap: 10px;
  perspective: 1100px;
  perspective-origin: 50% 115%;
}
.drawer-card {
  --card-edge: #796c51;
  --card-stock: #e9dfc2;
  --card-rule: #685e49;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: clamp(15px, 3.85cqi, 32px) clamp(16px, 4.4cqi, 36px) 0;
  background-color: var(--card-stock);
  background-image:
    url("stock.webp"), linear-gradient(122deg, #fff6d726, #765d2120 96%);
  background-size: 192px, cover;
  box-shadow:
    inset 1px 1px 0 #fff1ce,
    inset -2px -2px 0 #927d54,
    0 1px 3px #0006;
  border: 1px solid var(--card-edge);
  color: var(--drawer-ink);
  border-radius: 2px 3px 0 0;
  transform-origin: 50% 101%;
  scroll-margin: 20px;
}
.drawer-states {
  --card-stock: #e2decf;
}
.drawer-world {
  --card-stock: #e9d5b4;
}
.drawer-research {
  --card-stock: #e0e0ca;
}
.drawer-reviews {
  --card-stock: #e9d7ca;
}
.drawer-sheet-top,
.drawer-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 9px;
}
.drawer-sheet-top,
.drawer-card-foot > span {
  font: 600 clamp(0.57rem, 1.7cqi, 0.69rem) / 1.4 var(--drawer-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.drawer-sheet-top {
  padding-block-end: 9px;
  border-bottom: 3px double var(--card-rule);
  color: var(--drawer-ink-soft);
}
.drawer-card h3 {
  margin: 0.32em 0 0.09em;
  font: 400 clamp(2.22rem, 8.9cqi, 4.35rem) / 0.97 var(--serif, Georgia, serif);
  letter-spacing: -0.036em;
  color: var(--drawer-ink);
  overflow-wrap: break-word;
}
.drawer-card-body {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  flex: 1;
  align-items: center;
  gap: clamp(8px, 3cqi, 22px);
  padding: clamp(8px, 2cqi, 16px) 0 clamp(10px, 3cqi, 20px);
}
.drawer-print {
  display: grid;
  place-items: center;
  min-width: 0;
  mix-blend-mode: multiply;
}
.drawer-art {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
}
.drawer-art img {
  position: absolute;
  inset: var(--engraving-y, 0) auto auto var(--engraving-x, 0);
  max-width: none;
  width: 300%;
  height: 200%;
}
.drawer-art-cabinet {
  --engraving-x: -100%;
}
.drawer-art-globe {
  --engraving-x: -200%;
}
.drawer-art-book {
  --engraving-y: -100%;
}
.drawer-art-lens {
  --engraving-x: -100%;
  --engraving-y: -100%;
}
.drawer-description > p:last-child {
  margin: 0.62em 0 0;
  max-width: 35ch;
  font: 480 clamp(0.81rem, 2.26cqi, 0.98rem) / 1.47 var(--sans, sans-serif);
  color: var(--drawer-ink-soft);
}
.drawer-card .drawer-count {
  margin: 0;
}
.drawer-count b {
  display: block;
  font: 800 clamp(2.6rem, 9.3cqi, 4.4rem) / 0.92
    var(--display, "Arial Narrow", sans-serif);
  letter-spacing: -0.025em;
  color: var(--drawer-red);
  font-variant-numeric: tabular-nums;
}
.drawer-count span {
  display: block;
  font: 650 clamp(0.7rem, 2.15cqi, 0.88rem) / 1.25 var(--sans, sans-serif);
  margin-top: 0.25em;
}
.drawer-card-foot {
  margin-top: auto;
  border-top: 1px solid var(--card-rule);
  min-height: 48px;
}
.drawer-card-foot a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 8px 3px 8px 0;
  color: var(--drawer-ink);
  font: 700 clamp(0.81rem, 2.25cqi, 0.98rem) / 1.2 var(--sans, sans-serif);
  text-decoration: underline;
  text-underline-offset: 0.23em;
}
.drawer-card-foot a span {
  color: var(--drawer-red);
}
.drawer-card-foot > span {
  color: var(--drawer-ink-soft);
  white-space: nowrap;
}
.drawer-face {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 36px;
  margin: -2px 0 0;
  border: 1px solid #413d34;
  border-top: 3px solid #6c6451;
  border-bottom: 3px solid #171813;
  border-radius: 2px 2px 5px 5px;
  background: linear-gradient(#373831, #282a25);
  box-shadow:
    inset 0 2px 2px #191911,
    0 8px 10px -8px #000;
}
.drawer-face i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b1a78c;
  box-shadow: 1px 1px 1px #0b0b07;
}
.drawer-label {
  display: inline-block;
  border: 1px solid #837960;
  box-shadow:
    inset 0 1px 0 #e5d9b2,
    inset 0 -1px 0 #8b7c58,
    0 1px 3px #10100d;
  min-width: 11.8em;
  padding: 2px 10px 1px;
  background: linear-gradient(105deg, #a9996d, #cebd92 48%, #a99a74);
  font: 700 0.63rem/1.5 var(--drawer-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: #272117;
}
.archive-drawer.is-enhanced .drawer-pages {
  gap: 0;
}
.archive-drawer.is-enhanced .drawer-card {
  grid-area: 1 / 1;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
}
.archive-drawer.is-enhanced .drawer-card.is-current {
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}
.archive-drawer.is-enhanced .drawer-card.is-leaving {
  visibility: visible;
  z-index: 3;
}
.archive-drawer.is-enhanced .drawer-stock {
  display: block;
  position: absolute;
  inset: 1px 7px 0;
  pointer-events: none;
}
.drawer-stock i {
  position: absolute;
  inset: 2px 2px 0;
  display: block;
  background: repeating-linear-gradient(
    0deg,
    #9d8a66 0,
    #9d8a66 1px,
    #cec09e 1px,
    #cec09e 2px,
    #e1d4b3 2px,
    #e1d4b3 3px
  );
  border: 1px solid #998866;
  border-radius: 3px 3px 0 0;
  transform: rotate(-0.85deg) translate(-3px, -5px);
}
.drawer-stock i:nth-child(2) {
  transform: rotate(0.5deg) translate(3px, -3px);
}
.drawer-stock i:nth-child(3) {
  transform: rotate(-0.3deg) translate(0, -2px);
}
@container (max-width:415px) {
  .drawer-tabs {
    margin-inline: 6px;
  }
  .drawer-pocket {
    padding-inline: 4px;
  }
  .drawer-card {
    padding-inline: 13px;
  }
  .drawer-sheet-top {
    padding-bottom: 6px;
  }
  .drawer-card h3 {
    margin-top: 10px;
  }
  .drawer-card-body {
    grid-template-columns: minmax(0, 0.77fr) minmax(0, 1fr);
  }
}
@container (max-width:310px) {
  .drawer-tabs a {
    font-size: 0.655rem;
  }
  .drawer-card h3 {
    font-size: 2.02rem;
  }
  .drawer-card-body {
    position: relative;
    display: block;
  }
  .drawer-print {
    float: left;
    width: 37%;
    margin: 1px 10px 4px 0;
  }
  .drawer-card-body::after {
    content: "";
    display: block;
    clear: both;
  }
  .drawer-description > p:last-child {
    font-size: 0.8rem;
    max-width: none;
  }
}
.archive-drawer.is-enhanced .drawer-pocket {
  overflow: clip;
  overflow-clip-margin: 6px;
}
.archive-drawer.is-enhanced .drawer-print {
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.archive-drawer.is-enhanced .drawer-print.is-gripped { cursor: grabbing; }
.archive-drawer.is-enhanced .drawer-print img { -webkit-user-drag: none; }
@media print {
  .archive-drawer {
    padding: 0;
    color: #111;
  }
  .drawer-tabs,
  .drawer-face,
  .drawer-stock,
  .drawer-print {
    display: none !important;
  }
  .archive-drawer.is-enhanced .drawer-pages {
    display: block;
    perspective: none;
  }
  .archive-drawer.is-enhanced .drawer-card,
  .drawer-card {
    display: block;
    visibility: visible !important;
    position: relative;
    transform: none !important;
    opacity: 1 !important;
    break-inside: avoid;
    border: 0;
    background: white !important;
    color: #111;
    box-shadow: none;
    padding: 9pt 0;
  }
  .drawer-card-body {
    display: block;
  }
  .drawer-sheet-top {
    display: none;
  }
  .drawer-card h3,
  .drawer-count b {
    font-size: 16pt;
  }
  .drawer-count b,
  .drawer-count span {
    display: inline;
  }
  .drawer-card-foot {
    min-height: 0;
  }
  .drawer-card-foot a {
    min-height: 0;
  }
}
