/* EndoAI website palette. No mobile or brand-master styles are changed. */
:root {
  color-scheme: light;
  --theme-grey: #252525;
  --theme-medium: #777777;
  --theme-silver: #C0C0C0;
  --theme-yellow: #FFD400;
  --theme-canvas: #F7F7F7;
  --theme-surface: #FAFAFA;
  --theme-soft: #EEEEEE;
  --theme-text-secondary: #4A4A4A;
  --theme-text-muted: #595959;
  --theme-charcoal: #202020;
  --theme-border: #D4D4D4;
  --theme-yellow-hover: #FFE455;
}
/* Yellow is an action/selection accent; dark ink keeps it readable. */
:root .btn-primary, :root .btn-download, :root .nav-download,
:root .button-primary, :root a#open.btn {
  background: var(--theme-yellow); color: var(--theme-grey); border-color: var(--theme-grey);
}
:root .btn-primary:hover, :root .btn-download:hover, :root .nav-download:hover,
:root .button-primary:hover, :root a#open.btn:hover { background: var(--theme-yellow-hover); color: var(--theme-grey); }
:root .chip[aria-pressed="true"], :root .chip[aria-selected="true"], :root .chip[aria-checked="true"],
:root .demo-chips button[aria-pressed="true"], :root .journey-steps button[aria-current="step"],
:root .chapter-nav a[aria-current="true"] {
  background: var(--theme-yellow); color: var(--theme-grey); border-color: var(--theme-grey);
}
:root .primary-nav a[aria-current="page"]::after, :root .desktop-nav a::after { background: var(--theme-yellow); }
:root .mobile-menu nav a[aria-current="page"] { background: var(--theme-yellow); color: var(--theme-grey); }
:root .legal-toc a[aria-current="location"] { border-bottom-color: var(--theme-grey); box-shadow: inset 4px 0 var(--theme-yellow); }
:root input[type="range"], :root input[type="checkbox"], :root input[type="radio"] { accent-color: var(--theme-yellow); }
:root ::selection { background: var(--theme-yellow); color: var(--theme-grey); }
/* Dual-tone focus remains distinct on both silver and charcoal. */
:root :focus-visible { outline-color: var(--theme-grey); box-shadow: 0 0 0 6px var(--theme-yellow); }
:root .scene-dark :focus-visible, :root .holo :focus-visible,
:root body[data-page="home"] .site-header :focus-visible, :root .site-footer :focus-visible {
  outline-color: var(--theme-yellow); box-shadow: 0 0 0 6px var(--theme-grey);
}
@media (forced-colors: active) {
  :root :focus-visible { outline-color: Highlight; box-shadow: none; }
  :root .chip[aria-pressed="true"], :root .chip[aria-selected="true"] { border: 3px solid Highlight; }
}

:root .btn-secondary { background: transparent; color: var(--theme-grey); border-color: var(--theme-medium); }
:root .scene-dark .btn-secondary { background: rgba(37,37,37,.55); color: var(--theme-soft); border-color: var(--theme-silver); }
:root .btn-secondary:hover { border-color: var(--theme-grey); box-shadow: inset 0 -3px var(--theme-yellow); }
:root .scene-dark .btn-secondary:hover { border-color: var(--theme-yellow); }

/* Neutral keylines keep yellow selection marks visible on pale surfaces. */
:root .primary-nav a[aria-current="page"] { font-weight: 600; }
:root .primary-nav a[aria-current="page"]::after { box-shadow: 0 1px var(--theme-grey); }
:root input[type="range"]::-webkit-slider-thumb { outline: 1px solid var(--theme-grey); border-radius: 50%; }
:root input[type="range"]::-moz-range-thumb { border: 1px solid var(--theme-grey); background: var(--theme-yellow); }
