/* Standalone HP dark theme. Keep source photography and diagram pixels intact. */
html:has(.hp-dark) { background:#080b10; color-scheme:dark; scrollbar-color:#56616c #080b10; }
body.editorial-page.hp-dark {
  --paper:#080b10;
  --paper-strong:#080b10;
  --ink:#eef1f3;
  --muted:#b8c3cd;
  --line:#2a3540;
  --space:#080b10;
  --space-soft:#101720;
  --space-ink:#eef3f6;
  --coral:#ed96af;
  --coral-dark:#f0a6bb;
  --teal:#b0d5db;
  --teal-dark:#b0d5db;
  --hp-rose:#f0a6bb;
  --hp-soft:#1c1821;
  --hp-sage:#a4d5c5;
  --hp-gold:#dfc29b;
  --hp-blue:#acc3e5;
  --hp-body:#cbd3da;
  --hp-panel:#10161e;
  background:var(--paper);
  color:var(--ink);
  color-scheme:dark;
}
.hp-dark ::selection { color:#fff; background:#764253; }
.hp-dark .page-main,.hp-dark .editorial-layout,.hp-dark .editorial-sidebar { background:var(--paper); }
.hp-dark .city-intro,.hp-dark .model-city-stage,.hp-dark .model-city-scene { background:var(--paper); }
.hp-dark .skip-link { color:#171218; background:var(--hp-rose); }

/* Off-white headings and quiet gray prose retain the existing full reading width. */
.hp-dark .editorial-prose > p,.hp-dark .hp-interview-copy > p { color:var(--hp-body); }
.hp-dark #hp-framework .editorial-prose > p:first-child,
.hp-dark #hp-framework .editorial-prose > .hp-framework-lead:first-child { color:#e4e9eb; }
.hp-dark .hp-chapter-opening h2,.hp-dark .editorial-prose > .hp-section-heading,
.hp-dark .editorial-prose > h4:not(.hp-phase),.hp-dark .hp-core-questions li { color:#f4f1eb; }
.hp-dark .editorial-section strong { color:#f1f4f5; }
.hp-dark .hp-core-questions { border-color:#9a6678; }
.hp-dark .hp-core-questions > p,.hp-dark .hp-source-caption,
.hp-dark .hp-media-group figcaption,.hp-dark .hp-diagram-toolbar { color:#a5b3bf; }
.hp-dark .hp-phase { color:#e6eef0; }
.hp-dark .hp-widget-heading h3 { color:#eef1f3 !important; }
.hp-dark .editorial-prose > .hp-resource-record { border-color:var(--line); }

/* Contents remain anchored, with a clear single selected chapter. */
.hp-dark .editorial-sidebar { scrollbar-color:#4e5a65 #080b10; box-shadow:none; }
.hp-dark .editorial-toc-link { color:#d9e0e5; }
.hp-dark .editorial-toc-link:hover,.hp-dark .editorial-toc-link[aria-current="location"],
.hp-dark .hp-subcontents a:hover,.hp-dark .hp-subcontents a[aria-current="location"] { color:#ffc3d4; background:#281b25; border-left-color:#ed96af; }
.hp-dark .hp-subcontents { border-color:#3c303c; }
.hp-dark .hp-subcontents a { color:#afbdc8; }
.hp-dark .hp-reflection { background:linear-gradient(110deg,#1e1720,#11161e 78%); border-color:#a66b7c; }
.hp-dark .hp-reflection-body > p { color:#c6ced6; }
.hp-dark .hp-consent { background:#11171e; border-color:#a66b7c; }
.hp-dark .editorial-table th { background:#18232d; color:#f3f5f6; }
.hp-dark .editorial-table td { color:#cbd3da; }
.hp-dark .editorial-table tbody tr:nth-child(even) { background:#10161e; }
.hp-dark .editorial-equation { background:#10161e; }

/* The original figures retain their own color and line detail, without filters. */
.hp-dark .editorial-figure img,.hp-dark .hp-image-button,.hp-dark .hp-speaker { background:transparent; }
.hp-dark .hp-timeline-artwork { grid-template-columns:666fr 666fr 624fr 666fr; gap:10px; }
.hp-dark .hp-timeline-image-column { --hp-node-color:#9bd9f4; }
.hp-dark .hp-panel-exchange { --hp-node-color:#a4dfc6; }
.hp-dark .hp-panel-cocreation { --hp-node-color:#f7abc0; }
.hp-dark .hp-panel-community { --hp-node-color:#cdb7ff; }
.hp-dark .hp-diagram-viewport { scrollbar-color:#647584 #10161e; }
.hp-dark .hp-diagram-spot:hover,.hp-dark .hp-diagram-spot:focus-visible { border-color:var(--hp-node-color,#f4bdce); background:#e9efff0b; box-shadow:inset 3px 0 0 var(--hp-node-color,#f4bdce); }
.hp-dark .hp-diagram-spot:focus-visible { outline-color:#f4bdce; outline-offset:1px; }
.hp-dark .hp-map-viewport { background:#000; }
.hp-dark .hp-expert-hotspot:hover,.hp-dark .hp-expert-hotspot:focus-visible { border-color:#ffc4d5; background:#ffafca0e; box-shadow:0 0 0 2px #07131e,0 0 18px #ed96af1f; }
.hp-dark .spot-shougang-lanzatech::after { content:"Beijing Shougang LanzaTech"; }
.hp-dark .hp-plain-button { color:#f0a6bb; border-bottom-color:#735161; }
.hp-dark .hp-expert-index,.hp-dark .hp-expert-names button { border-color:var(--line); }
.hp-dark .hp-expert-names button { color:#dce4e9; }
.hp-dark .hp-expert-names button:hover { color:var(--hp-rose); }

/* Native dialogs and their sticky bars belong to the same dark surface. */
.hp-dark .hp-dialog { color:var(--ink); background:#10161e; box-shadow:0 28px 100px #000b; }
.hp-dark .hp-dialog::backdrop { background:#02050be0; }
.hp-dark .hp-dialog-header { background:#10161e; border-color:#2c3541; }
.hp-dark .hp-dialog-close:hover { background:#2a1d28; }
.hp-dark .hp-profile-portrait { background:#0b1017; }
.hp-dark .hp-profile-location,.hp-dark .hp-profile-summary,.hp-dark .hp-profile-source p,
.hp-dark .hp-event-body > p,.hp-dark .hp-image-description,.hp-dark .hp-gallery-counter { color:#bcc8d2; }
.hp-dark .hp-profile-source,.hp-dark .hp-event-meta,.hp-dark .hp-translation { border-color:var(--line); }
.hp-dark .hp-dialog.is-image,.hp-dark .hp-dialog.is-map,.hp-dark .hp-dialog.is-diagram { background:#080b10; }
.hp-dark .site-footer { color:#a8b6c1; background:#06090d; border-top:1px solid #26313a; }
.hp-dark .footer-brand { color:#edf2f5; }
.hp-dark .footer-links a { color:#b7c3cc; }
.hp-dark .footer-links a:hover { color:var(--hp-rose); }

@media (max-width:700px) {
  .hp-dark .editorial-sidebar { background:#0d1219; box-shadow:0 8px 18px #0004; }
  .hp-dark .hp-timeline-artwork { gap:12px; }
}
@media print {
  html:has(.hp-dark),body.hp-dark { color-scheme:light; background:#fff; }
  body.hp-dark { --paper:#fff; --ink:#16232b; --muted:#3e4d56; --hp-body:#273943; --hp-rose:#963c56; --coral-dark:#963c56; --line:#ccd3d8; }
  .hp-dark .editorial-prose :is(p,h2,h3,h4),.hp-dark .hp-interview-copy > p { color:#273943; }
  .hp-dark .hp-reflection { background:#f4f4f4; }
}
