/* PrepMode EduTech — platform theme (16 Nov 2026). Loaded last.
   The platform's own colours: teal + sun with the website's cool greys (docs/BRAND-COLOURS.md).
   Institute colours are untouched: branding.js still sets --brand / --accent-* / --night* per institute at runtime,
   and those inline values win over everything here. Remove the <link> in index.html to undo. */
:root {
  --ink: #101828; --ink-2: #1D2939; --slate: #475467;
  --rule: #EAECF0; --rule-2: #F2F4F7; --field: #D0D5DD;
  --paper: #F8FAFA; --surface: #FFFFFF;
  --night: #101828; --night-2: #1D2939; --night-ink: #AEB7C4;
  --danger: #B42318; --ok: #027A48; --warn-ink: #B54708;
  --brand: #0E7C7B; --brand-ink: #FFFFFF;        /* platform default; each institute's own colour replaces it */
  --sun: #FFC857; --sun-dark: #E5A700; --sun-ink: #101828; --sun-soft: #FFF6DC;
  --teal-soft: #ECFDF5;
}
/* --sun tokens are defined for the platform's own screens (Owner, HR, Content); institute accents still come from branding.js. */

/* ---- Sun accent: platform screens only (Platform administration, Content studio — their menu is .side.dark).
   Institute workspaces never match these rules, so institute colours stay exactly as set. ---- */
/* A. highlights: the open menu item and menu counts */
.side.dark .side-link[aria-current=page] { background: rgba(255, 200, 87, .14); color: #FFFFFF; box-shadow: inset 3px 0 0 var(--sun); }
.side.dark .side-link[aria-current=page] .ico { color: var(--sun); }
.side.dark .side-badge { background: var(--sun); color: var(--sun-ink); }
/* B. the main action button is sun with dark text (secondary, ghost, danger and banner buttons stay as they are) */
.layout:has(.side.dark) .main .btn:not(.secondary):not(.ghost):not(.danger):not(.dark):not(.ow-white):not(.ow-ghostw) {
  background: var(--sun); color: var(--sun-ink); border-color: transparent; }
.layout:has(.side.dark) .main .btn:not(.secondary):not(.ghost):not(.danger):not(.dark):not(.ow-white):not(.ow-ghostw):hover {
  background: var(--sun-dark); filter: none; }
.layout:has(.side.dark) .main .btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
