/* Vidai's docs look like the console: its fonts, its tokens (tokens.generated.css), its logo.
   No colour values here: only var(--vd-*). */

@font-face { font-family: 'Manrope Variable'; font-style: normal; font-display: swap; font-weight: 200 800; src: url('../assets/fonts/manrope-latin-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope Variable'; font-style: normal; font-display: swap; font-weight: 200 800; src: url('../assets/fonts/manrope-latin-ext-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Urbanist Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('../assets/fonts/urbanist-latin-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Urbanist Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('../assets/fonts/urbanist-latin-ext-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter Tight Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('../assets/fonts/inter-tight-latin-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --md-text-font: 'Manrope Variable', Manrope, system-ui, sans-serif;
  --md-code-font: ui-monospace, 'SF Mono', Menlo, monospace;
}

.md-typeset h1, .md-typeset h2, .md-typeset h3, .md-typeset h4 {
  font-family: 'Urbanist Variable', Urbanist, system-ui, sans-serif;
  color: var(--vd-heading);
  letter-spacing: -0.01em;
}
.md-typeset h1 { font-weight: 700; }
.md-typeset h2 { font-weight: 650; }
.md-typeset .figure, .md-typeset td.num, .md-typeset .num { font-family: 'Inter Tight Variable', 'Inter Tight', system-ui, sans-serif; font-variant-numeric: tabular-nums; }

/* The header: light like the console's top bar, with a hairline. */
.md-header { color: var(--vd-heading); border-bottom: 1px solid var(--vd-line); box-shadow: none; }
.md-header__button.md-logo img, .md-header__button.md-logo svg { height: 1.05rem; width: auto; }
.md-header__title { font-family: 'Urbanist Variable', system-ui, sans-serif; font-weight: 600; }
.md-tabs { color: var(--vd-ink); border-bottom: 1px solid var(--vd-line); }
.md-search__form { background: var(--vd-surface-soft); border: 1px solid var(--vd-line); }

/* Buttons and links use the console's action colour. */
.md-typeset .md-button { border-color: var(--vd-action); color: var(--vd-action); border-radius: 0.5rem; }
.md-typeset .md-button--primary { background: var(--vd-action); border-color: var(--vd-action); color: var(--vd-on-action); }
.md-typeset .md-button:hover { background: var(--vd-action-strong); border-color: var(--vd-action-strong); color: var(--vd-on-action); }
:focus-visible { outline: 2px solid var(--vd-focus); outline-offset: 2px; }

/* Screenshots and GIFs: framed like a window, never wider than the text. */
.md-typeset img.shot, .md-typeset .shot img {
  border: 1px solid var(--vd-line);
  border-radius: 0.6rem;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--vd-ink) 8%, transparent), 0 8px 24px color-mix(in srgb, var(--vd-ink) 6%, transparent);
  max-width: 100%;
  height: auto;
}
.md-typeset figure { margin: 1.4em auto; }
.md-typeset figcaption { color: var(--vd-muted); font-size: 0.72rem; max-width: 46rem; }
/* Light screenshots in light mode, dark ones in dark mode (see the how-to style guide). */
[data-md-color-scheme='slate'] .only-light, [data-md-color-scheme='default'] .only-dark { display: none !important; }

/* Status is an icon and a word, never colour alone (design rule 7). Use: <span class="status ok">✓ Delivered</span>. */
.md-typeset .status { display: inline-flex; align-items: center; gap: 0.3em; padding: 0.05em 0.55em; border-radius: 999px; font-size: 0.72rem; font-weight: 650; white-space: nowrap; }
.md-typeset .status.ok { background: var(--vd-ok-tint); color: var(--vd-ok); }
.md-typeset .status.info { background: var(--vd-info-tint); color: var(--vd-info); }
.md-typeset .status.warn { background: var(--vd-warn-tint); color: var(--vd-warn); }
.md-typeset .status.bad { background: var(--vd-bad-tint); color: var(--vd-bad); }

/* VidaiMock's tab says it's open source: the edition pill's look, beside the name; the tab's own colours (and how a
   selected tab shows) stay as every other tab's. */
.md-tabs__link[href$="mock/"]::after { content: "open source"; display: inline-block; margin-left: 0.2em; padding: 0 0.4em; border-radius: 999px; font-size: 0.5rem; font-weight: 650; letter-spacing: 0.02em; line-height: 1.6; color: var(--vd-action); background: var(--vd-action-tint); vertical-align: super; }

/* Edition marks: a quiet pill, never a colour alone. */
.md-typeset .edition { display: inline-block; padding: 0.05em 0.55em; border: 1px solid var(--vd-line); border-radius: 999px; font-size: 0.68rem; font-weight: 650; color: var(--vd-heading); background: var(--vd-surface-soft); vertical-align: middle; }

/* The home page's hero. */
.md-typeset .hero { padding: 2.2rem 0 1.2rem; }
.md-typeset .hero h1 { font-size: 2.6rem; line-height: 1.1; margin: 0 0 0.4rem; color: var(--vd-heading); }
.md-typeset .hero .tagline { font-size: 1.15rem; color: var(--vd-muted); margin: 0 0 1.2rem; }

/* Admonitions in token colours. */
.md-typeset .admonition, .md-typeset details { border-radius: 0.5rem; border-width: 1px; border-color: var(--vd-line); box-shadow: none; }
.md-typeset .admonition.note, .md-typeset details.note, .md-typeset .admonition.info, .md-typeset details.info { border-left: 3px solid var(--vd-info); }
.md-typeset .admonition.tip, .md-typeset details.tip, .md-typeset .admonition.success, .md-typeset details.success { border-left: 3px solid var(--vd-ok); }
.md-typeset .admonition.warning, .md-typeset details.warning { border-left: 3px solid var(--vd-warn); }
.md-typeset .admonition.danger, .md-typeset details.danger { border-left: 3px solid var(--vd-bad); }
.md-typeset .note > .admonition-title, .md-typeset .info > .admonition-title, .md-typeset .tip > .admonition-title, .md-typeset .success > .admonition-title, .md-typeset .warning > .admonition-title, .md-typeset .danger > .admonition-title { background: var(--vd-surface-soft); }

/* Tables: hairlines, no zebra. */
.md-typeset table:not([class]) { border: 1px solid var(--vd-line); border-radius: 0.5rem; font-size: 0.74rem; }
.md-typeset table:not([class]) th { background: var(--vd-surface-soft); color: var(--vd-heading); font-weight: 650; }
.md-typeset table:not([class]) td { border-top: 1px solid var(--vd-line); }

/* Step-by-step clips (javascripts/clips.js): a looping video with an "Animated" label and one play/pause button,
   the same in every browser. Icon and word, never colour alone. */
.md-typeset figure.clip { position: relative; margin: 1.4em auto; max-width: 100%; }
.md-typeset figure.clip video { display: block; width: 100%; height: auto; cursor: pointer; }
.md-typeset .clip__label {
  position: absolute; top: 0.6rem; left: 0.6rem; padding: 0.1em 0.6em; border-radius: 999px;
  background: var(--vd-surface); border: 1px solid var(--vd-line); color: var(--vd-heading);
  font-size: 0.68rem; font-weight: 650; pointer-events: none;
}
.md-typeset .clip__button {
  position: absolute; top: 0.6rem; right: 0.6rem; display: inline-flex; align-items: center; gap: 0.4em;
  min-height: 2.2rem; padding: 0.2em 0.9em; border-radius: 999px; border: 1px solid var(--vd-action);
  background: var(--vd-action); color: var(--vd-on-action); font: inherit; font-size: 0.72rem; font-weight: 650;
  cursor: pointer;
}
.md-typeset .clip__button:hover { background: var(--vd-action-strong); border-color: var(--vd-action-strong); }
.md-typeset .clip.is-playing .clip__button { background: var(--vd-surface); color: var(--vd-action); }
/* Play is a triangle, pause two bars: drawn with borders so no icon font is needed. */
.md-typeset .clip__icon { width: 0; height: 0; border-style: solid; border-width: 0.38em 0 0.38em 0.62em; border-color: transparent transparent transparent currentColor; }
.md-typeset .clip.is-playing .clip__icon { width: 0.55em; height: 0.75em; border-width: 0 0.18em; border-color: currentColor; }
.md-typeset figure.clip figcaption { margin-top: 0.4em; }
