/* The Occupation 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 two small
 * tables, the two side-by-side cards about the floors and the benefit, and the
 * box for choosing another occupation.
 */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

.oc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 0;
  font-size: 0.86rem;
  display: block;
  overflow-x: auto;
}
.oc-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;
}
.oc-table th,
.oc-table td {
  border: 1px solid var(--bm-border);
  padding: 0.4rem 0.55rem;
  text-align: left;
  white-space: nowrap;
}
.oc-table thead th,
.oc-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;
}
.oc-table td { font-family: var(--bm-mono); }
.oc-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;
}
.oc-more:hover { border-color: var(--bm-accent); }

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

.oc-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;
}



/* ---- the two cards about the floors and the benefit ---- */

.oc-around {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.9rem;
}
.oc-side {
  background: var(--bm-subtle);
  border: 1px solid var(--bm-border);
  border-top: 3px solid var(--bm-accent);
  border-radius: var(--bm-radius);
  padding: 0.9rem 1rem;
}
.oc-side h3 {
  font-family: var(--bm-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
}
.oc-side p { margin: 0 0 0.6rem; font-size: 0.92rem; }

/* ---- the figure a mark stands in for ---- */

.oc-headline-mark { font-size: 1.7rem; color: var(--bm-muted); }

/* ---- the running total at the foot of a small table ---- */

.oc-total th,
.oc-total td {
  border-top: 2px solid var(--bm-accent);
  font-weight: 700;
}

/* ---- choosing another occupation ---- */

.oc-pick { margin: 0 0 1rem; }
.oc-pick label {
  display: block;
  font-family: var(--bm-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bm-light);
  margin: 0 0 0.3rem;
}
/* The field and the button are given the same height here rather than left to
 * the browser, which gives each control its own line height and leaves a row
 * that nearly lines up. */
.oc-pick-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.oc-pick-row input,
.oc-pick-row button {
  height: 2.4rem;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 0.92rem;
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  padding: 0 0.7rem;
}
.oc-pick-row input {
  flex: 1 1 16rem;
  background: var(--bm-white);
  color: var(--bm-text);
}
.oc-pick-row button {
  background: var(--bm-subtle);
  color: var(--bm-text);
  cursor: pointer;
  padding: 0 1.1rem;
}
.oc-pick-row button:hover { border-color: var(--bm-accent); }
.oc-pick-note { margin: 0.6rem 0 0; font-size: 0.86rem; color: var(--bm-light); line-height: 1.6; }
.oc-examples { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.oc-examples a {
  display: inline-block;
  background: var(--bm-subtle);
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  padding: 0.3rem 0.7rem;
  font-size: 0.84rem;
  color: var(--bm-text);
  text-decoration: none;
}
.oc-examples a:hover { border-color: var(--bm-accent); }
.oc-examples a[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--bm-accent); }

/* ---- the worked-out figure under a heading ---- */

.oc-big {
  font-family: var(--bm-mono);
  font-size: 1.9rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  line-height: 1.15;
}
