/* The ground every page stands on: the fonts, a small reset, the type styles, focus, the skip link and motion.
   Values come from tokens.css only (brief, section 7). */

@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/InterTight-Regular.woff") format("woff"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/InterTight-Medium.woff") format("woff"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/InterTight-SemiBold.woff") format("woff"); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); color: var(--ink);
  font: var(--type-body); font-variant-numeric: tabular-nums;
  /* a tap shows each control's own pressed state, never the phone's own flash of color over it */
  -webkit-tap-highlight-color: transparent; }
body { margin: 0; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: inherit; }
table { border-collapse: collapse; }

/* the type styles (7.3) */
.mg-t-display { font: var(--type-display); letter-spacing: var(--track-display); }
.mg-t-heading { font: var(--type-heading); letter-spacing: var(--track-heading); text-wrap: balance; }
.mg-t-lead { font: var(--type-lead); letter-spacing: var(--track-lead); }
.mg-t-title { font: var(--type-title); letter-spacing: var(--track-title); }
.mg-t-wordmark { font: var(--type-wordmark); letter-spacing: var(--track-wordmark); }
.mg-t-body { font: var(--type-body); }
.mg-t-body-s { font: var(--type-body-s); }
.mg-t-label { font: var(--type-label); letter-spacing: var(--track-label); }
.mg-t-label-quiet { font: var(--type-label-quiet); letter-spacing: var(--track-label); }
.mg-t-caption { font: var(--type-caption); }
.mg-t-eyebrow { font: var(--type-eyebrow); letter-spacing: var(--track-eyebrow); text-transform: uppercase; }
.mg-t-code { font: var(--type-code); }
.mg-muted { color: var(--ink-2); }

/* a figure inside a sentence, as the engine wrote it, and a file name between backticks (js/dom.js, rich) */
.mg-fig { font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mg-code { padding: var(--s-quarter) var(--s-three-quarter); border-radius: var(--r-s); background: var(--bg);
  font: var(--type-code); overflow-wrap: anywhere; }

/* focus (7.12): on light grounds an ink ring set off from the control; on the graphite chrome a lime ring whose
   offset shows the graphite between the ring and the control */
:focus-visible { outline: var(--focus-w) solid var(--ink); outline-offset: var(--focus-offset); }
.mg-chrome :focus-visible { outline: var(--focus-w-chrome) solid var(--lime); outline-offset: var(--focus-offset-chrome); }

/* the skip link: the first thing the keyboard reaches */
.mg-skip { position: fixed; inset-inline-start: var(--s2); inset-block-start: var(--s2); z-index: var(--z-skip);
  padding: var(--s1) var(--s2); border-radius: var(--r-s); background: var(--lime); color: var(--on-lime);
  font: var(--type-label); letter-spacing: var(--track-label); text-decoration: none; transform: translateY(-200%); }
.mg-skip:focus-visible { transform: none; outline-color: var(--ink); }
.mg-skip:hover { text-decoration: underline; text-underline-offset: var(--s-half); }
.mg-skip:active { text-decoration: underline var(--focus-w); text-underline-offset: var(--s-half); }

/* hidden from the eye, read by screen readers */
.mg-vh { position: absolute; inline-size: var(--hairline); block-size: var(--hairline); overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; }

/* line icons (7.10): drawn at 20 px (16 px in small controls) in the color of the text beside them */
.mg-icon { inline-size: var(--icon); block-size: var(--icon); flex: none; fill: none; stroke: currentColor;
  stroke-width: var(--icon-stroke); stroke-linecap: round; stroke-linejoin: round; }
.mg-icon--s { inline-size: var(--icon-s); block-size: var(--icon-s); }

/* motion (7.8): off when the system asks for less motion, and when the panel's switch is on */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
:root[data-motion="reduced"] *, :root[data-motion="reduced"] *::before, :root[data-motion="reduced"] *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important; }
