/* The Minimum Wage page.
 *
 * It sits in the same family as the property and construction material pages,
 * so the shell, the title block, the folded how-to, the side menu and the fact
 * bar all come from budget-machine.css and estate-policy.css. Only the three
 * shapes this page adds are written here: the floor card, the panel's row of
 * real rates to press, and the grid of states.
 */

.mw-block {
  background: var(--bm-white);
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  box-shadow: var(--bm-shadow);
  padding: 1.25rem 1.4rem;
  margin: 0 0 1.25rem;
}
.mw-block h2 {
  font-family: var(--bm-mono);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.7rem;
  color: var(--bm-accent);
}
.mw-block-lede {
  margin: 0 0 1.1rem;
  color: var(--bm-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.mw-note {
  margin: 1rem 0 0;
  color: var(--bm-light);
  font-size: 0.87rem;
  line-height: 1.6;
}
.mw-source {
  margin: 0.9rem 0 0;
  color: var(--bm-light);
  font-size: 0.82rem;
  line-height: 1.6;
}
.mw-source a { color: var(--bm-accent); }
.mw-list { margin: 0; padding-left: 1.1rem; color: var(--bm-muted); }
.mw-list li { margin: 0 0 0.6rem; line-height: 1.65; }
.mw-list li:last-child { margin-bottom: 0; }

/* ---- the four federal floors ---- */

.mw-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.1rem;
}
.mw-card {
  /* The block around it is already --bm-white, so a white card would vanish
     into it. --bm-subtle is the one token that stays a step away from the
     block's own colour in both themes. */
  background: var(--bm-subtle);
  border: 1px solid var(--bm-border);
  border-top: 3px solid var(--bm-accent);
  border-radius: var(--bm-radius);
  padding: 1.1rem 1.2rem;
}
.mw-card-rate {
  font-family: var(--bm-mono);
  font-size: 1.9rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
  color: var(--bm-text);
}
.mw-card-rate .mw-per {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--bm-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mw-card h3 {
  font-family: var(--bm-mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0.5rem 0 0.5rem;
}
.mw-card-what { margin: 0 0 0.8rem; font-size: 0.92rem; line-height: 1.65; }
.mw-terms { margin: 0; }
.mw-terms dt {
  font-family: var(--bm-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bm-light);
  margin: 0.7rem 0 0.2rem;
}
.mw-terms dd { margin: 0; font-size: 0.9rem; line-height: 1.6; color: var(--bm-muted); }

/* ---- the panel ---- */

.mw-markers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.2rem;
}
.mw-marker {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  align-items: flex-start;
  text-align: left;
  background: var(--bm-subtle);
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font-family: var(--bm-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bm-text);
}
.mw-marker:hover { border-color: var(--bm-accent); color: var(--bm-accent); }
.mw-marker-label {
  font-family: var(--bm-font);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--bm-light);
}
.mw-block .ep-picker-row { margin: 0 0 1rem; }

/* ---- every state ---- */

.mw-group { margin: 0 0 1.6rem; }
.mw-group:last-of-type { margin-bottom: 0; }
.mw-group h3 {
  font-family: var(--bm-mono);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: baseline;
}
.mw-count {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--bm-light);
  letter-spacing: 0.05em;
}
.mw-group-what {
  margin: 0 0 0.8rem;
  font-size: 0.89rem;
  color: var(--bm-muted);
  line-height: 1.6;
}
.mw-states {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.7rem;
}
.mw-state {
  background: var(--bm-subtle);
  border: 1px solid var(--bm-border);
  border-left: 3px solid var(--bm-border-dark);
  border-radius: var(--bm-radius);
  padding: 0.7rem 0.85rem;
}
.mw-state-rate {
  font-family: var(--bm-mono);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}
.mw-state h4 {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--bm-muted);
}
.mw-state-note {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--bm-light);
}
.mw-state-above { border-left-color: #16a34a; }
.mw-state-equal { border-left-color: #0284c7; }
.mw-state-below { border-left-color: #d97706; }
.mw-state-none { border-left-color: #dc2626; }
.mw-state-territory { border-left-color: var(--bm-border-dark); }

/* ---- the policy history ---- */

.mw-juncture {
  border-top: 1px solid var(--bm-border);
  padding: 1.1rem 0 0;
  margin: 1.1rem 0 0;
}
.mw-juncture:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.mw-juncture-date {
  font-family: var(--bm-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bm-light);
  margin: 0;
}
.mw-juncture h3 { margin: 0.25rem 0 0.6rem; font-size: 1.02rem; }
.mw-juncture ul { margin: 0 0 0.7rem; padding-left: 1.1rem; }
.mw-juncture li { font-size: 0.9rem; line-height: 1.6; color: var(--bm-muted); }
.mw-juncture p { margin: 0 0 0.5rem; font-size: 0.93rem; line-height: 1.65; }
.mw-juncture-end { color: var(--bm-muted); }

.mw-sources { margin: 0; }
.mw-sources dt { margin: 0.8rem 0 0.2rem; font-size: 0.92rem; font-weight: 600; }
.mw-sources dt:first-child { margin-top: 0; }
.mw-sources dt a { color: var(--bm-accent); }
.mw-sources dd { margin: 0; font-size: 0.88rem; line-height: 1.6; color: var(--bm-muted); }

/* The shared fact bar fits as many 190 pixel columns as it can, which on this
 * page's narrower column left the four floors as three and then one on its own
 * with an empty box beside it. These two bars always carry exactly four
 * figures, so they are given a smaller column and fall to four, two or one. */
#mw-root .bm-factbar {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

/* The answer to whether anybody is really paid the floor. It is marked off
 * because it rests on a different survey from everything else on the page. */
.mw-paid { border-left: 4px solid var(--bm-accent); }
.mw-paid-head {
  font-family: var(--bm-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bm-light);
  margin: 1.1rem 0 0.5rem;
}

/* The policy history's head, the same shape the food pages give one: the date,
   the floor that entry set, how far it moved from the entry before it on that
   same floor, and which of the two floors it is. */
.mw-junctures { list-style: none; margin: 0.6rem 0 0; padding: 0; counter-reset: none; }
.mw-juncture-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem;
  margin-bottom: 0.3rem;
}
.mw-date { font-family: var(--bm-mono); font-size: 0.8rem; color: var(--bm-muted); }
.mw-floor-at { font-family: var(--bm-mono); font-weight: 700; }
.mw-floor-none { font-family: var(--bm-mono); font-size: 0.8rem; color: var(--bm-muted); }
.mw-change { font-family: var(--bm-mono); font-size: 0.78rem; }
.mw-change.is-up { color: #166534; }
.mw-change.is-down { color: #991b1b; }
.mw-change.is-flat { color: var(--bm-muted); }
.mw-which {
  font-family: var(--bm-mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.03em; color: var(--bm-muted);
}
.mw-juncture-title { font-weight: 700; margin: 0 0 0.3rem; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mw-change.is-up { color: #bbf7d0; }
  :root:not([data-theme="light"]) .mw-change.is-down { color: #fecaca; }
}
