/* Match the tariff paper and reading contrast wherever these components are used. */
html.orbit {
  --holgo-surface-ink: #121214;
  --holgo-surface-copy: #45444d;
}

html.orbit[data-orbit-theme="dark"] {
  --holgo-surface-ink: #f4f3ed;
  --holgo-surface-copy: #cfcfd6;
}

html.orbit header nav .group > div > .bg-popover {
  --popover: var(--calc-surface);
  --muted: var(--calc-surface);
  --foreground: var(--holgo-surface-ink);
  --muted-foreground: var(--holgo-surface-copy);
  color: var(--foreground);
}

html.orbit header nav .group > div > .bg-popover > div + div {
  background-color: color-mix(in srgb, var(--popover) 45%, var(--background));
}

html.orbit:not([data-orbit-theme="dark"]) .orbit-ai-summary .grid > .bg-card:first-child:has(> .text-destructive > .lucide-triangle-alert) {
  background-color: #3b3a43;
  color: #f4f3f5;
}

html.orbit:not([data-orbit-theme="dark"]) .orbit-ai-summary .grid > .bg-card:first-child:has(> .text-destructive > .lucide-triangle-alert) > .text-destructive {
  color: #ffaba4;
}

html.orbit:not([data-orbit-theme="dark"]) .orbit-ai-summary .grid > .bg-card:first-child:has(> .text-destructive > .lucide-triangle-alert) > p {
  color: #e1dfe6 !important;
}

html.orbit main :where(
  .site-related-card,
  .article-teaser,
  .article-related a,
  #faq .bg-card:has(> h3 > button[aria-expanded]),
  #faq details.bg-card,
  :is(a[href^="tel:"], a[href^="mailto:"], a[href^="https://t.me/"]) > .bg-card,
  .bg-card:has(> div > .lucide-map-pin),
  form:has(input[name="name"])
) {
  --card: var(--calc-surface);
  --foreground: var(--holgo-surface-ink);
  --muted-foreground: var(--holgo-surface-copy);
}

html.orbit main .orbit-related a.bg-card {
  --background: var(--calc-surface);
  --foreground: var(--holgo-surface-ink);
  --muted-foreground: var(--holgo-surface-copy);
}

html.orbit main .faq-hub-item {
  --foreground: var(--holgo-surface-ink);
  --muted-foreground: var(--holgo-surface-copy);
  background-color: var(--calc-surface);
  color: var(--foreground);
}

html.orbit [role="dialog"]:has(form input[name="name"]) {
  --popover: var(--calc-surface);
  --foreground: var(--holgo-surface-ink);
  --muted-foreground: var(--holgo-surface-copy);
  background-color: var(--popover);
  color: var(--foreground);
}

html.orbit :is(main, [role="dialog"]) form:has(input[name="name"]) :is(
  input:not([type="checkbox"], [type="radio"], [type="range"]), select, textarea
) {
  background-color: var(--calc-surface);
  color: var(--holgo-surface-ink);
}
