@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 {
  color-scheme: light;
  --paper: #f6f5ee;
  --ink: #182d27;
  --green: #115c43;
  --muted: #4d5c52;
  --line: #b8bdb0;
  --wash: #e5eadd;
  font: 100%/1.5 "IBM Plex Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
a { color: var(--green); text-underline-offset: .19em; }
button, select, input { font: inherit; }
button, select, summary { cursor: pointer; }
button { color: var(--ink); }
button:disabled { cursor: default; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, .table-wrap:focus-visible { outline: 3px solid #ad681f; outline-offset: 3px; }
:target, #record-title, #release-phase { scroll-margin-block: 18px; }
.skip-link { position: absolute; inset: .4rem auto auto .8rem; padding: .5rem 1rem; background: white; z-index: 2; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
main, .masthead { max-width: 1232px; margin-inline: auto; padding-inline: clamp(1.05rem, 5vw, 4.2rem); }
.masthead { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .58rem; font: 720 1.26rem/1 Archivo, sans-serif; letter-spacing: -.05em; }
.brand img { display: block; }
.masthead a { color: var(--ink); text-decoration: none; }
.masthead nav { font-size: .9rem; }
.masthead nav a:hover, footer a:hover { text-decoration: underline; }
.intro { border-top: 1px solid var(--ink); padding-block: clamp(1.45rem, 3.2vw, 2.8rem) 1.45rem; }
.eyebrow, .figure-label, .ledger-key { font-size: .72rem; font-weight: 650; line-height: 1.4; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow { color: var(--green); }
.intro .eyebrow span { margin-inline: .38rem; }
h1, h2, h3, .figure strong, .record-figures dd { font-family: Archivo, system-ui, sans-serif; }
h1 { margin-block: .35rem .55rem; font-size: clamp(2.55rem, 5.5vw, 4.85rem); font-weight: 620; letter-spacing: -.068em; line-height: 1; }
.intro > p:last-child { max-width: 46rem; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.12rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.08; font-weight: 620; letter-spacing: -.052em; }
h3 { font-weight: 630; font-size: 1.3rem; line-height: 1.18; letter-spacing: -.04em; }
#workspace:focus, [tabindex="-1"]:focus { outline: none; }
.release-strip { display: grid; grid-template-columns: 1.28fr 1fr .87fr; color: #f7f8ef; background: #203e35; padding-block: 1.15rem; }
.figure { padding-inline: clamp(.85rem, 2.6vw, 2.3rem); min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.figure + .figure { border-left: 1px solid #597065; }
.figure-label { color: #d0dfd1; }
.figure strong { font-size: clamp(1.3rem, 2.65vw, 2.5rem); line-height: 1.25; font-weight: 590; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.main-figure strong { font-size: clamp(1.8rem, 3.2vw, 3.1rem); }
.figure > span:last-child { font-size: .83rem; color: #d9e4db; }
.stage-head { display: flex; align-items: end; justify-content: space-between; gap: max(1rem, 5%); margin-block: 1.75rem 1.05rem; }
.stage-head h2 { margin-top: .24rem; }
.stage-head > p { max-width: 36rem; flex: 0 1 53%; }
.caption, .stage-head > p { color: var(--muted); font-size: .91rem; }
.desk { display: grid; grid-template-columns: 1fr 1.03fr; border-block: 1px solid var(--ink); }
.ledger { min-width: 0; padding: 1.25rem clamp(1rem, 3vw, 2.5rem) 1.7rem 0; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ledger-key { display: flex; justify-content: space-between; color: var(--muted); padding: 0 .85rem .45rem; font-size: .64rem; }
#employer-list { padding: 0; list-style: none; border-top: 1px solid var(--line); }
#employer-list li { border-bottom: 1px solid var(--line); }
.employer { display: grid; width: 100%; min-height: 63px; grid-template-columns: minmax(0, 1fr) auto; gap: 0 .75rem; align-items: center; text-align: left; background: transparent; border: 0; border-left: 3px solid transparent; padding: .6rem .7rem; transition: background-color 120ms ease; }
.employer:hover { background: #edf0e6; }
.employer[aria-current="true"] { background: var(--wash); border-left-color: var(--green); }
.employer span { display: block; }
.employer .employer-name { font-weight: 650; line-height: 1.23; }
.employer .employer-status { font-size: .8rem; line-height: 1.35; color: var(--muted); margin-top: .16rem; }
.employer .employer-pay { font-variant-numeric: tabular-nums; font-weight: 600; }
.record { min-width: 0; padding: 1.25rem 0 1.7rem clamp(1rem, 3vw, 2.5rem); border-left: 1px solid var(--line); }
#record-title { font-size: clamp(1.55rem, 2.6vw, 2.32rem); margin-block: .22rem .35rem; }
#record-note { font-size: .95rem; color: var(--muted); }
.record-figures { display: grid; grid-template-columns: repeat(3, 1fr); margin-block: 1rem .7rem; border-block: 1px solid var(--line); padding-block: .7rem; gap: .7rem; }
.record-figures dt { font-size: .78rem; color: var(--muted); }
.record-figures dd { font-size: clamp(.98rem, 1.6vw, 1.3rem); margin-top: .12rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.record-evidence, .contact-note, #locked-treatment, #audit-record-note { font-size: .95rem; }
.contact-note { background: var(--wash); padding: .65rem .8rem; margin-block: .65rem; }
#contact-area { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .7rem; margin-block: .85rem 0; }
.outline, .primary { padding: .55rem .95rem; min-height: 43px; border: 1px solid var(--green); border-radius: 3px; font-weight: 600; line-height: 1.25; }
.outline { background: transparent; color: var(--green); }
.outline:hover { background: var(--wash); }
.primary { background: var(--green); color: white; }
.primary:hover { background: #0c4d37; }
.primary:disabled, .outline:disabled { color: #526158; border-color: #b8c3b7; background: #e4e8df; }
form, #locked-treatment, #audited-record { border-top: 1px solid var(--line); padding-top: .9rem; margin-top: .9rem; }
label { display: block; font-size: .91rem; font-weight: 650; margin-bottom: .3rem; }
select, input { background: #fffef8; border: 1px solid #778477; border-radius: 3px; padding: .52rem .62rem; color: var(--ink); width: 100%; min-height: 43px; }
#edit-fields label { margin-top: .6rem; }
#treatment-note { margin-block: .4rem .65rem; }
#results, #reconciliation { padding-block: 1.25rem; }
#results { border-top: 1px solid var(--ink); }
#results .section-heading { align-items: center; }
#reconciliation .section-heading { margin-bottom: .3rem; }
#reconciliation-note { margin-bottom: .8rem; }
.table-wrap { max-width: 100%; overflow-x: auto; }
.result-table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.result-table th, .result-table td { text-align: right; white-space: nowrap; padding: .55rem .5rem; border-bottom: 1px solid var(--line); }
.result-table :is(td, th):first-child { text-align: left; padding-left: 0; }
.result-table thead { font-size: .8rem; color: var(--muted); }
.result-table tbody th { font-weight: 500; }
.result-table tfoot { background: var(--wash); font-weight: 650; }
.result-table tfoot th:first-child { padding-left: .5rem; }
#audit-note { margin-top: .65rem; }
.commit-row { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; padding-block: 1.15rem; }
#lock-note { margin-top: .24rem; }
.commit-row button { flex: none; }
.status, .notice { border-left: 3px solid var(--green); padding: .55rem .8rem; margin-block: .4rem 1rem; background: var(--wash); }
.status:empty { display: block; border: 0; margin: 0; padding: 0; }
#method { padding-block: .85rem; border-block: 1px solid var(--line); }
#method summary { font-weight: 650; }
#method p { max-width: 60rem; margin: .65rem 0; font-size: .91rem; color: var(--muted); }
footer { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; padding-block: 1.1rem 2rem; font-size: .9rem; }
footer a { color: var(--ink); }
.text-button { border: 0; background: transparent; padding: .52rem .2rem; text-decoration: underline; text-underline-offset: .19em; }
dialog { background: var(--paper); color: var(--ink); border: 1px solid var(--ink); padding: 1.5rem; width: min(27rem, calc(100% - 2rem)); }
dialog::backdrop { background: #172c23a3; }
dialog p { margin-block: .65rem 1rem; }
.dialog-actions { display: flex; gap: .6rem; justify-content: flex-end; }
@media (max-width: 740px) {
  .desk { grid-template-columns: 1fr; }
  .ledger { padding: 1rem 0; }
  .record { padding: 1.15rem 0 1.3rem; border-left: 0; border-top: 1px solid var(--line); }
  .stage-head { display: block; }
  .stage-head > p { margin-top: .4rem; }
  .employer { min-height: 55px; }
  .section-heading { margin-bottom: .75rem; }
  .release-strip { grid-template-columns: 1fr 1fr; row-gap: .7rem; padding-block: .85rem; }
  .main-figure { grid-column: span 2; border-bottom: 1px solid #597065; padding-bottom: .65rem; }
  .figure:nth-child(2) { border-left: 0; }
  .commit-row { align-items: flex-start; flex-direction: column; gap: .65rem; }
  .result-table { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
.form-actions { display: flex; align-items: center; gap: .8rem; }
.record-status:not(:empty) { color: var(--green); margin-top: .55rem; font-size: .91rem; }
.back-link { display: none; }
@media (max-width: 740px) { .back-link { display: inline-block; padding-block: .5rem; margin-top: .6rem; } }
