/* dogmaOS blue-only ocean palette, based on the original uploaded site. Colour-only final cascade; dimensions and motion live
   in the original stylesheets. Legacy variable names remain API-compatible. */
:root, html {
 --dogma-blue:#216A9E;
 --dogma-blue-light:#7FC5EE;
 --dogma-blue-rgb:33,106,158;
 --dogma-coral:var(--dogma-blue);
 --dogma-coral-rgb:var(--dogma-blue-rgb);
 --dogma-coral-ink:var(--dogma-blue);
 --dogma-violet:var(--dogma-coral);
 --dogma-violet-rgb:var(--dogma-coral-rgb);
 --dogma-silver-0:#63788B;
 --dogma-silver-1:#AABFD0;
 --dogma-silver-2:#D6E3ED;
 --dogma-silver-3:#F7FAFC;
 --dogma-page:#F7FAFC;
 --dogma-page-deep:#F7FAFC;
 --dogma-surface:#FFFFFF;
 --dogma-surface-strong:#FFFFFF;
 --dogma-ink:#0B254F;
 --dogma-heading:#0B254F;
 --dogma-copy:#33485E;
 --dogma-muted:#596F83;
 --dogma-line:rgba(33, 106, 158,.18);
 --dogma-glass:rgba(255, 255, 255,.18);
 --dogma-glass-strong:rgba(255, 255, 255,.28);
 --dogma-glass-highlight:rgba(255, 255, 255,.72);
 --dogma-glass-line:rgba(33, 106, 158,.17);
 --dogma-canvas-texture:none;
 /* The archived concept is also kept in the same neutral ocean family. */
 --paper:var(--dogma-page);--paper-deep:#EAF1F6;--paper-light:#FFFFFF;
 --ink:var(--dogma-ink);--copy:var(--dogma-copy);--muted:var(--dogma-muted);
 --rule:#CADBE7;--moss:#216A9E;--moss-light:#7FC5EE;
 --rust:#5EA5D8;--rust-dark:#296A98;--white:#FFFFFF;
}

/* One unbroken flat canvas under the original scrolling and wave layers. */
html, body, #main-scroll, .dogma-rich-page, .dogma-content-page, .dogma-page-frame, .dogma-page-content, .dogma-content-lift > .dogma-snap-container, .members-snap-zone, .members-roster, .dogma-footer, footer, html.dogma-wave-lift-ready .dogma-tidal-hero, html .dogma-tidal-hero, .dogma-title-only-hero, .hero-gradient, body > main, body > .min-h-screen {
 background-color:var(--dogma-page) !important;
 background-image:none !important;
}
/* Remove only colour from ambient page patches / grids. Their geometry,
   opacity keyframes and input handling are intentionally untouched. */
.dogma-static-color-field, .dogma-static-patch, .dogma-title-wrap::before, .dogma-tidal-hero::before, .dogma-subpage-hero::before, .hp-rebuild-hero::after, .dogma-software-hero::before {
 background:transparent !important;
 background-image:none !important;
}
/* Every heading, including nested spans and the changing homepage font frames,
   has a solid fill. Existing fonts, sizes, filters and animation remain intact. */
html body :is(h1,h2,h3,h4,h5,h6), html body :is(h1,h2,h3,h4,h5,h6) :is(span,strong,em,b,a), html body .dogma-title-final, html body .dogma-title-scramble, html body .dogma-frame-text, html body .dogma-decode-slot, html body .dogma-glass-title, html body .title-fix, html body .bg-clip-text {
 color:var(--dogma-heading) !important;
 -webkit-text-fill-color:var(--dogma-heading) !important;
 -webkit-text-stroke-color:transparent !important;
 background-image:none !important;
 background-color:transparent !important;
 background-clip:border-box !important;
 -webkit-background-clip:border-box !important;
}
/* Flat ordinary surfaces, with the original dark glass navigation / optical
   objects kept transparent. Existing glass gradients are not replaced here. */
html .bg-primary-light, html [class*="bg-primary-light/"], html .cycle-card, html .card-lift, html .dogma-content-card {
 background-color:var(--dogma-surface) !important;
 background-image:none !important;
}
html .bg-primary, html [class*="bg-primary/"] {background-color:var(--dogma-page) !important;}
html .text-accent, html .text-accent-glow {color:var(--dogma-blue) !important;}
html .text-sand, html [class*="text-sand/"] {color:var(--dogma-coral-ink) !important;}
html .bg-sand {background-color:var(--dogma-coral) !important;}
html [class*="bg-sand/"] {background-color:rgba(var(--dogma-coral-rgb),.12) !important;}
html .border-sand, html [class*="border-sand/"] {border-color:rgba(var(--dogma-coral-rgb),.38) !important;}
html .from-sand {--tw-gradient-from:var(--dogma-coral);--tw-gradient-to:transparent;}
html .to-sand {--tw-gradient-to:var(--dogma-coral);}
html .fill-sand {fill:var(--dogma-coral) !important;}
html .stroke-sand {stroke:var(--dogma-coral) !important;}
/* Tailwind gradients used on ordinary buttons / cards / page overlays flatten
   to a semantic solid colour. Optical wave SVGs use their own original stops. */
html [class*="bg-gradient-"] {background-image:none !important;background-color:var(--dogma-surface) !important;}
html [class*="bg-gradient-"][class*="from-accent"] {background-color:var(--dogma-blue) !important;}
html [class*="bg-gradient-"][class*="from-sand"] {background-color:var(--dogma-coral) !important;}
html [class*="bg-gradient-"][class*="from-primary"] {background-color:var(--dogma-page) !important;}
html [class*="bg-gradient-"][class*="from-transparent"] {background-color:transparent !important;}
html :is(a,button)[class*="bg-gradient-"][class*="from-accent"], html :is(a,button).bg-accent {color:#FFFFFF !important;}

html .activity-color-0 {background:#216A9E !important;}
html .activity-color-1 {background:#174D78 !important;}
html .activity-color-2 {background:#0B254F !important;}
html .activity-color-3 {background:#609FCA !important;}
html .nav-link.is-active {background-color:var(--dogma-blue) !important;background-image:none !important;}

html .dogma-logo-mark img { /* Source pixels and original logo filters are unchanged. */ }
html .dogma-wave-hero, html .software-system-hero, html .model-matrix-hero {
 background-color:var(--dogma-page) !important;background-image:none !important;
}
html .dogma-wave-hero::before, html .software-system-hero::after, html .model-code-field::before, html .model-code-field::after, html .model-hero-copy::before, html .software-hero-copy::before, html .hp-hero-glow-a, html .hp-hero-glow-b {
 background:transparent !important;background-image:none !important;
}
html .education-orbit b {background:var(--dogma-blue) !important;}
html .hp-phase-orbit b {background:rgba(var(--dogma-blue-rgb),.16) !important;}
/* Navigation retains its existing text-only active treatment. */
html .nav-link.is-active {
 background-color:transparent !important;color:var(--dogma-blue) !important;
}
/* Old full-page ambient blobs no longer paint the neutral canvas. */
html .animate-blob, html .blur-3xl {background-color:transparent !important;background-image:none !important;}
/* Match the old highly specific hero overrides without altering typography. */
html body :is(h1,h2,h3,h4,h5,h6)[class][class][class], html body :is(h1,h2,h3,h4,h5,h6)[class][class][class] :is(span,strong,em,b,a) {
 color:var(--dogma-heading) !important;
 -webkit-text-fill-color:var(--dogma-heading) !important;
 -webkit-text-stroke-color:transparent !important;
 background-image:none !important;background-color:transparent !important;
 -webkit-background-clip:border-box !important;background-clip:border-box !important;
}
/* Existing legacy hero rules live in a cascade layer. Important declarations
   in that layer outrank unlayered overrides, so replace their colour in-layer. */
@layer dogma-legacy-hero {
 html body :is(h1,h2,h3,h4,h5,h6)[class][class][class], html body :is(h1,h2,h3,h4,h5,h6)[class][class][class] :is(span,strong,em,b,a) {
  color:var(--dogma-heading) !important;
  -webkit-text-fill-color:var(--dogma-heading) !important;
  -webkit-text-stroke-color:transparent !important;
  background-image:none !important;background-color:transparent !important;
  -webkit-background-clip:border-box !important;background-clip:border-box !important;
 }
}

:root {--dogma-on-blue:#FFFFFF;}

html .dogma-tidal-hero .dogma-subpage-lead, html .dogma-wave-hero .dogma-subpage-lead {color:var(--dogma-copy) !important;}
html .dogma-tidal-hero .dogma-eyebrow, html .dogma-wave-hero .dogma-eyebrow {color:var(--dogma-blue) !important;}
html .wetlab-panel-marker, html .hp-value-grid article > span, html .ihp-buoys article > span, html .boat-switcher button.is-active, html .activity-modal-close, html .education-orbit b {color:var(--dogma-on-blue) !important;}
/* Archived editorial prototype uses the same neutral translucent header. */
html .site-header, html .site-header.is-scrolled {
 background-color:var(--dogma-glass-strong) !important;
 border-color:var(--dogma-line) !important;
}
/* Former warm solid badges now use the same readable blue surface treatment. */
html .bg-sand, html :is(a,button)[class*="bg-gradient-"][class*="from-sand"] {
 color:var(--dogma-on-blue) !important;
}
/* Preserve Education's circular hub while keeping blue title ink readable. */
html .edu-hub { background-color:var(--dogma-surface) !important; }
