/* The Archive: the catalog's set, minifigure and part pages. The object on a
   lit studio plate, standing on a shelf of studs; its catalogue number huge
   behind it; the facts of its life beside it. */

.bb-archive {
  background:
    radial-gradient(ellipse 55% 60% at 70% 45%, #FFFDF8 0%, rgba(255, 253, 248, 0) 70%),
    linear-gradient(180deg, #F3EEE5 0%, #E9E2D5 100%);
}

.bb-archive__numeral {
  position: absolute;
  right: -2vw;
  top: 4%;
  z-index: 0;
  margin: 0;
  font-family: var(--bb-font-display);
  font-size: clamp(10rem, 28vw, 30rem);
  font-weight: 800;
  font-stretch: 75%;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(163, 65, 46, 0.18);
  user-select: none;
}

.bb-archive__layout {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--bb-space-8);
  align-items: center;
  max-width: var(--bb-max);
  margin: 0 auto;
}

.bb-archive__stage {
  position: relative;
  margin: 0;
  padding: 0 4% 0;
  cursor: zoom-in;
}

.bb-archive__glow {
  position: absolute;
  inset: 6% 8% 18%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 236, 200, 0.75), rgba(255, 236, 200, 0));
  filter: blur(10px);
}

.bb-archive__photo {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 30px 24px rgba(40, 30, 20, 0.18));
}

/* A strip of studs: the shelf the object stands on. */
.bb-studs {
  position: relative;
  z-index: 1;
  height: 46px;
  margin: -34px 6% 0;
  border-radius: 6px;
  background:
    radial-gradient(circle at 50% 42%, #D84B32 0 9px, #A9321F 9.5px 11px, transparent 11.5px) 0 0 / 30px 30px,
    linear-gradient(180deg, #C83D27 0%, #9E2D1B 100%);
  box-shadow: 0 14px 22px -10px rgba(60, 20, 10, 0.5), inset 0 -10px 12px -8px rgba(0, 0, 0, 0.35);
}

.bb-archive__lens {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 2px solid #22262B;
  box-shadow: 0 12px 30px rgba(34, 38, 43, 0.3), inset 0 0 0 5px rgba(255, 255, 255, 0.75);
  background-color: #fff;
  background-repeat: no-repeat;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--bb-dur-2);
}

.bb-archive__stage.is-looking .bb-archive__lens { opacity: 1; }

.bb-archive__caption {
  margin-top: 18px;
  text-align: center;
  font-family: var(--bb-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6A6258;
}

.bb-archive__price {
  font-family: var(--bb-font-mono);
  font-size: 0.875rem;
  color: var(--bb-text-2);
}

.bb-archive__price strong { font-size: 1.125rem; color: var(--bb-text); }

.bb-float--a1 { top: 14%; left: 47%; }
.bb-float--a2 { bottom: 12%; left: 44%; width: clamp(60px, 7vw, 120px); }
.bb-float--a3 { top: 10%; right: 6%; width: clamp(60px, 6vw, 110px); }
.bb-float--a4 { bottom: 16%; right: 4%; width: clamp(50px, 5vw, 90px); }

/* The lifespan bar: on sale since release, today marked, the expected exit
   flagged. */
.bb-lifespan { margin: 8px 0 24px; max-width: 30em; }

.bb-lifespan__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.bb-lifespan__title {
  font-family: var(--bb-font-text);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bb-rubric);
}

.bb-lifespan__bar { position: relative; padding-top: 1.5em; }

.bb-lifespan__today-label {
  position: absolute;
  top: 0;
  left: var(--at);
  font-family: var(--bb-font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  color: #22262B;
  transform: translateX(-50%);
}

.bb-lifespan__today-label--start { transform: translateX(-2px); }
.bb-lifespan__today-label--end { left: auto; right: 0; transform: none; }

.bb-lifespan__track {
  position: relative;
  height: 12px;
  border: 1px solid #22262B;
  border-radius: 999px;
  background: repeating-linear-gradient(135deg, transparent 0 4px, rgba(34, 38, 43, 0.14) 4px 5px);
}

.bb-lifespan__sold {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--to);
  border-radius: 999px;
  background: #22262B;
}

.bb-lifespan__exit,
.bb-lifespan__today {
  position: absolute;
  top: -6px;
  bottom: -6px;
  left: var(--at);
  width: 2px;
  transform: translateX(-1px);
}

.bb-lifespan__exit { background: #D8432B; }
.bb-lifespan__today { background: #F2B63D; box-shadow: 0 0 0 1px #22262B; }

.bb-lifespan__dates {
  margin: 10px 0 0;
  font-family: var(--bb-font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: #4F565F;
}

@media (max-width: 1023px) {
  .bb-archive__layout { grid-template-columns: 1fr; }
  .bb-archive__stage { order: -1; }
}
/* The Archive's set page (docs/design/archive.md): one catalog entry, the
   photograph on a light table beside it. */

.bb-archive--page {
  --bb-a-ink: #1B2129;
  --bb-a-ink-2: #3D4450;
  --bb-a-muted: #57524A;
  --bb-a-rubric: #9E3824;
  --bb-a-rule: rgba(27, 33, 41, 0.16);
  background: var(--bb-paper);
  color: var(--bb-a-ink);
}

.bb-archive .atrem-breadcrumb {
  padding: 14px 0 0;
  font-family: var(--bb-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  background: none;
  border: 0;
}

.bb-archive .atrem-breadcrumb .breadcrumb-link,
.bb-archive .atrem-breadcrumb .breadcrumb-separator { color: var(--bb-a-muted); }
.bb-archive .atrem-breadcrumb .breadcrumb-current { color: var(--bb-a-ink); font-weight: 500; }

/* The entry. Nothing between the photograph and this section's paper may
   start a stacking context (no z-index, opacity, transform or filter on an
   ancestor), or the photo multiplies against an empty layer and shows its
   white. */
.bb-archive .bb-a-entry {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: clamp(28px, 4vw, 64px) 0 clamp(40px, 5vw, 80px);
  background:
    radial-gradient(ellipse 46% 64% at 70% 46%, #FFFDF8 0%, rgba(255, 253, 248, 0) 72%),
    linear-gradient(180deg, var(--bb-paper) 0%, #E9E2D5 100%);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.bb-archive .bb-a-entry__numeral {
  position: absolute;
  top: 2%;
  right: -2vw;
  margin: 0;
  font-family: var(--bb-font-display);
  font-size: clamp(9rem, 24vw, 26rem);
  font-weight: 800;
  font-stretch: 75%;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(163, 65, 46, 0.16);
  pointer-events: none;
  user-select: none;
}

.bb-archive .bb-a-entry__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
  padding: 0;
}

.bb-archive .bb-a-entry__text {
  grid-column: 1;
  grid-row: 1;
  padding: 4px 0 0 clamp(18px, 2.2vw, 30px);
  background: none;
  border-left: 1px solid rgba(163, 65, 46, 0.4);
}

.bb-archive .bb-a-entry__number {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--bb-font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bb-a-ink);
}

.bb-archive .bb-a-entry__number::after {
  content: "";
  width: 40px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.bb-archive .bb-a-entry__rubric {
  display: block;
  margin: 0 0 10px;
  padding: 0;
  font-family: var(--bb-font-text);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bb-a-rubric);
  background: none;
  border: 0;
  border-radius: 0;
}

.bb-archive .atrem-set-title {
  margin: 0 0 18px;
  font-family: var(--bb-font-serif);
  font-size: clamp(2.5rem, 1.5rem + 3.2vw, 4.5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--bb-a-ink);
  text-wrap: balance;
}

.bb-archive .atrem-hook {
  max-width: 34em;
  margin: 0 0 24px;
  padding: 0;
  font-family: var(--bb-font-text);
  font-size: 1.0625rem;
  font-style: normal;
  line-height: 1.65;
  color: var(--bb-a-ink-2);
  border: 0;
}

/* Facts as a ruled record. */
.bb-archive .atrem-decision-card {
  margin: 0 0 22px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.bb-archive .atrem-decision-card-title {
  margin: 0 0 6px;
  font-family: var(--bb-font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bb-a-muted);
}

.bb-archive .atrem-decision-card-rows { margin: 0; border-top: 1.5px solid var(--bb-a-ink); }

.bb-archive .atrem-decision-card-row {
  display: grid;
  grid-template-columns: 8.5em minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--bb-a-rule);
}

.bb-archive .atrem-decision-card-row dt {
  font-family: var(--bb-font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bb-a-muted);
  padding-top: 2px;
}

.bb-archive .atrem-decision-card-row dd { margin: 0; font-size: 0.9375rem; line-height: 1.5; color: var(--bb-a-ink); }
.bb-archive .atrem-decision-card-note { display: block; font-size: 0.8125rem; color: var(--bb-a-muted); }

.bb-archive .atrem-rating-row { margin: 0 0 22px; padding: 0; background: none; border: 0; }
.bb-archive .atrem-stars { color: var(--bb-a-ink); letter-spacing: 0.08em; }
.bb-archive .atrem-rating-text { font-size: 0.875rem; color: var(--bb-a-ink-2); }

.bb-archive .atrem-review-summary {
  margin: 8px 0 0;
  padding: 0;
  font-size: 0.9375rem;
  font-style: normal;
  line-height: 1.6;
  color: var(--bb-a-ink-2);
  border: 0;
}

.bb-archive .bb-a-entry .bb-lifespan { max-width: none; margin: 0 0 24px; }
.bb-archive .bb-a-entry .bb-lifespan__title { color: var(--bb-a-rubric); }

/* The price and the way to buy, on the paper rather than in a dark box. */
.bb-archive .atrem-price-section {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 26px;
  margin: 0 0 12px;
  padding: 16px 0 0;
  color: var(--bb-a-ink);
  background: none;
  border: 0;
  border-top: 1.5px solid var(--bb-a-ink);
  border-radius: 0;
  box-shadow: none;
}

.bb-archive .atrem-price-box { padding: 0; text-align: left; background: none; border: 0; }

.bb-archive .atrem-price-label {
  font-family: var(--bb-font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bb-a-muted);
}

.bb-archive .atrem-price-value {
  font-family: var(--bb-font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--bb-a-ink);
}

.bb-archive .atrem-price-value .original { font-size: 1rem; color: var(--bb-a-muted); }
.bb-archive .atrem-price-value.savings { color: var(--bb-a-rubric); }

.bb-archive .atrem-price-section .affiliate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  min-height: 46px;
  padding: 0 22px;
  font-family: var(--bb-font-text);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--bb-paper);
  background: var(--bb-a-ink);
  border: 1.5px solid var(--bb-a-ink);
  border-radius: var(--bb-radius-sm);
  box-shadow: none;
  text-decoration: none;
  transition: box-shadow var(--bb-dur-1) var(--bb-ease-out), transform var(--bb-dur-1) var(--bb-ease-out);
}

.bb-archive .atrem-price-section .affiliate-btn:hover { box-shadow: 0 3px 0 0 var(--bb-signal); transform: translateY(-1px); }
.bb-archive .atrem-price-section .affiliate-btn-ebay { color: var(--bb-a-ink); background: #FFFDF8; }

/* The light table. */
.bb-archive .bb-a-stage {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  top: auto;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.bb-archive .bb-a-stage__badges { display: flex; gap: 8px; min-height: 26px; margin-bottom: 4px; }

.bb-archive .bb-a-stage .atrem-hero-image-badge {
  position: static;
  padding: 3px 9px;
  font-family: var(--bb-font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bb-a-ink);
  background: none;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  box-shadow: none;
}

.bb-archive .bb-a-stage .atrem-hero-badge-badge-retiring,
.bb-archive .bb-a-stage .atrem-hero-badge-badge-retired { color: var(--bb-a-rubric); }

.bb-archive .bb-a-stage__table {
  position: relative;
  height: auto;
  max-height: none;
  aspect-ratio: 5 / 4;
  margin: 0;
  padding: 0 5%;
  overflow: visible;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.bb-archive .bb-a-stage .carousel-color-overlay { display: none; }

.bb-archive .bb-a-stage .carousel-image {
  position: static;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  background: none;
}

.bb-archive .bb-a-stage__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  mix-blend-mode: multiply;
  transition: opacity var(--bb-dur-2);
}

.bb-archive .bb-a-stage__table.is-looking .bb-archive__lens { opacity: 1; }

@media (pointer: fine) {
  .bb-archive .bb-a-stage__table { cursor: zoom-in; }
}

.bb-archive .bb-a-stage .carousel-btn {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  color: var(--bb-a-ink);
  background: rgba(255, 253, 248, 0.86);
  border: 1.5px solid var(--bb-a-ink);
  border-radius: 50%;
  box-shadow: none;
  cursor: pointer;
}

.bb-archive .bb-a-stage .carousel-prev { left: 0; }
.bb-archive .bb-a-stage .carousel-next { right: 0; }

/* The plate the set stands on. Static, so the positioned table paints over
   it and the set stands in front of its edge. */
.bb-archive .bb-a-stage__plate { position: static; margin: -12px 8% 0; }
.bb-archive .bb-a-stage__plate--alone { margin-top: 160px; }

.bb-archive .bb-a-stage__foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 18px 8% 0;
  font-family: var(--bb-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bb-a-muted);
}

.bb-archive .bb-a-stage .carousel-counter {
  position: static;
  padding: 0;
  font: inherit;
  color: inherit;
  background: none;
  border-radius: 0;
}

.bb-archive .bb-a-stage__pin { color: var(--bb-a-muted); text-decoration: underline; text-underline-offset: 3px; }
.bb-archive .bb-a-stage__pin:hover { color: var(--bb-a-ink); }

@media not (pointer: fine) {
  .bb-archive .bb-a-stage__hint { display: none; }
}

/* The rest of the gallery as a contact strip. */
.bb-archive .bb-a-stage__strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
}

.bb-archive .bb-a-stage__strip .carousel-thumbnails { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }

.bb-archive .bb-a-stage__strip .thumbnail {
  flex: 0 0 64px;
  height: 64px;
  padding: 4px;
  background: #FFFDF8;
  border: 1px solid var(--bb-a-rule);
  border-radius: 3px;
  cursor: pointer;
}

.bb-archive .bb-a-stage__strip .thumbnail.active { border: 1.5px solid var(--bb-a-ink); }
.bb-archive .bb-a-stage__strip .thumbnail img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

.bb-archive .bb-a-stage__strip .thumbnail-nav-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--bb-a-ink);
  background: none;
  border: 1px solid var(--bb-a-rule);
  border-radius: 50%;
}

@media (max-width: 1023px) {
  .bb-archive .bb-a-entry__grid { grid-template-columns: 1fr; gap: 28px; }
  .bb-archive .bb-a-entry__text,
  .bb-archive .bb-a-stage { grid-column: 1; grid-row: auto; }
}

/* Parts drifting around the light table, as on the Archive board: each a
   sibling of the photograph, never its ancestor, so their shadows and
   transforms cannot cut the photo off from the paper it prints into. */
.bb-archive .bb-a-float {
  position: absolute;
  z-index: 2;
  width: clamp(54px, 6.5vw, 112px);
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 16px 16px rgba(20, 16, 10, 0.26));
  will-change: translate, rotate;
}

.bb-archive .bb-a-float--red { top: 118px; left: 45%; }
.bb-archive .bb-a-float--yellow { top: 64px; right: 4%; width: clamp(48px, 5.5vw, 96px); }
.bb-archive .bb-a-float--blue { top: 520px; left: 43%; width: clamp(44px, 5vw, 88px); }
.bb-archive .bb-a-float--black { top: 690px; right: 2.5%; width: clamp(40px, 4.5vw, 78px); }

@media (max-width: 1023px) {
  .bb-archive .bb-a-float { display: none; }
}
/* The set page below its entry (docs/design/archive.md): each section a
   ruled record on the paper, numbered in the main column like a catalog's
   fields, the store column a narrower set of index cards. */

.bb-archive .atrem-enrichment-section { padding: clamp(32px, 4vw, 56px) 0 clamp(24px, 3vw, 40px); background: none; }
.bb-archive .atrem-enrichment-grid { gap: clamp(28px, 4vw, 64px); }
.bb-archive .atrem-enrichment-main { counter-reset: bb-a-record; }

.bb-archive .atrem-enrichment-card {
  margin: 0 0 clamp(28px, 3vw, 44px);
  padding: 18px 0 0;
  color: var(--bb-a-ink);
  background: none;
  border: 0;
  border-top: 1.5px solid var(--bb-a-ink);
  border-radius: 0;
  box-shadow: none;
}

.bb-archive .atrem-enrichment-card-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 16px;
  padding: 0;
  font-family: var(--bb-font-serif);
  font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--bb-a-ink);
}

.bb-archive .atrem-enrichment-card-icon { display: none; }

.bb-archive .atrem-enrichment-main .atrem-enrichment-card-title::before {
  counter-increment: bb-a-record;
  content: counter(bb-a-record, decimal-leading-zero);
  flex: none;
  font-family: var(--bb-font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--bb-a-rubric);
}

.bb-archive .atrem-enrichment-sidebar .atrem-enrichment-card { border-top-width: 1px; }
.bb-archive .atrem-enrichment-sidebar .atrem-enrichment-card-title { font-size: 1.375rem; }

.bb-archive :is(.atrem-our-take-content, .atrem-investment-analysis-text, .atrem-enrichment-notes) {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--bb-a-ink-2);
}

.bb-archive :is(.atrem-our-take-content, .atrem-investment-analysis-text) strong { font-weight: 600; color: var(--bb-a-ink); }

/* Figures set as a catalog's fields: mono values over mono labels, no tiles. */
.bb-archive .atrem-building-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 18px;
  border-bottom: 1px solid var(--bb-a-rule);
}

.bb-archive .atrem-building-stat-item {
  padding: 4px 16px 16px 0;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.bb-archive .atrem-building-stat-item + .atrem-building-stat-item { padding-left: 16px; border-left: 1px solid var(--bb-a-rule); }
.bb-archive .atrem-building-stat-icon { display: none; }

.bb-archive .atrem-building-stat-value {
  font-family: var(--bb-font-mono);
  font-size: clamp(1.0625rem, 0.9rem + 0.4vw, 1.3125rem);
  font-weight: 500;
  color: var(--bb-a-ink);
}

.bb-archive .atrem-building-stat-label {
  margin-top: 4px;
  font-family: var(--bb-font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bb-a-muted);
}

/* The investment view: a grade stamped beside the trend, not a coloured tile. */
.bb-archive .atrem-investment-content { gap: 24px; }
.bb-archive .atrem-investment-chart { background: none; border: 1px solid var(--bb-a-rule); border-radius: 0; }

.bb-archive .atrem-investment-grade-box {
  padding: 14px 18px;
  text-align: center;
  background: none;
  border: 1.5px solid var(--bb-a-ink);
  border-radius: 4px;
  box-shadow: none;
}

.bb-archive .atrem-investment-grade { font-family: var(--bb-font-serif); font-size: 3rem; font-weight: 500; line-height: 1; color: var(--bb-a-ink); }

.bb-archive .atrem-investment-grade-label {
  margin-top: 6px;
  font-family: var(--bb-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bb-a-muted);
}

.bb-archive .atrem-investment-retirement-badge {
  font-family: var(--bb-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bb-a-rubric);
  background: none;
  border: 1px solid currentColor;
  border-radius: 3px;
}

.bb-archive .investment-disclaimer-compact { color: var(--bb-a-muted); background: none; border: 0; border-left: 2px solid var(--bb-a-rubric); border-radius: 0; }

/* Related sets and minifigures as prints under a rule. */
.bb-archive :is(.atrem-similar-sets-grid, .atrem-minifigs-grid) { gap: 22px 18px; }

.bb-archive :is(.atrem-similar-set-card, .atrem-minifig-card) {
  padding: 12px 0 0;
  text-align: left;
  color: var(--bb-a-ink);
  background: none;
  border: 0;
  border-top: 1px solid var(--bb-a-rule);
  border-radius: 0;
  box-shadow: none;
  transform: none;
  text-decoration: none;
}

.bb-archive :is(.atrem-similar-set-card, .atrem-minifig-card):hover { border-top-color: var(--bb-a-ink); box-shadow: none; transform: none; }

.bb-archive :is(.atrem-similar-set-image, .atrem-minifig-image) { background: none; border-radius: 0; }
.bb-archive :is(.atrem-similar-set-image, .atrem-minifig-image) img { mix-blend-mode: multiply; }
.bb-archive :is(.atrem-similar-set-title, .atrem-minifig-title) { font-family: var(--bb-font-serif); font-size: 1.0625rem; font-weight: 500; line-height: 1.25; color: var(--bb-a-ink); }
.bb-archive :is(.atrem-similar-set-meta, .atrem-minifig-meta) { font-family: var(--bb-font-mono); font-size: 0.6875rem; color: var(--bb-a-muted); }
.bb-archive .atrem-similar-set-price { font-family: var(--bb-font-mono); font-weight: 500; color: var(--bb-a-ink); }

/* The store column. */
.bb-archive .atrem-retailer-list { gap: 0; }

.bb-archive .atrem-retailer-item {
  padding: 12px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--bb-a-rule);
  border-radius: 0;
  box-shadow: none;
}

.bb-archive .atrem-retailer-item:hover { background: none; transform: none; box-shadow: none; }
.bb-archive .atrem-retailer-name { font-weight: 600; color: var(--bb-a-ink); }
.bb-archive .atrem-retailer-stock { font-size: 0.8125rem; color: #2F6B3A; }
.bb-archive .atrem-retailer-price { font-family: var(--bb-font-mono); font-weight: 500; color: var(--bb-a-ink); }
.bb-archive .atrem-retailer-compare { font-size: 0.8125rem; font-weight: 600; color: var(--bb-a-rubric); }

.bb-archive :is(.atrem-part-item, .atrem-moc-item) { padding: 10px 0; background: none; border: 0; border-bottom: 1px solid var(--bb-a-rule); border-radius: 0; }
.bb-archive .atrem-moc-icon { display: none; }
.bb-archive .atrem-notable-parts .atrem-part-name { text-align: left; font-size: 0.875rem; line-height: 1.45; color: var(--bb-a-ink-2); }
.bb-archive .atrem-part-value { font-family: var(--bb-font-mono); color: var(--bb-a-ink); }

.bb-archive .atrem-parts-total {
  margin-top: 12px;
  padding: 12px 0 0;
  background: none;
  border: 0;
  border-top: 1.5px solid var(--bb-a-ink);
  border-radius: 0;
}

.bb-archive .atrem-parts-total-value { font-family: var(--bb-font-mono); color: var(--bb-a-ink); }

/* Ask BlockTalk, set on the paper rather than in a gradient panel. */
.bb-archive .atrem-blocktalk-widget {
  margin: 0 0 clamp(28px, 3vw, 44px);
  padding: 22px clamp(18px, 2.5vw, 30px) 24px;
  color: var(--bb-a-ink);
  background: #FFFDF8;
  border: 1.5px solid var(--bb-a-ink);
  border-radius: 8px;
  box-shadow: 0 4px 0 0 var(--bb-a-ink);
}

.bb-archive .atrem-blocktalk-title { font-family: var(--bb-font-serif); font-size: 1.625rem; font-weight: 500; color: var(--bb-a-ink); }
.bb-archive .atrem-blocktalk-header p,
.bb-archive .atrem-blocktalk-header span:not(.atrem-blocktalk-badge) { color: var(--bb-a-muted); }

.bb-archive :is(.atrem-blocktalk-badge, .atrem-blocktalk-new-badge) {
  font-family: var(--bb-font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--bb-a-ink);
  background: none;
  border: 1px solid currentColor;
  border-radius: 3px;
}

.bb-archive .atrem-chat-messages { background: none; border: 0; border-top: 1px solid var(--bb-a-rule); border-radius: 0; box-shadow: none; }
.bb-archive .atrem-chat-text { color: var(--bb-a-ink); background: rgba(27, 33, 41, 0.05); border-radius: 6px; }
.bb-archive .atrem-chat-input { color: var(--bb-a-ink); background: #FFFFFF; border: 1px solid var(--bb-a-ink); border-radius: 6px; }
.bb-archive .atrem-chat-send-btn { color: var(--bb-paper); background: var(--bb-a-ink); border: 1px solid var(--bb-a-ink); border-radius: 6px; }
.bb-archive .atrem-suggested-label { font-family: var(--bb-font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bb-a-muted); }
.bb-archive .atrem-suggested-chip { color: var(--bb-a-ink); background: none; border: 1px solid var(--bb-a-rule); border-radius: 999px; }
.bb-archive .atrem-suggested-chip:hover { border-color: var(--bb-a-ink); background: none; }

/* Community builds from Reddit, as a short list of prints. */
.bb-archive .atrem-moc-community--after { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--bb-a-rule); }

.bb-archive .atrem-moc-community-title {
  margin: 0 0 10px;
  font-family: var(--bb-font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bb-a-muted);
}

.bb-archive .atrem-moc-community-count { letter-spacing: 0; }
.bb-archive .atrem-reddit-mocs-compact { display: grid; gap: 0; }

.bb-archive .atrem-reddit-moc-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  color: var(--bb-a-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--bb-a-rule);
}

.bb-archive .atrem-reddit-moc-thumb { width: 52px; height: 52px; overflow: hidden; background: rgba(27, 33, 41, 0.06); border-radius: 3px; }
.bb-archive .atrem-reddit-moc-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bb-archive .atrem-reddit-moc-body { display: grid; gap: 4px; min-width: 0; }
.bb-archive .atrem-reddit-moc-title { font-size: 0.875rem; font-weight: 500; line-height: 1.35; }
.bb-archive .atrem-reddit-moc-meta { font-family: var(--bb-font-mono); font-size: 0.6875rem; color: var(--bb-a-muted); }
.bb-archive .atrem-reddit-moc-item:hover .atrem-reddit-moc-title { text-decoration: underline; text-underline-offset: 3px; }

/* Further reading and news in the store column, as prints. */
.bb-archive .atrem-related-articles-section { margin: 0 0 clamp(28px, 3vw, 44px); padding: 18px 0 0; background: none; border: 0; border-top: 1px solid var(--bb-a-ink); border-radius: 0; box-shadow: none; }
.bb-archive .atrem-section-subtitle { margin: 0 0 14px; font-family: var(--bb-font-serif); font-size: 1.375rem; font-weight: 500; color: var(--bb-a-ink); }
.bb-archive .related-articles-grid { gap: 18px; }
.bb-archive .related-article-card { background: none; border: 0; border-radius: 0; box-shadow: none; transform: none; }
.bb-archive .related-article-card:hover { box-shadow: none; transform: none; }
.bb-archive .related-article-link { color: var(--bb-a-ink); text-decoration: none; }
.bb-archive .related-article-image { border-radius: 0; }
.bb-archive .related-article-content { padding: 10px 0 0; }
.bb-archive .related-article-title { font-family: var(--bb-font-serif); font-size: 1.125rem; font-weight: 500; line-height: 1.25; color: var(--bb-a-ink); }
.bb-archive .related-article-link:hover .related-article-title { text-decoration: underline; text-decoration-color: var(--bb-a-rubric); text-underline-offset: 4px; }
.bb-archive .related-article-meta { font-family: var(--bb-font-mono); font-size: 0.6875rem; color: var(--bb-a-muted); }

/* The set's tags as an index line. */
.bb-archive .atrem-tags { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 18px; }

.bb-archive .atrem-tag {
  padding: 3px 9px;
  font-family: var(--bb-font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--bb-a-ink);
  background: none;
  border: 1px solid var(--bb-a-rule);
  border-radius: 3px;
  text-decoration: none;
}

.bb-archive .atrem-tag:hover { color: var(--bb-a-ink); background: none; border-color: var(--bb-a-ink); }

/* The contents bar: the record's field names on the paper. */
.bb-archive .atrem-toc { background: rgba(243, 238, 227, 0.96); border-top: 1px solid var(--bb-a-rule); border-bottom: 1px solid var(--bb-a-rule); box-shadow: none; }
.bb-archive .atrem-toc-label { font-family: var(--bb-font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bb-a-muted); }
.bb-archive .atrem-toc-icon { display: none; }

.bb-archive .atrem-toc-link {
  font-family: var(--bb-font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--bb-a-ink-2);
  background: none;
  border-radius: 0;
  box-shadow: none;
}

.bb-archive .atrem-toc-link:hover { color: var(--bb-a-ink); background: none; }
.bb-archive .atrem-toc-link.active { color: var(--bb-a-ink); background: none; box-shadow: inset 0 -2px 0 var(--bb-a-rubric); }

@media (max-width: 767px) {
  .bb-archive .atrem-building-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bb-archive .atrem-building-stat-item:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* The price trend as one ruled line in ink, tilted the way prices went.
   With no trend to show it is a dashed line, never a flat one, which would
   read as stable. */
.bb-archive .atrem-investment-chart { display: grid; align-content: center; justify-items: stretch; gap: 14px; min-height: 120px; padding: 18px 22px; }

.bb-archive .atrem-investment-chart-line {
  justify-self: stretch;
  width: auto;
  max-width: none;
  height: 0;
  margin: 0;
  background: none;
  border: 0;
  border-top: 2px solid var(--bb-a-ink);
  border-radius: 0;
  transform-origin: 50% 50%;
}

.bb-archive .atrem-investment-chart-line::before,
.bb-archive .atrem-investment-chart-line::after { content: none; }

.bb-archive .atrem-investment-chart[data-trend="rising"] .atrem-investment-chart-line { transform: rotate(-7deg); }
.bb-archive .atrem-investment-chart[data-trend="falling"] .atrem-investment-chart-line { transform: rotate(7deg); }
.bb-archive .atrem-investment-chart[data-trend="unknown"] .atrem-investment-chart-line { border-top: 2px dashed var(--bb-a-muted); }

.bb-archive .atrem-investment-chart-label { font-family: var(--bb-font-mono); font-size: 0.75rem; font-weight: 500; color: var(--bb-a-ink-2); text-align: center; }

/* The parts inventory: its counts as figures, its parts as a strip of
   prints. */
.bb-archive .atrem-parts-inventory-counts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  margin: 0 0 14px;
  border-bottom: 1px solid var(--bb-a-rule);
}

.bb-archive .atrem-parts-inventory-counts > div { padding: 0 16px 12px 0; }
.bb-archive .atrem-parts-inventory-counts > div + div { padding-left: 16px; border-left: 1px solid var(--bb-a-rule); }
.bb-archive .atrem-parts-inventory-counts dt { font-family: var(--bb-font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bb-a-muted); }
.bb-archive .atrem-parts-inventory-counts dd { margin: 4px 0 0; font-family: var(--bb-font-mono); font-size: 1rem; font-weight: 500; color: var(--bb-a-ink); }
.bb-archive :is(.atrem-parts-inventory-note, .atrem-parts-checker-link) { margin: 0 0 10px; font-size: 0.875rem; line-height: 1.6; color: var(--bb-a-ink-2); }
.bb-archive .atrem-parts-checker-link a { color: var(--bb-a-ink); text-decoration: underline; text-decoration-color: var(--bb-a-rubric); text-underline-offset: 3px; }

.bb-archive .atrem-parts-scroll-container { margin: 14px 0 0; padding: 0; background: none; border: 0; border-top: 1px solid var(--bb-a-rule); border-radius: 0; }
.bb-archive .atrem-parts-scroll { gap: 0; padding: 0; }

.bb-archive .atrem-part-thumb {
  flex: 0 0 132px;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 12px 12px 14px;
  color: var(--bb-a-ink);
  text-align: left;
  text-decoration: none;
  background: none;
  border: 0;
  border-right: 1px solid var(--bb-a-rule);
  border-radius: 0;
  box-shadow: none;
}

.bb-archive .atrem-part-thumb:hover { background: rgba(27, 33, 41, 0.035); transform: none; box-shadow: none; }
.bb-archive .atrem-part-thumb img { width: 60px; height: 60px; object-fit: contain; mix-blend-mode: multiply; }
.bb-archive .atrem-part-placeholder { display: block; width: 60px; height: 60px; font-size: 0; background: rgba(27, 33, 41, 0.05); }
.bb-archive .atrem-part-thumb .atrem-part-name { font-size: 0.75rem; font-weight: 500; line-height: 1.3; color: var(--bb-a-ink); text-align: left; }
.bb-archive .atrem-part-details { display: grid; gap: 2px; font-family: var(--bb-font-mono); font-size: 0.625rem; color: var(--bb-a-muted); }
.bb-archive .atrem-part-qty { font-weight: 600; color: var(--bb-a-ink); }
.bb-archive .atrem-part-color { display: flex; align-items: center; gap: 4px; }
.bb-archive .atrem-color-swatch { flex: none; width: 9px; height: 9px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(27, 33, 41, 0.25); }

/* While a set is being written up: a note saying so, then the records it
   will hold, each named and ruled, their lines shimmering on the paper. */
.bb-archive .atrem-enrichment-placeholder {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 16px;
  margin: 0 0 clamp(28px, 3vw, 40px);
  padding: 16px 0;
  text-align: left;
  background: none;
  border: 0;
  border-top: 1.5px solid var(--bb-a-ink);
  border-bottom: 1px solid var(--bb-a-rule);
  border-radius: 0;
  box-shadow: none;
}

.bb-archive .atrem-enrichment-placeholder-icon { grid-row: 1 / 3; margin: 0; }
.bb-archive .atrem-enrichment-placeholder-icon .blocktalk-head-icon { display: block; width: 44px; height: 44px; }
.bb-archive .atrem-enrichment-placeholder-spinner { grid-column: 3; grid-row: 1 / 3; margin: 0; }
.bb-archive .atrem-enrichment-placeholder-spinner .enrichment-spinner { width: 18px; height: 18px; border: 2px solid var(--bb-a-rule); border-top-color: var(--bb-a-ink); }
.bb-archive .atrem-enrichment-placeholder-title { margin: 0; font-family: var(--bb-font-serif); font-size: 1.375rem; font-weight: 500; color: var(--bb-a-ink); }
.bb-archive .atrem-enrichment-placeholder-text { margin: 0; font-size: 0.875rem; color: var(--bb-a-ink-2); }

.bb-archive .skeleton-section {
  margin: 0 0 clamp(28px, 3vw, 44px);
  padding: 18px 0 0;
  background: none;
  border: 0;
  border-top: 1.5px solid var(--bb-a-ink);
  border-radius: 0;
  box-shadow: none;
}

.bb-archive .atrem-enrichment-sidebar .skeleton-section { border-top-width: 1px; }

.bb-archive .skeleton-title.skeleton-animate {
  width: auto;
  height: auto;
  margin: 0 0 16px;
  font-family: var(--bb-font-serif);
  font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--bb-a-ink);
  background: none;
  animation: none;
}

.bb-archive .atrem-enrichment-sidebar .skeleton-title.skeleton-animate { font-size: 1.375rem; }
.bb-archive :is(.skeleton-grid-item, .skeleton-card, .skeleton-list-item, .skeleton-icon-item) { background: none; border: 0; border-radius: 0; box-shadow: none; }

.bb-archive :is(.skeleton-animate, .skeleton-line, .skeleton-icon, .skeleton-card-image, .skeleton-bullet, .skeleton-icon-circle, .skeleton-chip):not(.skeleton-title) {
  background: linear-gradient(90deg, rgba(27, 33, 41, 0.06) 25%, rgba(27, 33, 41, 0.12) 50%, rgba(27, 33, 41, 0.06) 75%) 0 0 / 200% 100%;
  border-radius: 2px;
  animation: bb-a-shimmer 1.6s linear infinite;
}

/* The hero's price while it loads. */
.bb-archive .atrem-price-skeleton .affiliate-btn { color: var(--bb-a-muted); background: none; border: 1.5px dashed var(--bb-a-rule); }

@media (prefers-reduced-motion: reduce) {
  .bb-archive :is(.skeleton-animate, .skeleton-line, .skeleton-icon, .skeleton-card-image, .skeleton-bullet, .skeleton-icon-circle, .skeleton-chip) { animation: none; }
}

/* Partner accessories in the store column, as prints; the disclosure
   stays beneath them, as legible as the rest of the column. */
.bb-archive .atrem-accessory + .atrem-accessory { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--bb-a-rule); }

.bb-archive .atrem-accessory-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 180px;
  margin: 0 0 10px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8px, #000 calc(100% - 8px), transparent), linear-gradient(transparent, #000 8px, #000 calc(100% - 8px), transparent);
  -webkit-mask-composite: source-in;
  mask: linear-gradient(90deg, transparent, #000 8px, #000 calc(100% - 8px), transparent), linear-gradient(transparent, #000 8px, #000 calc(100% - 8px), transparent);
  mask-composite: intersect;
}

.bb-archive .atrem-accessory-name { margin: 0 0 6px; font-family: var(--bb-font-serif); font-size: 1.0625rem; font-weight: 500; line-height: 1.25; color: var(--bb-a-ink); }
.bb-archive .atrem-accessory-price { margin: 0 0 4px; font-size: 0.875rem; color: var(--bb-a-ink-2); }
.bb-archive .atrem-accessory-price strong { font-family: var(--bb-font-mono); font-size: 1.125rem; font-weight: 500; color: var(--bb-a-ink); }
.bb-archive .atrem-accessory-was { margin-left: 4px; color: var(--bb-a-muted); }
.bb-archive .atrem-accessory-checked { display: block; margin-top: 2px; font-family: var(--bb-font-mono); font-size: 0.6875rem; color: var(--bb-a-muted); }
.bb-archive .atrem-accessory-availability { margin: 0 0 10px; font-size: 0.75rem; color: #2F6B3A; }

.bb-archive .atrem-accessory-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bb-paper);
  text-decoration: none;
  background: var(--bb-a-ink);
  border: 1.5px solid var(--bb-a-ink);
  border-radius: var(--bb-radius-sm);
  transition: box-shadow var(--bb-dur-1) var(--bb-ease-out);
}

.bb-archive .atrem-accessory-cta:hover { color: var(--bb-paper); background: var(--bb-a-ink); box-shadow: 0 3px 0 0 var(--bb-signal); }
.bb-archive :is(.atrem-accessory-note, .atrem-accessories-disclosure) { margin: 10px 0 0; font-family: var(--bb-font-mono); font-size: 0.6875rem; line-height: 1.5; color: var(--bb-a-muted); }

/* The store column's news, deal alert and further sets. */
.bb-archive .sidebar-news-list { display: grid; gap: 0; }
.bb-archive .sidebar-news-item { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--bb-a-rule); }
.bb-archive .sidebar-news-thumb { width: 48px; height: 48px; overflow: hidden; background: rgba(27, 33, 41, 0.05); border-radius: 2px; }
.bb-archive .sidebar-news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bb-archive .sidebar-news-meta { display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--bb-font-mono); font-size: 0.625rem; color: var(--bb-a-muted); }
.bb-archive .sidebar-news-date::before { content: "· "; }
.bb-archive .sidebar-news-title { margin: 3px 0 4px; font-size: 0.875rem; font-weight: 500; line-height: 1.35; }
.bb-archive .sidebar-news-link { color: var(--bb-a-ink); text-decoration: none; }
.bb-archive .sidebar-news-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.bb-archive .sidebar-news-category { display: inline-block; padding: 0 5px; font-family: var(--bb-font-mono); font-size: 0.5625rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bb-a-ink); background: none; border: 1px solid var(--bb-a-rule); border-radius: 2px; }
.bb-archive .sidebar-news-footer { margin-top: 10px; }
.bb-archive .sidebar-news-more { font-size: 0.8125rem; font-weight: 600; color: var(--bb-a-ink); text-decoration: underline; text-decoration-color: var(--bb-a-rubric); text-underline-offset: 3px; }
.bb-archive .sidebar-news-timeline--after { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--bb-a-rule); }
.bb-archive .sidebar-news-timeline__title { margin: 0 0 10px; font-family: var(--bb-font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bb-a-muted); }
.bb-archive .sidebar-news-timeline__count { letter-spacing: 0; }
.bb-archive .sidebar-timeline-container { position: relative; padding-left: 16px; border-left: 1px solid var(--bb-a-rule); }
.bb-archive .sidebar-timeline-month { position: relative; margin: 10px 0 6px; }
.bb-archive .sidebar-timeline-month__dot { position: absolute; top: 5px; left: -20px; width: 7px; height: 7px; background: var(--bb-a-rubric); border-radius: 50%; }
.bb-archive .sidebar-timeline-month__label { font-family: var(--bb-font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bb-a-rubric); }
.bb-archive .sidebar-timeline-item { position: relative; display: block; padding: 4px 0; font-size: 0.8125rem; color: var(--bb-a-ink); text-decoration: none; }
.bb-archive .sidebar-timeline-item:hover { text-decoration: underline; text-underline-offset: 3px; background: none; }
.bb-archive .sidebar-timeline-item__dot { position: absolute; top: 11px; left: -19px; width: 5px; height: 5px; background: var(--bb-a-ink); border-radius: 50%; }

.bb-archive .sidebar-deals-list { display: grid; gap: 0; }
.bb-archive .sidebar-deal-item { padding: 10px 0 14px; border-bottom: 1px solid var(--bb-a-rule); }
.bb-archive .sidebar-deal-header { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }

.bb-archive :is(.sidebar-source-badge, .sidebar-deal-badge, .atrem-related-badge) {
  display: inline-block;
  padding: 1px 7px;
  font-family: var(--bb-font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bb-a-ink);
  background: none;
  border: 1px solid var(--bb-a-rule);
  border-radius: 3px;
}

.bb-archive :is(.sidebar-deal-badge, .atrem-related-badge.badge-retiring, .atrem-related-badge.badge-retired-recent) { color: var(--bb-a-rubric); border-color: currentColor; }
.bb-archive .atrem-related-badge { position: absolute; top: 6px; left: 0; background: rgba(243, 238, 227, 0.92); }
.bb-archive .atrem-you-might-like .atrem-similar-set-image { position: relative; }
.bb-archive .atrem-similar-set-placeholder { display: block; height: 100%; font-size: 0; background: rgba(27, 33, 41, 0.05); }
.bb-archive .sidebar-deal-title { margin: 0 0 6px; font-size: 0.875rem; font-weight: 500; line-height: 1.35; color: var(--bb-a-ink); }
.bb-archive .sidebar-deal-pricing { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.bb-archive .sidebar-deal-price { font-family: var(--bb-font-mono); font-size: 1.25rem; font-weight: 500; color: var(--bb-a-ink); }
.bb-archive .sidebar-deal-list-price { font-family: var(--bb-font-mono); font-size: 0.6875rem; color: var(--bb-a-muted); }
.bb-archive .sidebar-deal-checked { margin: 2px 0 10px; font-family: var(--bb-font-mono); font-size: 0.6875rem; color: var(--bb-a-muted); }

.bb-archive .sidebar-deal-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bb-a-ink);
  text-decoration: none;
  background: #FFFDF8;
  border: 1.5px solid var(--bb-a-ink);
  border-radius: var(--bb-radius-sm);
}

.bb-archive .sidebar-deal-cta:hover { box-shadow: 0 3px 0 0 var(--bb-signal); }
.bb-archive .atrem-view-all-link { margin-top: 14px; }
.bb-archive .atrem-view-all-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 600; color: var(--bb-a-ink); text-decoration: underline; text-decoration-color: var(--bb-a-rubric); text-underline-offset: 3px; background: none; border: 0; padding: 0; }
.bb-archive .atrem-view-all-btn svg { width: 14px; height: 14px; }

/* A breaking story about the set, as a note under a red rule. */
.bb-archive .breaking-news-alert {
  position: relative;
  max-width: none;
  margin: 18px 0 0;
  padding: 14px 44px 14px 0;
  color: var(--bb-a-ink);
  background: none;
  border: 0;
  border-top: 2px solid var(--bb-a-rubric);
  border-bottom: 1px solid var(--bb-a-rule);
  border-radius: 0;
  box-shadow: none;
}

.bb-archive .breaking-news-alert__content { display: flex; gap: 12px; }
.bb-archive .breaking-news-alert__icon { display: none; }
.bb-archive .breaking-news-alert__label { margin: 0 0 6px; font-family: var(--bb-font-mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bb-a-rubric); }
.bb-archive .breaking-news-alert__item--divider { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--bb-a-rule); }
.bb-archive .breaking-news-alert__title { margin: 0 0 2px; font-family: var(--bb-font-serif); font-size: 1.125rem; font-weight: 500; line-height: 1.25; }
.bb-archive .breaking-news-alert__link { color: var(--bb-a-ink); text-decoration: none; }
.bb-archive .breaking-news-alert__link:hover { text-decoration: underline; text-decoration-color: var(--bb-a-rubric); text-underline-offset: 4px; }
.bb-archive .breaking-news-alert__meta { display: flex; gap: 6px; font-family: var(--bb-font-mono); font-size: 0.6875rem; color: var(--bb-a-muted); }

.bb-archive .breaking-news-alert__dismiss {
  position: absolute;
  top: 12px;
  right: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: var(--bb-a-ink);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

/* Links and marks that kept the old palette's reds and greys. */
.bb-archive :is(.atrem-retailer-arrow, .atrem-retailer-price-arrow) { color: var(--bb-a-muted); }
.bb-archive .atrem-minifigs-footer { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; }
.bb-archive .atrem-minifigs-footer-divider { display: none; }
.bb-archive .atrem-minifigs-footer-link { font-size: 0.875rem; font-weight: 600; color: var(--bb-a-ink); text-decoration: underline; text-decoration-color: var(--bb-a-rubric); text-underline-offset: 3px; }
.bb-archive .investment-disclaimer-compact a { color: var(--bb-a-ink); text-decoration: underline; text-decoration-color: var(--bb-a-rubric); text-underline-offset: 3px; }
.bb-archive .investment-disclaimer-compact strong { color: var(--bb-a-rubric); }
/* The set page's community file (docs/design/archive.md): what Reddit and
   YouTube say, set as ruled records on the paper like the write-ups above,
   each source marked by a small dot of its own colour. */

.bb-archive .atrem-content-section { margin: 0; padding: clamp(20px, 2.5vw, 32px) 0; background: none; border: 0; box-shadow: none; }
.bb-archive #community { padding-top: clamp(40px, 5vw, 72px); border-top: 1.5px solid var(--bb-a-ink); }

.bb-archive .bb-a-band { margin: 0; color: var(--bb-a-ink); }

.bb-archive .bb-a-band__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 4px 24px;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bb-a-ink);
}

.bb-archive .bb-a-band__kicker {
  grid-column: 1 / -1;
  margin: 0 0 6px;
  font-family: var(--bb-font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bb-a-rubric);
}

.bb-archive .bb-a-band__title {
  margin: 0;
  font-family: var(--bb-font-serif);
  font-size: clamp(1.625rem, 1.25rem + 1.1vw, 2.25rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--bb-a-ink);
}

.bb-archive .bb-a-band__note { margin: 0; font-family: var(--bb-font-mono); font-size: 0.75rem; color: var(--bb-a-muted); text-align: right; }

.bb-archive .bb-a-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }

.bb-archive .bb-a-column { background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }

.bb-archive .bb-a-column__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0 0 12px;
}

.bb-archive .bb-a-column__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--bb-font-text);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--bb-a-ink);
}

.bb-archive .bb-a-column__title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bb-a-muted); }
.bb-archive .bb-a-column[data-source="reddit"] .bb-a-column__title::before { background: #FF4500; }
.bb-archive .bb-a-column[data-source="youtube"] .bb-a-column__title::before { background: #FF0000; }
.bb-archive .bb-a-column__count { font-family: var(--bb-font-mono); font-size: 0.6875rem; color: var(--bb-a-muted); }
.bb-archive .bb-a-column__body { padding: 0; }

/* A score out of five, beside its label. The tone is a small mark, never
   the colour of text, which has to keep its contrast on the paper. */
.bb-archive .bb-a-score {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  padding: 0 0 12px;
  background: none;
  border-bottom: 1px solid var(--bb-a-rule);
  border-radius: 0;
}

.bb-archive .bb-a-score__value { margin: 0; font-family: var(--bb-font-mono); font-size: 1.75rem; font-weight: 500; line-height: 1; color: var(--bb-a-ink); }
.bb-archive .bb-a-score__of { font-size: 0.875rem; color: var(--bb-a-muted); }

.bb-archive .bb-a-score__label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--bb-a-ink);
}

.bb-archive .bb-a-score__label::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: #B98A2E; }
.bb-archive [data-tone="good"] .bb-a-score__label::before { background: #2F8F4E; }
.bb-archive [data-tone="poor"] .bb-a-score__label::before { background: var(--bb-a-rubric); }
.bb-archive .bb-a-score__sub { margin: 2px 0 0; font-family: var(--bb-font-mono); font-size: 0.75rem; color: var(--bb-a-muted); }

/* The full reading: a dial, a tally and the recurring themes. */
.bb-archive .bb-a-dial__head { display: flex; align-items: center; gap: 16px; margin: 0 0 16px; }
.bb-archive .bb-a-dial__face { position: relative; flex: none; width: 72px; height: 72px; }
.bb-archive .bb-a-dial__ring { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.bb-archive .bb-a-dial__track { fill: none; stroke: var(--bb-a-rule); stroke-width: 5; }
.bb-archive .bb-a-dial__value { fill: none; stroke: var(--bb-a-ink); stroke-width: 5; stroke-linecap: butt; }

.bb-archive .bb-a-dial__score {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  margin: 0;
  font-family: var(--bb-font-mono);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  color: var(--bb-a-ink);
}

.bb-archive .bb-a-dial__score span { font-size: 0.625rem; color: var(--bb-a-muted); }

.bb-archive .bb-a-tally {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 14px;
  border-top: 1px solid var(--bb-a-rule);
  border-bottom: 1px solid var(--bb-a-rule);
}

.bb-archive .bb-a-tally > div { padding: 10px 0 10px 12px; }
.bb-archive .bb-a-tally > div:first-child { padding-left: 0; }
.bb-archive .bb-a-tally > div + div { border-left: 1px solid var(--bb-a-rule); }
.bb-archive .bb-a-tally dt { font-family: var(--bb-font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bb-a-muted); }
.bb-archive .bb-a-tally dd { margin: 2px 0 0; font-family: var(--bb-font-mono); font-size: 1.25rem; font-weight: 500; color: var(--bb-a-ink); }

.bb-archive .bb-a-themes { padding: 0; background: none; border-radius: 0; }
.bb-archive .bb-a-themes__title { margin: 0 0 6px; font-family: var(--bb-font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bb-a-muted); }
.bb-archive .bb-a-themes__line { margin: 0 0 4px; font-size: 0.875rem; color: var(--bb-a-ink-2); }
.bb-archive .bb-a-themes__line span { display: inline-block; width: 1em; font-family: var(--bb-font-mono); font-weight: 600; color: var(--bb-a-ink); }

/* A summary written from the discussions: a note under a rubric rule. */
.bb-archive .bb-a-summary {
  margin: 0 0 16px;
  padding: 12px 0 12px 16px;
  background: none;
  border: 0;
  border-left: 2px solid var(--bb-a-rubric);
  border-radius: 0;
}

.bb-archive .bb-a-summary--wide { max-width: 48rem; margin-bottom: 22px; }

.bb-archive .bb-a-summary__kicker {
  margin: 0 0 6px;
  font-family: var(--bb-font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bb-a-rubric);
}

.bb-archive .bb-a-summary__text { margin: 0; font-size: 0.9375rem; line-height: 1.65; color: var(--bb-a-ink-2); }
.bb-archive .bb-a-summary--wide .bb-a-summary__text { font-family: var(--bb-font-serif); font-size: 1.1875rem; line-height: 1.5; color: var(--bb-a-ink); }

.bb-archive .bb-a-skeleton { display: grid; gap: 8px; }

.bb-archive .bb-a-skeleton__line {
  display: block;
  height: 0.8rem;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(27, 33, 41, 0.07) 25%, rgba(27, 33, 41, 0.13) 50%, rgba(27, 33, 41, 0.07) 75%) 0 0 / 200% 100%;
  animation: bb-a-shimmer 1.6s linear infinite;
}

.bb-archive .bb-a-skeleton__line--short { width: 70%; }

@keyframes bb-a-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bb-archive .bb-a-skeleton__line { animation: none; }
}

/* Quotes from the discussions. */
.bb-archive .bb-a-quotes { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.bb-archive .bb-a-quotes--tips { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); }

.bb-archive .bb-a-quote {
  margin: 0;
  padding: 12px 0 14px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--bb-a-rule);
  border-radius: 0;
  box-shadow: none;
}

.bb-archive .bb-a-quote__tags { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.bb-archive .bb-a-quote__votes { margin-left: auto; font-family: var(--bb-font-mono); font-size: 0.6875rem; color: var(--bb-a-muted); }
.bb-archive .bb-a-quote__text { margin: 0 0 6px; font-size: 0.9375rem; line-height: 1.6; color: var(--bb-a-ink); }
.bb-archive .bb-a-quote__text::before { content: "\201C"; color: var(--bb-a-muted); }
.bb-archive .bb-a-quote__text::after { content: "\201D"; color: var(--bb-a-muted); }

.bb-archive .bb-a-quote__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-family: var(--bb-font-mono);
  font-size: 0.6875rem;
  color: var(--bb-a-muted);
}

.bb-archive .bb-a-quote__meta a,
.bb-archive .bb-a-more a,
.bb-archive .bb-a-note a { color: var(--bb-a-ink); text-decoration: underline; text-decoration-color: var(--bb-a-rubric); text-underline-offset: 3px; }

.bb-archive .bb-a-tag {
  display: inline-block;
  padding: 1px 7px;
  font-family: var(--bb-font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bb-a-ink);
  background: none;
  border: 1px solid var(--bb-a-rule);
  border-radius: 3px;
}

.bb-archive [data-sentiment="positive"] .bb-a-tag--sentiment { border-color: #2F8F4E; }
.bb-archive [data-sentiment="negative"] .bb-a-tag--sentiment { border-color: var(--bb-a-rubric); }
.bb-archive [data-sentiment="mixed"] .bb-a-tag--sentiment { border-color: #B98A2E; }

/* Videos as a contact sheet of rows. */
.bb-archive .bb-a-videos { display: grid; gap: 0; }

.bb-archive .bb-a-video {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  color: var(--bb-a-ink);
  text-decoration: none;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--bb-a-rule);
  border-radius: 0;
}

.bb-archive .bb-a-video__thumb { display: block; width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; }
.bb-archive .bb-a-video__body { display: grid; gap: 4px; min-width: 0; }

.bb-archive .bb-a-video__title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.bb-archive .bb-a-video:hover .bb-a-video__title { text-decoration: underline; text-underline-offset: 3px; }
.bb-archive .bb-a-video__meta { font-family: var(--bb-font-mono); font-size: 0.6875rem; color: var(--bb-a-muted); }

/* Questions that open in place. */
.bb-archive .bb-a-qa { display: grid; gap: 0; border-top: 1px solid var(--bb-a-rule); }
.bb-archive .bb-a-qa__item { border-bottom: 1px solid var(--bb-a-rule); }

.bb-archive .bb-a-qa__question {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 14px;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  font-weight: 600;
  line-height: 1.4;
  color: var(--bb-a-ink);
  list-style: none;
  cursor: pointer;
}

.bb-archive .bb-a-qa__question::-webkit-details-marker { display: none; }

.bb-archive .bb-a-qa__question::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform var(--bb-dur-1);
}

.bb-archive .bb-a-qa__item[open] .bb-a-qa__question::after { transform: translateY(2px) rotate(-135deg); }
.bb-archive .bb-a-qa__question:focus-visible { outline: 2px solid var(--bb-a-ink); outline-offset: 2px; }
.bb-archive .bb-a-qa__votes { font-family: var(--bb-font-mono); font-size: 0.6875rem; font-weight: 500; color: var(--bb-a-muted); }
.bb-archive .bb-a-qa__answer { display: block; padding: 0 0 16px; background: none; border: 0; }
.bb-archive .bb-a-qa__answer > p:first-child { max-width: 48rem; margin: 0 0 10px; font-size: 0.9375rem; line-height: 1.65; color: var(--bb-a-ink-2); }

/* Sets met in the same conversations, as prints. */
.bb-archive .bb-a-prints { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 clamp(20px, 2.5vw, 36px); }

.bb-archive .bb-a-print {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  color: var(--bb-a-ink);
  text-decoration: none;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--bb-a-rule);
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.bb-archive .bb-a-print__image { width: 76px; height: 64px; }
.bb-archive .bb-a-print__image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.bb-archive .bb-a-print__body { display: grid; gap: 3px; min-width: 0; }
.bb-archive .bb-a-print__title { font-family: var(--bb-font-serif); font-size: 1.0625rem; font-weight: 500; line-height: 1.2; }
.bb-archive .bb-a-print:hover .bb-a-print__title { text-decoration: underline; text-decoration-color: var(--bb-a-rubric); text-underline-offset: 4px; }
.bb-archive :is(.bb-a-print__meta, .bb-a-print__note) { font-family: var(--bb-font-mono); font-size: 0.6875rem; color: var(--bb-a-muted); }

.bb-archive .bb-a-loading,
.bb-archive .bb-a-empty { margin: 0; padding: 12px 0; font-family: var(--bb-font-mono); font-size: 0.75rem; color: var(--bb-a-muted); text-align: left; }
.bb-archive .bb-a-loading::after { content: "…"; }
.bb-archive .bb-a-more { margin: 14px 0 0; font-size: 0.875rem; font-weight: 500; }

.bb-archive .bb-a-note {
  max-width: 48rem;
  margin: 18px 0 0;
  padding: 10px 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--bb-a-ink-2);
  background: none;
  border: 0;
  border-top: 1px solid var(--bb-a-rule);
  border-radius: 0;
}

.bb-archive .bb-a-fineprint { margin: 14px 0 0; padding: 0; font-family: var(--bb-font-mono); font-size: 0.6875rem; line-height: 1.5; color: var(--bb-a-muted); text-align: left; background: none; border-radius: 0; }

@media (max-width: 767px) {
  .bb-archive :is(.bb-a-columns, .bb-a-quotes--tips) { grid-template-columns: 1fr; }
  .bb-archive .bb-a-band__head { grid-template-columns: 1fr; }
  .bb-archive .bb-a-band__note { text-align: left; }
}
/* The set page's back matter (docs/design/archive.md): instructions, the
   sets it comes in or contains, its inventory figures, the sets that share
   its pieces, and for programmable sets a manual's quick start. */

.bb-archive .bb-a-lower { padding: clamp(28px, 3.5vw, 48px) 0; }
.bb-archive .bb-a-lower .bb-a-note:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }

/* Instruction booklets as a numbered list, not one thumbnail per file. */
.bb-archive .bb-a-booklets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0 clamp(20px, 2.5vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bb-archive .bb-a-booklet {
  display: grid;
  grid-template-columns: 2.25em minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--bb-a-rule);
}

.bb-archive .bb-a-booklet__number { font-family: var(--bb-font-mono); font-size: 0.75rem; font-weight: 500; color: var(--bb-a-rubric); }
.bb-archive .bb-a-booklet__name { font-size: 0.875rem; line-height: 1.4; color: var(--bb-a-ink); overflow-wrap: anywhere; }
.bb-archive .bb-a-booklet__size { font-family: var(--bb-font-mono); font-size: 0.6875rem; color: var(--bb-a-muted); }
.bb-archive .bb-a-booklet__link { font-size: 0.8125rem; font-weight: 600; color: var(--bb-a-ink); text-decoration: underline; text-decoration-color: var(--bb-a-rubric); text-underline-offset: 3px; }

/* Inventory figures, value over label, on a ruled line. */
.bb-archive .bb-a-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 0 0 18px;
  border-top: 1.5px solid var(--bb-a-ink);
  border-bottom: 1px solid var(--bb-a-rule);
}

.bb-archive .bb-a-figures .stat-card {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 14px 16px 16px;
  color: var(--bb-a-ink);
  text-align: left;
  background: none;
  border-radius: 0;
  box-shadow: none;
}

.bb-archive .bb-a-figures .stat-card:first-child { padding-left: 0; }
.bb-archive .bb-a-figures .stat-card + .stat-card { border-left: 1px solid var(--bb-a-rule); }
.bb-archive .bb-a-figures__value { font-family: var(--bb-font-mono); font-size: clamp(1.375rem, 1rem + 1vw, 2rem); font-weight: 500; line-height: 1.1; }
.bb-archive .bb-a-figures__label { font-family: var(--bb-font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bb-a-muted); }

/* Sets that share pieces: the cards are prints already; the badge is a
   stamp. */
.bb-archive .shared-pieces-badge {
  position: absolute;
  top: 6px;
  left: 0;
  padding: 2px 7px;
  font-family: var(--bb-font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bb-a-rubric);
  background: rgba(243, 238, 227, 0.92);
  border: 1px solid currentColor;
  border-radius: 3px;
  box-shadow: none;
}

.bb-archive .shared-pieces-card .atrem-similar-set-image { position: relative; }
.bb-archive .shared-pieces-intro { margin-bottom: 18px; text-align: left; }

/* Programming resources. */
.bb-archive .bb-a-program__start { max-width: 48rem; margin: 0 0 clamp(28px, 3vw, 40px); }
.bb-archive .bb-a-program__subtitle { margin: 0 0 14px; font-family: var(--bb-font-serif); font-size: 1.375rem; font-weight: 500; color: var(--bb-a-ink); }

.bb-archive .bb-a-steps { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: bb-a-step; }

.bb-archive .bb-a-steps li {
  position: relative;
  padding: 10px 0 10px 3.25em;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--bb-a-ink-2);
  border-bottom: 1px solid var(--bb-a-rule);
  counter-increment: bb-a-step;
}

.bb-archive .bb-a-steps li::before {
  content: counter(bb-a-step, decimal-leading-zero);
  position: absolute;
  top: 10px;
  left: 0;
  font-family: var(--bb-font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--bb-a-rubric);
}

.bb-archive .bb-a-steps strong { color: var(--bb-a-ink); }

.bb-archive .bb-a-program__guides {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(20px, 2.5vw, 32px);
  margin: 0 0 clamp(28px, 3vw, 40px);
}

.bb-archive .bb-a-index-card { display: flex; flex-direction: column; gap: 8px; padding: 14px 0 0; border-top: 1.5px solid var(--bb-a-ink); }
.bb-archive .bb-a-index-card__kicker { margin: 0; font-family: var(--bb-font-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bb-a-rubric); }
.bb-archive .bb-a-index-card__title { margin: 0; font-family: var(--bb-font-serif); font-size: 1.375rem; font-weight: 500; color: var(--bb-a-ink); }
.bb-archive .bb-a-index-card__text { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--bb-a-ink-2); }

.bb-archive .bb-a-index-card__link {
  margin-top: auto;
  padding-top: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bb-a-ink);
  text-decoration: underline;
  text-decoration-color: var(--bb-a-rubric);
  text-underline-offset: 3px;
}

.bb-archive .bb-a-index-card__link::after { content: " \2192"; }

.bb-archive .bb-a-code { margin: 0 0 clamp(28px, 3vw, 40px); padding: 20px clamp(18px, 2.5vw, 28px); color: #E9E4D8; background: var(--bb-a-ink); border-radius: 6px; }
.bb-archive .bb-a-code__caption { margin: 0 0 12px; font-family: var(--bb-font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: #F2B63D; }
.bb-archive .bb-a-code pre { margin: 0; overflow-x: auto; font-family: var(--bb-font-mono); font-size: 0.875rem; line-height: 1.6; color: #E9E4D8; background: none; }
.bb-archive .bb-a-code code { color: inherit; background: none; }
.bb-archive .bb-a-code__note { margin: 14px 0 0; font-size: 0.875rem; line-height: 1.6; color: #C9C3B6; }
.bb-archive .bb-a-code__note a { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }

.bb-archive .bb-a-program__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(20px, 2.5vw, 32px);
  margin: 0 0 clamp(24px, 3vw, 36px);
  padding-top: 16px;
  border-top: 1px solid var(--bb-a-rule);
}

.bb-archive .bb-a-program__links-title { margin: 0 0 8px; font-family: var(--bb-font-mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bb-a-muted); }
.bb-archive .bb-a-linklist { margin: 0; padding: 0; list-style: none; }
.bb-archive .bb-a-linklist li { padding: 4px 0; font-size: 0.9375rem; }
.bb-archive .bb-a-linklist a { color: var(--bb-a-ink); text-decoration: underline; text-decoration-color: var(--bb-a-rule); text-underline-offset: 3px; }
.bb-archive .bb-a-linklist a:hover { text-decoration-color: var(--bb-a-rubric); }

.bb-archive .bb-a-program__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-top: 18px; border-top: 1.5px solid var(--bb-a-ink); }
.bb-archive .bb-a-program__cta-text { flex: 1 1 22rem; margin: 0; font-family: var(--bb-font-serif); font-size: 1.25rem; color: var(--bb-a-ink); }

.bb-archive .bb-a-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--bb-paper);
  text-decoration: none;
  background: var(--bb-a-ink);
  border: 1.5px solid var(--bb-a-ink);
  border-radius: var(--bb-radius-sm);
  transition: box-shadow var(--bb-dur-1) var(--bb-ease-out);
}

.bb-archive .bb-a-button:hover { box-shadow: 0 3px 0 0 var(--bb-signal); }
.bb-archive .bb-a-button--quiet { color: var(--bb-a-ink); background: none; }

@media (max-width: 767px) {
  .bb-archive .bb-a-booklet { grid-template-columns: 2.25em minmax(0, 1fr) auto; }
  .bb-archive .bb-a-booklet__size { display: none; }
  .bb-archive .bb-a-figures .stat-card { padding-left: 0; border-left: 0; }
  .bb-archive .bb-a-figures .stat-card + .stat-card { border-left: 0; border-top: 1px solid var(--bb-a-rule); }
}
/*
 * The Archive: the catalog's set, minifigure, part and inventory pages
 * (docs/design/archive.md). Linked only by those pages, through
 * DesignWorldHelper#design_world, and scoped under .bb-archive.





 */
