@font-face { font-family: Archivo; src: url("../assets/fonts/archivo-variable-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../assets/fonts/ibm-plex-sans-latin.woff2") format("woff2"); font-display: swap; }
:root { --ink: #182d27; --green: #115c43; --muted: #4d5c52; --line: #bdc3b7; --wash: #e4eadd; --paper: #f6f5ee; --dark: #203e35; color: var(--ink); background: var(--paper); color-scheme: light; font: 100%/1.5 "IBM Plex Sans", system-ui, sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: var(--ink); }
button, select, summary { cursor: pointer; }
a, .text-button { color: var(--green); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #ad681f; outline-offset: 3px; }
:target, [tabindex="-1"] { scroll-margin-top: 1rem; }
[tabindex="-1"]:focus { outline: none; }
.skip { position: absolute; top: .3rem; left: .5rem; transform: translateY(-180%); background: white; padding: .5rem; z-index: 2; }
.skip:focus { transform: none; }
main, .mast { max-width: 1232px; margin-inline: auto; padding-inline: clamp(1rem, 5vw, 4.2rem); }
.mast { display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 65px; }
.mast nav { display: flex; gap: clamp(.7rem, 2vw, 1.5rem); font-size: .9rem; }
.mast a { color: var(--ink); text-decoration: none; }
.mast a:hover { text-decoration: underline; }
.brand { display: inline-flex; gap: .55rem; align-items: center; font: 730 1.26rem/1 Archivo, sans-serif; letter-spacing: -.04em; }
.intro { border-top: 1px solid var(--ink); padding: clamp(1.6rem, 3vw, 2.65rem) 0 1.4rem; }
.eyebrow { font: 670 .72rem/1.3 "IBM Plex Sans", sans-serif; color: var(--green); letter-spacing: .09em; text-transform: uppercase; }
h1, h2, h3, .impact-lead strong { font-family: Archivo, sans-serif; }
h1 { font-size: clamp(2.45rem, 5.65vw, 4.75rem); line-height: .99; letter-spacing: -.068em; font-weight: 625; margin: .45rem 0 .62rem; }
.intro > p:last-child { max-width: 48rem; color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.09rem); }
h2 { font-size: clamp(1.55rem, 2.4vw, 2.18rem); font-weight: 630; letter-spacing: -.05em; line-height: 1.12; }
h3 { font-size: clamp(1.12rem, 1.9vw, 1.5rem); font-weight: 635; letter-spacing: -.04em; line-height: 1.2; }
#scenario { border-top: 1px solid var(--line); padding: 1.1rem 0 1.2rem; }
#scenario h2 { font-size: 1.25rem; }
#scenario-form { display: flex; gap: .65rem 1rem; align-items: flex-end; flex-wrap: wrap; margin: .65rem 0 .4rem; }
label { display: flex; flex-direction: column; gap: .17rem; font-weight: 600; font-size: .86rem; }
input, select { font-size: 1rem; font-weight: 500; background: #fbfaf4; border: 1px solid #848e7f; padding: .41rem .65rem; border-radius: 2px; min-height: 42px; }
#seed { width: 9rem; }
#replacement { width: 14.5rem; }
.primary, .outline { padding: .48rem .95rem; border-radius: 2px; border: 1px solid var(--green); min-height: 42px; font-weight: 630; }
.primary { color: white; background: var(--green); }
.primary:hover { background: #104833; }
.outline { background: transparent; color: var(--green); }
.outline:hover { background: var(--wash); }
button:disabled { opacity: .58; cursor: default; }
.hint, .section-head > p, #employer-workers, .method p { color: var(--muted); font-size: .91rem; }
.status:not(:empty) { color: var(--green); margin-top: .5rem; font-size: .91rem; }
#impact { display: grid; grid-template-columns: minmax(0,.72fr) minmax(0,1.28fr); background: #ecefe5; border-block: 1px solid var(--dark); }
.impact-lead, .comparison { padding: clamp(1rem, 2.25vw, 1.7rem); }
.impact-lead { background: var(--dark); color: white; display: flex; flex-direction: column; justify-content: center; }
.impact-lead .eyebrow { color: #cbdccd; }
.impact-lead strong { font-size: clamp(2.45rem, 5.2vw, 4.7rem); font-weight: 590; letter-spacing: -.06em; line-height: 1.13; overflow-wrap: anywhere; }
.impact-lead p:last-child { color: #e2ece0; max-width: 27rem; font-size: .97rem; }
.comparison h2 { font-size: clamp(1.3rem, 2vw, 1.75rem); }
.comparison .hint { margin: .2rem 0 .4rem; }
.action-link { display: inline-block; margin-top: .65rem; font-size: .89rem; font-weight: 600; }
#residents, #release { margin-top: clamp(1.7rem, 3.4vw, 2.8rem); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: .9rem; }
.section-head h2, .detail h3 { margin-top: .25rem; }
.section-head > p { max-width: 35rem; flex: 0 1 47%; }
.split { display: grid; grid-template-columns: minmax(0,1.27fr) minmax(0,.9fr); border-block: 1px solid var(--ink); }
.list-panel { padding: 1rem clamp(.8rem, 2vw, 1.5rem) 1rem 0; min-width: 0; }
.detail { padding: 1rem 0 1.25rem clamp(1rem, 2.3vw, 1.8rem); border-left: 1px solid var(--line); min-width: 0; }
.detail > p:not(.eyebrow), #shift-details, #decision-controls { margin-top: .65rem; }
.table-scroll { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: right; font-variant-numeric: tabular-nums; font-size: .91rem; }
th, td { padding: .55rem .35rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th:first-child, td:first-child { text-align: left; padding-left: .35rem; }
thead th { font-size: .76rem; line-height: 1.25; color: var(--muted); font-weight: 620; }
tbody th { font-weight: 590; }
.selected > * { background: var(--wash); }
.table-button, .text-button { background: transparent; border: 0; text-align: left; color: var(--green); font-weight: 620; text-decoration: underline; text-underline-offset: .19em; padding: .25rem 0; }
.table-button:hover, .text-button:hover { text-decoration-thickness: 2px; }
#trace-employer { margin-top: .4rem; }
#shift-details summary, .method summary { font-weight: 640; color: var(--ink); padding: .65rem 0; }
#employer-caption { margin-top: .65rem; }
#decision-controls { display: flex; flex-wrap: wrap; gap: .65rem; align-items: end; }
#decision-controls label, #decision-controls select { max-width: 100%; }
.detail-table { margin-top: .7rem; }
.detail-table td, .detail-table th, .summary-table th, .summary-table td { padding-block: .44rem; }
.publish { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding: 1rem 0 .25rem; }
.publish > div { margin-right: auto; }
.publish h3 { font-size: 1.05rem; }
.method { border-block: 1px solid var(--line); margin: 1.3rem 0; padding: .3rem 0; }
.method p { max-width: 66rem; margin-bottom: .7rem; }
footer { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0 2rem; font-size: .9rem; }
@media (max-width: 760px) {
  .split, #impact { grid-template-columns: 1fr; }
  .detail { border: 0; border-top: 1px solid var(--line); padding: 1rem 0; }
  .list-panel { padding-inline: 0; }
  .section-head { display: block; }
  .section-head > p { margin-top: .4rem; }
  .impact-lead { padding-block: 1.1rem; }
}
@media (max-width: 480px) {
  main, .mast { padding-inline: .85rem; }
  .mast { min-height: 54px; }
  #scenario-form { gap: .45rem; }
  #seed { width: 6.3rem; }
  #replacement { width: min(12rem, 48vw); }
  table { font-size: .82rem; }
  th, td { padding-inline: .18rem; }
  .summary-table th, .summary-table td { padding-inline: .15rem; }
  #residents .list-panel .table-scroll { overflow-x: visible; }
  .resident-table { table-layout: fixed; }
  .resident-table th:first-child { width: 31%; }
  .resident-table th:nth-child(2) { width: 15%; }
  #resident-rows td, #employer-rows td { word-break: normal; }
  .section-head h2 { margin-top: .2rem; }
  .publish > div { width: 100%; }
}
