/* ============================================================
   BIORIS — Light palette
   Loaded last (after theme.css). The base design system was built
   dark-first; this file flips the tokens to a light, clinical palette
   and patches the handful of rules that hard-code dark values.
   ============================================================ */

:root {
  /* Accent: same medical-blue hue, darkened so it reads on white. */
  --green:        oklch(0.56 0.15 var(--accent-h));
  --green-bright: oklch(0.64 0.13 var(--accent-h));
  --green-deep:   oklch(0.49 0.15 var(--accent-h));
  --green-ink:    oklch(0.99 0.004 var(--accent-h));   /* text ON the accent */

  /* Neutrals: light surfaces, dark type */
  --ink:        oklch(0.21 0.02 var(--accent-h));
  --paper:      oklch(0.988 0.003 var(--accent-h));    /* page background */
  --paper-2:    oklch(0.968 0.006 var(--accent-h));    /* card surface */
  --paper-3:    oklch(0.945 0.009 var(--accent-h));
  --line:       oklch(0.87 0.012 var(--accent-h));
  --line-soft:  oklch(0.92 0.009 var(--accent-h));
  --muted:      oklch(0.49 0.018 var(--accent-h));
  --muted-2:    oklch(0.62 0.014 var(--accent-h));

  /* The former "dark" surfaces become soft tinted panels */
  --teal-deep:   oklch(0.955 0.014 var(--accent-h));
  --teal-deeper: oklch(0.935 0.02 var(--accent-h));
  --black:       oklch(0.972 0.008 var(--accent-h));

  /* ...so "on-dark" type is now dark type */
  --on-dark:      oklch(0.21 0.02 var(--accent-h));
  --on-dark-mut:  oklch(0.46 0.018 var(--accent-h));
  --on-dark-line: oklch(0.86 0.014 var(--accent-h));

  --shadow-sm: 0 1px 2px oklch(0.3 0.03 var(--accent-h) / 0.06), 0 2px 8px oklch(0.3 0.03 var(--accent-h) / 0.05);
  --shadow-md: 0 4px 14px oklch(0.3 0.03 var(--accent-h) / 0.08), 0 12px 40px oklch(0.3 0.03 var(--accent-h) / 0.07);
  --shadow-lg: 0 18px 60px oklch(0.3 0.03 var(--accent-h) / 0.12);

  color-scheme: light;
}

/* ---------- Header ---------- */
.site-header { background: oklch(0.988 0.003 var(--accent-h) / 0.85); }
.site-header.on-dark { background: oklch(0.988 0.003 var(--accent-h) / 0.72); }
.on-dark .nav__link:hover,
.on-dark .icon-btn:hover { background: oklch(0.5 0.02 var(--accent-h) / 0.08); }

/* RUO banner: a quiet accent strip instead of a dark bar */
.ruo-banner { background: oklch(0.56 0.15 var(--accent-h) / 0.08); color: var(--muted); border-bottom-color: var(--line-soft); }
.ruo-banner b { color: var(--green-deep); }

/* Mobile nav + mega-menu feature tile */
.mobile-nav a { border-bottom-color: var(--line-soft); }

/* ---------- Forms ---------- */
.input, .select, .textarea { color-scheme: light; background: #fff; }
.dark .input, .dark .select, .dark .textarea { background: #fff; border-color: var(--line); color: var(--ink); }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active,
select:-webkit-autofill, textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  box-shadow: 0 0 0 1000px #fff inset;
}
input:autofill, select:autofill, textarea:autofill { box-shadow: 0 0 0 1000px #fff inset; }

/* ---------- Tags / small accents ---------- */
.tag--green { background: oklch(0.56 0.15 var(--accent-h) / 0.12); color: var(--green-deep); }
.lang-switch__link.is-active { color: var(--green-deep); }
.gate-note { color: var(--green-deep); background: oklch(0.56 0.15 var(--accent-h) / 0.07); border-color: oklch(0.56 0.15 var(--accent-h) / 0.2); }
.acc__body-inner a:hover { color: var(--green-deep); }
.ro-promo__msg.is-error { color: oklch(0.55 0.19 25); }
.woocommerce-error { border-left-color: oklch(0.58 0.19 25); }

/* Cards get a little lift on white */
.card, .pcard { box-shadow: var(--shadow-sm); }

/* ---------- Shop chrome ---------- */
.filterbar { background: oklch(0.988 0.003 var(--accent-h) / 0.9); }
.pdp-sticky { background: oklch(0.988 0.003 var(--accent-h) / 0.94); box-shadow: 0 -10px 30px oklch(0.3 0.03 var(--accent-h) / 0.1); }
.coa-modal__close { background: #fff; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line-soft); }
.footer-col h5 { color: var(--green-deep); }

/* ---------- Accent panels ----------
   CTA band + sign-in brand panel keep a rich deep-blue surface with white
   type, so the page still has contrast moments. Tokens are re-scoped locally. */
.cta-band, .auth-split__brand {
  --on-dark:      oklch(0.98 0.006 var(--accent-h));
  --on-dark-mut:  oklch(0.86 0.03 var(--accent-h));
  --on-dark-line: oklch(0.98 0.006 var(--accent-h) / 0.28);
  --green:        oklch(0.84 0.1 var(--accent-h));
  --green-ink:    oklch(0.24 0.08 var(--accent-h));
  background: linear-gradient(135deg, oklch(0.46 0.15 var(--accent-h)), oklch(0.32 0.11 var(--accent-h)));
  color: var(--on-dark);
}

/* ---------- Hero (light mode) ---------- */
body[data-hero-mode="light"] .hero { background: var(--paper); color: var(--ink); }
body[data-hero-mode="light"] .hero__veil {
  background:
    linear-gradient(90deg, oklch(0.988 0.003 var(--accent-h) / 0.96) 0%, oklch(0.988 0.003 var(--accent-h) / 0.82) 38%, oklch(0.988 0.003 var(--accent-h) / 0.25) 70%, transparent 100%),
    linear-gradient(to top, oklch(0.988 0.003 var(--accent-h) / 0.9), transparent 40%);
}
@media (max-width: 760px) {
  body[data-hero-mode="light"] .hero__veil {
    background: linear-gradient(to top, oklch(0.988 0.003 var(--accent-h) / 0.96) 10%, oklch(0.988 0.003 var(--accent-h) / 0.7) 55%, oklch(0.988 0.003 var(--accent-h) / 0.6) 100%);
  }
}
body[data-hero-mode="light"] .vial { filter: drop-shadow(0 24px 30px oklch(0.3 0.05 var(--accent-h) / 0.22)); }

/* Sign-in panel: drop the dark photo so the deep-blue accent shows through. */
.auth-split__brand > img[src*="auth-dark"] { display: none; }

/* ---------- Category / commitment tiles ----------
   Photos stay dark, so their type must stay light: re-scope the tokens the
   light palette flipped, deepen the bottom shade, and add a soft text shadow. */
.cat-tile {
  --green:       oklch(0.86 0.09 var(--accent-h));
  --on-dark-mut: oklch(0.92 0.015 var(--accent-h));
}
.cat-tile::after {
  background: linear-gradient(to top,
    oklch(0.12 0.03 var(--accent-h) / 0.92) 0%,
    oklch(0.12 0.03 var(--accent-h) / 0.6) 38%,
    transparent 78%);
}
.cat-tile h3, .cat-tile .ct, .cat-tile .go { text-shadow: 0 1px 10px oklch(0.1 0.03 var(--accent-h) / 0.55); }
.cat-tile .ct { font-weight: 500; }
