/* jailoc docs — custom theme polish */

/* ─── Typography ─────────────────────────────────────────────── */
:root {
  --md-text-font: "Inter", sans-serif;
  --md-code-font: "JetBrains Mono", monospace;
}

/* ─── Header logo (dynamic light/dark) ───────────────────────── */
[data-md-color-scheme="default"] .md-header__button.md-logo img {
  content: url("../logo.png");
  height: 2.4rem;
  width: auto;
}

[data-md-color-scheme="slate"] .md-header__button.md-logo img {
  content: url("../logo-dark.png");
  height: 2.4rem;
  width: auto;
}

.md-header__topic:first-child {
  display: none;
}

.md-header__topic + .md-header__topic {
  font-weight: 700;
  opacity: 1;
  transform: translateX(0);
  pointer-events: initial;
  position: static;
}

/* ─── Hero image ─────────────────────────────────────────────── */
.md-content img[alt="jailoc"] {
  display: block;
  margin: 2rem auto 2.5rem;
  max-width: 520px;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

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

/* Slightly more contrast on inline code */
.md-typeset code {
  border-radius: 4px;
  padding: 0.1em 0.35em;
  font-size: 0.85em;
}

/* ─── Tables ─────────────────────────────────────────────────── */
.md-typeset table:not([class]) {
  font-size: 0.85em;
  border-collapse: collapse;
  width: 100%;
}

.md-typeset table:not([class]) th {
  background-color: color-mix(in srgb, var(--md-primary-fg-color) 12%, transparent);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.78em;
}

.md-typeset table:not([class]) tr:hover td {
  background-color: color-mix(in srgb, var(--md-accent-fg-color) 5%, transparent);
}

/* ─── Navigation ─────────────────────────────────────────────── */
.md-nav__title {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.md-typeset h1 {
  display: none;
}

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

/* ─── Downloads page — highlight the binary table ───────────── */
.md-typeset td a[href$=".tar.gz"] {
  font-family: var(--md-code-font);
  font-size: 0.9em;
}

/* ─── Footer ─────────────────────────────────────────────────── */
.md-footer {
  opacity: 0.8;
}
