/* Suburb Stack's colours on the Zensical theme. The values are the app's
   brand tokens (Suburb-Stack-Front-End src/index.css, the THEME block); keep
   the two in step. zensical.toml sets primary and accent to "custom", which
   is what makes the theme read these. */
:root > * {
  --ss-brand:       #f3692c; /* --brand */
  --ss-brand-hover: #e0581d; /* --brand-hover */
  --ss-brand-light: #ff8d28; /* --brand-accent */
  --ss-brand-soft:  #fdf1e9; /* --brand-soft */
  --ss-brand-soft-2:#fde8d9; /* --brand-soft-2 */
  --ss-brand-deep:  #8a3a0a; /* --brand-deep */
  --ss-ink:         #1a1523; /* --primary */

  --md-primary-fg-color:        var(--ss-brand);
  --md-primary-fg-color--light: var(--ss-brand-light);
  --md-primary-fg-color--dark:  var(--ss-brand-hover);
  --md-primary-bg-color:        #ffffff;
  --md-primary-bg-color--light: #ffffffb3;

  --md-accent-fg-color:              var(--ss-brand-hover);
  --md-accent-fg-color--transparent: var(--ss-brand-soft);
  --md-accent-bg-color:              #ffffff;
  --md-accent-bg-color--light:       #ffffffb3;

  /* Links are the darker brand shade: #f3692c on white is only 3.1:1. */
  --md-typeset-a-color: var(--ss-brand-hover);
  --md-default-fg-color: var(--ss-ink);
}

.md-typeset a:hover,
.md-typeset a:focus {
  color: var(--ss-brand-deep);
}

/* Text selection and search-term highlights in the brand tint. */
::selection {
  background-color: var(--ss-brand-soft-2);
  color: var(--ss-ink);
}
.md-typeset mark {
  background-color: var(--ss-brand-soft-2);
}

/* Screenshots: a hairline frame and the app's corner radius, so a white
   screenshot does not bleed into the white page. */
.md-typeset img {
  border: 1px solid #ebebeb;
  border-radius: 0.75rem;
}

/* "> **Important:** ..." notes in the guides. */
.md-typeset blockquote {
  border-inline-start: 0.2rem solid var(--ss-brand);
  background-color: var(--ss-brand-soft);
  border-radius: 0 0.5rem 0.5rem 0;
  color: var(--ss-ink);
  padding: 0.6rem 1rem;
}
.md-typeset blockquote > :first-child { margin-top: 0; }
.md-typeset blockquote > :last-child { margin-bottom: 0; }
