/* Palette from gb_website_sk/app/color-modes.css. Keep the CMS independently deployable. */
:root {
  color-scheme: dark;
  --canvas: #001b3b;
  --paper: #06274b;
  --section-dark: #00162f;
  --section-dark-raised: #10395e;
  --ink: #f5f9fd;
  --muted: #bfcedd;
  --line: #37526e;
  --blue: #b9d8f7;
  --theme-accent: #97dfb4;
  --theme-on-accent: #002653;
  --theme-hover: #123a60;
  --theme-glass: #001b3bf2;
  --theme-shadow: #000e242b;
  --theme-hero: linear-gradient(115deg, #001126 0%, #002149 57%, #002c59 100%);
  --theme-glow: radial-gradient(
    92% 76% at 51% -8%,
    #145e9d70,
    #00449420 45%,
    transparent 75%
  );
  --theme-dots: #b9d8f787;
  --theme-mark: linear-gradient(150deg, #2b6597, #124a7b 52%, #105679);
}

:root[data-theme="light"] {
  color-scheme: light;
  --canvas: #fff;
  --paper: #f6f9fc;
  --section-dark: #f6f9fc;
  --section-dark-raised: #fff;
  --ink: #141b23;
  --muted: #566371;
  --line: #dde5ed;
  --blue: #004494;
  --theme-accent: #004494;
  --theme-on-accent: #fff;
  --theme-hover: #e9f3fb;
  --theme-glass: #fffffff5;
  --theme-shadow: #1436520d;
  --theme-hero: #fff;
  --theme-glow: radial-gradient(
    92% 76% at 51% -8%,
    #ffffffa8,
    #ffffff20 45%,
    transparent 75%
  );
  --theme-dots: #00449426;
  --theme-mark: linear-gradient(150deg, #9cc8e7, #bdd8ed 52%, #96c1df);
}

:root {
  --wash: var(--canvas);
  --recess: var(--section-dark-raised);
  --control-line: color-mix(in srgb, var(--muted) 74%, var(--paper));
  --accent: var(--theme-accent);
  --accent-hover: color-mix(in srgb, var(--theme-accent) 85%, var(--ink));
  --accent-wash: var(--theme-hover);
  --on-accent: var(--theme-on-accent);
  --focus: var(--blue);
  --mono: "Cascadia Mono", Consolas, monospace;
}
button.theme-switch {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}
button.theme-switch:hover:not(:disabled) {
  background: var(--accent-wash);
}
button.theme-switch:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}
.theme-switch::before {
  content: "";
  width: 20px;
  height: 20px;
  background: currentColor;
  mask: url("/brand/sun.svg") center / contain no-repeat;
}
[data-theme="light"] .theme-switch::before {
  mask-image: url("/brand/moon.svg");
}
.theme-switch span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.theme-switch .choose-dark,
[data-theme="light"] .theme-switch .choose-light {
  display: none;
}
[data-theme="light"] .theme-switch .choose-dark {
  display: inline;
}
@media (forced-colors: active) {
  .theme-switch::before {
    background: ButtonText;
    forced-color-adjust: none;
  }
}
