body[data-view="demos"] {
  --cp-night: #031321;
  --cp-panel: rgba(3, 25, 43, .88);
  --cp-cyan-soft: #8edfff;
  --cp-white: #f4f9ff;
  color-scheme: dark;
  color: var(--cp-white);
  background: var(--cp-night) !important;
}

body[data-view="demos"] :is(#page-header, .demo-hub-card, .demo-hub-body, .demo-results, .demo-result-item) {
  color: var(--cp-white);
  background: var(--cp-panel);
}

body[data-view="demos"] :is(#title, #intro, h2, h3, .demo-hub-description, .demo-results p, .demo-hub-body li, .demo-hub-body strong) {
  color: var(--cp-white);
}

body[data-view="demos"] :is(#label, #back, .demo-hub-slogan, .demo-result-item > span),
body[data-view="demos"] .demo-hub-body li::marker {
  color: var(--cp-cyan-soft);
}

body[data-view="demos"] .demo-start {
  background: var(--cp-cyan-soft);
  color: var(--cp-night);
}

body[data-view="demos"] .demo-start:hover {
  background: var(--cp-white);
}

body[data-view="demos"] a:focus-visible {
  outline: 3px solid var(--cp-cyan-soft);
  outline-offset: 4px;
}

body[data-view="demos"] .demo-hub-card[data-demo="5"] > img {
  width: 100%;
  object-fit: cover;
}


/* Contrast for the blue ICAO level pages. */
body[data-view^="level"] #back {
  color: #fff !important;
}

body[data-view^="level"] :is(.level-course-actions, .level-intro) :is(p, .level-demo-link) {
  color: #d4e7f3 !important;
}

body[data-view^="level"] :is(#back, summary, button, .level-demo-link):focus-visible {
  outline: 3px solid #8edfff;
  outline-offset: 3px;
}

html[data-course-key="technical"] #intro {
  color: #c3d8e6 !important;
}

html[data-course-key="technical"] :is(a, button, summary):focus-visible {
  outline: 3px solid var(--cp-cyan-soft);
  outline-offset: 3px;
}


body[data-view="demos"] #intro { background: transparent !important; color: var(--cp-white) !important; }

/* Light controls within the dark ICAO comparison panel. */
body.night-section[data-view^="level"] #content .cp-comparison :is(.cp-tab, .cp-note),
body.night-section[data-view^="level"] #content .cp-comparison .cp-tab :is(strong, span),
body.night-section[data-view^="level"] #content .cp-comparison .cp-note :is(summary, p, strong) {
  color: #fff !important;
}

body.night-section[data-view^="level"] #content .cp-comparison .cp-tab:hover {
  border-color: #176d88;
}

body.night-section[data-view^="level"] #content .cp-comparison .cp-tab:focus-visible {
  outline: 3px solid var(--cp-cyan-soft);
  outline-offset: 3px;
}

