/* =====================================================================
   THE 1000 COLLECTION — retro.css · v1.1 (2026-10-25)
   ---------------------------------------------------------------------
   Single source of truth for design tokens and components.
   Documentation: design-system.html
   Class prefix: rc-      Theme: dark only (by design)
   Fonts are self-hosted (Fontsource packages), see design-system.html.
   Never hard-code a colour, font or size in a page: use these tokens.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. TOKENS
   --------------------------------------------------------------------- */
:root {
  /* 1.1 Palette (raw values — use semantic tokens below in components) */
  --rc-night-900: #05081A;   /* hard shadow, deepest ink            */
  --rc-night-800: #0A1230;   /* page background                     */
  --rc-night-700: #111C45;   /* surface, bands, panels              */
  --rc-night-600: #16244F;   /* media / photo placeholder           */
  --rc-night-500: #2A3D7A;   /* hairline borders (decorative only)  */
  --rc-night-400: #3A4C94;   /* illustration mid-tone               */
  --rc-night-300: #6375BE;   /* borders of form controls (3:1+)     */
  --rc-cream:     #EDE8D8;   /* primary text, speech bubbles        */
  --rc-mist:      #C9CEE4;   /* long-form body text                 */
  --rc-haze:      #AEB6D4;   /* secondary text, captions            */
  --rc-gold-300:  #F3CF7A;   /* gold hover                          */
  --rc-gold-500:  #E2B24C;   /* primary accent: CTA, key numbers    */
  --rc-gold-700:  #9C7424;   /* gold shade in pixel art             */
  --rc-violet-500:#9488F0;   /* computer lane, guide BIT, secondary */
  --rc-violet-700:#5A4BC8;   /* violet text on cream                */
  --rc-cyan-500:  #6FC9D3;   /* console lane, screens               */

  /* 1.2 Semantic colours */
  --rc-bg:              var(--rc-night-800);
  --rc-surface:         var(--rc-night-700);
  --rc-media:           var(--rc-night-600);
  --rc-border:          var(--rc-night-500);
  --rc-border-control:  var(--rc-night-300);
  --rc-shadow-color:    var(--rc-night-900);
  --rc-text:            var(--rc-cream);
  --rc-text-body:       var(--rc-mist);
  --rc-text-muted:      var(--rc-haze);
  --rc-accent:          var(--rc-gold-500);
  --rc-accent-hover:    var(--rc-gold-300);
  --rc-on-accent:       var(--rc-night-800);
  --rc-lane-console:    var(--rc-cyan-500);
  --rc-lane-computer:   var(--rc-violet-500);
  --rc-guide:           var(--rc-violet-500);
  --rc-bubble-bg:       var(--rc-cream);
  --rc-bubble-text:     var(--rc-night-800);
  --rc-bubble-label:    var(--rc-violet-700);

  /* 1.3 Typography */
  --rc-font-display: 'Bitcount Prop Single', 'IBM Plex Sans', system-ui, sans-serif;
  --rc-font-label:   'Silkscreen', 'IBM Plex Mono', ui-monospace, monospace;
  --rc-font-body:    'IBM Plex Sans', system-ui, sans-serif;
  --rc-font-mono:    'IBM Plex Mono', ui-monospace, monospace;

  --rc-fs-hero:     clamp(36px, 4.4vw, 58px);
  --rc-fs-h1:       clamp(36px, 5vw, 62px);
  --rc-fs-h2:       clamp(30px, 3.6vw, 46px);
  --rc-fs-h3:       26px;
  --rc-fs-h4:       22px;
  --rc-fs-stat:     40px;
  --rc-fs-lead:     19px;
  --rc-fs-body:     17px;
  --rc-fs-small:    15px;
  --rc-fs-caption:  13px;
  --rc-fs-label:    13px;
  --rc-fs-label-sm: 11px;

  --rc-lh-tight:   1.05;
  --rc-lh-heading: 1.12;
  --rc-lh-snug:    1.45;
  --rc-lh-body:    1.6;

  /* 1.4 Space (4 px base) */
  --rc-space-1: 4px;
  --rc-space-2: 8px;
  --rc-space-3: 12px;
  --rc-space-4: 16px;
  --rc-space-5: 24px;
  --rc-space-6: 32px;
  --rc-space-7: 48px;
  --rc-space-8: 64px;
  --rc-space-9: 80px;
  --rc-gutter:    clamp(16px, 4vw, 40px);
  --rc-container: 1200px;
  --rc-measure:   720px;   /* max width of running text */

  /* 1.5 Lines, depth, interaction */
  --rc-line:        2px;
  --rc-line-strong: 3px;
  --rc-radius:      0;     /* never round a corner */
  --rc-shadow-sm: 4px 4px 0 var(--rc-shadow-color);
  --rc-shadow-md: 6px 6px 0 var(--rc-shadow-color);
  --rc-shadow-lg: 8px 8px 0 var(--rc-shadow-color);
  --rc-tap:       44px;    /* minimum touch target */
  --rc-dur:       90ms;
  --rc-ease:      steps(2, end); /* motion moves in pixel steps */
}


/* ---------------------------------------------------------------------
   2. BASE
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--rc-bg);
  color: var(--rc-text);
  font-family: var(--rc-font-body);
  font-size: var(--rc-fs-body);
  line-height: var(--rc-lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word; /* long URLs and model numbers never widen the page */
}
img, svg { display: block; max-width: 100%; }
/* Boxes that scroll sideways (timeline, tables, gallery) keep the night palette */
:where(.rc-timeline, .rc-table, .rc-gallery__track) { scrollbar-width: thin; scrollbar-color: var(--rc-border-control) var(--rc-surface); }
[hidden] { display: none !important; }
a { color: var(--rc-accent); text-underline-offset: 3px; }
a:hover { color: var(--rc-accent-hover); }
:focus-visible { outline: 3px solid var(--rc-accent); outline-offset: 3px; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
.rc-pixel { shape-rendering: crispEdges; image-rendering: pixelated; }
.rc-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[dir="rtl"] .rc-icon-dir { transform: scaleX(-1); }
.rc-icon-back { transform: scaleX(-1); }
[dir="rtl"] .rc-icon-back { transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------------
   3. LAYOUT
   --------------------------------------------------------------------- */
.rc-container { max-width: var(--rc-container); margin-inline: auto; padding-inline: var(--rc-gutter); }
.rc-section { padding-block: var(--rc-space-9); }
.rc-section--tight { padding-block: var(--rc-space-7); }
.rc-section--page { padding-block: var(--rc-space-6) var(--rc-space-9); } /* content and object pages: below the header */
.rc-section--stats { padding-block: var(--rc-space-5) var(--rc-space-8); } /* key figures right below the hero */
.rc-centered { text-align: center; }
.rc-band { background: var(--rc-surface); border-block: var(--rc-line) solid var(--rc-border); }
.rc-band--arcade { background: var(--rc-night-900); } /* the game: set apart from the museum content, like a dark screen */
.rc-stack { display: flex; flex-direction: column; gap: var(--rc-gap, var(--rc-space-4)); }
.rc-split { display: flex; flex-wrap: wrap; gap: var(--rc-space-7); align-items: center; }
.rc-split > * { flex: 1 1 420px; min-width: 0; }
.rc-split--top { align-items: flex-start; }
.rc-split > .rc-split__narrow { flex: 0 1 320px; }
.rc-split > .rc-split__wide { flex: 999 1 520px; }
.rc-split > .rc-split__side { flex: 1 1 340px; } /* data panels beside the story */
.rc-row { display: flex; flex-wrap: wrap; gap: var(--rc-space-5); }
.rc-row > * { flex: 1 1 300px; min-width: 0; }
.rc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--rc-space-5); }
.rc-actions { display: flex; flex-wrap: wrap; gap: var(--rc-space-4); align-items: center; }
.rc-measure { max-width: var(--rc-measure); }
.rc-push { margin-top: auto; }

/* ---------------------------------------------------------------------
   4. TYPOGRAPHY
   --------------------------------------------------------------------- */
.rc-eyebrow {
  font-family: var(--rc-font-label); font-size: var(--rc-fs-label);
  color: var(--rc-accent); letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.3;
}
.rc-hero-title, .rc-h1, .rc-h2, .rc-h3, .rc-h4, .rc-stat__value, .rc-display {
  font-family: var(--rc-font-display);
}
/* Pixel faces: keep ligatures off so letter pairs never merge */
.rc-hero-title, .rc-h1, .rc-h2, .rc-h3, .rc-h4, .rc-display, .rc-stat__value, .rc-object__title,
.rc-chapter__title, .rc-compare__name, .rc-tree__name, .rc-brand__name, .rc-card__num,
.rc-timeline__year, .rc-eyebrow, .rc-label, .rc-btn, .rc-tag, .rc-badge, .rc-nav a {
  font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0;
}
.rc-hero-title { font-size: var(--rc-fs-hero); font-weight: 500; line-height: var(--rc-lh-tight); }
.rc-h1 { font-size: var(--rc-fs-h1); font-weight: 500; line-height: var(--rc-lh-tight); overflow-wrap: break-word; }
.rc-h2 { font-size: var(--rc-fs-h2); font-weight: 400; line-height: var(--rc-lh-heading); }
.rc-h3 { font-size: var(--rc-fs-h3); font-weight: 400; line-height: 1.2; }
.rc-h4 { font-size: var(--rc-fs-h4); font-weight: 400; line-height: 1.25; }
.rc-hl { color: var(--rc-accent); }
.rc-lead { font-size: var(--rc-fs-lead); color: var(--rc-text-muted); }
.rc-body { color: var(--rc-text-body); }
.rc-muted { color: var(--rc-text-muted); }
.rc-small { font-size: var(--rc-fs-small); }
.rc-meta { font-family: var(--rc-font-mono); font-size: var(--rc-fs-caption); color: var(--rc-accent); }
.rc-caption { font-family: var(--rc-font-mono); font-size: 12px; color: var(--rc-text-muted); }
.rc-label { font-family: var(--rc-font-label); font-size: var(--rc-fs-label); }
.rc-section-head { display: flex; flex-direction: column; gap: var(--rc-space-3); max-width: var(--rc-measure); }
.rc-section-head--sub { padding-top: var(--rc-space-5); } /* sub-heading inside a section */
.rc-section-head--split {
  max-width: none; flex-direction: row; flex-wrap: wrap;
  justify-content: space-between; align-items: flex-end; gap: var(--rc-space-4);
}
[lang="ar"] .rc-eyebrow, [lang="ar"] .rc-tag, [lang="ar"] .rc-btn { letter-spacing: 0; text-transform: none; }

/* Bullet list with a pixel prompt */
.rc-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rc-list > li { position: relative; padding-inline-start: 24px; }
.rc-list > li::before { content: '>'; position: absolute; inset-inline-start: 0; font-family: var(--rc-font-label); color: var(--rc-accent); }
[dir="rtl"] .rc-list > li::before { content: '<'; }

/* ---------------------------------------------------------------------
   5. BUTTONS & LINKS
   --------------------------------------------------------------------- */
.rc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px;
  font-family: var(--rc-font-label); font-size: 14px; line-height: 1.2; text-decoration: none;
  border: var(--rc-line) solid transparent; border-radius: var(--rc-radius);
  background: transparent; color: var(--rc-text); cursor: pointer;
  transition: transform var(--rc-dur) var(--rc-ease), box-shadow var(--rc-dur) var(--rc-ease), background-color var(--rc-dur) var(--rc-ease);
}
.rc-btn svg { width: 14px; height: 14px; flex: none; }
.rc-btn--lg { min-height: 52px; padding: 0 22px; font-size: 15px; }
.rc-btn--sm { min-height: var(--rc-tap); padding: 0 16px; font-size: 13px; }

.rc-btn--primary { background: var(--rc-accent); color: var(--rc-on-accent); box-shadow: var(--rc-shadow-sm); }
.rc-btn--guide   { background: var(--rc-guide);  color: var(--rc-on-accent); box-shadow: var(--rc-shadow-sm); }
.rc-btn--primary:hover { background: var(--rc-accent-hover); color: var(--rc-on-accent); }
.rc-btn--guide:hover   { color: var(--rc-on-accent); }
.rc-btn--primary:hover, .rc-btn--guide:hover { transform: translate(-2px, -2px); box-shadow: var(--rc-shadow-md); }
.rc-btn--primary:active, .rc-btn--guide:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--rc-shadow-color); }

.rc-btn--secondary { border-color: var(--rc-guide); color: var(--rc-text); }
.rc-btn--secondary:hover { background: var(--rc-surface); color: var(--rc-text); }
.rc-btn--outline { border-color: var(--rc-accent); color: var(--rc-accent); }
.rc-btn--outline:hover { background: var(--rc-surface); color: var(--rc-accent-hover); border-color: var(--rc-accent-hover); }

.rc-link-label {
  display: inline-flex; align-items: center; gap: var(--rc-space-2); min-height: var(--rc-tap);
  font-family: var(--rc-font-label); font-size: var(--rc-fs-label); color: var(--rc-accent);
}

/* ---------------------------------------------------------------------
   6. TAGS & BADGES
   --------------------------------------------------------------------- */
.rc-tags { display: flex; flex-wrap: wrap; gap: var(--rc-space-2); }
.rc-tag {
  display: inline-flex; align-items: center;
  font-family: var(--rc-font-label); font-size: 12px; line-height: 1.4;
  background: var(--rc-bg); color: var(--rc-text);
  border: var(--rc-line) solid var(--rc-border); padding: 4px 10px;
}
.rc-tag--console  { border-color: var(--rc-lane-console);  color: var(--rc-lane-console); }
.rc-tag--computer { border-color: var(--rc-lane-computer); color: var(--rc-lane-computer); }
.rc-tag--year     { color: var(--rc-accent); }
a.rc-tag { text-decoration: none; min-height: var(--rc-tap); }
a.rc-tag:hover { border-color: var(--rc-accent); color: var(--rc-text); }
.rc-tags[role="list"] { list-style: none; padding: 0; }
.rc-badge {
  display: inline-block; font-family: var(--rc-font-label); font-size: var(--rc-fs-label-sm);
  background: var(--rc-accent); color: var(--rc-on-accent); padding: 3px 8px; line-height: 1.4;
}
.rc-badge--guide { background: var(--rc-guide); }

/* ---------------------------------------------------------------------
   7. HEADER, NAV, LANGUAGE, FOOTER, BREADCRUMB, PAGER
   --------------------------------------------------------------------- */
.rc-header { background: var(--rc-bg); border-bottom: var(--rc-line) solid var(--rc-border); }
.rc-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--rc-space-4); padding-block: 14px; } /* 16 px between brand, nav and tools: one row from 1280 px */
.rc-brand { display: flex; align-items: center; gap: var(--rc-space-3); color: var(--rc-text); text-decoration: none; min-height: var(--rc-tap); }
.rc-brand:hover { color: var(--rc-text); }
.rc-brand svg { width: 32px; height: 32px; }
.rc-brand__name { font-family: var(--rc-font-display); font-weight: 500; font-size: 22px; letter-spacing: 0.04em; }
.rc-nav { display: flex; flex-wrap: wrap; gap: var(--rc-space-1) var(--rc-space-4); flex: 1 1 auto; } /* natural width, so brand, nav and tools share one row */
.rc-nav a {
  display: inline-flex; align-items: center; min-height: var(--rc-tap);
  font-family: var(--rc-font-label); font-size: var(--rc-fs-label); color: var(--rc-text); text-decoration: none;
}
.rc-nav a:hover, .rc-nav a[aria-current="page"] { color: var(--rc-accent); }
.rc-header__tools { display: flex; align-items: center; gap: var(--rc-space-3); }

/* Mobile menu: below 640 px nav, language and CTA fold into a <details> (works without JavaScript) */
.rc-header { position: relative; }
.rc-menu { display: none; margin-inline-start: auto; }
.rc-menu > summary {
  display: flex; align-items: center; justify-content: center; width: var(--rc-tap); height: var(--rc-tap);
  list-style: none; cursor: pointer; color: var(--rc-text); border: var(--rc-line) solid var(--rc-border-control);
}
.rc-menu > summary::-webkit-details-marker { display: none; }
.rc-menu > summary svg { width: 21px; height: 21px; } /* #rc-menu, 7×7 at 3× */
.rc-menu[open] > summary { color: var(--rc-accent); border-color: var(--rc-accent); }
.rc-menu__panel {
  position: absolute; inset-inline: 0; top: 100%; z-index: 10;
  display: flex; flex-direction: column; gap: var(--rc-space-4);
  padding: var(--rc-space-4) var(--rc-gutter) var(--rc-space-5);
  background: var(--rc-surface); border-bottom: var(--rc-line) solid var(--rc-border); box-shadow: var(--rc-shadow-md);
}
.rc-menu__panel .rc-nav { flex-direction: column; flex: none; }
.rc-menu__panel .rc-lang { align-self: flex-start; }
@media (max-width: 640px) {
  .rc-header__inner { flex-wrap: nowrap; column-gap: var(--rc-space-4); }
  .rc-brand svg { flex: none; }
  .rc-brand__name { white-space: nowrap; font-size: clamp(14px, 4.2vw, 22px); } /* brand, magnifier and menu fit down to 360 px */
  .rc-header__inner > .rc-nav, .rc-header__inner > .rc-header__tools { display: none; }
  .rc-menu { display: block; }
}

.rc-lang { display: flex; border: var(--rc-line) solid var(--rc-border); }
.rc-lang button, .rc-lang a {
  display: inline-flex; align-items: center;
  min-height: var(--rc-tap); padding: 0 12px; border: 0; cursor: pointer;
  background: transparent; color: var(--rc-text-muted); text-decoration: none;
  font-family: var(--rc-font-label); font-size: 12px;
}
.rc-lang a:hover { color: var(--rc-text); }
.rc-lang button[aria-pressed="true"], .rc-lang a[aria-current="true"] { background: var(--rc-border); color: var(--rc-text); }

.rc-breadcrumb { display: flex; flex-wrap: wrap; gap: var(--rc-space-2); font-family: var(--rc-font-mono); font-size: var(--rc-fs-caption); color: var(--rc-text-muted); }
.rc-breadcrumb [aria-current="page"] { color: var(--rc-text); }

.rc-pager {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--rc-space-4);
  border-block: var(--rc-line) solid var(--rc-border); padding-block: var(--rc-space-3);
}
.rc-pager a { display: inline-flex; align-items: center; gap: 8px; min-height: var(--rc-tap); font-family: var(--rc-font-label); font-size: var(--rc-fs-label); text-decoration: none; }

.rc-footer { border-top: var(--rc-line) solid var(--rc-border); }
.rc-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--rc-space-3); padding-block: 28px; font-size: 14px; color: var(--rc-text-muted); }
.rc-footer__brand { font-family: var(--rc-font-display); color: var(--rc-text); }

/* ---------------------------------------------------------------------
   8. SURFACES: FRAME, MEDIA, PANEL, CARD
   --------------------------------------------------------------------- */
.rc-frame { background: var(--rc-surface); border: var(--rc-line) solid var(--rc-border); box-shadow: var(--rc-shadow-lg); padding: var(--rc-space-3); }
a.rc-frame { display: block; transition: transform var(--rc-dur) var(--rc-ease), border-color var(--rc-dur) var(--rc-ease); }
a.rc-frame:hover { border-color: var(--rc-accent); transform: translate(-2px, -2px); }

.rc-media {
  aspect-ratio: 4 / 3; background: var(--rc-media); position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--rc-space-3);
  border: var(--rc-line) solid var(--rc-border);
}
.rc-media img { width: 100%; height: 100%; object-fit: cover; }
.rc-media--square { aspect-ratio: 1 / 1; }
.rc-media--raised { box-shadow: var(--rc-shadow-lg); }
.rc-media--active { border-color: var(--rc-accent); }
.rc-media__placeholder { font-family: var(--rc-font-mono); font-size: 12px; color: var(--rc-text-muted); text-align: center; padding: 0 8px; }
.rc-media__badge { position: absolute; top: var(--rc-space-3); inset-inline-start: var(--rc-space-3); }
.rc-media--video { aspect-ratio: 16 / 9; }
.rc-media--video iframe { width: 100%; height: 100%; border: 0; }
/* Two-click video: nothing loads from the video host until this button is pressed */
.rc-video__play {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--rc-space-4);
  background: transparent; border: 0; color: var(--rc-text); cursor: pointer;
}
.rc-video__play svg { width: 42px; height: 42px; } /* #rc-play, 7×7 at 6× */
.rc-video__play:hover svg { color: var(--rc-accent); }
.rc-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--rc-space-3); }

.rc-panel { background: var(--rc-surface); border: var(--rc-line) solid var(--rc-border); }
.rc-panel--raised { box-shadow: var(--rc-shadow-md); }
.rc-panel--guide  { border-color: var(--rc-guide); }
.rc-panel--accent { border-color: var(--rc-accent); }
.rc-panel__title {
  font-family: var(--rc-font-label); font-size: var(--rc-fs-label); color: var(--rc-accent);
  padding: 14px 20px; border-bottom: var(--rc-line) solid var(--rc-border);
}
.rc-panel--guide .rc-panel__title { color: var(--rc-guide); }
.rc-panel__body { padding: 20px; }

/* Card: sits on the page; inside a band it sinks to the page colour */
.rc-card {
  background: var(--rc-surface); border: var(--rc-line) solid var(--rc-border); box-shadow: var(--rc-shadow-md);
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
}
.rc-band .rc-card, .rc-band .rc-compare__row, .rc-band .rc-callout, .rc-band .rc-steps { background: var(--rc-bg); }
.rc-card--featured { border-color: var(--rc-accent); }
/* Card as a link: lifts like an object tile */
a.rc-card { color: var(--rc-text); text-decoration: none; transition: transform var(--rc-dur) var(--rc-ease), border-color var(--rc-dur) var(--rc-ease); }
a.rc-card:hover { color: var(--rc-text); border-color: var(--rc-accent); transform: translate(-2px, -2px); }
.rc-card__top { display: flex; justify-content: space-between; align-items: center; }
.rc-card__top svg { width: 48px; height: 48px; }
.rc-card__num { font-family: var(--rc-font-display); font-weight: 500; font-size: 30px; color: var(--rc-border); }
.rc-card__text { color: var(--rc-text-muted); font-size: 16px; }
.rc-card__foot { margin-top: auto; font-family: var(--rc-font-label); font-size: 12px; color: var(--rc-lane-console); }
.rc-card__foot--accent { color: var(--rc-accent); }

/* ---------------------------------------------------------------------
   9. COLLECTION COMPONENTS
   --------------------------------------------------------------------- */
/* 9.1 Stat bar — grid lines come from the gap over the border colour */
.rc-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--rc-line); background: var(--rc-border); border: var(--rc-line) solid var(--rc-border);
}
.rc-stat { background: var(--rc-surface); padding: 22px 24px; }
.rc-stat__value { font-weight: 500; font-size: var(--rc-fs-stat); line-height: 1; color: var(--rc-accent); }
.rc-stat__label { color: var(--rc-text-muted); font-size: var(--rc-fs-small); padding-top: var(--rc-space-2); }

/* 9.2 Object card (gallery tile) */
.rc-object {
  background: var(--rc-surface); border: var(--rc-line) solid var(--rc-border);
  display: flex; flex-direction: column; color: var(--rc-text); text-decoration: none;
  transition: transform var(--rc-dur) var(--rc-ease), box-shadow var(--rc-dur) var(--rc-ease);
}
a.rc-object:hover { color: var(--rc-text); transform: translate(-2px, -2px); box-shadow: var(--rc-shadow-md); }
.rc-object--rare { border-color: var(--rc-accent); }
.rc-object .rc-media { border: 0; border-bottom: var(--rc-line) solid var(--rc-border); }
.rc-object .rc-media img { object-fit: contain; padding: var(--rc-space-3); } /* device photos: never crop */
.rc-object__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.rc-object__title { font-family: var(--rc-font-display); font-weight: 400; font-size: var(--rc-fs-h4); line-height: 1.2; }
.rc-object__title a { color: inherit; }
.rc-object__text { color: var(--rc-text-muted); font-size: var(--rc-fs-small); }
.rc-object__more { font-family: var(--rc-font-label); font-size: 12px; color: var(--rc-accent); padding-top: 6px; margin-top: auto; }

/* 9.3 Feature panel ("Device of the day") */
.rc-feature { display: flex; flex-wrap: wrap; background: var(--rc-surface); border: var(--rc-line) solid var(--rc-guide); box-shadow: var(--rc-shadow-lg); }
.rc-feature__media {
  flex: 1 1 380px; min-height: 300px; background: var(--rc-media);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--rc-space-3);
  border-inline-end: var(--rc-line) solid var(--rc-border); padding: var(--rc-space-5);
}
.rc-feature__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.rc-feature__body { flex: 1 1 420px; min-width: 0; padding: var(--rc-space-6); display: flex; flex-direction: column; gap: 14px; }
.rc-feature__kicker { display: flex; align-items: center; gap: var(--rc-space-3); font-family: var(--rc-font-label); font-size: var(--rc-fs-label); color: var(--rc-guide); }
.rc-feature__kicker svg { width: 40px; height: 40px; flex: none; }

/* 9.4 Compare rows (computer → console) */
.rc-compare { display: flex; flex-direction: column; gap: 14px; }
.rc-compare__row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  background: var(--rc-surface); border: var(--rc-line) solid var(--rc-border); padding: 16px 18px;
}
.rc-compare__item { flex: 1 1 140px; }
.rc-compare__row > svg { width: 21px; height: 21px; color: var(--rc-accent); flex: none; }
.rc-kind { font-family: var(--rc-font-mono); font-size: 12px; color: var(--rc-text-muted); }
.rc-kind--computer { color: var(--rc-lane-computer); }
.rc-kind--console  { color: var(--rc-lane-console); }
.rc-kind--accent   { color: var(--rc-accent); }
.rc-compare__name { font-family: var(--rc-font-display); font-size: 20px; }

/* 9.5 Two-lane timeline */
.rc-timeline { overflow-x: auto; border: var(--rc-line) solid var(--rc-border); background: var(--rc-surface); }
.rc-timeline__grid {
  --rc-cols: 9;
  min-width: 1100px; padding: var(--rc-space-5);
  display: grid; grid-template-columns: 130px repeat(var(--rc-cols), minmax(0, 1fr));
}
.rc-timeline__year { font-family: var(--rc-font-display); font-weight: 500; font-size: 22px; color: var(--rc-accent); padding: 0 8px 12px; }
.rc-timeline__lane { font-family: var(--rc-font-label); font-size: 12px; padding: 14px 8px; border-top: var(--rc-line) solid var(--rc-border); }
.rc-timeline__lane--console  { color: var(--rc-lane-console); }
.rc-timeline__lane--computer { color: var(--rc-lane-computer); }
.rc-timeline__cell { padding: 14px 8px; border-top: var(--rc-line) solid var(--rc-border); font-size: 14px; line-height: 1.4; color: var(--rc-text); hyphens: auto; overflow-wrap: break-word; }
.rc-timeline__cell--console  { border-top-color: var(--rc-lane-console); }
.rc-timeline__cell--computer { border-top-color: var(--rc-lane-computer); }
a.rc-timeline__cell, .rc-timeline__cell--current { border-top-color: var(--rc-accent); color: var(--rc-accent); }

/* 9.6 Data list (technical data, collection record) */
.rc-dl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px 16px; padding: 14px 20px 18px; font-size: var(--rc-fs-small); line-height: var(--rc-lh-snug); }
.rc-dl dt { color: var(--rc-text-muted); }
.rc-dl__strong { font-family: var(--rc-font-display); font-size: 20px; color: var(--rc-accent); }
.rc-dl__mono { font-family: var(--rc-font-mono); }

/* 9.7 Story chapter & callout */
.rc-chapter { display: flex; flex-direction: column; gap: var(--rc-space-3); }
.rc-chapter__label { font-family: var(--rc-font-label); font-size: var(--rc-fs-label); color: var(--rc-guide); }
.rc-chapter__title { font-family: var(--rc-font-display); font-weight: 400; font-size: 32px; line-height: 1.15; }
.rc-chapter__body { color: var(--rc-text-body); }
.rc-callout { background: var(--rc-surface); border: var(--rc-line) solid var(--rc-accent); padding: var(--rc-space-5); }
.rc-callout .rc-chapter__label { color: var(--rc-accent); }

/* 9.8 Numbered steps */
.rc-steps { background: var(--rc-surface); border: var(--rc-line) solid var(--rc-border); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.rc-steps ol { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: rc-step; }
.rc-steps li { position: relative; padding-inline-start: 28px; font-size: var(--rc-fs-small); counter-increment: rc-step; }
.rc-steps li::before { content: counter(rc-step); position: absolute; inset-inline-start: 0; top: -2px; font-family: var(--rc-font-display); font-size: 22px; line-height: 1.1; color: var(--rc-lane-console); }

/* 9.9 Family tree */
.rc-tree { display: flex; flex-wrap: wrap; align-items: stretch; gap: 14px; list-style: none; padding: 0; }
.rc-tree__node { flex: 1 1 200px; background: var(--rc-surface); border: var(--rc-line) solid var(--rc-border); padding: 18px; display: flex; flex-direction: column; gap: 2px; color: var(--rc-text); text-decoration: none; }
a.rc-tree__node:hover { color: var(--rc-text); border-color: var(--rc-accent); }
.rc-tree__node--current { flex-basis: 220px; background: var(--rc-bg); border: var(--rc-line-strong) solid var(--rc-accent); box-shadow: var(--rc-shadow-md); }
.rc-tree__name { font-family: var(--rc-font-display); font-size: 20px; }
.rc-tree__node--current .rc-tree__name { font-size: 22px; font-weight: 400; }
.rc-tree__note { font-size: 14px; color: var(--rc-text-muted); }
/* Not in the collection: outline only, muted name; the label says it in words ("… · not in the collection") */
.rc-tree__node--absent { background: transparent; }
.rc-tree__node--absent .rc-tree__name { color: var(--rc-text-muted); }
/* Chain: predecessor → this object → successor, pixel arrows between the nodes.
   Markup: ol.rc-tree.rc-tree--chain > li.rc-tree__item > (a|div).rc-tree__node, li.rc-tree__arrow > svg */
.rc-tree--chain { flex-wrap: nowrap; }
.rc-tree__item { display: flex; flex: 1 1 0; min-width: 0; }
.rc-tree__item > .rc-tree__node { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; }
.rc-tree__arrow { flex: none; display: flex; align-items: center; justify-content: center; color: var(--rc-text-muted); }
.rc-tree__arrow svg { width: 22px; height: 18px; } /* #rc-arrow-tree, 11×9 at 2× */
@media (max-width: 640px) {
  .rc-tree--chain { flex-direction: column; }
  .rc-tree--chain .rc-tree__item { flex: none; }
  .rc-tree__arrow svg, [dir="rtl"] .rc-tree__arrow svg { transform: rotate(90deg); }
}

/* 9.10 CTA banner */
.rc-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--rc-surface); border: var(--rc-line) solid var(--rc-accent); box-shadow: var(--rc-shadow-lg); padding: 28px;
}
.rc-cta__text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 6px; }

/* 9.11 Portrait */
.rc-portrait { background: var(--rc-media); border: 4px solid var(--rc-accent); box-shadow: var(--rc-shadow-lg); aspect-ratio: 1 / 1; overflow: hidden; }
.rc-portrait svg, .rc-portrait img { width: 100%; height: 100%; object-fit: cover; }

/* 9.12 Pixel wall — one square per object, one row per inventory area.
   Every field of squares has the same width, so area = number of objects.
   Markup: figure.rc-wall > ul.rc-wall__legend + ul.rc-wall__rows
           > li.rc-wall__row(--console|--computer)(--accessory) > a.rc-wall__label + span.rc-wall__units > i (one per object) */
.rc-wall {
  --rc-wall-unit: 8px; --rc-wall-gap: 2px;
  display: flex; flex-direction: column; gap: var(--rc-space-4);
  background: var(--rc-surface); border: var(--rc-line) solid var(--rc-border); padding: var(--rc-space-5);
}
.rc-wall__legend { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--rc-space-2) var(--rc-space-5); font-size: var(--rc-fs-small); color: var(--rc-text-muted); }
.rc-wall__legend li { display: inline-flex; align-items: center; gap: var(--rc-space-2); }
.rc-wall__rows { list-style: none; padding: 0; display: flex; flex-direction: column; }
.rc-wall__row, .rc-wall__key { --rc-wall-color: var(--rc-text-muted); }
.rc-wall__row--console, .rc-wall__key--console   { --rc-wall-color: var(--rc-lane-console); }
.rc-wall__row--computer, .rc-wall__key--computer { --rc-wall-color: var(--rc-lane-computer); }
.rc-wall__row {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--rc-space-2) var(--rc-space-5);
  padding-block: var(--rc-space-3); border-top: var(--rc-line) solid var(--rc-border);
}
.rc-wall__row:first-child { border-top: 0; padding-top: 0; }
.rc-wall__row:last-child { padding-bottom: 0; }
.rc-wall__label {
  flex: 0 0 220px; min-height: var(--rc-tap);
  display: flex; flex-direction: column; gap: var(--rc-space-1); color: var(--rc-text); text-decoration: none;
}
.rc-wall__count { font-family: var(--rc-font-display); font-size: var(--rc-fs-h4); line-height: 1; color: var(--rc-wall-color); }
.rc-wall__name { font-size: var(--rc-fs-small); line-height: var(--rc-lh-snug); color: var(--rc-text-muted); }
a.rc-wall__label .rc-wall__name { text-decoration: underline; text-decoration-color: var(--rc-border-control); text-underline-offset: 3px; }
a.rc-wall__label:hover .rc-wall__name { color: var(--rc-accent-hover); text-decoration-color: currentColor; }
.rc-wall__units { flex: 1 1 320px; min-width: 0; display: flex; flex-wrap: wrap; align-content: flex-start; gap: var(--rc-wall-gap); padding-top: var(--rc-space-1); }
.rc-wall__units > i, .rc-wall__key { flex: none; width: var(--rc-wall-unit); height: var(--rc-wall-unit); background: var(--rc-wall-color); }
/* Accessories: outline in the colour of their lane */
.rc-wall__row--accessory .rc-wall__units > i, .rc-wall__key--accessory { background: none; border: var(--rc-line) solid var(--rc-wall-color); }

/* 9.13 Generation bar — stationary consoles, one field of equal width per generation (span, not quantity).
   Nine columns on wide screens, three rows of three below.
   Markup: figure.rc-gens > ol.rc-gens__list > li.rc-gens__item
           > a.rc-gens__head(> .rc-gens__label + .rc-gens__number) + p.rc-gens__years + p.rc-gens__count(> .rc-gens__value) + ul.rc-gens__models */
.rc-gens {
  display: flex; flex-direction: column; gap: var(--rc-space-4);
  background: var(--rc-surface); border: var(--rc-line) solid var(--rc-border); padding: var(--rc-space-5);
}
.rc-gens__list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: var(--rc-space-5) var(--rc-space-1); }
.rc-gens__item {
  min-width: 0; display: flex; flex-direction: column; gap: var(--rc-space-2);
  padding: var(--rc-space-3) var(--rc-space-2) 0; border-top: var(--rc-space-1) solid var(--rc-lane-console);
}
.rc-gens__head { min-height: var(--rc-tap); display: flex; flex-direction: column; gap: var(--rc-space-1); color: var(--rc-text); text-decoration: none; }
.rc-gens__label { font-family: var(--rc-font-label); font-size: var(--rc-fs-label-sm); color: var(--rc-text-muted); text-decoration: underline; text-decoration-color: var(--rc-border-control); text-underline-offset: 3px; }
a.rc-gens__head:hover .rc-gens__label { color: var(--rc-accent-hover); text-decoration-color: currentColor; }
.rc-gens__number { font-family: var(--rc-font-display); font-size: var(--rc-fs-h3); line-height: 1; }
.rc-gens__years { font-family: var(--rc-font-mono); font-size: var(--rc-fs-caption); color: var(--rc-text-muted); }
.rc-gens__count { display: flex; flex-direction: column; gap: var(--rc-space-1); font-size: var(--rc-fs-small); color: var(--rc-text-muted); }
.rc-gens__value { font-family: var(--rc-font-display); font-size: var(--rc-fs-h4); line-height: 1; color: var(--rc-lane-console); }
.rc-gens__models { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--rc-space-1); font-size: var(--rc-fs-small); line-height: var(--rc-lh-snug); hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 1100px) {
  .rc-gens__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .rc-gens { padding: var(--rc-space-4); }
  .rc-gens__item { padding-inline: var(--rc-space-1); }
}

/* ---------------------------------------------------------------------
   10. GUIDE "BIT" & SPEECH BUBBLE
   --------------------------------------------------------------------- */
.rc-guide { display: flex; gap: 14px; align-items: flex-start; }
.rc-guide > svg { width: 48px; height: 48px; flex: none; } /* #rc-bit, 16×16 at 3× */
.rc-guide--spaced { padding-top: var(--rc-space-3); }
/* Stacked: bubble above BIT, its tail points down at him */
.rc-guide--stack { flex-direction: column; gap: var(--rc-space-4); }
.rc-guide--stack > svg { margin-inline-start: var(--rc-space-2); }
/* Tail: two stepped pixel blocks below the bubble, wide then narrow (no rounding, no rotation) */
.rc-bubble--tail { position: relative; }
.rc-bubble--tail::before, .rc-bubble--tail::after {
  content: ''; position: absolute; background: var(--rc-bubble-bg);
  border: var(--rc-line) solid var(--rc-shadow-color); border-top: 0;
}
.rc-bubble--tail::before { top: calc(100% - var(--rc-line)); inset-inline-start: var(--rc-space-5); width: var(--rc-space-4); height: var(--rc-space-2); }
.rc-bubble--tail::after { top: calc(100% - var(--rc-line) + var(--rc-space-2)); inset-inline-start: var(--rc-space-5); width: var(--rc-space-2); height: var(--rc-space-2); }
.rc-bubble {
  background: var(--rc-bubble-bg); color: var(--rc-bubble-text);
  padding: 12px 14px; font-size: var(--rc-fs-small); line-height: var(--rc-lh-snug);
  border: var(--rc-line) solid var(--rc-shadow-color); box-shadow: var(--rc-shadow-sm); max-width: 320px;
}
.rc-bubble > p { margin: 0; }
.rc-bubble a { color: var(--rc-bubble-label); } /* gold is unreadable on cream */
.rc-bubble a:hover { color: var(--rc-bubble-text); }
.rc-bubble__label { display: block; font-family: var(--rc-font-label); font-size: var(--rc-fs-label-sm); color: var(--rc-bubble-label); margin-bottom: 2px; }
/* Hide every guide element site-wide with <html data-guide="off"> */
[data-guide="off"] .rc-guide, [data-guide="off"] .rc-bubble, [data-guide="off"] [data-guide-only] { display: none !important; }

/* ---------------------------------------------------------------------
   11. FORMS
   --------------------------------------------------------------------- */
.rc-form { background: var(--rc-surface); border: var(--rc-line) solid var(--rc-border); box-shadow: var(--rc-shadow-lg); padding: 28px; display: flex; flex-direction: column; gap: var(--rc-space-4); }
.rc-form__row { display: flex; flex-wrap: wrap; gap: var(--rc-space-4); }
.rc-form__row > * { flex: 1 1 200px; }
.rc-field { display: flex; flex-direction: column; gap: 6px; font-family: var(--rc-font-label); font-size: 12px; color: var(--rc-text-muted); }
.rc-input {
  min-height: 46px; width: 100%; padding: 0 12px;
  background: var(--rc-bg); color: var(--rc-text);
  border: var(--rc-line) solid var(--rc-border-control); border-radius: var(--rc-radius);
  font-family: var(--rc-font-body); font-size: 16px;
}
textarea.rc-input { padding: 10px 12px; resize: vertical; min-height: 120px; line-height: 1.5; }
.rc-input:focus { outline: none; border-color: var(--rc-accent); box-shadow: 0 0 0 2px var(--rc-accent); }
.rc-form__note { font-size: 14px; color: var(--rc-text-muted); }

/* ---------------------------------------------------------------------
   12. HERO
   --------------------------------------------------------------------- */
.rc-hero { padding-block: clamp(40px, 6vw, 80px) 56px; }
.rc-hero__copy { display: flex; flex-direction: column; gap: 22px; flex-basis: 500px !important; }
.rc-hero__copy .rc-lead { max-width: 520px; }
.rc-hero__art { position: relative; }
.rc-hero__art .rc-frame svg { width: 100%; height: auto; }
.rc-hero__bubble { position: absolute; inset-inline-start: 6%; bottom: var(--rc-space-7); } /* BIT + bubble over the scene */
.rc-hero__note { text-align: end; padding-top: 14px; }
.rc-link-label svg { width: 14px; height: 14px; flex: none; } /* #rc-arrow, 7×7 at 2× */
@media (max-width: 640px) {
  .rc-hero__bubble { position: static; margin-top: var(--rc-space-4); }
  .rc-chapter__title { font-size: 26px; }
  .rc-feature__body, .rc-card, .rc-form, .rc-cta { padding: 20px; }
}

/* ---------------------------------------------------------------------
   13. PROSE — running text from Markdown. Styles only elements without a class,
       so components placed inside (rc-tree, rc-media …) keep their own look
   --------------------------------------------------------------------- */
.rc-prose { color: var(--rc-text-body); overflow-wrap: break-word; }
/* Running text keeps the measure; .rc-wide blocks (family tree) use the full container */
.rc-prose > *, .rc-prose > section:not(.rc-wide) > * { max-width: var(--rc-measure); }
.rc-prose > .rc-wide, .rc-prose > section > .rc-wide { max-width: none; }
.rc-prose > * + *, .rc-prose section:not([class*="rc-"]) > * + * { margin-block-start: var(--rc-space-4); }
.rc-prose :is(h1, h2, h3):not([class]) {
  font-family: var(--rc-font-display); color: var(--rc-text);
  font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0;
}
.rc-prose h1:not([class]) { font-size: var(--rc-fs-h1); font-weight: 500; line-height: var(--rc-lh-tight); overflow-wrap: break-word; }
.rc-prose h2:not([class]) { font-size: var(--rc-fs-h3); font-weight: 400; line-height: 1.2; margin-block-start: var(--rc-space-7); }
.rc-prose h3:not([class]) { font-size: var(--rc-fs-h4); font-weight: 400; line-height: 1.25; margin-block-start: var(--rc-space-6); }
.rc-prose :is(h4, h5, h6):not([class]) {
  font-family: var(--rc-font-label); font-size: var(--rc-fs-label); font-weight: 400;
  color: var(--rc-accent); letter-spacing: 0.06em; text-transform: uppercase; margin-block-start: var(--rc-space-6);
}
.rc-prose :is(h2, h3, h4, h5, h6):not([class]) + * { margin-block-start: var(--rc-space-3); }
.rc-prose strong { color: var(--rc-text); font-weight: 600; }
.rc-prose :is(ul, ol):not([class]) { padding-inline-start: var(--rc-space-5); }
.rc-prose ul:not([class]) { list-style: square; }
.rc-prose :is(ul, ol):not([class]) > li + li { margin-block-start: var(--rc-space-2); }
.rc-prose li > :is(ul, ol):not([class]) { margin-block-start: var(--rc-space-2); }
.rc-prose :is(ul, ol):not([class]) > li::marker { color: var(--rc-accent); }
.rc-prose ol:not([class]) > li::marker { font-family: var(--rc-font-mono); font-size: var(--rc-fs-small); }
.rc-prose blockquote { margin-inline: 0; padding-inline-start: var(--rc-space-4); border-inline-start: var(--rc-line) solid var(--rc-accent); color: var(--rc-text-muted); }
.rc-prose :is(code, kbd) { font-family: var(--rc-font-mono); font-size: var(--rc-fs-small); }
.rc-prose pre { background: var(--rc-surface); border: var(--rc-line) solid var(--rc-border); padding: var(--rc-space-4); overflow-x: auto; font-size: var(--rc-fs-small); }
.rc-prose hr { border: 0; border-top: var(--rc-line) solid var(--rc-border); margin-block: var(--rc-space-6); }
.rc-prose img { height: auto; }

/* Table: scrolls inside its own box, never the page (markup: div.rc-table[tabindex=0][role=region] > table) */
.rc-table { position: relative; /* contains absolute .rc-sr-only labels, which would otherwise widen the page */ overflow-x: auto; border: var(--rc-line) solid var(--rc-border); background: var(--rc-surface); }
.rc-table table { width: 100%; border-collapse: collapse; font-size: var(--rc-fs-small); line-height: var(--rc-lh-snug); }
.rc-table :is(th, td) { padding: var(--rc-space-2) var(--rc-space-3); text-align: start; vertical-align: top; }
.rc-table th {
  font-family: var(--rc-font-label); font-size: var(--rc-fs-label-sm); font-weight: 400;
  color: var(--rc-text-muted); text-transform: uppercase; letter-spacing: 0.06em;
  border-bottom: var(--rc-line) solid var(--rc-border);
}
.rc-table tbody tr + tr td { border-top: var(--rc-line) solid var(--rc-border); }
/* Tables without a header row (imported Markdown) carry an empty one */
.rc-table thead:not(:has(th:not(:empty))) { display: none; }

/* ---------------------------------------------------------------------
   14. FIGURE, GALLERY, SYMBOLS — photos and marks inside running text
   --------------------------------------------------------------------- */
/* Figure: photo with caption and credit; --start/--end float beside the text (logical, mirrors in RTL) */
.rc-figure { display: flex; flex-direction: column; gap: var(--rc-space-2); }
.rc-figure img { height: auto; border: var(--rc-line) solid var(--rc-border); background: var(--rc-media); }
.rc-figure figcaption { font-family: var(--rc-font-mono); font-size: var(--rc-fs-caption); line-height: var(--rc-lh-snug); color: var(--rc-text-muted); }
.rc-figure__credit { display: block; }
.rc-figure--start, .rc-figure--end { max-width: 50%; margin-block: 0 var(--rc-space-4); }
.rc-figure--start { float: inline-start; margin-inline: 0 var(--rc-space-5); }
.rc-figure--end   { float: inline-end;   margin-inline: var(--rc-space-5) 0; }
.rc-figure--center { align-items: center; text-align: center; }
@media (max-width: 640px) {
  .rc-figure--start, .rc-figure--end { float: none; max-width: none; margin-inline: 0; }
}

/* Gallery: one photo per view, swipe or scroll-snap; the buttons appear only with JavaScript */
.rc-gallery { position: relative; }
.rc-gallery__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  background: var(--rc-media); border: var(--rc-line) solid var(--rc-border);
}
.rc-gallery__track > .rc-figure { flex: 0 0 100%; scroll-snap-align: center; padding: var(--rc-space-4); align-items: center; }
.rc-gallery__track > .rc-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border: 0; background: transparent; }
.rc-gallery__btn {
  position: absolute; top: 50%; translate: 0 -50%;
  width: var(--rc-tap); height: var(--rc-tap); display: flex; align-items: center; justify-content: center;
  background: var(--rc-bg); color: var(--rc-text); border: var(--rc-line) solid var(--rc-border-control);
  box-shadow: var(--rc-shadow-sm); cursor: pointer;
}
.rc-gallery__btn svg { width: 14px; height: 14px; } /* #rc-arrow, 7×7 at 2× */
.rc-gallery__btn:hover { color: var(--rc-accent); border-color: var(--rc-accent); }
.rc-gallery__btn:disabled { color: var(--rc-border); border-color: var(--rc-border); box-shadow: none; cursor: default; }
.rc-gallery__btn--prev { inset-inline-start: var(--rc-space-3); }
.rc-gallery__btn--next { inset-inline-end: var(--rc-space-3); }
/* Thumbnails below the gallery: show at a glance that there are several images; added by the script */
.rc-gallery__thumbs { margin-top: var(--rc-space-3); grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.rc-gallery__thumb { padding: 0; cursor: pointer; }
.rc-gallery__thumb:hover { border-color: var(--rc-accent); }

/* DOS window (404 page): title bar + monospaced prompt lines; the cursor blinks unless motion is reduced */
.rc-dos { max-inline-size: 560px; border: 2px solid var(--rc-border-control); background: var(--rc-shadow-color); box-shadow: 6px 6px 0 var(--rc-shadow-color); }
.rc-dos__bar { padding: var(--rc-space-1) var(--rc-space-3); background: var(--rc-border-control); color: var(--rc-text); font-family: var(--rc-font-label); font-size: var(--rc-fs-label-sm); text-transform: uppercase; }
.rc-dos__screen { margin: 0; padding: var(--rc-space-4) var(--rc-space-5); font-family: var(--rc-font-mono); font-size: var(--rc-fs-small); line-height: var(--rc-lh-snug); color: var(--rc-text-body); white-space: pre-wrap; }
.rc-dos__cursor { animation: rc-dos-blink 1s steps(1) infinite; }
@keyframes rc-dos-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rc-dos__cursor { animation: none; } }

/* Unit label in the exhibition concept: panel, object, play station, media station */
.rc-unit {
  display: inline-block; margin-inline-end: var(--rc-space-2); padding: 0 var(--rc-space-2);
  font-family: var(--rc-font-label); font-size: var(--rc-fs-label-sm); line-height: 1.8; letter-spacing: 0.04em;
  color: var(--rc-text-muted); border: var(--rc-line) solid var(--rc-border); vertical-align: middle;
}
/* Count column ("Stück") in inventory tables: 1 stays quiet, multiples stand out */
.rc-count { font-family: var(--rc-font-mono); color: var(--rc-text-muted); }
.rc-count--many { color: var(--rc-accent); font-weight: 500; }

/* Table of contents on long content pages; sticks beside the text on wide screens */
.rc-toc { position: sticky; top: var(--rc-space-5); }
.rc-toc .rc-list { gap: var(--rc-space-1); font-size: var(--rc-fs-small); }
.rc-toc a { display: inline-block; padding-block: var(--rc-space-1); text-decoration: none; }
.rc-toc a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------
   15. SEARCH — Pagefind Component UI (@pagefind/component-ui, Astro: astro-pagefind)
   The components bring their own markup and CSS; they are themed only through their --pf variables.
   Header: a.rc-search-toggle (magnifier) opens div.rc-search-panel below the header: pagefind-input, summary, results
   Search page: div.rc-search-page > .rc-search-page__filters (pagefind-filter-pane) + .rc-search-page__results
   --------------------------------------------------------------------- */
html:root {
  --pf-font: var(--rc-font-body);
  --pf-text: var(--rc-text);
  --pf-text-secondary: var(--rc-text-body);
  --pf-text-muted: var(--rc-text-muted);
  --pf-background: var(--rc-surface);
  --pf-hover: var(--rc-media);
  --pf-border: var(--rc-border-control);
  --pf-border-focus: var(--rc-accent);
  --pf-outline-focus: var(--rc-accent);
  --pf-mark: var(--rc-accent);
  --pf-skeleton: var(--rc-media);
  --pf-skeleton-shine: var(--rc-border);
  --pf-border-radius: var(--rc-radius);
  --pf-shadow-sm: var(--rc-shadow-sm);
  --pf-shadow-md: var(--rc-shadow-md);
  --pf-shadow-lg: var(--rc-shadow-lg);
  --pf-scroll-shadow: var(--rc-shadow-color);
  --pf-input-height: var(--rc-tap);
  --pf-input-font-size: var(--rc-fs-body);
  --pf-summary-font-size: var(--rc-fs-caption);
  --pf-result-title-font-size: var(--rc-fs-body);
  --pf-result-excerpt-font-size: var(--rc-fs-small);
  --pf-image-width: calc(var(--rc-space-8) + var(--rc-space-6));  /* 96 × 72, 4:3 like the object tiles */
  --pf-image-height: calc(var(--rc-space-8) + var(--rc-space-2));
}
/* Magnifier and close button: icon only, 44 px tap area */
.rc-search-toggle {
  display: flex; align-items: center; justify-content: center; flex: none; width: var(--rc-tap); height: var(--rc-tap);
  padding: 0; color: var(--rc-text); background: none; border: 0; cursor: pointer;
}
.rc-search-toggle:hover, .rc-search-toggle[aria-expanded="true"] { color: var(--rc-accent); }
.rc-search-toggle svg { width: 21px; height: 21px; } /* #rc-search, #rc-close: 7×7 at 3× */
.rc-search-toggle--mobile { display: none; }
@media (max-width: 640px) {
  .rc-search-toggle--mobile { display: flex; margin-inline-start: auto; }
  .rc-search-toggle--mobile + .rc-menu { margin-inline-start: calc(var(--rc-space-1) - var(--rc-space-4)); } /* close to the magnifier */
}

/* Panel below the header, over the page like the mobile menu */
.rc-search-panel {
  position: absolute; inset-inline: 0; top: 100%; z-index: 10;
  background: var(--rc-surface); border-bottom: var(--rc-line) solid var(--rc-border); box-shadow: var(--rc-shadow-md);
}
.rc-search-panel__inner { display: flex; flex-direction: column; gap: var(--rc-space-3); padding-block: var(--rc-space-4) var(--rc-space-5); }
.rc-search-panel__bar { display: flex; align-items: center; gap: var(--rc-space-2); }
.rc-search-panel__bar pagefind-input { flex: 1; min-width: 0; }
.rc-search-panel__results { display: flex; flex-direction: column; gap: var(--rc-space-3); max-height: min(60vh, 560px); overflow-y: auto; overscroll-behavior: contain; }
.rc-search__all { align-self: flex-start; font-family: var(--rc-font-label); font-size: var(--rc-fs-label); color: var(--rc-accent); }

.rc-search-page { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--rc-space-6); }
.rc-search-page__filters { flex: 1 1 220px; max-width: 320px; }
.rc-search-page__results { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: var(--rc-space-4); }

/* Game on the home page: the fullscreen button sits in the bottom corner of the picture, over the ground; the wrapper goes fullscreen */
.rc-game__frame { position: relative; }
.rc-game__fullscreen { position: absolute; inset-block-end: var(--rc-space-3); inset-inline-end: var(--rc-space-3); }
.rc-game__fullscreen[hidden] { display: none; }
.rc-game:fullscreen { display: flex; justify-content: center; align-items: center; padding: var(--rc-space-4); background: var(--rc-night-900); }
/* Largest 4:3 picture that fits the screen, plus the frame padding */
.rc-game:fullscreen .rc-game__frame { width: min(100%, calc((100vh - 2 * var(--rc-space-4) - 3 * var(--rc-space-3)) * 4 / 3 + 2 * var(--rc-space-3))); }

/* ---------------------------------------------------------------------
   DRUCKBARE BESTANDSÜBERSICHT
   Bildschirm: vorhandene Komponenten. Druck: A4 ohne Seitennavigation.
   --------------------------------------------------------------------- */
:root {
  --rc-print-paper: #fff;
  --rc-print-ink: #111;
  --rc-print-muted: #444;
  --rc-print-rule: #bbb;
  --rc-print-surface: #eee;
  --rc-print-margin: 14mm;
  --rc-print-font-size: 9pt;
  --rc-print-title-size: 20pt;
  --rc-print-heading-size: 14pt;
  --rc-print-subheading-size: 11pt;
}
.rc-inventory { min-inline-size: 0; }
.rc-inventory__meta { color: var(--rc-text-muted); }
.rc-inventory > header > :is(p, .rc-inventory__meta) { max-inline-size: var(--rc-measure); }
.rc-inventory__group { gap: var(--rc-space-7); }
.rc-inventory__source { gap: var(--rc-space-4); }
.rc-inventory__content > * { max-width: none; }
.rc-inventory__content :is(h4, h5, h6) { font-family: var(--rc-font-body); font-size: var(--rc-fs-body); font-weight: 600; }
.rc-inventory__content .rc-table { max-inline-size: 100%; }

@page rc-inventory {
  size: A4;
  margin: var(--rc-print-margin);
  @top-left {
    content: "The 1000 Collection · Bestandsübersicht";
    font-family: var(--rc-font-body);
    font-size: var(--rc-print-font-size);
    color: var(--rc-print-muted);
  }
  @bottom-right {
    content: "Seite " counter(page) " / " counter(pages);
    font-family: var(--rc-font-body);
    font-size: var(--rc-print-font-size);
    color: var(--rc-print-muted);
  }
}
@media print {
  body:has(.rc-inventory) {
    page: rc-inventory;
    background: var(--rc-print-paper);
    color: var(--rc-print-ink);
    font-size: var(--rc-print-font-size);
  }
  body:has(.rc-inventory) > :is(header, footer, svg, astro-dev-toolbar),
  .rc-inventory__screen { display: none !important; }
  .rc-inventory {
    page: rc-inventory;
    max-inline-size: none;
    padding: 0;
    display: block;
    font-size: var(--rc-print-font-size);
    line-height: var(--rc-lh-snug);
  }
  .rc-inventory * {
    color: var(--rc-print-ink) !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  .rc-inventory .rc-stack { display: block; }
  .rc-inventory > header { margin-block-end: var(--rc-space-6); }
  .rc-inventory > header > * + * { margin-block-start: var(--rc-space-2); }
  .rc-inventory :is(h1, h2, h3, h4, h5, h6) {
    font-family: var(--rc-font-body) !important;
    font-weight: 600;
    letter-spacing: normal !important;
    text-transform: none !important;
    break-after: avoid;
    page-break-after: avoid;
  }
  .rc-inventory h1 { font-size: var(--rc-print-title-size); }
  .rc-inventory h2 {
    font-size: var(--rc-print-heading-size);
    margin-block: var(--rc-space-6) var(--rc-space-3);
    border-block-end: var(--rc-line) solid var(--rc-print-ink);
    padding-block-end: var(--rc-space-2);
  }
  .rc-inventory :is(h3, h4, h5, h6) {
    font-size: var(--rc-print-subheading-size);
    margin-block: var(--rc-space-4) var(--rc-space-2);
  }
  .rc-inventory :is(.rc-lead, .rc-small, .rc-eyebrow) {
    font-family: var(--rc-font-body);
    font-size: var(--rc-print-font-size);
    letter-spacing: normal;
    text-transform: none;
  }
  .rc-inventory .rc-prose > * + * { margin-block-start: var(--rc-space-2); }
  .rc-inventory .rc-table {
    overflow: visible;
    border: 0;
    max-inline-size: none;
    margin-block-start: var(--rc-space-2);
  }
  .rc-inventory table {
    inline-size: 100%;
    max-inline-size: 100%;
    min-inline-size: 0;
    font-size: var(--rc-print-font-size);
    table-layout: auto;
    overflow-wrap: anywhere;
    border-collapse: collapse;
  }
  .rc-inventory thead { display: table-header-group; }
  .rc-inventory tr { break-inside: avoid; page-break-inside: avoid; }
  .rc-inventory :is(th, td) {
    padding: var(--rc-space-1);
    border-block-end: 1px solid var(--rc-print-rule);
    font-size: var(--rc-print-font-size);
    font-family: var(--rc-font-body);
    font-weight: 400;
    line-height: var(--rc-lh-snug);
    text-transform: none;
    letter-spacing: normal;
    white-space: normal;
  }
  .rc-inventory th {
    font-weight: 600;
    background: var(--rc-print-surface) !important;
    white-space: nowrap;
    overflow-wrap: normal;
  }
  .rc-inventory .rc-table tbody tr + tr td { border-block-start: 0; }
  .rc-inventory td[data-inventory-number] { white-space: nowrap; }

  .rc-inventory li { break-inside: avoid; page-break-inside: avoid; }
  .rc-inventory a { text-decoration: none; }
  .rc-inventory p { orphans: 3; widows: 3; }
}
