/* The Government-Set Wages page.
 *
 * The shell, the title section, the folded how-to, the side menu grid, the
 * fact bar and the floating panel all come from the shared stylesheets this
 * page links. Only the shapes this page adds are written here: the five cards
 * for the five wages, the two published tables, and the dated history.
 *
 * A card for a wage with no national figure is marked differently rather than
 * left looking like a card whose figure failed to load, because those are two
 * completely different things to a reader.
 */

.gw-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;
}
.gw-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);
}
.gw-block p { line-height: 1.65; }
.gw-block-lede { margin: 0 0 1.1rem; color: var(--bm-muted); font-size: 0.95rem; }
.gw-note { margin: 1rem 0 0; color: var(--bm-light); font-size: 0.85rem; line-height: 1.6; }
.gw-note a { color: var(--bm-accent); }
.gw-source { margin: 0.9rem 0 0; color: var(--bm-light); font-size: 0.8rem; line-height: 1.6; }
.gw-source a { color: var(--bm-accent); }

/* ---- what is left of a year of the middle wage ---- */

.gw-price { border-left: 4px solid var(--bm-accent); }
.gw-headline {
  font-family: var(--bm-mono);
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.05;
}
.gw-per {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--bm-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.gw-split {
  display: flex;
  margin: 1.1rem 0 0.8rem;
  border-radius: var(--bm-radius);
  overflow: hidden;
  border: 1px solid var(--bm-border);
}
.gw-split div {
  padding: 0.55rem 0.7rem;
  font-family: var(--bm-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
}
.gw-split-kept { background: #0284c7; color: #ffffff; }
.gw-split-gone { background: var(--bm-subtle); color: var(--bm-text); }
.gw-point { margin: 0.9rem 0 0; font-weight: 600; }

/* ---- what comes out of it ---- */

.gw-lines { display: grid; gap: 0.8rem; }
.gw-line {
  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.9rem 1rem;
}
.gw-line-income_tax { border-left-color: #d97706; }
.gw-line-social_security { border-left-color: #0284c7; }
.gw-line-medicare { border-left-color: #16a34a; }
.gw-line-state { border-left-color: var(--bm-border-dark); }
.gw-line-cost {
  font-family: var(--bm-mono);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}
.gw-line-none { font-size: 1.05rem; color: var(--bm-muted); }
.gw-line-share {
  font-family: var(--bm-font);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--bm-light);
}
.gw-line h3 {
  font-family: var(--bm-mono);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0.25rem 0 0.45rem;
}
.gw-line p { margin: 0; font-size: 0.92rem; }
.gw-line-cycle { margin: 0.7rem 0 0; padding: 0; list-style: none; }
.gw-line-cycle li {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.3rem 0;
  border-top: 1px solid var(--bm-border);
  font-size: 0.86rem;
}
.gw-line-cycle li span:last-child { font-family: var(--bm-mono); white-space: nowrap; }

/* ---- the same wage, four filing statuses ---- */

.gw-statuses { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 1.1rem; }
.gw-status {
  flex: 1 1 12rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: flex-start;
  text-align: left;
  background: var(--bm-subtle);
  border: 1px solid var(--bm-border);
  border-top: 3px solid var(--bm-border-dark);
  border-radius: var(--bm-radius);
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  color: var(--bm-text);
  font-family: inherit;
}
.gw-status:hover { border-color: var(--bm-accent); }
.gw-status.is-on {
  border-top-color: var(--bm-accent);
  box-shadow: inset 0 0 0 2px var(--bm-accent);
}
.gw-status-net { font-family: var(--bm-mono); font-size: 1.3rem; font-weight: 700; }
.gw-status strong { font-size: 0.9rem; }
.gw-status-share { font-size: 0.78rem; color: var(--bm-light); }
.gw-status-name {
  font-family: var(--bm-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bm-light);
  margin: 0 0 0.3rem;
}

/* ---- the published band table ---- */

.gw-bands {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 0;
  font-size: 0.88rem;
}
.gw-bands caption {
  font-family: var(--bm-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bm-light);
  text-align: left;
  padding: 0 0 0.4rem;
}
.gw-bands th,
.gw-bands td {
  border: 1px solid var(--bm-border);
  padding: 0.4rem 0.55rem;
  text-align: left;
}
.gw-bands th {
  background: var(--bm-subtle);
  font-family: var(--bm-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bm-light);
  font-weight: 600;
}
.gw-bands td { font-family: var(--bm-mono); }
.gw-bands td:first-child { font-family: inherit; }

/* ---- the figures policy actually sets ---- */

.gw-rates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 0.9rem;
}
.gw-rate {
  background: var(--bm-subtle);
  border: 1px solid var(--bm-border);
  border-top: 3px solid #d97706;
  border-radius: var(--bm-radius);
  padding: 0.9rem 1rem;
}
.gw-rate-figure {
  font-family: var(--bm-mono);
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
}
.gw-rate h3 {
  font-family: var(--bm-mono);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0.3rem 0 0.2rem;
}
.gw-terms { margin: 0; }
.gw-terms dt {
  font-family: var(--bm-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bm-light);
  margin: 0.6rem 0 0.15rem;
}
.gw-terms dd { margin: 0; font-size: 0.88rem; line-height: 1.6; color: var(--bm-muted); }

/* ---- the dated history ---- */

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

/* ---- the folded notes the family's pages end with ---- */

.gw-notes {
  background: var(--bm-white);
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  padding: 0.9rem 1.2rem;
  margin: 0 0 1rem;
}
.gw-notes summary { cursor: pointer; }
.gw-notes ul { margin: 0.8rem 0 0; padding-left: 1.1rem; }
.gw-notes li { margin: 0 0 0.6rem; line-height: 1.65; color: var(--bm-muted); font-size: 0.92rem; }
.gw-notes dl { margin: 0.8rem 0 0; }
.gw-notes dt { margin: 0.8rem 0 0.2rem; font-size: 0.9rem; font-weight: 600; }
.gw-notes dt:first-child { margin-top: 0; }
.gw-notes dt a { color: var(--bm-accent); }
.gw-notes dd { margin: 0; font-size: 0.86rem; line-height: 1.6; color: var(--bm-muted); }

@media (max-width: 640px) {
  .gw-headline { font-size: 2rem; }
  .gw-split { flex-direction: column; }
  .gw-bands { font-size: 0.8rem; }
}


/* ---- the five wages it sets ---- */

.gw-kinds { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 1.1rem; }
.gw-kind {
  flex: 1 1 11rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: flex-start;
  text-align: left;
  background: var(--bm-subtle);
  border: 1px solid var(--bm-border);
  border-top: 3px solid var(--bm-border-dark);
  border-radius: var(--bm-radius);
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  color: var(--bm-text);
  font-family: inherit;
}
.gw-kind:hover { border-color: var(--bm-accent); }
.gw-kind.is-on {
  border-top-color: var(--bm-accent);
  box-shadow: inset 0 0 0 2px var(--bm-accent);
}
/* A wage with no published national figure. Marked by a dashed top edge, so a
 * reader can tell it apart from a card whose number simply failed to arrive. */
.gw-kind.is-nofigure { border-top-style: dashed; }
.gw-kind-figure {
  font-family: var(--bm-mono);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}
.gw-kind.is-nofigure .gw-kind-figure { color: var(--bm-light); font-weight: 600; }
.gw-kind strong { font-size: 0.88rem; }
.gw-kind-who { font-size: 0.76rem; color: var(--bm-light); }
.gw-kind-name {
  font-family: var(--bm-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bm-light);
  margin: 0 0 0.3rem;
}
.gw-terms { margin: 0; }
.gw-terms dt {
  font-family: var(--bm-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bm-light);
  margin: 0.7rem 0 0.15rem;
}
.gw-terms dd { margin: 0; font-size: 0.9rem; line-height: 1.65; color: var(--bm-muted); }

/* ---- the two published tables ----
 *
 * Both are wider than a phone, so each scrolls inside its own box rather than
 * making the whole page scroll sideways.
 */

.gw-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 0;
  font-size: 0.86rem;
  display: block;
  overflow-x: auto;
}
.gw-table caption {
  font-family: var(--bm-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bm-light);
  text-align: left;
  padding: 0 0 0.4rem;
}
.gw-table th,
.gw-table td {
  border: 1px solid var(--bm-border);
  padding: 0.4rem 0.55rem;
  text-align: left;
  white-space: nowrap;
}
.gw-table thead th,
.gw-table tbody th {
  background: var(--bm-subtle);
  font-family: var(--bm-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bm-light);
  font-weight: 600;
}
.gw-table td { font-family: var(--bm-mono); }
.gw-more {
  background: var(--bm-subtle);
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  color: var(--bm-text);
  font-family: inherit;
  font-size: 0.86rem;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}
.gw-more:hover { border-color: var(--bm-accent); }

/* ---- the caveat that goes with the comparison ---- */

.gw-caveat {
  background: var(--bm-subtle);
  border-left: 3px solid #d97706;
  border-radius: var(--bm-radius);
  padding: 0.8rem 1rem;
  margin: 0.9rem 0 0;
  font-size: 0.92rem;
}
