/* The built-in eudi-dev theme. theme.js sets data-theme to "dark" or "light".
   :root holds the dark colours, so a page also has them before the script
   runs. */
:root {
  color-scheme: dark;
  --bg: #17191e;
  --bg-header: #1a1d22;
  --bg-surface: #21242a;
  --bg-hover: #2c3038;
  --bg-btn: #2c3038;
  --bg-btn-hover: #3a3f48;
  --bg-btn-dialog: #343841;
  --bg-input: #1c1f24;
  --bg-dialog: #24272d;
  --bg-raised: #383d45;
  --bg-track: #15171b;
  --bg-segment: #3a404d;
  --text-segment: #ffffff;
  --shadow-segment: none;
  --scrim: rgba(8, 9, 11, 0.6);
  --shadow-card: 0 6px 14px rgba(0, 0, 0, 0.35);
  --shadow-dialog: 0 24px 60px rgba(0, 0, 0, 0.45);
  --text: #eceef1;
  --text-dim: #a9afb9;
  --border: #383d45;
  --border-subtle: #2a2e35;
  --border-dialog: #3a3f47;
  --border-raised: #24272d;
  --accent: #8fb4ff;
  --on-accent: #17191e;
  --link: #9dbcff;
  --info-bg: #243559;
  --info-fg: #b9cdfa;
  --ok-bg: #1d3a27;
  --ok-fg: #9fdcae;
  --neutral-bg: #2c3038;
  --neutral-fg: #c9ccd2;
  --warn-bg: #33291a;
  --warn-fg: #f3e3bd;
  --danger-bg: #43231f;
  --danger: #ff9b8f;
  --cyan: #8bd3ea;
  --green: #9fdcae;
  --yellow: #f0c674;
  --red: #ff9b8f;
  --orange: #f5a97f;
  --purple: #c4a7f5;
  --pink: #f0a3c6;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f3f5;
  --bg-header: #ffffff;
  --bg-surface: #ffffff;
  --bg-hover: #eceef2;
  --bg-btn: #eceef2;
  --bg-btn-hover: #dde1e7;
  --bg-btn-dialog: #e6e9ee;
  --bg-input: #ffffff;
  --bg-dialog: #ffffff;
  --bg-raised: #f3f4f7;
  --bg-track: #eceef2;
  --bg-segment: #ffffff;
  --text-segment: #15171a;
  --shadow-segment: 0 1px 3px rgba(20, 30, 60, 0.18);
  --scrim: rgba(20, 24, 32, 0.42);
  --shadow-card: 0 4px 10px rgba(20, 30, 60, 0.18);
  --shadow-dialog: 0 24px 60px rgba(20, 30, 60, 0.22);
  --text: #15171a;
  --text-dim: #5a606a;
  --border: #d5d8de;
  --border-subtle: #e4e6ea;
  --border-dialog: #dfe2e7;
  --border-raised: #dde0e6;
  --accent: #1f4fd1;
  --on-accent: #ffffff;
  --link: #1f4fd1;
  --info-bg: #e8eefc;
  --info-fg: #1a3a8f;
  --ok-bg: #e3f4e8;
  --ok-fg: #17602e;
  --neutral-bg: #eef0f3;
  --neutral-fg: #3e434a;
  --warn-bg: #fff3d6;
  --warn-fg: #4a3a10;
  --danger-bg: #fbe9e7;
  --danger: #b3261e;
  --cyan: #0a6a87;
  --green: #17602e;
  --yellow: #7a5600;
  --red: #b3261e;
  --orange: #9a4a12;
  --purple: #6b3fb8;
  --pink: #a3245f;
}

:root,
[data-theme="dark"] {
  --band: #2a3550;
  --band-line: 1px solid #2a3550;
  --tag-bg: #ffffff;
  --tag-fg: #1b2232;
  --tag-border: #ffffff;
  --tag-spacing: 0.08em;
  --accent: #4fc1c6;
  --on-accent: #10282b;
  --link: #7fd3d6;
}

[data-theme="light"] {
  --band: #1b2232;
  --band-line: 1px solid #1b2232;
  --accent: #1d5f68;
  --on-accent: #ffffff;
  --link: #1d5f68;
}

body > header {
  background: var(--band);
  border-bottom: var(--band-line);
  color-scheme: dark;
  --text: #eef1f6;
  --text-dim: #b3bccc;
  --bg-btn: #2f3a50;
  --bg-btn-hover: #3b4862;
  --bg-hover: #2f3a50;
  --border: #3d4a63;
  --border-subtle: var(--band);
  /* The narrow menu drops down from the header with this background. */
  --bg-header: var(--band);
  --link: #c3cde0;
  --accent: #4fc1c6;
  --on-accent: #10282b;
}

/* The edition tag of theme.yaml, in white on the ink band. */
body > header .edition-tag {
  padding: 4px 7px;
  border: 1.5px solid var(--tag-border);
  border-radius: 5px;
  background: var(--tag-bg);
  color: var(--tag-fg);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: var(--tag-spacing);
}

/* Parts for the personal test wallet: the browser extension and the PID
   trusted list. theme.yaml hides the CLI entry of the menu. */
#howto-tab-extension,
#howto-trustlist-label,
#howto-trustlist-endpoint,
#howto-accept-label,
#howto-accept-command,
#howto-register-label,
#howto-register-command,
#howto-register-hint {
  display: none;
}
