/* OunceMCP docs: small refinements on top of Material. */
:root {
  --md-text-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --md-code-font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* Readable line length for prose. */
.md-grid { max-width: 1340px; }
.md-typeset { font-size: 0.8rem; line-height: 1.7; }
.md-typeset p, .md-typeset li { max-width: 46rem; }

/* Tables span the content width and stay compact. */
.md-typeset table:not([class]) { display: table; width: 100%; font-size: 0.74rem; }
.md-typeset table:not([class]) th { white-space: nowrap; }

/* File names above code blocks. */
.md-typeset .highlight span.filename { font-size: 0.72rem; font-weight: 600; }

/* Landing page. */
.md-typeset .hero { margin: 0.5rem 0 1.5rem; }
.md-typeset .hero h1 { margin-bottom: 0.4rem; font-weight: 700; }
.md-typeset .hero p.tagline { font-size: 1.05rem; color: var(--md-default-fg-color--light); max-width: 40rem; }
.md-typeset .grid.cards > ul > li { border-radius: 0.5rem; }

/* Brand colours from the logo: ink header, amber accent. */
[data-md-color-primary=custom] {
  --md-primary-fg-color: #15161A;
  --md-primary-fg-color--light: #2a2c33;
  --md-primary-fg-color--dark: #0d0e11;
}
[data-md-color-accent=custom] {
  --md-accent-fg-color: #E79A0B;
  --md-accent-fg-color--transparent: rgba(231, 154, 11, 0.1);
}
[data-md-color-scheme=default] { --md-typeset-a-color: #A15C00; }
[data-md-color-scheme=slate] {
  --md-typeset-a-color: #F0B44C;
  --md-primary-fg-color: #0d0e11;
}
.md-header__button.md-logo img { height: 1.5rem; }

/* Landing page logo. */
.md-typeset .hero .hero-logo { margin: 0 0 0.6rem; }
.md-typeset .hero .hero-logo img { width: 420px; max-width: 100%; height: auto; }
.md-typeset .hero h1.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0;
}

/* Buttons stay readable on the dark scheme. */
[data-md-color-scheme=slate] .md-typeset .md-button { color: #F4F6F8; border-color: #F4F6F8; }
[data-md-color-scheme=slate] .md-typeset .md-button--primary { background-color: #E79A0B; border-color: #E79A0B; color: #15161A; }
.md-typeset .md-button:focus, .md-typeset .md-button:hover { background-color: #E79A0B; border-color: #E79A0B; color: #15161A; }
