:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-alt: #f0eee8;
  --ink: #1a2026;
  --ink-muted: #525c68;
  --accent: #1b5e4b;
  --accent-hover: #14483a;
  --accent-soft: #e6f2ee;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --critical: #991b1b;
  --critical-soft: #fee2e2;
  --border: #e2e4e8;
  --shadow-sm: 0 1px 3px rgba(16, 24, 32, 0.06);
  --shadow-md: 0 10px 30px rgba(16, 24, 32, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, Cambria, serif;
}

[data-theme="dark"] {
  --bg: #10151a;
  --surface: #171e26;
  --surface-alt: #1e2731;
  --ink: #e8edf2;
  --ink-muted: #9ba7b4;
  --accent: #2bb68a;
  --accent-hover: #34d399;
  --accent-soft: rgba(43, 182, 138, 0.14);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.15);
  --critical: #f87171;
  --critical-soft: rgba(248, 113, 113, 0.16);
  --border: #27323e;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--ink);
  background: var(--bg);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.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;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 200;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

/* Progress bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 120;
  pointer-events: none;
}

.reading-progress__bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 60ms linear;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.brand img {
  border-radius: 8px;
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-link {
  display: none;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-muted);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
}

.header-link:hover {
  color: var(--ink);
  background: var(--surface-alt);
}

@media (min-width: 680px) {
  .header-link {
    display: inline-block;
  }
}

@media (max-width: 479px) {
  .site-header__inner {
    padding: 0.65rem 0.9rem;
    gap: 0.5rem;
  }
  .brand {
    font-size: 0.88rem;
    line-height: 1.2;
    gap: 0.45rem;
  }
  .header-actions {
    gap: 0.4rem;
  }
  .header-actions .btn--sm {
    padding: 0.45rem 0.65rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, transform 120ms ease;
}

.btn--sm {
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--accent);
  color: #ffffff;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

[data-theme="dark"] .btn--primary {
  color: #091511;
}

[data-theme="dark"] .btn--primary:hover {
  color: #091511;
}

.btn--secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}

.btn--secondary:hover {
  background: var(--surface-alt);
  color: var(--ink);
}

.btn-meta {
  display: none;
  opacity: 0.85;
  font-weight: 500;
}

@media (min-width: 768px) {
  .btn-meta {
    display: inline;
  }
}

.btn-text {
  background: none;
  border: none;
  color: var(--ink-muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.btn-text:hover {
  color: var(--ink);
  background: var(--surface-alt);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 38px;
  height: 38px;
  padding: 0 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
}

.icon-btn:hover {
  background: var(--surface-alt);
}

.icon-moon {
  display: none;
}

[data-theme="dark"] .icon-sun {
  display: none;
}

[data-theme="dark"] .icon-moon {
  display: block;
}

.toc-mobile-btn__label {
  display: none;
}

@media (min-width: 480px) {
  .toc-mobile-btn__label {
    display: inline;
  }
}

@media (min-width: 1080px) {
  .toc-mobile-btn {
    display: none;
  }
}

/* Hero */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 1.25rem 3rem;
}

.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 920px) {
  .hero {
    padding: 3.5rem 1.5rem 4rem;
  }
  .hero__inner {
    grid-template-columns: 1.12fr 0.88fr;
    gap: 3rem;
  }
}

.eyebrow {
  margin: 0 0 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero__lead {
  margin: 0 0 1.5rem;
  font-size: 1.125rem;
  color: var(--ink-muted);
  max-width: 60ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero__text-link {
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.35rem 0.25rem;
}

.hero__cards {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 560px) {
  .hero__cards {
    grid-template-columns: 1fr 1fr;
  }
}

.jump-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 150ms ease, transform 150ms ease;
}

.jump-card:hover {
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-1px);
}

.jump-card__kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--accent);
}

.jump-card strong {
  font-size: 0.98rem;
}

.jump-card span:last-child {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

.hero-media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--surface-alt);
}

.hero-media img {
  width: 100%;
  object-fit: cover;
}

/* Page layout */
.page-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1080px) {
  .page-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
    gap: 3rem;
    padding: 3rem 1.5rem 5rem;
  }
}

/* Sidebar TOC */
.toc-sidebar {
  display: none;
}

@media (min-width: 1080px) {
  .toc-sidebar {
    display: block;
  }
}

.toc-sidebar__sticky {
  position: sticky;
  top: 4.8rem;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  padding-right: 0.5rem;
}

.toc-sidebar__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
}

.toc-group {
  margin-bottom: 1.15rem;
}

.toc-group__title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.toc-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--border);
}

.toc-nav a {
  display: block;
  padding: 0.3rem 0 0.3rem 0.8rem;
  font-size: 0.85rem;
  line-height: 1.38;
  color: var(--ink-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -1px;
}

.toc-nav a:hover,
.toc-nav a.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
}

.toc-nav a.is-active {
  font-weight: 600;
}

.sidebar-pdf-card {
  margin-top: 1.25rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.sidebar-pdf-card strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.sidebar-pdf-card p {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

/* Editorial Content */
.content {
  min-width: 0;
}

.content > p,
.content > ul,
.content > ol,
.content > h2,
.content > h3,
.content > h4,
.content > h5 {
  max-width: 72ch;
}

.content h2,
.content h3,
.content h4,
.content h5 {
  scroll-margin-top: 5.5rem;
  color: var(--ink);
  line-height: 1.28;
}

.content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 1.95rem);
  margin: 2.75rem 0 0.9rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.content h3 {
  font-size: 1.28rem;
  margin: 2rem 0 0.65rem;
}

.content h4 {
  font-size: 1.08rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--accent);
}

.content h5 {
  font-size: 1rem;
  margin: 1.2rem 0 0.4rem;
}

.content p {
  margin: 0 0 1.1rem;
}

.content ul,
.content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.4rem;
}

.content li {
  margin-bottom: 0.55rem;
}

/* Summary card */
.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  max-width: 76ch;
}

.summary-card h2 {
  margin: 0 0 0.9rem;
  padding-top: 0;
  border-top: none;
}

/* Part divider */
.part-divider {
  margin: 3.25rem 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.part-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.part-divider span {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.part-divider + h2 {
  margin-top: 0.75rem;
  padding-top: 0;
  border-top: none;
}

/* Figures */
.article-figure {
  margin: 1.75rem 0;
  max-width: 76ch;
}

.article-figure--portrait {
  max-width: 440px;
}

.figure-zoom {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
}

.figure-zoom img {
  width: 100%;
  margin: 0 auto;
}

.article-figure--portrait .figure-zoom img {
  max-height: 72vh;
  width: auto;
}

.zoom-badge {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(16, 21, 26, 0.76);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 150ms ease;
}

.figure-zoom:hover .zoom-badge,
.figure-zoom:focus-visible .zoom-badge {
  opacity: 1;
}

/* Chart Embed */
.chart-embed {
  margin: 1.75rem 0;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.chart-embed__frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.chart-embed iframe {
  display: block;
  width: 100%;
  height: 525px;
  border: 0;
}

.chart-embed figcaption {
  margin-top: 0.65rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

/* Tables */
.table-wrap {
  margin: 1.25rem 0 2rem;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  line-height: 1.48;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 0.72rem 0.95rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table thead th {
  background: var(--surface-alt);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
}

.data-table tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--surface-alt) 40%, transparent);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.table-subhead th,
.table-group-head th {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Filter Pills */
.climate-filter,
.equip-toolbar__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 1rem 0;
}

.climate-filter__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-right: 0.25rem;
}

.filter-pill {
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.filter-pill:hover {
  background: var(--surface-alt);
}

.filter-pill.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

[data-theme="dark"] .filter-pill.is-active {
  color: #091511;
}

.climate-block[hidden],
.equip-category[hidden],
.equip-row[hidden] {
  display: none;
}

/* Equipment Toolbar & Cards */
.equip-toolbar {
  margin: 1.5rem 0;
  padding: 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.equip-toolbar__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.equip-search-wrap {
  flex: 1 1 260px;
}

.equip-search-wrap input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.94rem;
}

.equip-progress {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.equip-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.equip-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  background: var(--surface-alt);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
}

.equip-chip span {
  color: var(--ink-muted);
  font-weight: 500;
}

.equip-chip:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.equip-empty {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--ink-muted);
  text-align: center;
}

.equip-category {
  margin-bottom: 1.75rem;
}

.equip-category__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
}

.equip-category__head h3 {
  margin: 0;
}

.equip-category__count {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
}

.equip-category .table-wrap {
  margin-top: 0.5rem;
}

.col-check {
  width: 42px;
  text-align: center;
}

.equip-check {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.equip-row.is-packed td:not(.col-check) {
  opacity: 0.55;
  text-decoration: line-through;
}

.badge {
  display: inline-block;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge--high {
  background: var(--accent-soft);
  color: var(--accent);
}

.badge--critical {
  background: var(--amber-soft);
  color: var(--amber);
}

.badge--important {
  background: var(--surface-alt);
  color: var(--ink-muted);
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 1.25rem;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 54ch;
}

.site-footer__brand img {
  border-radius: 8px;
  flex-shrink: 0;
}

.site-footer__brand p {
  margin: 0.2rem 0 0;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.site-footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Mobile Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 18, 0.55);
  z-index: 140;
}

.toc-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 150;
  padding: 1.15rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 200ms ease;
}

.toc-drawer.is-open {
  transform: translateX(0);
}

.toc-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

/* Lightbox */
.lightbox {
  max-width: min(94vw, 1080px);
  max-height: 92vh;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-md);
}

.lightbox::backdrop {
  background: rgba(10, 14, 18, 0.78);
}

.lightbox__inner {
  position: relative;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.lightbox__inner img {
  max-height: 78vh;
  width: auto;
  border-radius: var(--radius-sm);
}

.lightbox__inner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 90;
}

.back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 404 Error Page */
.error-page {
  min-height: calc(100vh - 150px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
}

.error-card {
  max-width: 560px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.error-card h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  line-height: 1.18;
}

.error-card p {
  margin: 0 0 1.5rem;
  color: var(--ink-muted);
}

.error-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Social Share Bar */
.share-bar {
  display: flex;
  align-items: center;
  margin: 0 0 1.4rem;
}

.share-bar--footer {
  margin: 0;
}

.share-desktop {
  display: none;
  align-items: center;
  gap: 0.45rem;
}

.share-mobile {
  display: inline-flex;
  align-items: center;
}

@media (min-width: 768px) {
  .share-desktop {
    display: inline-flex;
  }
  .share-mobile {
    display: none;
  }
}

.share-bar__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-right: 0.15rem;
}

.share-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.share-icon-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.share-more {
  position: relative;
}

.share-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 185px;
  padding: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.share-menu[hidden] {
  display: none;
}

.share-bar--up .share-menu {
  top: auto;
  bottom: calc(100% + 6px);
  left: auto;
  right: 0;
}

.share-menu__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.5rem 0.7rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.share-menu__item:hover,
.share-menu__item:focus-visible {
  background: var(--surface-alt);
  color: var(--accent);
}

.share-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  padding: 0.6rem 1.05rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  z-index: 160;
}

.share-toast[hidden] {
  display: none;
}

/* Print */
@media print {
  .site-header,
  .reading-progress,
  .toc-sidebar,
  .toc-drawer,
  .drawer-backdrop,
  .hero__actions,
  .share-bar,
  .share-toast,
  .hero__cards,
  .climate-filter,
  .equip-toolbar,
  .col-check,
  .zoom-badge,
  .back-to-top,
  .site-footer__actions {
    display: none !important;
  }
  body {
    background: #ffffff;
    color: #000000;
    font-size: 11pt;
  }
  .page-layout {
    display: block;
    padding: 0;
  }
  .climate-block[hidden],
  .equip-category[hidden],
  .equip-row[hidden] {
    display: block !important;
  }
  .equip-row[hidden] {
    display: table-row !important;
  }
  .table-wrap {
    overflow: visible;
    box-shadow: none;
  }
}
