/*
 * The brand (PRD-0023 T11, T14): views/layouts/partials/brand.php. The TruerunEngine symbol and
 * name in the person's theme colours: the ring in the accent, the bar and arrow in a lighter
 * accent, the name in text-strong. Loaded by the frame (layouts/main.php) and by the pages
 * without the menu (layouts/plain.php).
 */
.be-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--tru-text-strong);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
}
a.be-brand:hover { text-decoration: none; }
.be-brand-mark { flex: none; width: 28px; height: 28px; }
.be-brand-ring { stroke: var(--tru-accent-text); }
.be-brand-bar { stroke: color-mix(in oklab, var(--tru-accent-text) 60%, var(--tru-surface-card)); }
.be-brand-arrow { fill: color-mix(in oklab, var(--tru-accent-text) 60%, var(--tru-surface-card)); }
.be-brand-name > span { font-weight: 400; }
.be-brand-logo { display: block; max-width: 180px; max-height: 36px; }

/* The symbol and the name, kept together when they show in one mode only. */
.be-brand-symbol { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }

/* One mode only: the site's logo for light backgrounds, or for dark ones, or the symbol in the
   mode that has no logo of its own. In auto mode the operating system's mode decides. */
:root[data-mode="light"] .be-brand-for-dark,
:root[data-mode="dark"] .be-brand-for-light { display: none; }
@media not (prefers-color-scheme: dark) {
  :root:not([data-mode="light"]):not([data-mode="dark"]) .be-brand-for-dark { display: none; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-mode="light"]):not([data-mode="dark"]) .be-brand-for-light { display: none; }
}
