/* Word problems page (/math/word-problems/). Same classroom palette as the practice studios (assets/studio/clarity.css). */
:root {
  --brand: #164e63;
  --brand-dark: #123247;
  --brand-tint: #e8f3f5;
  --paper: #f3f6f8;
  --surface: #ffffff;
  --border: #cbd5de;
  --ink: #182532;
  --ink-muted: #405363;
  --ok: #28785f;
  --ok-tint: #e7f4ee;
  --ok-line: #a6d2bf;
  --bad: #a83c3c;
  --bad-tint: #fbecec;
  --bad-line: #e4b2b2;
  --warn-tint: #fff5db;
  --warn-line: #dfc276;
  --on-brand: #ffffff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #80cbd3;
    --brand-dark: #10232e;
    --brand-tint: #24434e;
    --paper: #111d26;
    --surface: #1c2d38;
    --border: #405562;
    --ink: #f1f5f7;
    --ink-muted: #c4d0d8;
    --ok: #68bf99;
    --ok-tint: #1b3a32;
    --ok-line: #3f7a62;
    --bad: #f0a3a3;
    --bad-tint: #3d2224;
    --bad-line: #7a4547;
    --warn-tint: #3e3520;
    --warn-line: #8d6a1d;
    --on-brand: #10232e;
    color-scheme: dark;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    17px/1.55 system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
.t-es {
  display: none;
}
body.show-es .t-es {
  display: inline;
}
body.show-es .t-en {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.wp-skip {
  position: absolute;
  left: -999px;
}
.wp-skip:focus {
  left: 16px;
  top: 8px;
  z-index: 5;
  background: var(--surface);
  padding: 8px 12px;
}
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.wp-header {
  background: var(--brand-dark);
  color: #fff;
  padding: 10px 16px;
}
.wp-header__row {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.wp-header a,
.wp-header button {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  padding: 8px 12px;
  min-height: 44px;
  font: inherit;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.wp-header h1 {
  font-size: 19px;
  margin: 0;
  flex: 1 1 200px;
}
.wp-header h1 small {
  display: block;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.85;
}

.wp-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px;
}
.wp-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 14px;
  flex-wrap: wrap;
}
.wp-progress p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 15px;
}
.wp-dots {
  display: flex;
  gap: 8px;
}
.wp-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.wp-dot.is-current {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint);
}
.wp-dot.is-solved {
  background: var(--ok);
  border-color: var(--ok);
  color: var(--surface);
}
.wp-dots-sep { width: 2px; align-self: stretch; margin: 0 4px; background: var(--border); }
.wp-dot.is-scenario { border-style: dashed; }
.wp-dots { flex-wrap: wrap; }
.wp-words {
  margin: 0 0 12px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
}
.wp-words > summary { min-height: 44px; display: flex; align-items: center; gap: 8px; font-weight: 800; cursor: pointer; }
.wp-words-n { font-size: 0.85rem; padding: 2px 8px; border-radius: 999px; background: var(--brand-tint); }
.wp-words dl { margin: 4px 0 6px; display: grid; gap: 4px 12px; }
.wp-words dt { font-weight: 800; margin-top: 6px; }
.wp-words dd { margin: 0; color: var(--ink-muted); }
/* phones: the title gets its own line, and the page can scroll clear of the site's floating buttons */
.wp-main { padding-bottom: 96px; }
@media (max-width: 520px) {
  .wp-header h1 { order: 3; flex-basis: 100%; }
  .wp-header #wp-lang { margin-left: auto; }
}
