/* Loaded for the system dark preference or when the site theme is set to dark. */
:root:not([data-theme="light"]) {
  --ground: #000000;
  --panel: #0d0d0d;
  --panel-raised: #181818;
  --ink: var(--panel);
  --coal: var(--ground);
  --archive-tint: var(--ground);
  --brain-health-tint: var(--panel);
  --muted: #c4c4c4;
  --rule: #333333;
  --input-border: #767676;
  --scroll-thumb: #767676;
  --dock-glass-fill: rgb(0 0 0 / 36%);
  --masthead-glass-fill: rgb(0 0 0 / 12%);
  --masthead-icon-halo: var(--ground);
}

:root:not([data-theme="light"]) :is(.footer, .sponsor-intake, .sponsor-hero) {
  background: var(--ground);
}

:root:not([data-theme="light"]) :is(.masthead, .dock) {
  box-shadow: 0 7px 24px rgb(0 0 0 / 19%);
}

:root[data-theme="dark"] .masthead-links {
  box-shadow: 0 7px 24px rgb(0 0 0 / 23%);
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  :root[data-theme="dark"] .masthead {
    box-shadow: inset 0 1px 1px rgb(255 255 255 / 32%), 0 5px 22px rgb(0 0 0 / 14%);
  }

  :root:not([data-theme="light"]) .dock {
    box-shadow: inset 0 1px 1px rgb(255 255 255 / 38%), inset 0 -1px 1px rgb(255 255 255 / 12%),
      0 7px 24px rgb(0 0 0 / 23%);
  }
}

@media (prefers-reduced-transparency: reduce) {
  :root:not([data-theme="light"]) :is(.masthead, .dock) {
    box-shadow: 0 7px 24px rgb(0 0 0 / 19%);
  }
}

:root:not([data-theme="light"]) .hero-art::after {
  background:
    linear-gradient(180deg, rgb(0 0 0 / 86%), transparent 28%),
    linear-gradient(0deg, #000000, rgb(0 0 0 / 65%) 31%, transparent 74%),
    radial-gradient(ellipse at 50% 36%, rgb(0 0 0 / 48%), transparent 72%);
}

:root:not([data-theme="light"]) .hero-crest img {
  filter: drop-shadow(0 8px 20px rgb(0 0 0 / 48%));
}

:root:not([data-theme="light"]) .hero-video-toggle:hover {
  background: rgb(0 0 0 / 52%);
}

:root:not([data-theme="light"]) .hero-clip-picker select {
  background-color: var(--panel);
}

:root:not([data-theme="light"]) .quiet-button {
  background: rgb(0 0 0 / 60%);
}

:root:not([data-theme="light"]) :is(.hero-clip-motion-note, .hero-motion-controls button) {
  background: rgb(0 0 0 / 82%);
}

:root:not([data-theme="light"]) .hero-description {
  text-shadow: 0 2px 6px rgb(0 0 0 / 85%);
}

:root:not([data-theme="light"]) .hero-description::before {
  background: rgb(0 0 0 / 68%);
}

:root:not([data-theme="light"]) .hero-glass {
  --glass-base: rgb(0 0 0 / 85%);
  box-shadow:
    inset 0 1px 1px rgb(255 255 255 / 50%),
    inset 0 -2px 4px rgb(255 255 255 / 13%),
    0 7px 24px rgb(0 0 0 / 34%);
  text-shadow: 0 1px 4px rgb(0 0 0 / 90%);
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  :root:not([data-theme="light"]) .hero-glass {
    --glass-base: rgb(0 0 0 / 57%);
  }
}

:root:not([data-theme="light"]) .sponsor-hero::before {
  background: linear-gradient(to bottom, transparent 26%, rgb(0 0 0 / 24%) 40%, rgb(0 0 0 / 68%) 56%, #000000 100%);
}

@media (min-width: 761px) {
  :root:not([data-theme="light"]) .sponsor-hero p {
    color: var(--white);
  }
}

:root:not([data-theme="light"]) :is(.event-dialog, .program-checklists-dialog)::backdrop {
  background: rgb(0 0 0 / 68%);
}
