/* Standard MOSS chrome for the static apps: the gradient app bar (white-tile blue-M mark + wordmark)
   and the five-link footer. Mirrors the live reference in account-service (ui/shared/appearance.css);
   keep the two visually in step. One look for every MOSS app — only the wordmark and footer context line
   change per app. */

/* The MOSS mark: a white tile with a blue capital M. One logo, used everywhere. */
.mtile {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #ffffff;
  color: #1e40af;
  font-weight: 900;
  font-size: 21px;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  flex: none;
}

/* The full-bleed gradient app header band. */
.appbar {
  background: linear-gradient(100deg, #15245c 0%, #1f5f86 56%, #3b2f74 100%);
  color: #fff;
}
.appbar-inner {
  max-width: min(1400px, 92vw);
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.appbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 17px;
}
.appbar .brandword b {
  font-weight: 800;
}
.appbar .iconbtn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.appbar .iconbtn:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.2);
}

/* The shared footer: five standard links over one contextual line (app name · © · version). */
.site-footer {
  max-width: min(1400px, 92vw);
  margin: 0 auto;
  padding: 24px 22px 40px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.site-footer .foot-links {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.site-footer .foot-links a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 14px;
}
.site-footer .foot-links a:hover {
  color: var(--text);
}
.site-footer .foot-fine {
  color: var(--muted);
  font-size: 12.5px;
  margin: 0;
}
.site-footer .foot-dot {
  margin: 0 8px;
  opacity: 0.55;
}

/* Quiz colour: the app name reads as a lively amber pill (always the amber-on-dark treatment, since
   the app bar is always the dark gradient), and a touch of accent colour warms up the quiz body. */
.appbar .qzword {
  color: #fde047;
  background: color-mix(in srgb, #fde047 16%, transparent);
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 99px;
}
.qz h1 {
  color: var(--accent);
}
.qz .big2 {
  color: var(--accent);
}

/* Sticky footer: the page fills the viewport and the footer sits at the bottom even on short pages. */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.appbar {
  flex: none;
}
.wrap {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}
.site-footer {
  margin-top: auto;
}

/* Fixed brand lockup (M + MOSS + fixes money) as one SVG image, so the signature never drifts. Only the
   app name beside it changes per app. */
.appbar .brand {
  text-decoration: none;
}
.appbar .brandlogo {
  height: 40px;
  display: block;
}
.appbar .appdiv {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.35);
  margin: 0 2px;
}
.appbar .appname {
  /* Colour is the one per-app tweak: set --appname-color per app; defaults to white. Font + size stay
     fixed so the name is identical everywhere. */
  color: var(--appname-color, #fff);
  font-size: 19px;
  font-weight: 500;
  /* Pinned so the app name is identical across every app, never inheriting the page's base font. */
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.2px;
}
