/* ============================================================
   syntiq-mt5 documentation — custom styles
   Material for MkDocs 9.x compatible
   ============================================================ */

/* ── Logo sizing ─────────────────────────────────────────── */
.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  width: 2rem;
  height: 2rem;
}

/* ── Typography refinements ──────────────────────────────── */
.md-typeset h1 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.md-typeset h2 {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.md-typeset h3 {
  font-weight: 600;
}

/* ── Hero section (homepage) ─────────────────────────────── */
.hero {
  padding: 2.5rem 0 2rem;
  text-align: center;
}

.hero__title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.hero__subtitle {
  font-size: 1.15rem;
  opacity: 0.75;
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* ── Feature grid cards ──────────────────────────────────── */
.md-typeset .grid.cards > ul > li,
.md-typeset .grid.cards > ol > li {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.md-typeset .grid.cards > ul > li:hover,
.md-typeset .grid.cards > ol > li:hover {
  border-color: var(--md-accent-fg-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

[data-md-color-scheme="slate"] .md-typeset .grid.cards > ul > li:hover,
[data-md-color-scheme="slate"] .md-typeset .grid.cards > ol > li:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* ── Code blocks ─────────────────────────────────────────── */
.md-typeset pre > code {
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ── Inline code ─────────────────────────────────────────── */
.md-typeset code {
  font-size: 0.875em;
  border-radius: 0.2rem;
}

/* ── Tables ──────────────────────────────────────────────── */
.md-typeset table:not([class]) {
  font-size: 0.85rem;
}

.md-typeset table:not([class]) th {
  font-weight: 600;
  white-space: nowrap;
}

.md-typeset table:not([class]) td code {
  font-size: 0.8rem;
}

/* ── Admonitions — tighter padding ──────────────────────── */
.md-typeset .admonition,
.md-typeset details {
  font-size: 0.875rem;
}

/* ── Navigation tabs ─────────────────────────────────────── */
.md-tabs__link {
  font-size: 0.8rem;
  font-weight: 500;
}

/* ── Content width — slightly wider for reference pages ─── */
.md-grid {
  max-width: 1280px;
}

/* ── Footer ──────────────────────────────────────────────── */
.md-footer-meta {
  font-size: 0.75rem;
}

/* ── Dark mode palette refinements ──────────────────────── */
[data-md-color-scheme="slate"] {
  --md-default-bg-color: #0f1117;
  --md-default-bg-color--light: #161b22;
  --md-default-bg-color--lighter: #1c2128;
  --md-default-bg-color--lightest: #21262d;
  --md-code-bg-color: #161b22;
}

[data-md-color-scheme="slate"] .md-header {
  background-color: #0f1117;
}

[data-md-color-scheme="slate"] .md-tabs {
  background-color: #0f1117;
}

/* ── Light mode refinements ──────────────────────────────── */
[data-md-color-scheme="default"] {
  --md-code-bg-color: #f6f8fa;
}

/* ── Comparison table highlight ──────────────────────────── */
.md-typeset table:not([class]) tr td:first-child code {
  color: var(--md-code-hl-string-color);
}

/* ── Step badges (used in lifecycle page) ────────────────── */
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--md-accent-fg-color);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  margin-right: 0.5rem;
  vertical-align: middle;
}
