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

.hero h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--md-primary-fg-color);
}

.hero p {
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto 1.5rem;
  color: var(--md-default-fg-color--light);
}

/* ─── Grid cards enhancement ─────────────────────────────────────────────── */
.md-typeset .grid.cards > ul > li {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.md-typeset .grid.cards > ul > li:hover {
  border-color: var(--md-primary-fg-color);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* ─── Code blocks — copy button always visible ───────────────────────────── */
.md-clipboard {
  opacity: 0.6;
}

.md-clipboard:hover {
  opacity: 1;
  color: var(--md-primary-fg-color);
}

/* ─── Comparison table — highlight Repod column ──────────────────────────── */
.md-typeset table:not([class]) td:nth-child(2),
.md-typeset table:not([class]) th:nth-child(2) {
  background-color: var(--md-primary-fg-color--transparent, rgba(63,81,181,.06));
  font-weight: 600;
}

/* ─── Navigation — active section indicator ──────────────────────────────── */
.md-nav__item--active > .md-nav__link {
  font-weight: 600;
}

/* ─── Admonition — compliance callout ───────────────────────────────────── */
.md-typeset .admonition.compliance,
.md-typeset details.compliance {
  border-color: #1565C0;
}

.md-typeset .compliance > .admonition-title,
.md-typeset .compliance > summary {
  background-color: rgba(21,101,192,.1);
  border-color: #1565C0;
}

.md-typeset .compliance > .admonition-title::before,
.md-typeset .compliance > summary::before {
  background-color: #1565C0;
  -webkit-mask-image: var(--md-admonition-icon--note);
          mask-image: var(--md-admonition-icon--note);
}

/* ─── API badge labels ───────────────────────────────────────────────────── */
.api-badge {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: monospace;
  letter-spacing: 0.03em;
}

.api-get    { background: #e8f5e9; color: #2e7d32; }
.api-post   { background: #fff3e0; color: #e65100; }
.api-patch  { background: #e3f2fd; color: #1565C0; }
.api-delete { background: #fce4ec; color: #b71c1c; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.md-footer-meta {
  background-color: var(--md-footer-bg-color);
}
