/* ------------------------------------------------------------------
   SOFT LIGHT: the site's dark mode, switched on from the header.
   Loaded after each page's own styles, so it only has to swap the
   colour variables and fix the few spots that use fixed colours.
   soft-light.js turns it on and remembers the visitor's choice.
   ------------------------------------------------------------------ */

/* Header button */
header .logo { margin-right: auto; }
.soft-light-toggle { order: 1; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px 0 13px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text); font: inherit; font-size: 0.9rem; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease; }
.soft-light-toggle:hover { background: var(--teal-soft); border-color: var(--teal); }
.soft-light-toggle:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.soft-light-toggle[aria-pressed="true"] { background: var(--teal-tint); border-color: var(--teal); }
.soft-light-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.soft-light-toggle .sun { display: none; }
.soft-light-toggle[aria-pressed="true"] .moon { display: none; }
.soft-light-toggle[aria-pressed="true"] .sun { display: block; }
/* not enough room for the words next to the full menu (with the Patient Portal button): icon only, the name stays for screen readers */
.soft-light-toggle { width: 40px; padding: 0; }
.soft-light-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 1540px) {
  .soft-light-toggle { order: 0; width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .soft-light-toggle { transition: none; }
}

/* Soft Light colours */
html[data-theme="soft"] {
  color-scheme: dark;
  --bg: #0f2138; /* one solid navy background across the page */
  --cream: #0f2138;
  --surface: #172d4a;
  --text: #e6ebf1;
  --muted: #a6b1c0;
  --teal: #d9b45a; /* lines, dots and icons: gold in Soft Light */
  --teal-dark: #e6c578; /* secondary colour: gold in Soft Light (navy in the light theme) */
  --teal-tint: #1d3a5e;
  --teal-soft: #152b47;
  --line: #263f61;
}
html[data-theme="soft"] .logo img { content: url("images/logo-wordmark-soft.png"); }
html[data-theme="soft"] .footer-brand img { content: url("images/logo-full-soft.png"); }
html[data-theme="soft"] .book-logo { content: url("images/logo-full-soft.png"); }
html[data-theme="soft"] .hero { background: #0c2340; }
/* white buttons keep navy text: gold would be too faint on white */
html[data-theme="soft"] .btn-light,
html[data-theme="soft"] .plan.featured .btn { color: #0c2340; }
html[data-theme="soft"] .plan .badge { background: var(--text); color: var(--bg); }
html[data-theme="soft"] .feature .content { background: rgba(23, 45, 74, 0.82); }
html[data-theme="soft"] .feature.navy { --tag: #b9cdf0; --tag-bg: #22314a; }
html[data-theme="soft"] .feature.teal { --tag: #8fd3d1; --tag-bg: #1d3940; }
html[data-theme="soft"] .feature.green { --tag: #8fd6ac; --tag-bg: #1c3a2a; }

/* Header Meet & Greet button: gold in Soft Light, royal blue stays in the light theme */
html[data-theme="soft"] nav .btn { background: #d9b45a; border-color: #d9b45a; color: #121a24; }
html[data-theme="soft"] nav .btn:hover { background: #e6c578; border-color: #e6c578; }

/* Soft Light header: gold highlight boxes, line and icons to match the gold button */
html[data-theme="soft"] header { border-bottom-color: #d9b45a; }
html[data-theme="soft"] nav a:not(.btn):hover,
html[data-theme="soft"] nav a.active:not(.btn),
html[data-theme="soft"] .has-menu.open > a { background: rgba(217, 180, 90, 0.16); color: #e6c578; }
@media (hover: hover) {
  html[data-theme="soft"] .has-menu:hover > a,
  html[data-theme="soft"] .has-menu:focus-within > a { background: rgba(217, 180, 90, 0.16); color: #e6c578; }
}
html[data-theme="soft"] .menu { border-top-color: #d9b45a; }
html[data-theme="soft"] .menu a::before { background: #d9b45a; }
html[data-theme="soft"] .menu a:hover,
html[data-theme="soft"] .menu a:focus-visible { background: rgba(217, 180, 90, 0.12); color: #e6c578; }
html[data-theme="soft"] .soft-light-toggle { color: #d9b45a; border-color: rgba(217, 180, 90, 0.45); }
html[data-theme="soft"] .soft-light-toggle:hover,
html[data-theme="soft"] .soft-light-toggle[aria-pressed="true"] { background: rgba(217, 180, 90, 0.14); border-color: #d9b45a; }
html[data-theme="soft"] .soft-light-toggle:focus-visible { outline-color: #d9b45a; }
html[data-theme="soft"] .nav-toggle span { background: #d9b45a; }
html[data-theme="soft"] header.nav-open .nav-toggle { background: rgba(217, 180, 90, 0.16); }

/* Soft Light hero Meet & Greet bar: gold lettering */
html[data-theme="soft"] .hero-meet strong { color: #e6c578; }
html[data-theme="soft"] .hero-cta { color: #8a6a1f; }

/* gold tab fill needs dark text */
html[data-theme="soft"] .care-tabs button.active { color: #121a24; }
