/* Audionaut dark theme — true black, grey text, no colour accent. */

[data-md-color-scheme="slate"],
[data-md-color-scheme="slate"][data-md-color-primary="black"],
[data-md-color-scheme="slate"][data-md-color-accent="white"] {
  --md-default-bg-color: #000;
  --md-default-fg-color: #f2f2f2;
  --md-default-fg-color--light: #bdbdbd;
  --md-default-fg-color--lighter: #8a8a8a;
  --md-default-fg-color--lightest: #3a3a3a;
  --md-primary-fg-color: #000;
  --md-primary-bg-color: #f2f2f2;
  --md-accent-fg-color: #fff;
  --md-typeset-a-color: #e6e6e6;
  --md-primary-fg-color--light: #bdbdbd;
  --md-primary-fg-color--dark: #000;
  --md-code-bg-color: #141414;
  --md-code-fg-color: #d6d6d6;
  --md-footer-bg-color: #000;
  --md-footer-bg-color--dark: #000;
  --md-footer-fg-color: #8a8a8a;
  --md-footer-fg-color--light: #6a6a6a;
  --md-footer-fg-color--lighter: #4a4a4a;
  --md-admonition-bg-color: #0d0d0d;
}

/* Starfield behind everything, subtle. */
body {
  background-color: #000;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.06), transparent 60%),
    url("../img/stars.svg");
  background-repeat: no-repeat, repeat;
  background-attachment: fixed;
}
.md-container,
.md-main,
.md-content,
.md-sidebar {
  background: transparent;
}

/* Header: flat black with a hairline, no shadow. */
.md-header {
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  box-shadow: none;
  border-bottom: 1px solid #1c1c1c;
}
.md-header__title { font-weight: 600; }
.md-header__button.md-logo img { border-radius: 6px; }
.md-search__form { background-color: #161616; }
.md-search__form:hover { background-color: #1f1f1f; }
[data-md-toggle="search"]:checked ~ .md-header .md-search__form { background-color: #161616; }
.md-search__output { background: #0d0d0d; }
.md-search-result__meta { background: #141414; color: #8a8a8a; }
.md-search-result__item { color: #d6d6d6; }

/* Links: underline on hover only, stay grey/white. */
.md-typeset a { text-decoration: underline; text-decoration-color: #555; text-underline-offset: 0.18em; }
.md-typeset a:hover { color: #fff; text-decoration-color: #fff; }
.md-typeset h1, .md-typeset h2, .md-typeset h3 { color: #fff; font-weight: 600; }
.md-typeset h1 { letter-spacing: -0.01em; }
.md-typeset img { border-radius: 8px; box-shadow: 0 0 0 1px #1c1c1c; }
.md-typeset code { border-radius: 4px; }
.md-typeset hr { border-color: #1c1c1c; }

/* Sidebars: quiet. */
.md-nav__title { color: #8a8a8a; }
.md-nav__link:hover, .md-nav__link--active { color: #fff; }
.md-nav__item--active > .md-nav__link { color: #fff; }
.md-sidebar__scrollwrap { scrollbar-color: #2a2a2a transparent; }
.md-source { color: #8a8a8a; }
.md-source:hover { color: #fff; }
.md-footer-meta { border-top: 1px solid #1c1c1c; }
.md-footer__inner { border-top: 1px solid #1c1c1c; }

/* Tables and admonitions. */
.md-typeset table:not([class]) { border: 1px solid #1c1c1c; }
.md-typeset table:not([class]) th { background: #0d0d0d; color: #f2f2f2; }
.md-typeset table:not([class]) td { border-top-color: #1c1c1c; }

/* ---------- Landing page ---------- */

.hero {
  text-align: center;
  padding: 3.5rem 0 1rem;
}
.md-typeset .hero__home { display: inline-block; line-height: 0; }
.hero__logo {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  box-shadow: 0 0 0 1px #222, 0 0 60px rgba(255, 255, 255, 0.05);
}
.md-typeset .hero__title {
  font-size: 3rem;
  line-height: 1.1;
  margin: 1.2rem 0 0.4rem;
  font-weight: 600;
  color: #fff;
}
.md-typeset .hero__tagline {
  font-size: 1.5rem;
  color: #bdbdbd;
  margin: 0 0 1.6rem;
  font-weight: 400;
}
.md-typeset .hero__lead {
  max-width: 34rem;
  margin: 0 auto 2.2rem;
  color: #8a8a8a;
  font-size: 0.95rem;
  line-height: 1.6;
}
.hero__actions {
  display: flex;
  justify-content: center;
  padding-bottom: 1.5rem;
}
.md-typeset .btn--download {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 0.7rem 2.4rem 0.6rem;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.08);
  transition: background 0.15s ease, transform 0.15s ease;
}
.md-typeset .btn--download:hover { background: #e8e8e8; color: #000; transform: translateY(-1px); }
.md-typeset .btn__sub {
  font-size: 0.68rem;
  font-weight: 400;
  color: #555;
  margin-top: 0.15rem;
  letter-spacing: 0.02em;
}
.md-content__inner:has(.hero) { max-width: 46rem; margin-left: auto; margin-right: auto; }
.md-typeset:has(.hero) h2 {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #1c1c1c;
}
.md-typeset:has(.hero) h3 { margin-top: 2.4rem; }

@media screen and (max-width: 44.9375em) {
  .md-typeset .hero__title { font-size: 2.4rem; }
  .md-typeset .hero__tagline { font-size: 1.2rem; }
}

/* ---------- Download page ---------- */

.md-content__inner:has(.dl-card) { max-width: 46rem; margin-left: auto; margin-right: auto; }
.md-typeset:has(.dl-card) h1 { text-align: center; margin-bottom: 0.4rem; }
.md-typeset .dl-version {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  column-gap: 0.4rem;
  color: #8a8a8a;
  font-size: 0.8rem;
  margin: 0 0 2rem;
}
.md-typeset .dl-version > * { white-space: nowrap; }
.md-typeset .dl-version__name { color: #f2f2f2; font-weight: 600; }
.md-typeset .dl-version__sep { color: #3a3a3a; }

.md-typeset .dl-card {
  background: rgba(13, 13, 13, 0.85);
  border: 1px solid #1c1c1c;
  border-radius: 14px;
  padding: 1.4rem 1.6rem 1.2rem;
  margin: 0 0 1.2rem;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.03);
}
.md-typeset .dl-card > :last-child { margin-bottom: 0; }
.md-typeset .dl-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.md-typeset .dl-card__title { margin: 0; font-size: 1.3rem; }
.md-typeset .dl-chip {
  font-size: 0.65rem;
  color: #8a8a8a;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  white-space: nowrap;
}
.md-typeset .dl-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1rem;
}
.md-typeset .btn--dl {
  padding: 0.6rem 1.8rem 0.5rem;
  box-shadow: none;
}
.md-typeset .btn--dl .btn__sub { font-family: var(--md-code-font-family); letter-spacing: 0; }
.md-typeset .btn--dl-secondary {
  background: transparent;
  color: #f2f2f2;
  border: 1px solid #3a3a3a;
}
.md-typeset .btn--dl-secondary .btn__sub { color: #8a8a8a; }
.md-typeset .btn--dl-secondary:hover { background: #141414; color: #fff; border-color: #555; }
.md-typeset .dl-card p { color: #bdbdbd; }
.md-typeset .dl-card pre { margin: 0.6rem 0 1rem; }

.md-typeset .dl-alt {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid #1c1c1c;
}
.md-typeset .dl-alt__badge { line-height: 0; flex: none; }
.md-typeset .dl-alt__badge img {
  width: 150px;
  height: 50px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}
.md-typeset .dl-alt__text { margin: 0; font-size: 0.8rem; color: #8a8a8a; }

.md-typeset .dl-foot {
  color: #8a8a8a;
  font-size: 0.8rem;
  text-align: center;
  max-width: 34rem;
  margin: 2rem auto 0;
}

@media screen and (max-width: 44.9375em) {
  .md-typeset .dl-card { padding: 1.1rem 1.1rem 1rem; }
  .md-typeset .btn--dl { width: 100%; padding-left: 0.8rem; padding-right: 0.8rem; }
  .md-typeset .btn--dl .btn__sub { font-size: 0.6rem; }
  .md-typeset .dl-alt { flex-direction: column; align-items: flex-start; }
}

/* Cookie consent: the primary buttons inherit a light background from the
   slate scheme but keep white text - give them dark text so they're legible. */
.md-consent .md-button--primary,
.md-consent .md-button--primary:hover,
.md-consent .md-button--primary:focus {
  color: #000;
}
