/* Generated by dsfc from audi-ui-example 0.1.0. Do not edit. */

:root {
  color-scheme: light dark;
  --docs-accent: #000000;
  --docs-background: #ffffff;
  --docs-border: #000000;
  --docs-danger: #b3261e;
  --docs-focus: #000000;
  --docs-link: #000000;
  --docs-muted: #333333;
  --docs-on-accent: #ffffff;
  --docs-success: #16692f;
  --docs-surface: #f5f6f8;
  --docs-text: #000000;
  --docs-font: "Audi Type Wide", "Verdana", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --docs-accent: #ffffff;
    --docs-background: #000000;
    --docs-border: #ffffff;
    --docs-danger: #ff8f85;
    --docs-focus: #ffffff;
    --docs-link: #ffffff;
    --docs-muted: #f2f2f2;
    --docs-on-accent: #000000;
    --docs-success: #7bd389;
    --docs-surface: #1b1e23;
    --docs-text: #ffffff;
  }
}

/* Layout and typography of the documentation site. Colors and the text font come from the
   --docs-* custom properties above. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  accent-color: var(--docs-accent);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  display: flex;
  flex-direction: column;
  min-block-size: 100vh;
  margin: 0;
  background: var(--docs-background);
  color: var(--docs-text);
  font-family: var(--docs-font);
  font-size: 1rem;
  line-height: 1.6;
  --docs-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

a {
  color: var(--docs-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--docs-focus);
  outline-offset: 2px;
  border-radius: 2px;
}

code {
  font-family: var(--docs-mono);
  font-size: 0.9em;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  line-height: 1.25;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem);
  letter-spacing: -0.015em;
  margin-block: 0 0.75rem;
}

h2 {
  font-size: 1.5rem;
  margin-block: 3.5rem 1rem;
  padding-block-start: 1.5rem;
  border-block-start: 1px solid var(--docs-border);
}

h3 {
  font-size: 1.2rem;
  margin-block: 2rem 0.75rem;
}

h4 {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--docs-muted);
  margin-block: 1.5rem 0.5rem;
}

p {
  margin-block: 0 1rem;
  max-inline-size: 72ch;
}

.lead {
  font-size: 1.2rem;
  color: var(--docs-muted);
  max-inline-size: 60ch;
}

/* Skip link: visible when focused. */
.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  inset-block-start: -10rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--docs-accent);
  color: var(--docs-on-accent);
  border-radius: 0.375rem;
}

.skip-link:focus {
  inset-block-start: 1rem;
}

/* Header, navigation, footer. */
.site-header,
.site-footer {
  background: var(--docs-surface);
}

.site-header {
  border-block-end: 1px solid var(--docs-border);
}

.site-footer {
  border-block-start: 1px solid var(--docs-border);
  color: var(--docs-muted);
  font-size: 0.9rem;
}

.site-header .inner,
.site-footer .inner,
main {
  max-inline-size: 72rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.site-header .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1rem;
}

.site-footer .inner {
  padding-block: 1.5rem;
}

.site-footer p {
  margin: 0;
}

.brand {
  color: var(--docs-text);
  font-weight: 650;
  font-size: 1.1rem;
  text-decoration: none;
}

.brand img {
  display: block;
  block-size: 2rem;
  inline-size: auto;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--docs-text);
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
}

.site-nav a:hover {
  text-decoration-color: var(--docs-muted);
}

.site-nav a[aria-current] {
  text-decoration-color: var(--docs-link);
  font-weight: 600;
}

main {
  display: block;
  flex: 1 0 auto;
  inline-size: 100%;
  padding-block: 2.5rem 4rem;
}

/* Overview. */
.hero {
  margin-block-end: 2rem;
}

.eyebrow {
  margin-block-end: 0.25rem;
  font-size: 0.9rem;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  margin: 0 0 1.5rem;
}

.facts dt {
  font-size: 0.8rem;
  color: var(--docs-muted);
}

.facts dd {
  margin: 0;
  font-weight: 600;
}

.stats,
.cards,
.icon-grid {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stats {
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}

.stats li {
  border: 1px solid var(--docs-border);
  border-radius: 0.5rem;
}

.stats li > a,
.stats li > span:first-child {
  display: block;
}

.stats a,
.stats li:not(:has(a)) {
  padding: 1rem 1.25rem;
}

.stats a {
  color: var(--docs-text);
  text-decoration: none;
}

.stats a:hover .stat-label {
  text-decoration: underline;
}

.stat-number {
  display: block;
  font-size: 1.9rem;
  font-weight: 650;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  color: var(--docs-muted);
}

.cards {
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}

.card {
  position: relative;
  padding: 1.25rem 1.25rem 1rem;
  border: 1px solid var(--docs-border);
  border-radius: 0.5rem;
  background: var(--docs-surface);
}

.card h3 {
  margin: 0 0 0.5rem;
}

/* The heading link covers the whole card. */
.card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.card p {
  margin-block-end: 0.5rem;
}

.card-meta {
  font-size: 0.85rem;
  color: var(--docs-muted);
}

/* Tables: scroll horizontally inside a focusable region on narrow screens. */
.table-wrap {
  overflow-x: auto;
  margin-block: 0 1.5rem;
  border: 1px solid var(--docs-border);
  border-radius: 0.5rem;
}

table {
  inline-size: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.6rem 0.9rem;
  text-align: start;
  vertical-align: top;
  border-block-end: 1px solid var(--docs-border);
}

thead th {
  background: var(--docs-surface);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

tbody th {
  font-weight: 400;
  white-space: nowrap;
}

tbody tr:last-child > * {
  border-block-end: 0;
}

.has-description tbody td:last-child {
  min-inline-size: 15rem;
}

.table-title {
  margin-block: 1rem 0.5rem;
  font-weight: 600;
}

/* Tokens: the same column widths in every group. */
.token-table {
  table-layout: fixed;
  min-inline-size: 44rem;
}

.token-table th:nth-child(1) {
  inline-size: 26%;
}

.token-table th:nth-child(2) {
  inline-size: 12%;
}

.token-table th:nth-child(3) {
  inline-size: 34%;
}

.token-table tbody th {
  white-space: normal;
}

.toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding: 0;
  list-style: none;
}

.count {
  color: var(--docs-muted);
  font-size: 0.85rem;
}

.values {
  margin: 0;
  padding: 0;
  list-style: none;
}

.values li + li {
  margin-block-start: 0.35rem;
}

.context {
  display: inline-block;
  min-inline-size: 7rem;
  color: var(--docs-muted);
  font-size: 0.85rem;
}

.swatch {
  display: inline-block;
  inline-size: 1.1rem;
  block-size: 1.1rem;
  margin-inline-end: 0.5rem;
  vertical-align: -0.2em;
  border: 1px solid var(--docs-border);
  border-radius: 0.25rem;
}

.badge {
  display: inline-block;
  padding: 0 0.5rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* Icons. */
.icon-grid {
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
}

.icon-tile {
  padding: 1.25rem 1rem 1rem;
  border: 1px solid var(--docs-border);
  border-radius: 0.5rem;
  text-align: center;
}

/* Inline SVG never paints outside its box (a `position: fixed` style cannot cover the page). */
.icon-art {
  display: grid;
  place-items: center;
  block-size: 4rem;
  margin-block-end: 0.75rem;
  contain: paint;
}

.icon-art > svg {
  inline-size: 3rem;
  block-size: 3rem;
}

.icon-missing {
  font-size: 0.8rem;
  color: var(--docs-muted);
  border: 1px dashed var(--docs-border);
  border-radius: 0.375rem;
}

.icon-name {
  margin: 0;
}

.icon-keywords {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--docs-muted);
}

/* Components. */
.anatomy,
.anatomy ul {
  margin: 0;
  padding-inline-start: 1.25rem;
  list-style: none;
}

.anatomy ul {
  border-inline-start: 1px solid var(--docs-border);
  margin-inline-start: 0.4rem;
}

.anatomy li {
  padding-block: 0.15rem;
}

.kind {
  color: var(--docs-muted);
  font-size: 0.9rem;
}

.example {
  margin-block-start: 2.5rem;
}

.example-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1.5rem 2.5rem;
  align-items: start;
}

.example-spec h4:first-child {
  margin-block-start: 0;
}

.config {
  margin: 0;
}

.config div + div {
  margin-block-start: 0.5rem;
}

.config dt {
  font-size: 0.85rem;
  color: var(--docs-muted);
}

.config dd,
.assignments {
  margin: 0;
}

.assignments,
.inputs {
  padding-inline-start: 1.25rem;
}

.status {
  display: inline-flex;
  gap: 0.5rem;
  align-items: baseline;
  padding: 0.2rem 0.75rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.9rem;
  max-inline-size: 100%;
}

.status-pass {
  color: var(--docs-success);
}

.status-fail {
  color: var(--docs-danger);
}

.status-skip {
  color: var(--docs-muted);
}

.status-mark {
  font-weight: 700;
}

/* Previews: a fixed light (or dark) canvas, independent of the page's color scheme, so
   that resolved component colors are seen against a stable background. */
.preview {
  margin: 0 0 1.5rem;
  min-inline-size: 0;
}

.preview-stage {
  color-scheme: only light;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
  padding: 2rem;
  overflow-x: auto;
  background: #ffffff;
  color: #1a1c20;
  border: 1px solid var(--docs-border);
  border-radius: 0.5rem;
  font-family: system-ui, sans-serif;
  font-size: 16px;
  line-height: normal;
}

.preview-stage.is-dark {
  color-scheme: only dark;
  background: #121417;
  color: #e6e8ec;
}

.preview-stage * {
  box-sizing: border-box;
}

/* A material (D-054): its declared alternative, or its recipe where the browser filters
   backdrops. */
.preview-material {
  background: var(--material-fallback);
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .preview-material {
    background: var(--material-tint);
    -webkit-backdrop-filter: var(--material-filter);
    backdrop-filter: var(--material-filter);
  }
}

.preview-icon {
  display: inline-block;
  flex: none;
  contain: paint;
}

.preview-icon > svg {
  display: block;
  inline-size: 100%;
  block-size: 100%;
}

.preview-placeholder {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border: 1px dashed currentColor;
  border-radius: 0.25rem;
  font-family: var(--docs-mono);
  font-size: 12px;
  opacity: 0.75;
}

.preview-unavailable {
  padding: 1.25rem;
  border: 1px dashed var(--docs-border);
  border-radius: 0.5rem;
  color: var(--docs-muted);
}

.preview-unavailable p {
  margin: 0;
}

.preview figcaption {
  margin-block-start: 0.5rem;
  font-size: 0.85rem;
  color: var(--docs-muted);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .swatch {
    forced-color-adjust: none;
  }
}

/* Specimen: one row per configuration, one preview per context. */
.specimen-component {
  margin-block: 2.5rem;
}

.specimen-row {
  display: grid;
  grid-template-columns: minmax(9rem, 16rem) 1fr;
  gap: 1rem;
  align-items: start;
  padding-block: 0.75rem;
  border-block-start: 1px solid var(--docs-border);
}

.specimen-label {
  margin: 0;
  overflow-wrap: anywhere;
}

.specimen-cells {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.75rem;
}

.specimen-cells .preview {
  margin: 0;
}

.specimen-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.specimen-icons li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 40rem) {
  .specimen-row {
    grid-template-columns: 1fr;
  }
}
