/* MIR documentation styles (Furo theme + sphinx-design). Colors come from the theme variables in conf.py,
   so everything below works in light and dark mode. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

/* ---------- typography ---------- */
body { font-feature-settings: "cv11", "ss01"; letter-spacing: -0.005em; }
h1, h2, h3, h4 { font-weight: 650; letter-spacing: -0.015em; }
article h1 { font-size: 2.1em; margin-bottom: 0.4em; }
article h2 { margin-top: 2.2rem; padding-bottom: 0.3rem; border-bottom: 1px solid var(--color-background-border); }
article h3 { margin-top: 1.6rem; }
.sidebar-brand-text { font-weight: 700; letter-spacing: 0.04em; }
.sidebar-logo { max-width: 44px; }
code.literal { font-size: 0.86em; padding: 0.08em 0.32em; border-radius: 4px; }
div.highlight pre { font-size: 0.84em; line-height: 1.55; border-radius: 8px; }
div.highlight { border-radius: 8px; }

/* ---------- landing page ---------- */
.mir-hero { padding: 1.4rem 0 0.6rem 0; }
.mir-hero .mir-eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--mir-accent); margin-bottom: 0.4rem;
}
.mir-hero h1.mir-title { font-size: 2.6rem; line-height: 1.12; margin: 0 0 0.6rem 0; border: none; }
.mir-hero .mir-title .mir-grad {
  background: linear-gradient(90deg, var(--color-brand-primary), var(--mir-accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mir-hero p.mir-lead { font-size: 1.12rem; line-height: 1.6; color: var(--color-foreground-secondary); max-width: 46rem; }
.mir-hero .mir-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.1rem 0 0.4rem 0; }
.mir-btn {
  display: inline-block; padding: 0.55rem 1.1rem; border-radius: 8px; font-weight: 600; font-size: 0.95rem;
  text-decoration: none !important; border: 1px solid var(--color-brand-primary); transition: all 0.15s ease;
}
.mir-btn-primary { background: var(--color-brand-primary); color: var(--color-background-primary) !important; }
.mir-btn-primary:hover { filter: brightness(1.1); }
.mir-btn-ghost { color: var(--color-brand-primary) !important; background: transparent; }
.mir-btn-ghost:hover { background: var(--color-background-hover); }
.mir-figure { margin: 1.2rem 0 0.2rem 0; }
.mir-figure img { width: 100%; height: auto; }
.mir-caption { font-size: 0.8rem; color: var(--color-foreground-muted); text-align: center; margin-bottom: 1.2rem; }

/* the landing page h1 is replaced by the hero; keep it for the browser title / toc but hide it visually */
.mir-landing > h1:first-child { display: none; }

/* ---------- cards (sphinx-design) ---------- */
.sd-card { border-radius: 10px !important; border-color: var(--color-background-border) !important;
           background: var(--color-background-primary); transition: transform 0.12s ease, box-shadow 0.12s ease; }
.sd-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08) !important; }
.sd-card .sd-card-title { font-weight: 650; font-size: 1.02rem; margin-bottom: 0.35rem; }
.sd-card .sd-card-body { padding: 1rem 1.1rem; }
.sd-card .sd-card-text, .sd-card p { font-size: 0.92rem; color: var(--color-foreground-secondary); }
.sd-card .sd-octicon { color: var(--color-brand-primary); margin-right: 0.35rem; }
.sd-card-footer { font-size: 0.82rem; background: transparent !important; }
.sd-tab-set > label { font-weight: 600; }

/* small pills used for model properties */
.mir-pill {
  display: inline-block; font-size: 0.72rem; font-weight: 600; padding: 0.08rem 0.5rem; margin: 0 0.25rem 0.25rem 0;
  border-radius: 999px; border: 1px solid var(--color-background-border); color: var(--color-foreground-secondary);
  background: var(--color-background-secondary);
}

/* ---------- tables ---------- */
article table.docutils { border-radius: 8px; overflow: hidden; border: 1px solid var(--color-background-border);
                         box-shadow: none; width: 100%; }
article table.docutils th { background: var(--color-background-secondary); font-weight: 600; text-align: left; }
article table.docutils td, article table.docutils th { padding: 0.5rem 0.75rem; vertical-align: top; font-size: 0.92em;
                                                        border-color: var(--color-background-border); }
article table.docutils tbody tr:hover { background: var(--color-background-hover); }

/* ---------- admonitions ---------- */
.admonition { border-radius: 8px; font-size: 0.94em; }

/* ---------- API pages ---------- */
dl.py.class > dt, dl.py.function > dt { border-radius: 6px; }
table.autosummary td:first-child { white-space: nowrap; }
