/* Match the docs to the product.
 *
 * The app ships a dark UI (#0f1117 background, #1a1d26 cards, #3b82f6 accent).
 * The docs shipped mkdocs-material's "deep purple + pink", so the site and the
 * thing it documents looked like two different products — and the warm sunset
 * logo, drawn for a dark backdrop, clashed with the purple header on top of it.
 *
 * These are the app's own values, so the header the logo sits on is the same
 * colour as the dashboard behind it.
 */
:root {
  --md-primary-fg-color:        #0f1117;  /* app background */
  --md-primary-fg-color--light: #1a1d26;  /* app card       */
  --md-primary-fg-color--dark:  #08090d;
  --md-primary-bg-color:        #ffffff;
  --md-primary-bg-color--light: #ffffffb3;

  --md-accent-fg-color:         #3b82f6;  /* app accent */
  --md-accent-fg-color--transparent: #3b82f61a;
}

/* Dark scheme: keep the body close to the app rather than material's default
   slate, so scrolling from the header into the page is continuous. */
[data-md-color-scheme="slate"] {
  --md-default-bg-color:        #0f1117;
  --md-code-bg-color:           #1a1d26;
  --md-typeset-a-color:         #3b82f6;
}

/* Light scheme keeps a light page, but links pick up the app accent so the two
   schemes still read as the same product. */
[data-md-color-scheme="default"] {
  --md-typeset-a-color:         #2563eb;
}

/* The header logo is a warm mark on a near-black bar; give it a touch of room
   so it does not crowd the wordmark at small sizes. */
.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 1.6rem;
  width: 1.6rem;
}

/* The wordmark, matching banner.svg.
 *
 * The banner draws "CashPilot" in the pink gradient #f43f5e -> #fb7185 right
 * beside the sun mark, as one lockup. The header rendered it in plain white
 * with a wide gap, so the two read as an icon and some unrelated text rather
 * than the product's mark.
 *
 * Only the FIRST topic is styled. Material puts the site name in one
 * .md-header__topic and the current page title in a second one, swapping them
 * on scroll — painting both would turn every page heading pink.
 */
.md-header__topic:first-child .md-ellipsis {
  background: linear-gradient(90deg, #f43f5e 0%, #fb7185 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Close the gap so the mark and the wordmark read as one unit, the way the
   banner sets them. */
.md-header__button.md-logo {
  padding-right: 0.2rem;
}

.md-header__title {
  margin-left: 0.2rem;
}
