/* Enterprise AI Platform wiki — sober, dense, readable */

:root {
  --eai-ink: #0f172a;
  --eai-brand: #0f3d3a;
  --eai-accent: #0f766e;
  --eai-muted: #64748b;
  --eai-line: rgba(15, 23, 42, 0.08);
}

[data-md-color-scheme="default"] {
  --md-primary-fg-color: #0f3d3a;
  --md-primary-fg-color--light: #145a55;
  --md-primary-fg-color--dark: #0a2a28;
  --md-accent-fg-color: #0f766e;
  --md-typeset-a-color: #0f766e;
  --md-default-fg-color: #0f172a;
  --md-default-fg-color--light: #334155;
  --md-default-fg-color--lighter: #64748b;
  --md-default-fg-color--lightest: #94a3b8;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #0f3d3a;
  --md-accent-fg-color: #2dd4bf;
  --md-typeset-a-color: #5eead4;
}

.md-header {
  background-color: var(--eai-brand);
  box-shadow: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.md-header__topic .md-ellipsis {
  font-weight: 650;
  letter-spacing: -0.015em;
}

.md-header__button.md-logo img,
.md-header__button.md-logo svg,
.md-nav__button.md-logo img,
.md-nav__button.md-logo svg {
  height: 1.6rem;
  width: 1.6rem;
}

.md-tabs {
  background-color: var(--eai-brand);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.md-tabs__link {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.85;
}

.md-tabs__link--active,
.md-tabs__link:hover {
  opacity: 1;
}

.md-grid {
  max-width: 76rem;
}

.md-main__inner {
  margin-top: 0.75rem;
}

.md-typeset h1 {
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: 1.85rem;
  margin-bottom: 0.35em;
  color: var(--eai-ink);
}

.md-typeset h1 + p {
  font-size: 1.02rem;
  color: var(--eai-muted);
  max-width: 46rem;
  line-height: 1.55;
}

.md-typeset > h1 + blockquote {
  border: none;
  border-left: 3px solid var(--eai-accent);
  background: transparent;
  color: var(--eai-muted);
  font-size: 0.9rem;
  padding: 0.35rem 0 0.35rem 0.9rem;
  margin: 0.85rem 0 1.4rem;
}

.md-typeset h2 {
  font-weight: 650;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--eai-line);
  padding-bottom: 0.35rem;
  margin-top: 2rem;
}

.md-typeset h3 {
  font-weight: 650;
  letter-spacing: -0.01em;
}

.md-typeset table:not([class]) {
  font-size: 0.84rem;
  border-radius: 0;
  box-shadow: none;
  border: 1px solid var(--eai-line);
}

.md-typeset table:not([class]) th {
  background: #f8fafc;
  border-bottom: 1px solid var(--eai-line);
  font-weight: 650;
  color: var(--eai-ink);
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) th {
  background: rgba(255, 255, 255, 0.04);
}

.md-typeset table:not([class]) td,
.md-typeset table:not([class]) th {
  padding: 0.55em 0.85em;
}

/* Mermaid: natural size + horizontal scroll (no tiny shrunk text) */
.md-typeset .mermaid {
  margin: 1.35em 0 1.85em;
  padding: 1rem 1.1rem;
  border: 1px solid var(--eai-line);
  background: #fafbfc;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  text-align: center;
}

[data-md-color-scheme="slate"] .md-typeset .mermaid {
  background: rgba(255, 255, 255, 0.02);
}

.md-typeset .mermaid svg {
  max-width: none !important;
  height: auto !important;
  min-height: 220px;
  display: inline-block;
  vertical-align: middle;
}

/* Sequence diagrams often need more height */
.md-typeset .mermaid svg[aria-roledescription="sequence"] {
  min-height: 320px;
}

.md-typeset pre > code {
  border-radius: 2px;
  font-size: 0.78rem;
}

.md-nav__title {
  font-weight: 650;
  color: var(--eai-ink);
}

.md-nav--primary .md-nav__item--nested > .md-nav__link {
  font-weight: 600;
}

.md-nav__link--active {
  font-weight: 650;
}

.md-footer {
  background-color: #0a2a28;
  color: rgba(248, 250, 252, 0.72);
}

.md-footer-meta {
  background-color: #071e1c;
}

.md-copyright {
  font-size: 0.72rem;
  color: rgba(248, 250, 252, 0.55);
}

.md-copyright a {
  color: rgba(248, 250, 252, 0.8);
}

/* Home route cards */
.md-typeset .grid.cards > ul > li,
.md-typeset .grid.cards > ol > li,
.md-typeset .grid > .card {
  border: 1px solid var(--eai-line);
  border-radius: 2px;
  box-shadow: none;
  background: #fff;
}

[data-md-color-scheme="slate"] .md-typeset .grid.cards > ul > li {
  background: rgba(255, 255, 255, 0.03);
}

.md-typeset .grid.cards > ul > li:hover {
  border-color: rgba(15, 118, 110, 0.35);
}

.eai-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--eai-accent);
}

.eai-status {
  display: inline-block;
  margin: 0.35rem 0 1rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--eai-brand);
  border: 1px solid rgba(15, 61, 58, 0.25);
  border-radius: 2px;
}

.eai-path {
  margin: 0.75rem 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--eai-line);
  border-left: 3px solid var(--eai-accent);
  background: #f8fafc;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--eai-ink);
}

[data-md-color-scheme="slate"] .eai-path {
  background: rgba(255, 255, 255, 0.03);
}

.eai-path strong {
  color: var(--eai-brand);
}

.eai-path ol {
  margin: 0.4rem 0 0 1.1rem;
  padding: 0;
}

.eai-path li {
  margin: 0.2rem 0;
}
