:root {
  --site-wordmark-type: #eaf6ff;
  --site-wordmark-emblem: #69caff;
}

.clinic-theme-white,
.clinic-entry-page[data-theme="light"] {
  --site-wordmark-type: #0c2542;
  --site-wordmark-emblem: #0869a8;
}

.site-brand-wordmark {
  display: grid;
  width: var(--site-wordmark-width, 150px);
  max-width: 100%;
  aspect-ratio: 600 / 143;
  flex-shrink: 0;
}

.site-brand-wordmark::before,
.site-brand-wordmark::after {
  content: "";
  grid-area: 1 / 1;
  mask: var(--site-wordmark-layer) center / contain no-repeat;
}

.site-brand-wordmark::before {
  --site-wordmark-layer: url("/brand/orzida-lockup-emblem.png");
  background-color: var(--site-wordmark-emblem);
}

.site-brand-wordmark::after {
  --site-wordmark-layer: url("/brand/orzida-lockup-type.png");
  background-color: var(--site-wordmark-type);
}

.site-brand-mark {
  display: inline-block;
  width: var(--site-mark-width, 1em);
  aspect-ratio: 192 / 184;
  flex-shrink: 0;
  background-color: var(--site-wordmark-emblem);
  mask: url("/brand/orzida-emblem.png") center / contain no-repeat;
}

@media (max-width: 600px) {
  .site-brand-wordmark { --site-wordmark-width: 124px; }
}

@media print {
  .site-brand-wordmark {
    --site-wordmark-type: #0c2542;
    --site-wordmark-emblem: #0869a8;
    print-color-adjust: exact;
  }
}

/* Use the original component colors for printing and for clinics in white mode. */
@media screen {
  :root:not(:has(body.clinic-theme-white)) {
    color-scheme: dark;
    --dp-canvas: #0b1c32;
    --dp-surface: #132c49;
    --dp-panel: #1b3656;
    --dp-field: #0d233b;
    --dp-selected: #244b76;
    --dp-text: #f2f7ff;
    --dp-muted: #b9cce0;
    --dp-link: #a1ceff;
    --dp-line: #3c5978;
    --dp-field-line: #6282a4;
    --dp-focus: #9bcbff;
    --dp-success-bg: #163f3b;
    --dp-success-text: #a8e7ce;
    --dp-success-line: #478573;
    --dp-warning-bg: #473718;
    --dp-warning-text: #ffdc99;
    --dp-warning-line: #917343;
    --dp-danger-bg: #482838;
    --dp-danger-text: #ffc2c5;
    --dp-danger-line: #a86070;
  }

  :root:not(:has(body.clinic-theme-white)) :focus-visible {
    outline: 2px solid var(--dp-focus);
    outline-offset: 3px;
  }

  :root:not(:has(body.clinic-theme-white)) ::placeholder {
    color: var(--dp-muted);
    opacity: .85;
  }
}
