/* The Wages page. Its own stylesheet rather than rules added to a shared one,
   which is the mistake that broke six pages once already. */
.wg-card {
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  padding: 1rem 1.1rem;
  margin: 0 0 1rem;
  background: var(--bm-card, transparent);
}
.wg-card h2 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.wg-dek { color: var(--bm-muted); font-size: 0.88rem; }
.wg-caveat { color: var(--bm-muted); font-size: 0.8rem; }
.wg-note-inline { display: block; color: var(--bm-muted); font-size: 0.74rem; font-weight: 400; }

/* A wide table scrolls inside its own box so the page never scrolls sideways. */
.wg-table { width: 100%; border-collapse: collapse; margin: 0.6rem 0 0.8rem; display: block; overflow-x: auto; }
.wg-table caption {
  text-align: left; font-family: var(--bm-mono); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.03em; color: var(--bm-muted);
  padding-bottom: 0.35rem;
}
.wg-table th, .wg-table td {
  text-align: left; padding: 0.32rem 0.5rem; font-size: 0.86rem;
  border-bottom: 1px solid var(--bm-border); vertical-align: top;
}
.wg-table thead th {
  font-family: var(--bm-mono); font-size: 0.74rem; text-transform: uppercase;
  letter-spacing: 0.03em; color: var(--bm-muted); white-space: nowrap;
}
.wg-table td { white-space: nowrap; }
.wg-table th[scope="row"] { font-weight: 600; white-space: normal; min-width: 14rem; }
.wg-figure { font-family: var(--bm-mono); }
/* A mark is not a number, and must not read like one. */
.wg-mark { font-family: var(--bm-mono); font-size: 0.8rem; color: var(--bm-muted); border-bottom: 1px dotted var(--bm-border); cursor: help; }
.wg-sum th[scope="row"] { min-width: 12rem; }

.wg-panel { border-color: var(--bm-accent); }
.wg-field { display: flex; flex-direction: column; gap: 0.25rem; max-width: 14rem; margin: 0.5rem 0; }
.wg-field span { font-size: 0.82rem; font-weight: 600; color: var(--bm-muted); }
/* Field and button the same height as every other on this site. */
.wg-field input {
  font-family: var(--bm-font); font-size: 0.95rem; height: 2.4rem;
  padding: 0 0.5rem; box-sizing: border-box;
  border: 1px solid var(--bm-border); border-radius: var(--bm-radius);
  background: var(--bm-white); color: var(--bm-text);
}
.wg-answer { font-size: 1rem; font-weight: 700; margin: 0.4rem 0; }
.wg-floor { border-color: var(--bm-accent); }

.wg-picker { list-style: none; margin: 0.4rem 0 0; padding: 0; }
.wg-picker li {
  border-left: 3px solid transparent; padding: 0.3rem 0 0.3rem 0.6rem;
  margin-bottom: 0.2rem;
}
.wg-picker li.is-here { border-left-color: var(--bm-accent); }
.wg-picker a { font-weight: 600; font-size: 0.9rem; }
.wg-picker-what { display: block; color: var(--bm-muted); font-size: 0.78rem; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wg-mark { color: #94a3b8; }
}
