/* The Paycheck 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 bar that
 * splits a year's pay into what is kept and what is taken, the four filing
 * status cards, the charge lines, the published band table and the history.
 *
 * Every card and line sits on --bm-subtle rather than --bm-white, because a
 * card the same colour as the block behind it is invisible against the one
 * thing a reader actually sees it against. That fault really shipped on two
 * pages in this family, and the chosen card is marked by a ring in the accent
 * colour instead of by a change of background for the same reason.
 */

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

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

.pc-price { border-left: 4px solid var(--bm-accent); }
.pc-headline {
  font-family: var(--bm-mono);
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.05;
}
.pc-per {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--bm-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pc-split {
  display: flex;
  margin: 1.1rem 0 0.8rem;
  border-radius: var(--bm-radius);
  overflow: hidden;
  border: 1px solid var(--bm-border);
}
.pc-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;
}
.pc-split-kept { background: #0284c7; color: #ffffff; }
.pc-split-gone { background: var(--bm-subtle); color: var(--bm-text); }
.pc-point { margin: 0.9rem 0 0; font-weight: 600; }

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

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

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

.pc-statuses { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 1.1rem; }
.pc-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;
}
.pc-status:hover { border-color: var(--bm-accent); }
.pc-status.is-on {
  border-top-color: var(--bm-accent);
  box-shadow: inset 0 0 0 2px var(--bm-accent);
}
.pc-status-net { font-family: var(--bm-mono); font-size: 1.3rem; font-weight: 700; }
.pc-status strong { font-size: 0.9rem; }
.pc-status-share { font-size: 0.78rem; color: var(--bm-light); }
.pc-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 ---- */

.pc-bands {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 0;
  font-size: 0.88rem;
}
.pc-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;
}
.pc-bands th,
.pc-bands td {
  border: 1px solid var(--bm-border);
  padding: 0.4rem 0.55rem;
  text-align: left;
}
.pc-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;
}
.pc-bands td { font-family: var(--bm-mono); }
.pc-bands td:first-child { font-family: inherit; }

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

.pc-rates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 0.9rem;
}
.pc-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;
}
.pc-rate-figure {
  font-family: var(--bm-mono);
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
}
.pc-rate h3 {
  font-family: var(--bm-mono);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0.3rem 0 0.2rem;
}
.pc-terms { margin: 0; }
.pc-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;
}
.pc-terms dd { margin: 0; font-size: 0.88rem; line-height: 1.6; color: var(--bm-muted); }

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

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

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

.pc-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;
}
.pc-notes summary { cursor: pointer; }
.pc-notes ul { margin: 0.8rem 0 0; padding-left: 1.1rem; }
.pc-notes li { margin: 0 0 0.6rem; line-height: 1.65; color: var(--bm-muted); font-size: 0.92rem; }
.pc-notes dl { margin: 0.8rem 0 0; }
.pc-notes dt { margin: 0.8rem 0 0.2rem; font-size: 0.9rem; font-weight: 600; }
.pc-notes dt:first-child { margin-top: 0; }
.pc-notes dt a { color: var(--bm-accent); }
.pc-notes dd { margin: 0; font-size: 0.86rem; line-height: 1.6; color: var(--bm-muted); }

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