/* ECCO-DarwinDiff docs — Furo-inspired restyle.
   System fonts (set via theme.font: false), magenta accent, flat neutral header,
   clean minimal headings. Site-only presentation; no content is affected. */

/* ---- Accent: Ai2-style magenta for links + interactive bits (Furo signature). ---- */
:root {
  --md-accent-fg-color: #e6157a;
  --md-typeset-a-color: #c8136a;
}

[data-md-color-scheme="slate"] {
  --md-accent-fg-color: #ff77b3;
  --md-typeset-a-color: #ff77b3;
}

/* ---- Flat, neutral header — Furo has no colored top bar or drop shadow. ---- */
.md-header,
.md-header--shadow {
  box-shadow: none;
}

.md-header {
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
}

/* ---- Reading rhythm: comfortable measure + Furo-ish line-height. ---- */
.md-grid {
  max-width: 65rem;
}

.md-typeset {
  line-height: 1.65;
}

/* Clean headings: bold, well-spaced, no heavy separators. */
.md-typeset h1 {
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

.md-typeset h2 {
  font-weight: 600;
  margin: 2.2em 0 0.7em;
}

.md-typeset h3 {
  font-weight: 600;
  margin: 1.8em 0 0.5em;
}

.md-typeset h4 {
  font-weight: 600;
  margin: 1.4em 0 0.4em;
}

.md-typeset p,
.md-typeset ul,
.md-typeset ol {
  margin: 0.7em 0;
}

.md-typeset li {
  margin-bottom: 0.35em;
}

.md-typeset li > ul,
.md-typeset li > ol {
  margin: 0.35em 0;
}

/* Links: accent colour, underline only on hover (Furo behaviour). */
.md-typeset a {
  text-decoration: none;
}

.md-typeset a:hover {
  text-decoration: underline;
}

/* ---- Tables: clean, light borders, scannable (Material scrolls wide ones). ---- */
.md-typeset table:not([class]) {
  font-size: 0.72rem;
  border: 1px solid var(--md-default-fg-color--lightest);
}

.md-typeset table:not([class]) th {
  font-weight: 700;
  background-color: var(--md-default-fg-color--lightest);
}

.md-typeset table:not([class]) td,
.md-typeset table:not([class]) th {
  padding: 0.5em 0.8em;
  border: none;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
}

/* ---- Code: soft inline background, roomy blocks (Furo-ish). ---- */
.md-typeset pre > code {
  padding: 0.9em 1.1em;
}

.md-typeset :not(pre) > code {
  padding: 0.12em 0.4em;
  border-radius: 0.2rem;
  background-color: var(--md-default-fg-color--lightest);
}

/* ---- Sidebar: quieter type, accent on the active item (Furo). ---- */
.md-nav {
  font-size: 0.7rem;
}

.md-nav__title {
  font-weight: 700;
}

.md-nav__link--active,
.md-nav__item .md-nav__link--active {
  color: var(--md-accent-fg-color);
  font-weight: 600;
}

/* ---- Home grid cards: subtle bordered cards that lift on hover (Furo-style). ---- */
.md-typeset .grid.cards > ul > li,
.md-typeset .grid.cards > ol > li {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.4rem;
  padding: 1em 1.1em;
}

.md-typeset .grid.cards > ul > li:hover,
.md-typeset .grid.cards > ol > li:hover {
  border-color: var(--md-accent-fg-color);
}
