/* Jennah docs - light-grey theme, drawn from the landing page (lp/styles.css).
   lp greys: --surface #f4f6fb, --border #e3e7f0, --text #14161f.
   Accent is muted gold (lp --accent #cba43d). No purple, no teal. */

:root {
  /* Primary (header, tabs) - light grey surface with dark text. */
  --md-primary-fg-color:        #f4f6fb;
  --md-primary-fg-color--light: #ffffff;
  --md-primary-fg-color--dark:  #e3e7f0;

  /* Accent (links hover, focus, interactive) - lp --accent (muted gold). */
  --md-accent-fg-color:             #cba43d;
  --md-accent-fg-color--transparent: rgba(203, 164, 61, 0.1);

  /* Body links - muted gold, matching lp's link color. */
  --md-typeset-a-color: #cba43d;
}

/* Subtle bottom border so the light-grey header reads against white content. */
.md-header {
  border-bottom: 1px solid #e3e7f0;
}

/* The logo mark (jennah.png - a line-drawn tree) carries much finer detail than
   the filled square it replaced, so give it more than the theme's default 1.2rem
   or it turns to mush next to the title. */
.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 1.6rem;
}

/* Dark scheme (slate): neutral dark-grey header, brighter gold for contrast. */
[data-md-color-scheme="slate"] {
  --md-primary-fg-color:        #2b2f3a;
  --md-primary-fg-color--light: #3a3f4d;
  --md-primary-fg-color--dark:  #1f2330;
  --md-accent-fg-color:         #e0c15f; /* brighter gold for dark surfaces */
  --md-typeset-a-color:         #e0c15f;
}

[data-md-color-scheme="slate"] .md-header {
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

/* The logo's navy branches (#162f4d) all but vanish against the slate header, so
   dark mode needs the light-branch variant. mkdocs-material renders the logo as a
   plain <img> with no per-scheme hook - so hide it and paint the anchor's content
   box, which is exactly the img's box, with the dark asset instead. */
[data-md-color-scheme="slate"] .md-header__button.md-logo img {
  visibility: hidden;
}
[data-md-color-scheme="slate"] .md-header__button.md-logo {
  background: url("logo-dark.png") left center / auto 1.6rem no-repeat;
  background-origin: content-box;
}

/* mkdocs-material sets word-break: break-word on inline code, which lets table
   auto-layout squeeze a column of identifiers (permission ids, flags) into
   mid-word wraps while the prose column keeps the width. Keep first-column code on
   one line; a table too wide for the page still scrolls horizontally. */
.md-typeset table:not([class]) td:first-child code {
  white-space: nowrap;
  word-break: normal;
}
