/* TAMU maroon theme, carried over from github.com/gerrypedraza/presentations */

[data-md-color-primary=custom] {
  --md-primary-fg-color: #500000;
  --md-primary-fg-color--light: #732f2f;
  --md-primary-fg-color--dark: #3c0000;
  --md-primary-bg-color: #ffffff;
  --md-primary-bg-color--light: #ffffffb3;
}

[data-md-color-accent=custom] {
  --md-accent-fg-color: #732f2f;
  --md-accent-fg-color--transparent: #732f2f1a;
  --md-accent-bg-color: #ffffff;
  --md-accent-bg-color--light: #ffffffb3;
}

/* Maroon is too dark to read as link/accent text on the slate (dark) scheme's
   near-black background (contrast ~1:1) — lighten it there only. */
[data-md-color-scheme=slate][data-md-color-primary=custom] {
  --md-typeset-a-color: #d47070;
}

[data-md-color-scheme=slate][data-md-color-accent=custom] {
  --md-accent-fg-color: #d47070;
  --md-accent-fg-color--transparent: #d4707033;
}

/* .md-button (outline style, e.g. the download buttons) uses
   --md-primary-fg-color for its text/border via currentColor, same
   contrast problem as above. .md-button--primary is unaffected since
   it uses that color as a *background* with white text, which is
   fine in both themes.

   :not(:hover):not(:focus) matters: Material's own hover/focus rule
   (.md-typeset .md-button:hover) has the same specificity and sets
   color to --md-accent-bg-color (white) against a filled
   --md-accent-fg-color background. Without excluding hover/focus
   here, this rule's later position in the stylesheet would win and
   force the text to the *same* color as that fill, erasing it. */
[data-md-color-scheme=slate] .md-button:not(.md-button--primary):not(:hover):not(:focus) {
  color: var(--md-accent-fg-color);
}

/* Heading permalinks (the paragraph-mark next to each heading) stay
   fully functional — still a real link, still clickable, still
   revealed by keyboard focus for accessibility — just visually
   blended into the page background instead of shown in the accent
   color, since the table of contents already covers jumping to any
   section. */
.md-typeset .headerlink,
.md-typeset .headerlink:focus,
.md-typeset .headerlink:hover,
.md-typeset :target > .headerlink {
  color: var(--md-default-bg-color);
}
