/* ============================================================
   MOLECULAR DESIGN LAB — UNIFIED COLOR SYSTEM
   2026-11-02
   Structural/brand colors are identical across scientific pages.
   Semantic status colors (success/warning/error) are intentionally preserved.
   ============================================================ */

:root{
  --mdl-brand-accent:#0B7480;
  --mdl-brand-accent-hover:#095F68;
  --mdl-brand-accent-soft:rgba(11,116,128,.10);

  --mdl-brand-title:#10253B;
  --mdl-brand-text:#263B4C;
  --mdl-brand-muted:#5A6B78;

  --mdl-brand-line:#D7E2E6;
  --mdl-brand-surface:#FFFFFF;
  --mdl-brand-soft:#F6FAFA;
}

/* ------------------------------------------------------------
   1. Remove domain-specific identity colors.
   DNA / Protein / Genetics / Immunology / Cloning / Analysis /
   Workspace all use ONE MDL structural accent.
   ------------------------------------------------------------ */

html body[data-mdl-domain]{
  --mdl-domain-accent:var(--mdl-brand-accent) !important;
  --mdl-domain-soft:var(--mdl-brand-accent-soft) !important;
  --mdl-accent:var(--mdl-brand-accent) !important;
}

/* ------------------------------------------------------------
   2. Breadcrumb
   ------------------------------------------------------------ */

html body main .mdl-standard-page-breadcrumb,
html body .main .mdl-standard-page-breadcrumb,
html body main .breadcrumb,
html body main .breadcrumbs,
html body main [class*="breadcrumb"],
html body .main .breadcrumb,
html body .main .breadcrumbs{
  color:var(--mdl-brand-muted) !important;
}

html body main .mdl-standard-page-breadcrumb a,
html body .main .mdl-standard-page-breadcrumb a,
html body main .breadcrumb a,
html body main .breadcrumbs a,
html body main [class*="breadcrumb"] a{
  color:var(--mdl-brand-accent) !important;
  text-decoration-color:rgba(11,116,128,.35) !important;
}

/* ------------------------------------------------------------
   3. Category / kicker — always one teal
   Higher specificity deliberately wins over Combination-4
   domain-specific purple/green/orange rules.
   ------------------------------------------------------------ */

html body main .mdl-standard-page-kicker,
html body .main .mdl-standard-page-kicker,

html body[data-mdl-domain] main .eyebrow,
html body[data-mdl-domain] main .kicker,
html body[data-mdl-domain] main .section-kicker,
html body[data-mdl-domain] main .page-kicker,
html body[data-mdl-domain] main .hero-kicker,
html body[data-mdl-domain] main .hero-eyebrow,
html body[data-mdl-domain] main .overline,
html body[data-mdl-domain] main .mdl-eyebrow,
html body[data-mdl-domain] main .mdl-section-kicker,

html body[data-mdl-domain] .main .eyebrow,
html body[data-mdl-domain] .main .kicker,
html body[data-mdl-domain] .main .section-kicker,
html body[data-mdl-domain] .main .page-kicker,
html body[data-mdl-domain] .main .hero-kicker,
html body[data-mdl-domain] .main .hero-eyebrow,
html body[data-mdl-domain] .main .overline,
html body[data-mdl-domain] .main .mdl-eyebrow,
html body[data-mdl-domain] .main .mdl-section-kicker{
  color:var(--mdl-brand-accent) !important;
}

/* ------------------------------------------------------------
   4. One Hero treatment
   ------------------------------------------------------------ */

html body main .mdl-standard-page-hero,
html body .main .mdl-standard-page-hero,
html body main .mdl-unified-page-hero-v2,
html body .main .mdl-unified-page-hero-v2,
html body main .mdl-unified-page-hero,
html body .main .mdl-unified-page-hero{
  border-color:var(--mdl-brand-line) !important;
  border-top-color:var(--mdl-brand-accent) !important;

  background:
    radial-gradient(circle at 96% 7%,rgba(32,184,197,.08),transparent 30%),
    linear-gradient(135deg,#FFFDF9 0%,var(--mdl-brand-soft) 100%) !important;
}

/* Legacy heroes not yet normalized still get the same brand accent. */
html body main .hero,
html body main .page-hero,
html body main .tool-hero,
html body main [class$="-hero"],
html body .main .hero,
html body .main .page-hero,
html body .main .tool-hero,
html body .main [class$="-hero"]{
  border-top-color:var(--mdl-brand-accent) !important;
}

/* ------------------------------------------------------------
   5. Headings + descriptive text
   ------------------------------------------------------------ */

html body main h1,
html body .main h1,
html body [role="main"] h1{
  color:var(--mdl-brand-title) !important;
}

html body main h2,
html body main h3,
html body main h4,
html body .main h2,
html body .main h3,
html body .main h4,
html body [role="main"] h2,
html body [role="main"] h3,
html body [role="main"] h4{
  color:var(--mdl-brand-title) !important;
}

html body main .mdl-standard-page-hero p,
html body .main .mdl-standard-page-hero p,
html body main .lead,
html body main .subtitle,
html body main .hero-subtitle,
html body main .page-subtitle,
html body main .hero-description,
html body main .page-description,
html body .main .lead,
html body .main .subtitle,
html body .main .hero-subtitle,
html body .main .page-subtitle{
  color:var(--mdl-brand-muted) !important;
}

/* Ordinary scientific body copy stays darker than subtitles. */
html body main p:not(.lead):not(.subtitle):not(.hero-subtitle):not(.page-subtitle),
html body main li,
html body main dd,
html body .main p:not(.lead):not(.subtitle):not(.hero-subtitle):not(.page-subtitle),
html body .main li,
html body .main dd{
  color:var(--mdl-brand-text);
}

/* ------------------------------------------------------------
   6. Links + non-semantic accents
   ------------------------------------------------------------ */

html body main a:not(.btn):not(.button):not([class*="btn"]),
html body .main a:not(.btn):not(.button):not([class*="btn"]){
  color:var(--mdl-brand-accent);
  text-decoration-color:rgba(11,116,128,.35);
}

/* Domain-coloured metric/stat accents become neutral MDL teal. */
html body[data-mdl-domain] main .stat,
html body[data-mdl-domain] main .metric,
html body[data-mdl-domain] .main .stat,
html body[data-mdl-domain] .main .metric{
  border-color:color-mix(in srgb,var(--mdl-brand-accent) 25%,var(--mdl-brand-line)) !important;
}

html body[data-mdl-domain] main .stat b,
html body[data-mdl-domain] main .metric b,
html body[data-mdl-domain] .main .stat b,
html body[data-mdl-domain] .main .metric b{
  color:var(--mdl-brand-accent) !important;
}

/* Card heading separators use one subtle teal tint. */
html body[data-mdl-domain] main .card h2,
html body[data-mdl-domain] main .panel h2,
html body[data-mdl-domain] main section.card h2,
html body[data-mdl-domain] .main .card h2,
html body[data-mdl-domain] .main .panel h2{
  border-bottom-color:var(--mdl-brand-accent-soft) !important;
}

/* ------------------------------------------------------------
   7. Page-domain helper classes from newer tools.
   Stop them changing the HERO identity color.
   ------------------------------------------------------------ */

html body main .domain-therapy .hero,
html body main .domain-protein .hero,
html body main .domain-dna .hero,
html body main .domain-flow .hero,
html body .main .domain-therapy .hero,
html body .main .domain-protein .hero,
html body .main .domain-dna .hero,
html body .main .domain-flow .hero{
  border-top-color:var(--mdl-brand-accent) !important;
}

/* ------------------------------------------------------------
   8. Semantic colors are NOT homogenized.
   These retain meaning across the platform.
   ------------------------------------------------------------ */

/* Success remains green.
   Warning remains amber.
   Error remains red.
   We intentionally do not override:
   .ok, .success, .warn, .warning, .error, .bad,
   status badges, scientific consequence classifications, or charts. */

/* ------------------------------------------------------------
   9. Dark mode — same identity hierarchy, dark surfaces
   ------------------------------------------------------------ */

html[data-theme="dark"]{
  --mdl-brand-accent:#65D5DD;
  --mdl-brand-accent-hover:#8BE2E8;
  --mdl-brand-accent-soft:rgba(101,213,221,.11);

  --mdl-brand-title:#F2F6F8;
  --mdl-brand-text:#D7E1E8;
  --mdl-brand-muted:#AFC0CD;

  --mdl-brand-line:#294055;
  --mdl-brand-surface:#0D1C2C;
  --mdl-brand-soft:#102235;
}

html[data-theme="dark"] body main .mdl-standard-page-hero,
html[data-theme="dark"] body .main .mdl-standard-page-hero,
html[data-theme="dark"] body main .mdl-unified-page-hero-v2,
html[data-theme="dark"] body .main .mdl-unified-page-hero-v2{
  background:
    radial-gradient(circle at 96% 7%,rgba(101,213,221,.09),transparent 30%),
    linear-gradient(135deg,#0D1C2C 0%,#102235 100%) !important;
}

/* ------------------------------------------------------------
   Homepage intentionally keeps its bespoke showcase palette.
   ------------------------------------------------------------ */
