/* ==========================================================================
   Technical Project Archive — core stylesheet
   Dark by default. No external fonts, no frameworks.
   ========================================================================== */

:root {
  color-scheme: dark;

  --bg: #0b0d0f;
  --bg-elev: #101316;
  --panel: #14181c;
  --panel-2: #171c21;
  --line: #262d34;
  --line-soft: #1c2228;

  --text: #e6eaed;
  --text-dim: #a4aeb6;
  --muted: #6e7a84;

  --accent: #5aa2e0;
  --accent-soft: #1d3346;
  --accent-dim: #23405a;
  --ok: #5fbf8a;
  --warn: #d8a24a;
  --danger: #d9736b;

  --radius: 4px;
  --radius-lg: 6px;
  --maxw: 1180px;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f6f4;
  --bg-elev: #ffffff;
  --panel: #ffffff;
  --panel-2: #f1f1ee;
  --line: #dcdcd6;
  --line-soft: #e8e8e3;
  --text: #16191c;
  --text-dim: #4a5258;
  --muted: #7a8288;
  --accent: #1f6fb2;
  --accent-dim: #cfe2f2;
  --ok: #2f8f5f;
  --warn: #9a6b12;
  --danger: #b23b32;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img, svg, video, canvas, iframe, embed, object { max-width: 100%; }

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 2px;
}
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.02rem; }

p { margin: 0 0 1em; }

hr {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: 32px 0;
}

code, kbd, samp, pre {
  font-family: var(--mono);
  font-size: 0.9em;
}
code {
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  padding: 0.1em 0.35em;
}

::selection { background: var(--accent-dim); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ==========================================================================
   Header / navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 22px;
  height: 22px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 0.62rem;
  letter-spacing: 0;
}
.brand-sub {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--text-dim);
  font-size: 0.875rem;
  padding: 8px 10px;
  border-radius: var(--radius);
  white-space: nowrap;
}
.nav a:hover {
  color: var(--text);
  background: var(--panel);
  text-decoration: none;
}
.nav a[aria-current="page"] {
  color: var(--text);
  background: var(--panel-2);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-wrap { position: relative; }
.search-input {
  width: 240px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.85rem;
  padding: 8px 10px 8px 30px;
}
.search-input::placeholder { color: var(--muted); }
.search-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-elev);
}
.search-icon {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  font-size: 0.8rem;
}

.icon-btn {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text-dim);
  border-radius: var(--radius);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
}
.icon-btn:hover { color: var(--text); border-color: var(--accent); }

.menu-btn { display: none; }

/* Search results dropdown */
.search-results {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: min(440px, calc(100vw - 32px));
  max-height: 60vh;
  overflow-y: auto;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  padding: 6px;
  display: none;
}
.search-results.open { display: block; }
.search-hit {
  display: block;
  padding: 9px 10px;
  border-radius: var(--radius);
  color: var(--text);
  border-bottom: 1px solid var(--line-soft);
}
.search-hit:last-child { border-bottom: 0; }
.search-hit:hover, .search-hit:focus {
  background: var(--panel-2);
  text-decoration: none;
}
.search-hit-title { font-size: 0.9rem; font-weight: 600; }
.search-hit-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.search-empty {
  padding: 14px 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   Layout
   ========================================================================== */

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 20px 96px;
}

.page-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
  margin-bottom: 32px;
}
.page-head .eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.page-head p.lede {
  color: var(--text-dim);
  max-width: 68ch;
  margin: 0;
}

.section { margin-bottom: 56px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.section-head h2 {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}
.section-head .more {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}
.grid.tight { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
a.card:hover {
  text-decoration: none;
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card-thumb {
  aspect-ratio: 16 / 10;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-thumb .thumb-fallback {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding: 12px;
}

.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: 1rem; font-weight: 600; margin: 0; }
.card-desc {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin: 0;
  flex: 1;
}
.card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* ==========================================================================
   Badges / chips
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-dim);
  background: var(--panel-2);
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
}
.badge.ok::before { background: var(--ok); }
.badge.warn::before { background: var(--warn); }
.badge.info::before { background: var(--accent); }
.badge.plain::before { display: none; }

.chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-dim);
  background: var(--panel-2);
}
a.chip:hover { border-color: var(--accent); color: var(--text); text-decoration: none; }

/* ==========================================================================
   Stats / overview
   ========================================================================== */

.stat-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.stat-value {
  font-family: var(--mono);
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--text);
}
.stat-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

/* ==========================================================================
   Tables (specs, materials, revisions)
   ========================================================================== */

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.spec-table th,
.spec-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.spec-table th {
  width: 34%;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.spec-table td { color: var(--text-dim); }
.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: 0; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.panel + .panel { margin-top: 16px; }

.empty-note {
  font-size: 0.875rem;
  color: var(--muted);
  font-style: italic;
  margin: 0;
}

/* ==========================================================================
   Project page
   ========================================================================== */

.project-hero {
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 28px;
}
.breadcrumb {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb span { margin: 0 8px; color: var(--line); }

.project-title { margin-bottom: 10px; }
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.project-summary {
  color: var(--text-dim);
  max-width: 74ch;
  font-size: 1.02rem;
}

.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 80px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  padding: 14px 16px;
}
.toc h2 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}
.toc li { counter-increment: toc; }
.toc a {
  display: block;
  padding: 5px 0;
  font-size: 0.85rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line-soft);
}
.toc li:last-child a { border-bottom: 0; }
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  margin-right: 8px;
}
.toc a:hover { color: var(--text); text-decoration: none; }

.doc-section { margin-bottom: 48px; scroll-margin-top: 80px; }
.doc-section > h2 {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 18px;
}

/* ==========================================================================
   Figures / gallery
   ========================================================================== */

.figure-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
figure.asset {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
figure.asset .frame {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--panel-2);
  cursor: zoom-in;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
figure.asset .frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
figure.asset .frame:hover img { opacity: 0.92; }
figure.asset figcaption {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line-soft);
}
.asset-label {
  display: block;
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 500;
}
.asset-meta {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 4px;
  word-break: break-all;
}

/* Missing-asset placeholder — never a broken image */
.asset-missing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  padding: 16px;
  text-align: center;
  background:
    repeating-linear-gradient(45deg, transparent 0 8px, rgba(216, 162, 74, 0.05) 8px 16px),
    var(--panel-2);
  color: var(--warn);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  line-height: 1.5;
}
.asset-missing strong { font-size: 0.72rem; letter-spacing: 0.1em; }
.asset-missing code {
  background: transparent;
  border: 0;
  color: var(--text-dim);
  font-size: 0.68rem;
  word-break: break-all;
}

/* ==========================================================================
   Documents
   ========================================================================== */

.doc-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.doc-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 3px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--panel-2);
}
.doc-body { flex: 1; min-width: 0; }
.doc-title { font-weight: 600; margin: 0 0 4px; font-size: 0.95rem; }
.doc-note { font-size: 0.85rem; color: var(--text-dim); margin: 0 0 8px; }
.doc-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text-dim);
  cursor: pointer;
}
.btn:hover { border-color: var(--accent); color: var(--text); text-decoration: none; }
.btn.primary {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--text);
}

.pdf-viewer {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--panel-2);
}
.pdf-viewer iframe {
  display: block;
  width: 100%;
  height: 78vh;
  min-height: 480px;
  border: 0;
  background: #fff;
}
.pdf-fallback {
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
  border-top: 1px solid var(--line-soft);
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(6, 8, 10, 0.94);
  display: none;
  flex-direction: column;
}
.lightbox.open { display: flex; }

.lb-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #e6eaed;
  background: rgba(10, 12, 14, 0.9);
}
.lb-title {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: #cfd6dc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.lb-tools { display: flex; gap: 6px; align-items: center; }
.lb-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e6eaed;
  border-radius: 4px;
  min-width: 34px;
  height: 32px;
  padding: 0 8px;
  font-family: var(--mono);
  font-size: 0.75rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.14); }
.lb-zoom-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #9aa4ad;
  min-width: 46px;
  text-align: center;
}

.lb-stage {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
  cursor: grab;
  touch-action: none;
}
.lb-stage.dragging { cursor: grabbing; }
.lb-stage img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 64px;
  background: rgba(10, 12, 14, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e6eaed;
  font-size: 1.1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 4px;
}
.lb-nav:hover { background: rgba(255, 255, 255, 0.14); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-hint {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: #7d868e;
  background: rgba(10, 12, 14, 0.7);
  padding: 4px 10px;
  border-radius: 999px;
  pointer-events: none;
  white-space: nowrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 20px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-inner a { color: var(--text-dim); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-mono { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* ==========================================================================
   Utility
   ========================================================================== */

.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.small { font-size: 0.82rem; }
.stack > * + * { margin-top: 12px; }
.hidden { display: none !important; }
.center { text-align: center; }
.notice {
  border: 1px solid var(--line);
  border-left: 2px solid var(--warn);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 0.875rem;
  color: var(--text-dim);
}
.notice strong { color: var(--text); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .project-layout { grid-template-columns: 1fr; }
  .toc { position: static; order: -1; }
  .search-input { width: 190px; }
}

@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    padding: 8px;
    margin: 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 0.95rem; }
  .header-inner { position: relative; flex-wrap: wrap; padding: 8px 16px; }
  .search-wrap { order: 3; width: 100%; }
  .search-input { width: 100%; }
  .search-results { width: 100%; }
  .header-tools { gap: 6px; }
  .brand-sub { display: none; }
}

@media (max-width: 600px) {
  main { padding: 28px 16px 72px; }
  .grid, .figure-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .spec-table th { width: 42%; }
  .lb-nav { width: 38px; height: 52px; }
  .lb-hint { display: none; }
  .pdf-viewer iframe { height: 60vh; min-height: 380px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

@media print {
  .site-header, .site-footer, .toc, .lb-hint { display: none !important; }
  body { background: #fff; color: #000; }
  .panel, .card, figure.asset { border-color: #ccc; }
}
