/* "Indigo" theme chrome for non-CMS patient pages (prescription form etc.):
   a slim dark bar with the practice logo / name, a hairline footer strip.
   These pages run on conjunto's own light chrome, so the strip is kept dark and
   the page body is left alone — only the two bands are the theme's.
   Accent runs through --c-accent so the per-practice override applies. */

:root {
  --c-accent: #5573c7;
  /* The accent darkened into an ink for small text on a light surface. The
     islands' shared stylesheet paints the links of these pages with the raw
     --c-accent on white, where a light practice accent is unreadable: over an
     8³ sweep of the sRGB cube 330 of 512 accents put the privacy link below
     4.5 : 1. Only the lightness is clamped, so the link keeps the practice's
     colour. The unclamped value stays as the fallback for browsers without
     relative colour syntax — correct for the indigo this theme ships with. */
  --c-accent-ink: var(--c-accent);
}

@supports (color: oklch(from white l c h)) {
  :root {
    --c-accent-ink: oklch(from var(--c-accent) clamp(0.2, l, 0.46) c h);
  }
}

/* Higher specificity than the islands' own `.i-page a:not(.i-btn)`, which is
   loaded after this file. Buttons keep the accent as a fill — their label
   flips to black or white there, so they were never the problem. */
:root .i-page a:not(.i-btn),
:root [data-island] a:not(.i-btn) {
  color: var(--c-accent-ink);
}

.theme-chrome--indigo {
  background: #0d1420;
  border-bottom: 1px solid #24304a;
}

.theme-chrome--indigo .theme-chrome__bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 74rem;
  margin-inline: auto;
  padding: 0.7rem 1.25rem;
}

.theme-chrome__logo {
  height: 2.75rem;
  width: auto;
}

.theme-chrome--indigo .theme-chrome__name {
  color: #fff;
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.theme-chrome__footer {
  margin-top: 3rem;
  padding: 1.25rem;
  background: #141d2e;
  border-top: 1px solid #24304a;
  color: #a3b2c9;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-align: center;
}
