/*
 * wage default stylesheet.
 *
 * Two jobs, in this order: keep the page legible for anyone sighted who is
 * watching or testing, and never interfere with the screen reader. Anything
 * visually hidden here is hidden with clipping, not `display: none` — the
 * latter removes a node from the accessibility tree, which would silence the
 * live region this whole engine talks through.
 */

:root {
  color-scheme: light dark;
  --fg: #111;
  --bg: #fff;
  --dim: #666;
  --accent: #1a56db;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #f2f2f2;
    --bg: #111;
    --dim: #999;
    --accent: #7aa2f7;
  }
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

#wage-app {
  margin: 0 auto;
  padding: 2rem 1.5rem;
  max-width: 34rem;
  outline: none;
}

#wage-title {
  font-size: 1.6rem;
  margin: 0 0 0.25rem;
  font-weight: 600;
}

#wage-menu-title {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  font-weight: 600;
  color: var(--dim);
}

#wage-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 60vh;
  overflow-y: auto;
}

/* The runtime hides the menu block when the game is not on a menu screen.
   Stated explicitly so a later `display` rule cannot quietly resurrect it. */
#wage-menu[hidden],
#wage-menu-title[hidden] {
  display: none;
}

#wage-menu li {
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  border-left: 3px solid transparent;
}

#wage-menu li.wage-selected {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-left-color: var(--accent);
  font-weight: 600;
}

#wage-menu li.wage-disabled {
  color: var(--dim);
  font-style: italic;
}

#wage-status {
  margin-top: 1.25rem;
  color: var(--dim);
  font-size: 0.9rem;
  min-height: 1.4em;
}

/* Visually hidden, fully present for assistive technology. Do not replace
   this with `display: none` or `visibility: hidden`. */
.wage-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
