body:has(> .obsidian-field) {
  min-height: 100svh;
  isolation: isolate;
  background-color: #101214;
}

.obsidian-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  pointer-events: none;
}

/* Text that sits directly over the field uses its graphite foreground palette. */
.operations-header,
.schedule-content > :is(.schedule-views, .schedule-period, .schedule-filters),
.passenger-request-heading,
.passenger-request-page .request-footer,
.auth-footer,
.account-main > :is(header, h1) {
  color-scheme: dark;
  color: #eff0ee;
}

/* Give long-form text a local reading surface while retaining the field in the gutters. */
body:has(> .obsidian-field) :is(.privacy-page, .privacy-footer, .error-page, .developer-mfa,
  .access-public-main, .recipient-offer-page) {
  background: color-mix(in srgb, var(--fc-panel, #191c20) 90%, transparent);
}

body[data-page="error"]:has(> .obsidian-field) .error-page {
  width: min(calc(100% - 2rem), 42rem);
  padding: clamp(1.25rem, 4vw, 2rem);
  border-radius: var(--fc-radius);
}

@media (forced-colors: active) {
  .obsidian-field { display: none; }
}
