/* ============================================================================
   GRIND BRAND LAYER — AXIS 3 (discipline) + brand mark / tag / mascot CSS
   + per-skin signature recipes. Injected into the app together with
   EDITIONS_SKINS.css by DESIGN_ENGINE/inject_skins.mjs. Canonical source: this
   file — edit here, re-inject; never hand-edit the generated block.

   RULE: --grind-accent colors BRAND IDENTITY ONLY (the Signet's bar, the
   discipline tag, Grit's polished facet). UI accent (--accent) belongs to the
   active skin. Do not cross the streams.
   ============================================================================ */

/* ---- discipline accents (data-discipline is set once on <html> per product) */
:root{--grind-accent:#E06A57} /* this build = medicine */
html[data-discipline="medicine"]{--grind-accent:#E06A57}
html[data-discipline="dentistry"]{--grind-accent:#2FA8DC}
html[data-discipline="pharmacy"]{--grind-accent:#2E9E6B}
html[data-discipline="cbse"]{--grind-accent:#F0B90B}
html[data-discipline="optometry"]{--grind-accent:#8B7BD8}
html[data-discipline="eng-electrical"]{--grind-accent:#ED7420}
html[data-discipline="eng-civil"]{--grind-accent:#C0392B}
html[data-discipline="eng-mechanical"]{--grind-accent:#64748B}
html[data-discipline="eng-software"]{--grind-accent:#14B8A6}
html[data-discipline="accounting"]{--grind-accent:#0E7490}
html[data-discipline="actuarial"]{--grind-accent:#B03BBF}
html[data-discipline="law"]{--grind-accent:#A02C4C}
html[data-discipline="nursing"]{--grind-accent:#D6336C}
html[data-discipline="veterinary"]{--grind-accent:#7C9A3D}
html[data-discipline="mcat"]{--grind-accent:#5566B8}
html[data-discipline="casper"]{--grind-accent:#BE3FA5}
html[data-discipline="pharmacology"]{--grind-accent:#8A4BD4}
html[data-discipline="kinesiology"]{--grind-accent:#9EBE1E}
html[data-discipline="nutrition"]{--grind-accent:#37A83B}
html[data-discipline="physiotherapy"]{--grind-accent:#C4657D}
html[data-discipline="occupational-therapy"]{--grind-accent:#A9713B}
html[data-discipline="next"]{--grind-accent:#9AA0A6}

/* ---- sidebar brand mark (Signet G, inline SVG: stone=currentColor, bar=var) */
.sidebar .brand .mark{border-radius:0;overflow:visible;background:none}
.sidebar .brand .mark svg{filter:drop-shadow(0 2px 6px rgba(0,0,0,.35))}
.brand-textcol{display:flex;flex-direction:column;align-items:flex-start}

/* ---- discipline tag pill (the owner's tag device, sidebar edition) */
.brand-tag{display:inline-flex;align-items:center;gap:5px;margin-top:4px;padding:2.5px 8px;
  border:1px solid color-mix(in srgb, var(--grind-accent) 60%, transparent);
  border-radius:999px;color:var(--grind-accent);
  font-family:var(--mono);font-size:8.5px;font-weight:700;letter-spacing:.16em;line-height:1}
.brand-tag svg{width:10px;height:10px;flex-shrink:0}

/* ---- Grit the mascot: body follows muted ink, facet follows the discipline */
.grit{display:block;color:var(--ink-faint)}
.grit-center{margin:0 auto 10px}
.empty-grit{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 0 2px}

/* ============================================================================
   SKIN RECIPES — per-edition structural signatures (kept minimal; token layers
   do the heavy lifting). All critic-mandated guardrails.
   ============================================================================ */

/* SCALPEL: Instrument Serif ships ONE weight — never faux-bold it; micro
   headings drop to the grotesk so the serif only appears at display sizes.
   HARD LOCK: authentic NBME zones excluded from every recipe rule. */
html[data-edition="scalpel"] *{font-synthesis-weight:none}
html[data-edition="scalpel"] :is(h4,h5,h6,.kicker):not(:is(.exam-skin,.nbme-report,.nbme-review,#examOverlay,#examRoomStage,#nb-run,#cb-run) *){font-family:var(--sans);font-weight:600}

/* AERO: glass ONLY on sticky chrome (topbar); in-flow cards stay near-solid.
   Cobalt glow budget lives in the token values (--glow-*, --shadow-hero). */
html[data-edition="aero"] .topbar{
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  background:color-mix(in srgb, var(--bg) 76%, transparent)}

/* FABLE: storybook warmth — hero blooms carry it via tokens; give panels the
   soft-edge treatment at the existing radius, no extra structure needed. */
