/* MMR colors and the box that shows the MMR logo. Author Jon Maguire, 12 Nov 2026.
   On a screen the hex codes govern. How each color is used: section 3 of the handoff. */

:root {
  /* the six MMR colors */
  --mmr-maroon: #840029;        /* primary, Pantone 202C */
  --mmr-dark-maroon: #540700;   /* secondary, Pantone 2042C */
  --mmr-canvas: #eadfc2;        /* secondary, Pantone 9185C */
  --mmr-solar-yellow: #fdd023;  /* secondary, Pantone 123C */
  --mmr-steel-gray: #aaacaf;    /* tertiary, Pantone 428C */
  --mmr-coal: #54585a;          /* tertiary, Pantone 425C */

  /* how they are used on screens */
  --mmr-page: #ffffff;
  --mmr-text: var(--mmr-coal);
  --mmr-text-on-maroon: #ffffff;
  --mmr-band: var(--mmr-maroon);
  --mmr-heading: var(--mmr-maroon);
  --mmr-link: var(--mmr-maroon);
  --mmr-button: var(--mmr-maroon);
  --mmr-button-hover: var(--mmr-dark-maroon);
  --mmr-panel: var(--mmr-canvas);
  --mmr-border: var(--mmr-steel-gray);
  --mmr-attention: var(--mmr-solar-yellow);
  --mmr-focus: var(--mmr-dark-maroon);
  --mmr-focus-on-maroon: var(--mmr-solar-yellow);
}

/* The logo. MMR's SVG is a page 612 by 792 with the logo inside it, so it is shown through this box: the logo with its
   clear space on every side (43.6 of the file's units, the outer frame to the outside of the first M's leg) and none of
   the empty page. Nothing of the logo is cut, stretched or recolored, and the file is not edited.
   Set --mmr-logo-w on the box or on any parent: the width of the logo's outer frame, 45px at the least (60px if unset).
   Markup: <span class="mmr-logo" role="img" aria-label="MMR"><img src="mmr-logo-white.svg" alt=""></span> */
.mmr-logo {
  position: relative;
  display: block;
  flex: none;
  overflow: hidden;
  width: calc(538.88 * var(--mmr-logo-w, 60px) / 451.68);
  height: calc(315.03 * var(--mmr-logo-w, 60px) / 451.68);
}
.mmr-logo img {
  position: absolute;
  left: calc(-26.06 * var(--mmr-logo-w, 60px) / 451.68);
  top: calc(-208.81 * var(--mmr-logo-w, 60px) / 451.68);
  width: calc(612 * var(--mmr-logo-w, 60px) / 451.68);
  height: calc(792 * var(--mmr-logo-w, 60px) / 451.68);
  max-width: none;
  max-height: none;
}
