/*
 * The Autoware theme, on top of the Zensical "modern" variant.
 *
 * Palette:
 *   indigo  #3f2ee3  brand color, links and accents on light pages
 *   cyan    #00c8ff  links and accents on dark pages, info
 *   green   #00e678  tips and success
 *   crimson #dc143c  warnings and danger (always with white text on it)
 *   navy    #00002a  dark background
 *   mist    #f2f5ff  light surfaces, for example code blocks
 *
 * Gradients and blur are only on the header, the background glow, and buttons.
 * Text, tables, code, and diagrams stay on flat colors.
 */

:root {
  --aw-indigo: #3f2ee3;
  --aw-cyan: #00c8ff;
  --aw-green: #00e678;
  --aw-crimson: #dc143c;
  --aw-navy: #00002a;
  --aw-mist: #f2f5ff;
  --aw-gradient: linear-gradient(90deg, var(--aw-indigo), var(--aw-cyan) 55%, var(--aw-green));
  --aw-heading-font-family: Outfit, -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
}

/*
 * The fonts of the brand guideline: Montserrat for text (theme.font in zensical.toml) and Outfit for headings.
 * The diagrams also use Outfit: its letters are as wide as the letters of Roboto, which the diagrams were drawn for.
 */
.md-typeset :is(h1, h2, h3, h4, h5, h6),
.md-header__title {
  font-family: var(--aw-heading-font-family);
}

/* Colors for each scheme. The icon colors are darker on light pages and lighter on dark pages, so they stay visible. */
[data-md-color-scheme="default"] {
  --md-primary-fg-color: var(--aw-indigo);
  --md-primary-fg-color--light: #6a5cf0;
  --md-primary-fg-color--dark: #2c1fb8;
  --md-primary-bg-color: #fff;
  --md-primary-bg-color--light: #ffffffb3;
  --md-accent-fg-color: var(--aw-indigo);
  --md-accent-fg-color--transparent: #3f2ee314;
  --md-accent-bg-color: #fff;
  --md-accent-bg-color--light: #ffffffb3;
  --md-typeset-a-color: var(--aw-indigo);
  --md-code-bg-color: var(--aw-mist);
  --md-code-bg-color--light: #f2f5ffe6;
  --md-code-bg-color--lighter: #f2f5ff8a;
  --md-code-hl-color: var(--aw-indigo);
  --md-code-hl-color--light: #3f2ee31a;
  --md-typeset-mark-color: #00c8ff40;

  --aw-c-indigo: var(--aw-indigo);
  --aw-c-cyan: #0098c7;
  --aw-c-green: #00a352;
  --aw-c-crimson: var(--aw-crimson);
  --aw-c-grey: #6b6f8a;
  --aw-glow-1: #3f2ee31c;
  --aw-glow-2: #00c8ff17;
  --aw-logo-start: var(--aw-indigo);
  --aw-logo-end: #0098c7;
}

[data-md-color-scheme="slate"] {
  --md-hue: 240deg;
  --md-primary-fg-color: var(--aw-indigo);
  --md-primary-fg-color--light: #8a7dff;
  --md-primary-fg-color--dark: #2c1fb8;
  --md-primary-bg-color: #fff;
  --md-primary-bg-color--light: #ffffffb3;
  --md-accent-fg-color: var(--aw-cyan);
  --md-accent-fg-color--transparent: #00c8ff1a;
  --md-accent-bg-color: var(--aw-navy);
  --md-accent-bg-color--light: #00002ab3;
  --md-default-bg-color: var(--aw-navy);
  --md-default-bg-color--light: #00002a8a;
  --md-default-bg-color--lighter: #00002a42;
  --md-default-bg-color--lightest: #00002a12;
  --md-typeset-a-color: var(--aw-cyan);
  --md-code-bg-color: #0c0c3e;
  --md-code-bg-color--light: #0c0c3ee6;
  --md-code-bg-color--lighter: #0c0c3e8a;
  --md-code-hl-color: var(--aw-cyan);
  --md-code-hl-color--light: #00c8ff1a;
  --md-typeset-mark-color: #00c8ff4d;

  --aw-c-indigo: #8a7dff;
  --aw-c-cyan: var(--aw-cyan);
  --aw-c-green: var(--aw-green);
  --aw-c-crimson: #ff7076;
  --aw-c-grey: #9a9dbb;
  --aw-glow-1: #3f2ee340;
  --aw-glow-2: #00c8ff1f;
  --aw-logo-start: #8a7dff;
  --aw-logo-end: var(--aw-cyan);
}

/* A faint glow at the top of the page. It scrolls away with the content and shows through the frosted header. */
body {
  background-image:
    radial-gradient(60rem 26rem at 12% -6rem, var(--aw-glow-1), transparent 70%),
    radial-gradient(50rem 22rem at 88% -8rem, var(--aw-glow-2), transparent 70%);
  background-repeat: no-repeat;
}

/* Frosted header with a thin gradient line at the bottom. */
.md-header {
  background-color: color-mix(in srgb, var(--md-default-bg-color) 68%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(0.7rem);
  backdrop-filter: saturate(180%) blur(0.7rem);
}

.md-header::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  pointer-events: none;
  content: "";
  background: var(--aw-gradient);
  opacity: 0.8;
}

/*
 * The header shows the site name and the page title side by side. The theme swaps one for the other when the reader
 * scrolls, but that hides the site name. On small screens, only the site name fits.
 */
.md-header__title .md-header__ellipsis {
  display: flex;
  align-items: center;
}

.md-header__title .md-header__topic,
.md-header__title--active .md-header__topic {
  position: relative;
  z-index: auto;
  flex: none;
  pointer-events: auto;
  opacity: 1;
  transition: none;
  transform: none;
}

.md-header__title .md-header__topic + .md-header__topic,
.md-header__title--active .md-header__topic + .md-header__topic {
  flex: 0 1 auto;
  min-width: 0;
  padding-left: 0.6rem;
  margin-left: 0.6rem;
  font-weight: 400;
  color: var(--md-default-fg-color--light);
  border-left: 1px solid var(--md-default-fg-color--lighter);
}

.md-header__topic + .md-header__topic .md-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* The site name links to the homepage (see header-home-link.js). */
.aw-header-home {
  color: inherit;
}

.aw-header-home:is(:hover, :focus) {
  color: var(--md-accent-fg-color);
}

@media screen and (max-width: 59.984375em) {
  .md-header__title .md-header__topic + .md-header__topic {
    display: none;
  }
}

/* Navigation tabs: a soft pill marks the active tab, in place of the thin underline. */
.md-tabs {
  box-shadow: none;
}

.md-tabs__item {
  height: 2.4rem;
  padding-right: 0.15rem;
  padding-left: 0.15rem;
}

.md-tabs__item--active,
.md-tabs[hidden] .md-tabs__item--active {
  border-bottom: 0;
}

.md-tabs__link {
  padding: 0.3rem 0.65rem;
  margin-top: 0.5rem;
  border-radius: 999px;
  transition:
    transform 0.4s cubic-bezier(0.1, 0.7, 0.1, 1),
    opacity 0.25s,
    background-color 0.15s,
    color 0.15s;
}

.md-tabs__link:is(:hover, :focus) {
  background-color: var(--md-default-fg-color--lightest);
}

.md-tabs__item--active .md-tabs__link,
.md-tabs__item--active .md-tabs__link:is(:hover, :focus) {
  color: var(--md-accent-fg-color);
  background-color: var(--md-accent-fg-color--transparent);
}

.md-header__button.md-logo svg {
  width: 1.6rem;
  height: 1.6rem;
}

/* Admonitions: one color per meaning. */
.md-typeset :is(.admonition, details) {
  --aw-adm: var(--aw-c-indigo);
}

.md-typeset
  :is(.admonition, details):is(.abstract, .summary, .tldr, .info, .todo, .question, .help, .faq) {
  --aw-adm: var(--aw-c-cyan);
}

.md-typeset :is(.admonition, details):is(.tip, .hint, .important, .success, .check, .done) {
  --aw-adm: var(--aw-c-green);
}

.md-typeset
  :is(.admonition, details):is(
    .warning,
    .caution,
    .attention,
    .failure,
    .fail,
    .missing,
    .danger,
    .error,
    .bug
  ) {
  --aw-adm: var(--aw-c-crimson);
}

.md-typeset :is(.admonition, details):is(.quote, .cite) {
  --aw-adm: var(--aw-c-grey);
}

.md-typeset :is(.admonition, details)[class] {
  background-color: color-mix(in srgb, var(--aw-adm) 9%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--aw-adm) 18%, transparent);
}

.md-typeset :is(.admonition, details)[class] > :is(.admonition-title, summary)::before {
  background-color: var(--aw-adm);
}

/*
 * Buttons: rounded, with a gradient on the primary button. The theme draws other buttons in grey, which looks
 * disabled, so they get the link color, a light tint, and a border.
 */
.md-typeset .md-button,
.md-typeset .md-button:is(:hover, :focus) {
  color: var(--md-typeset-a-color);
  border: 1px solid color-mix(in srgb, var(--md-typeset-a-color) 40%, transparent);
  border-radius: 999px;
  opacity: 1;
  transition:
    background-color 125ms,
    border-color 125ms,
    box-shadow 125ms,
    color 125ms;
}

.md-typeset .md-button {
  background-color: color-mix(in srgb, var(--md-typeset-a-color) 7%, transparent);
}

.md-typeset .md-button:is(:hover, :focus) {
  background-color: color-mix(in srgb, var(--md-typeset-a-color) 14%, transparent);
  border-color: var(--md-typeset-a-color);
}

.md-typeset .md-button--primary,
.md-typeset .md-button--primary:is(:hover, :focus) {
  color: #fff;
  background: linear-gradient(135deg, var(--aw-indigo), #2a6df2);
  border-color: transparent;
  box-shadow: 0 0.3rem 1rem -0.4rem #3f2ee3b3;
}

.md-typeset .md-button--primary:is(:hover, :focus) {
  box-shadow: 0 0.4rem 1.4rem -0.3rem #3f2ee3d9;
}

::selection {
  background-color: #00c8ff40;
}

/* Navy footer in both schemes, with the gradient line on top. */
.md-footer {
  position: relative;
  color: #ffffffd9;
  background-color: var(--aw-navy);
  border-top: 0;
}

.md-footer::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--aw-gradient);
  opacity: 0.8;
}

.md-footer-meta {
  background-color: #000020;
}

.md-copyright {
  color: #ffffff8c;
}

.md-copyright__highlight {
  color: #ffffffd9;
}

html .md-footer-meta.md-typeset a,
html .md-footer-meta.md-typeset a:not(:focus, :hover) {
  color: var(--aw-cyan);
}

/* Homepage. It hides the sidebars, so the content gets a width limit of its own. */
.md-main {
  overflow-x: clip;
}

.md-main:has(.aw-hero) .md-content {
  max-width: 64rem;
  margin: 0 auto;
}

.md-main:has(.aw-hero) .md-typeset h2 {
  margin-top: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* A faint dot grid behind the hero. It fades out toward the edges. */
.aw-hero__grid {
  position: absolute;
  inset: -3rem -2rem;
  z-index: -2;
  pointer-events: none;
  background-image: radial-gradient(var(--md-default-fg-color--lighter) 1px, transparent 1.2px);
  background-size: 1.1rem 1.1rem;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 30% 45%, #000, transparent);
  mask-image: radial-gradient(ellipse 60% 70% at 30% 45%, #000, transparent);
}

.aw-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.4rem;
  align-items: center;
  margin: 1.6rem 0 2.8rem;
}

/* Two soft color shapes behind the hero. */
.aw-hero::before,
.aw-hero::after {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  content: "";
  border-radius: 50%;
  filter: blur(3.5rem);
}

.aw-hero::before {
  top: -4rem;
  left: -5rem;
  width: 26rem;
  height: 18rem;
  background: var(--aw-indigo);
  opacity: 0.2;
}

.aw-hero::after {
  right: -3rem;
  bottom: -4rem;
  width: 24rem;
  height: 16rem;
  background: var(--aw-cyan);
  opacity: 0.2;
}

[data-md-color-scheme="slate"] .aw-hero::before {
  opacity: 0.45;
}

[data-md-color-scheme="slate"] .aw-hero::after {
  opacity: 0.22;
}

.md-typeset .aw-hero h1 {
  margin: 0 0 0.8rem;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.aw-gradient-text {
  color: var(--aw-c-indigo);
  background: linear-gradient(90deg, var(--aw-c-indigo), var(--aw-c-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.md-typeset .aw-hero__text > p {
  font-size: 0.85rem;
  color: var(--md-default-fg-color--light);
}

.md-typeset .aw-hero__actions > p,
.md-typeset .aw-hero__news > p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.2rem 0 0;
}

.md-typeset .aw-hero__actions .md-button {
  margin: 0;
}

.md-typeset .aw-chip {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  padding: 0.3rem 0.8rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--md-default-fg-color);
  background:
    linear-gradient(var(--md-default-bg-color), var(--md-default-bg-color)) padding-box,
    var(--aw-gradient) border-box;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
}

.md-typeset .aw-chip:is(:hover, :focus) {
  color: var(--md-typeset-a-color);
}

.md-typeset .aw-chip .aw-badge-new {
  margin-left: 0.2em;
}

.aw-hero__video {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border-radius: 0.8rem;
  box-shadow:
    0 1.6rem 3rem -1.4rem #3f2ee399,
    0 0 0 1px var(--md-default-fg-color--lightest);
}

.aw-hero__video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media screen and (max-width: 59.984375em) {
  .aw-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
  }

  .md-typeset .aw-hero h1 {
    font-size: 2rem;
  }
}

/*
 * Cards on the homepage. The whole card is the link, and the gradient border shows on hover.
 * Each card is a list item with two paragraphs: an icon and a bold link, then the text.
 */
.md-typeset :is(.aw-cards, .aw-features) > ul > li > p:first-child {
  display: contents;
}

.md-typeset .grid.aw-cards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 0.8rem;
}

.md-typeset .grid.aw-cards--small {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
}

.md-typeset .aw-cards > ul > li {
  position: relative;
  padding: 0.9rem 1rem;
  background:
    linear-gradient(var(--md-default-bg-color), var(--md-default-bg-color)) padding-box,
    linear-gradient(var(--md-default-fg-color--lightest), var(--md-default-fg-color--lightest))
      border-box;
  border: 1px solid transparent;
  border-radius: 0.8rem;
  transition:
    box-shadow 150ms,
    transform 150ms;
}

.md-typeset .aw-cards > ul > li:is(:hover, :focus-within) {
  background:
    linear-gradient(var(--md-default-bg-color), var(--md-default-bg-color)) padding-box,
    var(--aw-gradient) border-box;
  border-color: transparent;
  box-shadow: 0 0.8rem 1.6rem -1rem #3f2ee380;
  transform: translateY(-2px);
}

.md-typeset .aw-cards > ul > li > p:first-child > i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  margin-bottom: 0.7rem;
  font-size: 0.8rem;
  color: var(--md-typeset-a-color);
  background-color: color-mix(in srgb, var(--md-typeset-a-color) 12%, transparent);
  border-radius: 0.6rem;
  transition:
    background-color 150ms,
    color 150ms;
}

.md-typeset .aw-cards > ul > li:is(:hover, :focus-within) > p:first-child > i {
  color: #fff;
  background-color: var(--md-typeset-a-color);
}

.md-typeset .aw-cards > ul > li > p:first-child > strong {
  font-size: 0.8rem;
}

.md-typeset .aw-cards > ul > li > p:first-child > strong a {
  color: var(--md-default-fg-color);
  text-decoration: none;
}

.md-typeset .aw-cards > ul > li:is(:hover, :focus-within) > p:first-child > strong a {
  color: var(--md-typeset-a-color);
}

.md-typeset .aw-cards > ul > li > p:first-child > strong a::after {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
}

.md-typeset .aw-cards > ul > li > p + p {
  margin: 0.4rem 0 0;
  font-size: 0.7rem;
  color: var(--md-default-fg-color--light);
}

@media (prefers-reduced-motion: reduce) {
  .md-typeset .aw-cards > ul > li {
    transition: none;
  }

  .md-typeset .aw-cards > ul > li:is(:hover, :focus-within) {
    transform: none;
  }
}

/* Without blur support, or when the reader asks for less transparency, the header is solid. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .md-header {
    background-color: var(--md-default-bg-color);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .md-header {
    background-color: var(--md-default-bg-color);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/*
 * Simulation cards (docs/simulation/index.md): a screenshot with a label next to the title, the tested components as tags,
 * and the buttons. The image moves above the text on small screens.
 */
.md-typeset .aw-demo {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  margin: 1.6rem 0;
  overflow: hidden;
  background-color: color-mix(in srgb, var(--md-default-bg-color) 80%, transparent);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 1rem;
  box-shadow: 0 1rem 2rem -1.6rem #00002a59;
}

.md-typeset .aw-demo__media {
  position: relative;
  min-height: 12rem;
  overflow: hidden;
  background: var(--aw-navy);
}

.md-typeset .aw-demo__media > p {
  position: absolute;
  inset: 0;
  margin: 0;
}

.md-typeset .aw-demo__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(0.1, 0.7, 0.1, 1);
}

.md-typeset .aw-demo:hover .aw-demo__media img {
  transform: scale(1.04);
}

/* A navy shade at the bottom of the image keeps the label readable on any screenshot. */
.md-typeset .aw-demo__media::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(to top, #00002ad9, #00002a00 55%);
}

.md-typeset .aw-demo__kicker {
  position: absolute;
  bottom: 0.8rem;
  left: 0.8rem;
  z-index: 1;
  padding: 0.25rem 0.7rem;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background-color: #ffffff26;
  border: 1px solid #ffffff40;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(0.4rem);
  backdrop-filter: blur(0.4rem);
}

.md-typeset .aw-demo__body {
  padding: 1.2rem 1.4rem 1.2rem;
}

.md-typeset .aw-demo__body > h2 {
  margin: 0 0 0.8rem;
}

.md-typeset .aw-demo__facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 1.2rem;
  font-size: 0.7rem;
}

.md-typeset .aw-demo__facts p,
.md-typeset .aw-demo__facts ul {
  margin: 0.4rem 0 0;
}

.md-typeset .aw-demo__facts .aw-demo__label {
  margin: 0;
  font-size: 0.6rem;
  color: var(--md-default-fg-color--light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.md-typeset .aw-demo__facts > div > p:not(.aw-demo__label, :has(.aw-tag)) {
  color: var(--md-default-fg-color--light);
}

.md-typeset .aw-demo__facts li {
  margin-bottom: 0.2em;
}

.md-typeset .aw-tag {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  margin: 0 0.2rem 0.3rem 0;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 999px;
}

.md-typeset .aw-tag--test {
  color: var(--md-typeset-a-color);
  background-color: color-mix(in srgb, var(--md-typeset-a-color) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--md-typeset-a-color) 30%, transparent);
}

.md-typeset .aw-demo__actions > p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.2rem 0 0;
}

.md-typeset .aw-demo__actions .md-button {
  margin: 0;
}

.md-typeset .aw-demo__more {
  margin: 0.9rem 0 0;
  font-size: 0.65rem;
  color: var(--md-default-fg-color--light);
}

/* The check marks in the table of demos. */
.md-typeset table .fa-check {
  color: var(--aw-c-green);
}

@media screen and (max-width: 59.984375em) {
  .md-typeset .aw-demo,
  .md-typeset .aw-demo__facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .md-typeset .aw-demo__media {
    aspect-ratio: 16 / 9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .md-typeset .aw-demo:hover .aw-demo__media img {
    transform: none;
  }
}

/* The names in the table of demos stay on one line, so a narrow screen scrolls the table instead. */
.md-typeset .aw-demo-table td:first-child {
  white-space: nowrap;
}

/* A band across the full width of the window, for one section of the homepage. */
.md-typeset .aw-band {
  padding: 0.4rem calc(50vw - 50%) 2.4rem;
  margin: 2.8rem calc(50% - 50vw) 0;
  background:
    radial-gradient(
      40rem 16rem at 80% 0%,
      color-mix(in srgb, var(--aw-cyan) 10%, transparent),
      transparent 70%
    ),
    color-mix(in srgb, var(--aw-indigo) 4%, var(--md-default-bg-color));
  border-top: 1px solid var(--md-default-fg-color--lightest);
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
}

[data-md-color-scheme="slate"] .md-typeset .aw-band {
  background:
    radial-gradient(
      40rem 16rem at 80% 0%,
      color-mix(in srgb, var(--aw-indigo) 22%, transparent),
      transparent 70%
    ),
    color-mix(in srgb, #fff 3%, var(--md-default-bg-color));
}

/*
 * Feature tiles on the homepage. Each tile is a list item like a card: an icon and a bold title, then the text.
 * The compact variant puts the icon and a short label on one line.
 * A list with blank lines between its items becomes one list per item, so the lists take no part in the layout.
 */
.md-typeset .aw-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 0.8rem;
  margin: 1.2rem 0 0;
}

.md-typeset .aw-features > ul {
  display: contents;
}

.md-typeset .aw-features > ul > li {
  padding: 1rem 1.1rem;
  list-style: none;
  margin: 0;
  background-color: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.8rem;
  box-shadow: 0 0.6rem 1.4rem -1.1rem #00002a40;
}

.md-typeset .aw-features > ul > li > i,
.md-typeset .aw-features > ul > li > p:first-child > i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 0.7rem;
  font-size: 0.85rem;
  color: #fff;
  background: linear-gradient(135deg, var(--aw-indigo), var(--aw-cyan));
  border-radius: 0.65rem;
  box-shadow: 0 0.4rem 0.9rem -0.4rem #3f2ee399;
}

.md-typeset .aw-features > ul > li > p:first-child > strong:first-of-type {
  font-size: 0.8rem;
}

.md-typeset .aw-features > ul > li > p + p {
  margin: 0.4rem 0 0;
  font-size: 0.7rem;
  color: var(--md-default-fg-color--light);
}

.md-typeset .aw-features--small {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
}

.md-typeset .aw-features--compact {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}

.md-typeset .aw-features--compact > ul > li {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding: 0.7rem 0.9rem;
  font-size: 0.75rem;
}

.md-typeset .aw-features--compact > ul > li > i {
  flex: none;
  margin: 0;
}

/* On small screens, the icon of a card or a tile moves next to the text, so the cards stay short. */
@media screen and (max-width: 44.984375em) {
  .md-typeset .grid.aw-cards > ul > li,
  .md-typeset .aw-features:not(.aw-features--compact) > ul > li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 0.8rem;
    align-items: center;
  }

  .md-typeset .aw-cards > ul > li > p:first-child > i,
  .md-typeset .aw-features > ul > li > p:first-child > i {
    grid-row: span 2;
    align-self: start;
    margin: 0;
  }

  .md-typeset .aw-cards > ul > li > p + p,
  .md-typeset .aw-features > ul > li > p + p {
    grid-column: 2;
    margin-top: 0.2rem;
  }
}

/*
 * Installation page (docs/installation/index.md): hardware tiles, the two editions side by side, one row per
 * installation method, and a callout with a gradient border.
 */
.md-typeset .aw-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 7.5rem), 1fr));
  gap: 0.6rem;
  margin: 1.2rem 0;
}

.md-typeset .aw-specs > ul {
  display: contents;
}

.md-typeset .aw-specs > ul > li {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  padding: 0.8rem 0.9rem;
  margin: 0;
  font-size: 0.65rem;
  line-height: 1.4;
  color: var(--md-default-fg-color--light);
  list-style: none;
  background-color: color-mix(in srgb, var(--md-typeset-a-color) 5%, var(--md-default-bg-color));
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.8rem;
}

.md-typeset .aw-specs > ul > li > i {
  flex: none;
  font-size: 1rem;
  color: var(--md-typeset-a-color);
}

.md-typeset .aw-specs strong {
  font-size: 0.8rem;
  color: var(--md-default-fg-color);
}

.md-typeset .aw-editions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0.8rem;
  margin: 1.2rem 0 1.6rem;
}

.md-typeset .aw-edition {
  padding: 1rem 1.2rem 0.6rem;
  font-size: 0.7rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.9rem;
}

.md-typeset .aw-edition--featured {
  background:
    linear-gradient(
        color-mix(in srgb, var(--aw-indigo) 5%, var(--md-default-bg-color)),
        var(--md-default-bg-color)
      )
      padding-box,
    var(--aw-gradient) border-box;
  border-color: transparent;
  box-shadow: 0 0.8rem 1.8rem -1.2rem #3f2ee380;
}

.md-typeset .aw-edition > p {
  margin: 0;
}

.md-typeset .aw-edition > h3 {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}

.md-typeset .aw-edition ul {
  margin-top: 0.6rem;
}

.md-typeset .aw-edition__badge {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--md-default-fg-color--light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background-color: var(--md-default-fg-color--lightest);
  border-radius: 999px;
}

.md-typeset .aw-edition--featured .aw-edition__badge {
  color: #fff;
  background: linear-gradient(135deg, var(--aw-indigo), #2a6df2);
}

.md-typeset .aw-method {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 1.2rem;
  margin: 0.8rem 0;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.9rem;
  transition: box-shadow 150ms;
}

.md-typeset .aw-method:hover {
  box-shadow: 0 0.8rem 1.6rem -1.2rem #3f2ee366;
}

.md-typeset .aw-method > p:first-child {
  margin: 0;
}

.md-typeset .aw-method__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, var(--aw-indigo), var(--aw-cyan));
  border-radius: 0.7rem;
  box-shadow: 0 0.4rem 0.9rem -0.4rem #3f2ee399;
}

.md-typeset .aw-method__icon .twemoji {
  --md-icon-size: 1.1rem;
}

.md-typeset .aw-method__body > h3 {
  margin: 0.2rem 0 0.4rem;
}

.md-typeset .aw-method__body > p {
  margin: 0.4rem 0 0;
  font-size: 0.7rem;
  color: var(--md-default-fg-color--light);
}

.md-typeset .aw-method__actions > p {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 10rem;
  margin: 0.2rem 0 0;
}

.md-typeset .aw-method__actions .md-button {
  margin: 0;
  text-align: center;
}

.md-typeset .aw-callout {
  padding: 0.2rem 1.4rem 1.2rem;
  margin: 2rem 0;
  background:
    radial-gradient(
        30rem 10rem at 100% 0%,
        color-mix(in srgb, var(--aw-cyan) 12%, transparent),
        transparent 70%
      )
      padding-box,
    linear-gradient(var(--md-default-bg-color), var(--md-default-bg-color)) padding-box,
    var(--aw-gradient) border-box;
  border: 1px solid transparent;
  border-radius: 0.9rem;
}

.md-typeset .aw-callout > h2 {
  margin-top: 1rem;
}

@media screen and (max-width: 59.984375em) {
  .md-typeset .aw-method {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .md-typeset .aw-method__body,
  .md-typeset .aw-method__actions {
    grid-column: 1 / -1;
  }

  .md-typeset .aw-method__actions > p {
    flex-flow: row wrap;
  }
}

/* Media kit: logo cards with a light and a dark preview, and color swatches. Both show fixed colors in both schemes. */
.md-typeset .aw-kit {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.8rem;
  margin: 1em 0;
}

.md-typeset .aw-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.8rem;
  margin: 1em 0;
}

.md-typeset .aw-kit__logo {
  display: flex;
  flex-direction: column;
  width: auto;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.6rem;
}

.md-typeset .aw-kit__preview {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 6.5rem;
  padding: 1rem 1.2rem;
}

.md-typeset .aw-kit__preview img {
  max-width: 100%;
  max-height: 100%;
}

.md-typeset .aw-kit__preview--light {
  background-color: #fff;
  box-shadow: inset 0 0 0 1px var(--md-default-fg-color--lightest);
}

.md-typeset .aw-kit__preview--dark {
  background-color: var(--aw-navy);
}

.md-typeset .aw-kit__logo figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-width: none;
  margin: 0;
  padding: 0.6rem 0.8rem 0.7rem;
  font-size: 0.65rem;
  font-style: normal;
  line-height: 1.5;
  text-align: left;
}

.md-typeset .aw-kit__files {
  margin-top: 0.2rem;
  color: var(--md-default-fg-color--light);
}

.md-typeset .aw-kit__files a {
  margin: 0 0.6em 0 0.3em;
  font-weight: 700;
}

.md-typeset .aw-kit__files .aw-kit__png {
  margin-left: 0;
}

.md-typeset .aw-copy {
  padding: 0;
  cursor: pointer;
  background: none;
  border: 0;
}

.md-typeset .aw-copy::after {
  margin-left: 0.4em;
  font-size: 0.6rem;
  color: var(--md-default-fg-color--light);
  content: "Copy";
}

.md-typeset .aw-copy--done::after {
  color: var(--aw-c-green);
  content: "Copied";
}

.md-typeset .aw-swatch {
  overflow: hidden;
  border-radius: 0.6rem;
  box-shadow: inset 0 0 0 1px var(--md-default-fg-color--lightest);
}

.md-typeset .aw-swatch__color {
  display: flex;
  align-items: flex-end;
  height: 4.5rem;
  padding: 0.5rem 0.7rem;
  font-weight: 700;
  color: var(--aw-swatch-fg);
  background: var(--aw-swatch);
  box-shadow: inset 0 0 0 1px var(--md-default-fg-color--lighter);
}

.md-typeset .aw-swatch__info {
  padding: 0.5rem 0.7rem 0.6rem;
  font-size: 0.65rem;
  line-height: 1.6;
}

.md-typeset .aw-fonts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 0.8rem;
  margin: 1em 0;
}

.md-typeset .aw-font {
  overflow: hidden;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.6rem;
}

.md-typeset .aw-font__sample {
  display: flex;
  align-items: center;
  min-height: 5.5rem;
  padding: 0.8rem;
  font-size: 1.05rem;
  line-height: 1.3;
  background-color: var(--md-code-bg-color);
}

.md-typeset .aw-font__info {
  padding: 0.6rem 0.8rem 0.7rem;
  font-size: 0.65rem;
  line-height: 1.5;
}

.md-typeset .aw-gradient-bar {
  height: 2.4rem;
  margin: 1em 0;
  background: var(--aw-gradient);
  border-radius: 0.6rem;
}

/* Numbered steps: an ordered list with gradient number badges. */
.md-typeset .aw-steps > ol {
  padding: 0;
  margin: 1.2rem 0;
  list-style: none;
  counter-reset: aw-step;
}

.md-typeset .aw-steps > ol > li {
  position: relative;
  min-height: 1.6rem;
  padding: 0.15rem 0 0 2.4rem;
  margin: 0 0 0.8rem;
  counter-increment: aw-step;
}

.md-typeset .aw-steps > ol > li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  content: counter(aw-step);
  background: linear-gradient(135deg, var(--aw-indigo), var(--aw-cyan));
  border-radius: 50%;
}

/* Lines between the steps join the number badges into one path. */
.md-typeset .aw-steps > ol > li:not(:last-child)::after {
  position: absolute;
  top: 1.7rem;
  bottom: -0.7rem;
  left: 0.8rem;
  width: 2px;
  content: "";
  background: var(--md-default-fg-color--lightest);
}

/* A pipeline: steps in one row with arrows between them. On small screens, the steps stack. */
.md-typeset .aw-pipeline > ul {
  display: flex;
  gap: 1.6rem;
  padding: 0;
  margin: 1.2rem 0;
  list-style: none;
}

.md-typeset .aw-pipeline > ul > li {
  position: relative;
  display: flex;
  flex: 1;
  gap: 0.6rem;
  align-items: center;
  padding: 0.8rem 1rem;
  margin: 0;
  font-size: 0.7rem;
  background-color: color-mix(in srgb, var(--md-typeset-a-color) 6%, var(--md-default-bg-color));
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.8rem;
}

.md-typeset .aw-pipeline > ul > li > i {
  font-size: 1rem;
  color: var(--md-typeset-a-color);
}

.md-typeset .aw-pipeline > ul > li:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -1.2rem;
  font-size: 0.9rem;
  color: var(--md-default-fg-color--lighter);
  content: "\2192";
  transform: translateY(-50%);
}

/* Nested layers: the inner layers are the base that the outer layers build on. */
.md-typeset .aw-layers {
  margin: 1.6rem 0;
  font-size: 0.7rem;
}

.md-typeset .aw-layers p {
  margin: 0;
}

.md-typeset .aw-layers__layer {
  padding: 0.9rem 1rem 1rem;
  border-radius: 1rem;
}

.md-typeset .aw-layers__layer > .aw-layers__layer {
  margin-top: 0.8rem;
}

.md-typeset .aw-layers__name {
  font-size: 0.8rem;
  font-weight: 700;
}

.md-typeset .aw-layers__text {
  color: var(--md-default-fg-color--light);
}

.md-typeset .aw-layers__layer--index {
  border: 1px dashed var(--md-default-fg-color--lighter);
}

.md-typeset .aw-layers__layer--universe {
  background-color: color-mix(in srgb, var(--aw-cyan) 9%, var(--md-default-bg-color));
  border: 1px solid color-mix(in srgb, var(--aw-cyan) 35%, transparent);
}

.md-typeset .aw-layers__layer--core {
  color: #fff;
  background:
    radial-gradient(18rem 8rem at 85% 0%, #00c8ff4d, transparent 70%),
    linear-gradient(135deg, var(--aw-indigo), #2a1fa8);
  box-shadow: 0 1rem 2rem -1.2rem #3f2ee3b3;
}

.md-typeset .aw-layers__layer--core .aw-layers__text {
  color: #ffffffbf;
}

@media screen and (max-width: 44.984375em) {
  .md-typeset .aw-pipeline > ul {
    flex-direction: column;
    gap: 1.2rem;
  }

  .md-typeset .aw-pipeline > ul > li:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -1.05rem;
    left: 1.4rem;
    content: "\2193";
    transform: none;
  }
}

/*
 * Diagrams (see tools/diagrams/README.md). The diagram() macro puts each SVG into the page, so its classes take
 * these colors and follow the dark mode. The tokens are on the body, so the shared arrow heads get them too.
 */
[data-md-color-scheme] {
  --aw-d-bg: var(--md-default-bg-color);
  --aw-d-fg: var(--md-default-fg-color);
  --aw-d-muted: var(--md-default-fg-color--light);
  --aw-d-line: #8d90a3;
  --aw-d-accent: var(--aw-c-cyan);
  --aw-d-node: var(--md-default-bg-color);
  --aw-d-node-stroke: color-mix(in srgb, var(--aw-c-indigo) 45%, transparent);
  --aw-d-group: color-mix(in srgb, var(--aw-c-indigo) 6%, var(--md-default-bg-color));
  --aw-d-group-stroke: color-mix(in srgb, var(--aw-c-indigo) 25%, transparent);
}

/* The lines are solid, so that a line does not show through its arrow head. */
[data-md-color-scheme="slate"] {
  --aw-d-line: #747a9c;
}

.aw-diagram-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.aw-d-arrow {
  fill: var(--aw-d-line);
}

.aw-d-arrow--accent {
  fill: var(--aw-d-accent);
}

.md-typeset .aw-diagram {
  --aw-d-bg: color-mix(in srgb, var(--aw-c-indigo) 2%, var(--md-default-bg-color));

  box-sizing: border-box;
  width: 100%;
  padding: 1rem;
  margin: 1.6em 0;
  overflow-x: auto;
  background-color: var(--aw-d-bg);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.9rem;
}

.md-typeset .aw-diagram > svg {
  display: block;
  width: 100%;
  min-width: 34rem;
  height: auto;
  margin: 0 auto;
  font-family: var(--aw-heading-font-family);
}

.md-typeset .aw-diagram > figcaption {
  max-width: none;
  margin: 0.8rem 0 0;
  font-size: 0.65rem;
  color: var(--md-default-fg-color--light);
}

/* Boxes */
.aw-diagram .box {
  fill: var(--aw-d-node);
  stroke: var(--aw-d-node-stroke);
  stroke-width: 1.5;
}

.aw-diagram .box.primary {
  fill: url("#aw-grad-primary");
  stroke: none;
}

.aw-diagram .box.ai {
  fill: color-mix(in srgb, var(--aw-cyan) 14%, var(--aw-d-bg));
  stroke: color-mix(in srgb, var(--aw-cyan) 70%, transparent);
}

.aw-diagram .box.ok {
  fill: color-mix(in srgb, var(--aw-green) 14%, var(--aw-d-bg));
  stroke: color-mix(in srgb, var(--aw-c-green) 70%, transparent);
}

.aw-diagram .box.warn {
  fill: color-mix(in srgb, var(--aw-crimson) 10%, var(--aw-d-bg));
  stroke: color-mix(in srgb, var(--aw-c-crimson) 70%, transparent);
}

.aw-diagram .box.muted {
  fill: color-mix(in srgb, var(--aw-d-fg) 5%, var(--aw-d-bg));
  stroke: color-mix(in srgb, var(--aw-d-fg) 20%, transparent);
}

.aw-diagram .box.ext {
  fill: none;
  stroke: var(--aw-d-line);
  stroke-dasharray: 6 5;
}

.aw-diagram .group {
  fill: var(--aw-d-group);
  stroke: var(--aw-d-group-stroke);
  stroke-width: 1.5;
}

.aw-diagram .group.ai {
  fill: color-mix(in srgb, var(--aw-cyan) 7%, var(--aw-d-bg));
  stroke: color-mix(in srgb, var(--aw-cyan) 45%, transparent);
}

.aw-diagram .group.dashed {
  stroke-dasharray: 7 5;
}

/* Text */
.aw-diagram text {
  font-size: 14px;
  fill: var(--aw-d-fg);
}

.aw-diagram .lbl {
  font-weight: 600;
}

.aw-diagram .sub {
  font-size: 12px;
  fill: var(--aw-d-muted);
}

.aw-diagram .code {
  font-family: var(--md-code-font-family);
  font-size: 12px;
}

.aw-diagram .ttl {
  font-size: 12px;
  font-weight: 700;
  fill: var(--aw-d-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.aw-diagram .on-primary {
  fill: #fff;
}

.aw-diagram .on-primary.sub {
  fill: #ffffffc7;
}

.aw-diagram .edge-lbl {
  font-size: 12px;
  fill: var(--aw-d-muted);
  paint-order: stroke;
  stroke: var(--aw-d-bg);
  stroke-width: 5px;
  stroke-linejoin: round;
}

/* Lines */
.aw-diagram .edge {
  fill: none;
  stroke: var(--aw-d-line);
  stroke-width: 1.6;
  marker-end: url("#aw-arrow");
}

.aw-diagram .edge.accent {
  stroke: var(--aw-d-accent);
  stroke-width: 2;
  marker-end: url("#aw-arrow-accent");
}

.aw-diagram .edge.both {
  marker-start: url("#aw-arrow");
}

.aw-diagram .edge.accent.both {
  marker-start: url("#aw-arrow-accent");
}

.aw-diagram .edge.dash {
  stroke-dasharray: 6 5;
}

.aw-diagram .edge.plain {
  marker-end: none;
}

.aw-diagram .icon {
  fill: var(--aw-d-muted);
}

.aw-d-arrow--route {
  fill: var(--aw-c-green);
}

/*
 * Map illustrations: roads, lane markings, lanelets, and vehicles. The road colors stay the same in both modes,
 * because they show real road surfaces.
 */
.aw-diagram .road {
  fill: #5c6070;
}

.aw-diagram .shoulder {
  fill: #8d91a0;
}

.aw-diagram .sidewalk {
  fill: #b9bcc8;
}

.aw-diagram .mark {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
}

.aw-diagram .mark.dash {
  stroke-dasharray: 14 10;
}

.aw-diagram .mark.yellow {
  stroke: #ffc233;
}

.aw-diagram .mark.thick {
  stroke-width: 7;
}

.aw-diagram .lanelet {
  fill: color-mix(in srgb, var(--aw-indigo) 38%, transparent);
  stroke: none;
}

.aw-diagram .lanelet.alt {
  fill: color-mix(in srgb, var(--aw-cyan) 40%, transparent);
}

.aw-diagram .lanelet.bad {
  fill: color-mix(in srgb, var(--aw-crimson) 35%, transparent);
}

.aw-diagram .area {
  fill: color-mix(in srgb, var(--aw-green) 25%, transparent);
  stroke: var(--aw-c-green);
  stroke-width: 2;
  stroke-dasharray: 6 4;
}

.aw-diagram .area.warn {
  fill: color-mix(in srgb, var(--aw-crimson) 22%, transparent);
  stroke: var(--aw-c-crimson);
}

.aw-diagram .bound {
  fill: none;
  stroke: var(--aw-cyan);
  stroke-width: 2.5;
}

.aw-diagram .bound.alt {
  stroke: #ff7076;
}

.aw-diagram .bound.point {
  fill: var(--aw-cyan);
  stroke: none;
}

.aw-diagram .route {
  fill: none;
  stroke: var(--aw-c-green);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  marker-end: url("#aw-arrow-route");
}

.aw-diagram .route.plain {
  marker-end: none;
}

.aw-diagram .car {
  fill: var(--aw-indigo);
  stroke: #fff;
  stroke-width: 1.5;
}

.aw-diagram .car.other {
  fill: var(--aw-crimson);
}

.aw-diagram .car.npc {
  fill: #8d91a0;
}

.aw-diagram .glass {
  fill: #ffffffb3;
}

.aw-diagram .sign {
  fill: #fff;
  stroke: var(--aw-crimson);
  stroke-width: 5;
}

.aw-diagram .sign-text {
  font-weight: 700;
  fill: #00002a;
}

.aw-diagram .sign-panel {
  fill: #0a5bb5;
  stroke: #fff;
  stroke-width: 4;
}

.aw-diagram .sign-fill {
  fill: #fff;
}

.aw-diagram .sign-line {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aw-diagram .sign-label {
  font-size: 26px;
  font-weight: 700;
  fill: #fff;
}

.aw-diagram .light-housing {
  fill: #1b1d29;
  stroke: #8d91a0;
  stroke-width: 1.5;
}

.aw-diagram .light-red {
  fill: #ff3b4e;
}

.aw-diagram .light-yellow {
  fill: #ffc233;
}

.aw-diagram .light-green {
  fill: #00e678;
}

.aw-diagram .light-off {
  fill: #4a4d5c;
}

.aw-diagram .leader {
  fill: none;
  stroke: var(--aw-d-muted);
  stroke-width: 1;
}

.aw-diagram .note {
  font-size: 13px;
  fill: var(--aw-d-fg);
}

.aw-diagram .note.bad {
  fill: var(--aw-c-crimson);
}

.aw-diagram .note.good {
  fill: var(--aw-c-green);
}

.aw-diagram .note.code {
  font-family: var(--md-code-font-family);
  font-size: 12px;
}

.aw-diagram .mark-text {
  font-size: 13px;
  font-weight: 700;
  fill: #fff;
}

/* Shell commands in code blocks (see shell-highlight.js and interface-highlight.js). */
[data-md-color-scheme="default"] {
  --aw-sh-arg: #6a3fd6;
  --aw-sh-val: #b8450f;
}

[data-md-color-scheme="slate"] {
  --aw-sh-arg: #b3a9ff;
  --aw-sh-val: #ff9e6b;
}

.md-typeset .highlight .aw-sh-cmd {
  font-weight: 700;
  color: var(--aw-c-indigo);
}

.md-typeset .highlight .aw-sh-sudo {
  font-weight: 700;
  color: var(--aw-c-crimson);
}

.md-typeset .highlight .aw-sh-sub {
  font-weight: 700;
  color: var(--aw-c-cyan);
}

.md-typeset .highlight .aw-sh-pkg {
  font-weight: 700;
  color: var(--aw-c-green);
}

.md-typeset .highlight .aw-sh-file,
.md-typeset .highlight .aw-sh-type {
  color: var(--aw-c-green);
}

.md-typeset .highlight .aw-sh-name,
.md-typeset .highlight .aw-sh-url {
  color: var(--aw-c-cyan);
}

.md-typeset .highlight .aw-sh-flag {
  color: var(--md-default-fg-color--light);
}

.md-typeset .highlight .aw-sh-arg {
  color: var(--aw-sh-arg);
}

.md-typeset .highlight .aw-sh-op {
  color: var(--md-default-fg-color--light);
}

.md-typeset .highlight .aw-sh-val {
  color: var(--aw-sh-val);
}

.md-typeset .highlight .aw-sh-sep {
  font-weight: 700;
  color: var(--aw-c-crimson);
}

/* A placeholder that the reader replaces, for example `<YOUR-DIR>`. */
.md-typeset .highlight .aw-sh-ph {
  font-style: italic;
  color: var(--aw-c-crimson);
}

/*
 * Illustration layer for the main diagrams: glass panels, glows, icons, a glass car, and data that flows along the
 * lines. Use it only for a few overview diagrams (see tools/diagrams/README.md).
 */
[data-md-color-scheme="default"] {
  --aw-glass-a: #ffffffd9;
  --aw-glass-b: #f0f6ff8c;
  --aw-halo-opacity: 0.22;
  --aw-car-shadow: #00002a40;
  --aw-flow-tone: 22%;
  --aw-flow-traj-a: #e3e0ff;
  --aw-flow-traj-b: #d6f7ff;
}

[data-md-color-scheme="slate"] {
  --aw-glass-a: #ffffff17;
  --aw-glass-b: #ffffff08;
  --aw-halo-opacity: 0.5;
  --aw-car-shadow: #00000099;
  --aw-flow-tone: 40%;
  --aw-flow-traj-a: #c8c2ff;
  --aw-flow-traj-b: #aeeeff;
}

.aw-glass-a {
  stop-color: var(--aw-glass-a);
}

.aw-glass-b {
  stop-color: var(--aw-glass-b);
}

.aw-flow-traj-a {
  stop-color: var(--aw-flow-traj-a);
}

.aw-flow-traj-b {
  stop-color: var(--aw-flow-traj-b);
}

.aw-dot {
  fill: var(--aw-d-fg);
  opacity: 0.12;
}

.aw-diagram .dots {
  fill: url("#aw-dots");
}

/* A soft glow. It fades to nothing at its radius, so keep the circle inside the viewBox. */
.aw-diagram .halo {
  fill: url("#aw-grad-halo");
  opacity: var(--aw-halo-opacity);
}

.aw-diagram .halo.cyan {
  fill: url("#aw-grad-halo-cyan");
}

.aw-diagram .glass-panel {
  fill: url("#aw-grad-glass");
  stroke: color-mix(in srgb, var(--aw-c-cyan) 45%, transparent);
  stroke-width: 1.5;
}

.aw-diagram .card {
  fill: var(--aw-d-node);
  stroke: var(--aw-d-node-stroke);
  stroke-width: 1.2;
  filter: url("#aw-shadow");
}

.aw-diagram .card.ai {
  fill: color-mix(in srgb, var(--aw-cyan) 8%, var(--aw-d-node));
  stroke: color-mix(in srgb, var(--aw-c-cyan) 65%, transparent);
}

.aw-diagram .icon-bg {
  fill: url("#aw-grad-primary");
}

.aw-diagram .icon-bg.ai {
  fill: url("#aw-grad-ai");
}

.aw-diagram .icon-bg.on {
  fill: #ffffff2e;
}

.aw-diagram .icon-line {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aw-diagram .icon-dot {
  fill: #fff;
}

.aw-diagram .pill {
  fill: #ffffff24;
  stroke: #ffffff59;
}

.aw-diagram .pill-text {
  font-size: 12px;
  font-weight: 600;
  fill: #fff;
}

.aw-diagram .traj {
  fill: none;
  stroke: url("#aw-grad-traj");
  stroke-width: 2.5;
  marker-end: url("#aw-arrow-accent");
}

.aw-diagram .glow {
  filter: url("#aw-glow");
}

/*
 * Two pulses of light that travel along a line. Each pulse has the color of its line, a little lighter: add flow-accent
 * or flow-traj for those lines. The path has pathLength="100", so every line has the same rhythm,
 * whatever its length.
 */
.aw-diagram .flow {
  fill: none;
  stroke: color-mix(in srgb, var(--aw-d-line) var(--aw-flow-tone), #fff);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 6 44;
  animation: aw-flow 2.4s linear infinite;
}

.aw-diagram .flow.flow-accent {
  stroke: color-mix(in srgb, var(--aw-d-accent) var(--aw-flow-tone), #fff);
}

.aw-diagram .flow.flow-traj {
  stroke: url("#aw-grad-traj-light");
}

.aw-diagram .flow.flow-route {
  stroke: color-mix(in srgb, var(--aw-c-green) var(--aw-flow-tone), #fff);
}

/* A copy of a line with only its arrow head. Draw it after the flow, so that the arrow head stays on top. */
.aw-diagram .edge.head,
.aw-diagram .edge.accent.head,
.aw-diagram .traj.head,
.aw-diagram .route.head {
  stroke: none;
}

@keyframes aw-flow {
  from {
    stroke-dashoffset: 6;
  }

  to {
    stroke-dashoffset: -94;
  }
}

.aw-diagram .car-body {
  fill: url("#aw-grad-car");
}

.aw-diagram .car-body.other {
  fill: url("#aw-grad-car-other");
}

.aw-diagram .car-body.npc {
  fill: url("#aw-grad-car-npc");
}

/* Other road users in the same glass style: a pedestrian, a traffic cone, a bicycle, and a truck. */
.aw-diagram .ped-body {
  fill: url("#aw-grad-car-other");
  stroke: #fff;
  stroke-width: 1;
}

.aw-diagram .ped-head {
  fill: #ffe1d2;
  stroke: #fff;
  stroke-width: 1;
}

.aw-diagram .cone {
  fill: url("#aw-grad-cone");
  stroke: #fff;
  stroke-width: 1;
  stroke-linejoin: round;
}

.aw-diagram .cone-stripe {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
}

.aw-diagram .cone-base {
  fill: #c2410c;
}

.aw-diagram .bike-wheel {
  fill: #1b1d29;
}

.aw-diagram .bike-frame {
  fill: none;
  stroke: #c9ccd8;
  stroke-width: 2;
  stroke-linecap: round;
}

.aw-diagram .truck-box {
  fill: url("#aw-grad-truck");
  stroke: #ffffffb3;
  stroke-width: 1;
}

.aw-diagram .truck-rib {
  fill: none;
  stroke: #8d91a0;
  stroke-width: 1;
  opacity: 0.6;
}

.aw-diagram .car-glass {
  fill: url("#aw-grad-car-glass");
  stroke: #ffffffb3;
  stroke-width: 1;
}

.aw-diagram .car-shine {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.75;
}

.aw-diagram .wheel {
  fill: #1b1d29;
}

.aw-diagram .rim {
  fill: none;
  stroke: #c9ccd8;
  stroke-width: 2.5;
}

.aw-diagram .hub {
  fill: #c9ccd8;
}

.aw-diagram .car-shadow {
  fill: var(--aw-car-shadow);
  filter: url("#aw-soft");
}

.aw-diagram .headlight {
  fill: #9ff3ff;
  filter: url("#aw-glow");
}

.aw-diagram .lidar {
  fill: url("#aw-grad-ai");
}

@media (prefers-reduced-motion: reduce) {
  .aw-diagram .flow {
    display: none;
    animation: none;
  }
}
