/* my-gui base: fonts, a narrow reset, body typography, icon box, focus ring, utilities.
   Values measured on the running My Atlas (D538). No bare "*" rule on the page: only .m-page and below,
   and zero specificity (:where) wherever a component or the app must be able to override. */

@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/NunitoSans-Light.ttf") format("truetype"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/NunitoSans-Regular.ttf") format("truetype"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/NunitoSans-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/NunitoSans-Bold.ttf") format("truetype"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/NunitoSans-ExtraBold.ttf") format("truetype"); }

/* reset */
:where(html) { height: 100%; }
:where(.m-page), :where(.m-page) *, :where(.m-page) *::before, :where(.m-page) *::after { box-sizing: border-box; }
:where(.m-page) :where(h1, h2, h3, h4, p, figure) { margin: 0; }
/* not :where on purpose: form controls inside the page take their font and colour from the surroundings,
   over one-class component and app rules (measured in the running app) */
.m-page button, .m-page input, .m-page select, .m-page textarea { font: inherit; color: inherit; }

/* body typography */
:where(.m-page) {
  margin: 0;
  min-height: 100%;
  font-family: var(--m-font);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--m-text);
  background: var(--m-bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background-color: rgba(var(--m-ink), .14);
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

/* inline icon: <svg class="m-i"><use href="#i-NAME"></use></svg> */
:where(.m-i) {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  vertical-align: middle;
  overflow: hidden;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* focus ring of text-like controls; components draw their own, other elements keep the browser's */
:where(.m-link):focus-visible { outline: none; border-radius: 4px; box-shadow: 0 0 0 3px var(--m-ring); }

/* visually hidden, still read by screen readers */
.m-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* the hidden attribute always wins over a display rule of a component or of the app */
:where(.m-page) [hidden] { display: none !important; }

/* jump without transition (the app adds and removes it) */
.m-no-anim, .m-no-anim *, .m-no-anim *::before, .m-no-anim *::after { transition: none !important; }

/* theme.js sets this for a moment so that the surface does not "ripple" while the theme changes */
.m-theming *, .m-theming *::before, .m-theming *::after { transition: none !important; }

/* reduced motion: css/modes.css (large movement fades, endless animations stop, short transitions stay) */
