/* Math Fluency Lab - shared visual-system finish. Loaded after every other stylesheet; additive and low specificity.
   Models and manipulatives have their own files (models-visual.css, models-learn-visual.css, models-lesson-visual.css). */

/* One icon system: every .fl-icon is a 24-unit stroke glyph. Zero specificity so any component rule can still size it. */
:where(.fl-icon) {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  flex: none;
  vertical-align: -0.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Grade-home tabs: icon beside label, selected tab reads as the current place */
.gh-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background-color 0.14s, color 0.14s, box-shadow 0.14s;
}
.gh-tab .fl-icon { width: 1.25em; height: 1.25em; }
.gh-tab[aria-selected="true"] { box-shadow: 0 2px 0 rgb(0 0 0 / 0.22), 0 8px 16px -10px rgb(23 50 77 / 0.55); }

/* Game Room cards: earned stars are a small status, not the card's main picture */
.gm-game .tr-stars.big { font-size: 1.7rem; gap: 0.2rem; }
.gm-game { box-shadow: 0 2px 0 rgb(19 35 58 / 0.1); }
.gm-game:hover { box-shadow: 0 2px 0 rgb(19 35 58 / 0.16), 0 12px 22px -16px rgb(19 35 58 / 0.45); }

/* Today's Learning Quests and Adaptive Fact Fluency are built with inline slate styles (moby/); the design system
   overrides them here so they match the rest of the page. !important is required to beat inline declarations. */
.mby-quests-section,
.mby-fluency-section {
  background: var(--t-paper, #fff) !important;
  border: 1px solid var(--t-rule, #d5deea) !important;
  border-radius: 18px !important;
  box-shadow: 0 1px 0 #fff inset, 0 1px 2px rgb(19 35 58 / 0.08), 0 12px 26px -20px rgb(19 35 58 / 0.34);
}
.mby-quests-section h3,
.mby-fluency-section h3 {
  color: var(--t-ink, #13233a) !important;
  font-family: var(--mv-math-font, "Fraunces", Georgia, serif);
  letter-spacing: -0.005em;
}
.mby-quests-section p,
.mby-fluency-section p { color: var(--t-ink-soft, #4a5a70) !important; }
.mby-quest-card {
  border: 1px solid var(--t-rule, #d5deea) !important;
  border-left: 4px solid var(--trail, #1a9d99) !important;
  border-radius: 12px !important;
  background: var(--t-paper, #fff) !important;
}
.mby-btn {
  border: 2px solid var(--t-ink, #13233a) !important;
  border-radius: 10px !important;
  background: var(--t-paper, #fff) !important;
  color: var(--t-ink, #13233a) !important;
  box-shadow: 0 2px 0 rgb(19 35 58 / 0.7);
  transition: transform 0.12s, box-shadow 0.12s;
}
.mby-btn.mby-btn-primary { background: var(--t-ink, #13233a) !important; color: #fff !important; box-shadow: 0 2px 0 rgb(0 0 0 / 0.4); }
.mby-btn:active { transform: translateY(2px); box-shadow: none; }

@media (forced-colors: active) {
  .gh-tab[aria-selected="true"] { outline: 2px solid Highlight; }
}
@media (prefers-reduced-motion: reduce) {
  .gh-tab, .mby-btn { transition: none; }
  .mby-btn:active { transform: none; }
}
