/* techlayoffstracker.com: a public register, set like a clerk's docket.
   A navy file cover for the masthead and footer, a cool desk-grey ground,
   near-white sheets for tables and figures, slab headings, mono dates and
   figures. One accent, stamp-pad violet, kept for "the company cited AI". */
@font-face {
  font-family: "Roboto Slab";
  src: url("/fonts/roboto-slab-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Mono";
  src: url("/fonts/roboto-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #e6e9e7;
  --sheet: #f8f9f6;
  --ink: #14213a;
  --ink-2: #37445e;
  --ink-3: #535e77;
  --rule: rgba(20, 33, 58, 0.14);
  --rule-2: rgba(20, 33, 58, 0.36);
  --stamp: #63288c;
  --stamp-wash: rgba(99, 40, 140, 0.07);
  --cover-text: #eef0ec;
  --cover-2: #b9c2d3;
  --lilac: #cdb8f5;
  --slab: "Roboto Slab", Rockwell, Georgia, serif;
  --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "Roboto Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; scrollbar-color: var(--ink-3) var(--ground); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  font-variant-numeric: tabular-nums;
  caret-color: var(--stamp);
  accent-color: var(--stamp);
}
::selection { background: var(--stamp); color: #fff; }
.wrap { max-width: 1296px; margin: 0 auto; padding-inline: 16px; }
a { color: var(--ink); text-decoration-color: var(--rule-2); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color 140ms var(--ease), color 140ms var(--ease); }
a:hover { text-decoration-color: var(--stamp); color: var(--stamp); }
:focus-visible { outline: 2px solid var(--stamp); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--sheet); padding: 8px 12px; }
.skip:focus { left: 8px; top: 8px; z-index: 5; }
small { font-size: 13px; color: var(--ink-3); }
time, .tag, .fig, td.num { font-family: var(--mono); font-size: 0.84em; }
strong { font-weight: 600; }

/* Masthead: the file cover, then the clerk's line */
.mast { background: var(--ink); color: var(--cover-text); }
.mast-in { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 32px; padding-top: 14px; padding-bottom: 8px; }
.brand { margin: 0; display: flex; align-items: baseline; gap: 12px; }
.name { font: 600 22px/1.2 var(--slab); color: var(--cover-text); text-decoration: none; }
.name:hover { color: #fff; }
.by { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--cover-2); }
.by .ulsa-mark { color: var(--cover-text); }
.mast nav { display: flex; flex-wrap: wrap; gap: 0 20px; width: 100%; }
.mast nav a { padding: 10px 0 8px; color: var(--cover-2); text-decoration: none; font-size: 15px; border-bottom: 3px solid transparent; }
.mast nav a:hover { color: #fff; }
.mast nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--lilac); }
.mast :focus-visible, .foot :focus-visible { outline-color: var(--lilac); }
.status { background: var(--ground); color: var(--ink-2); border-bottom: 3px double var(--rule-2); }
.status p { margin-top: 0; margin-bottom: 0; padding-top: 7px; padding-bottom: 7px; font: 400 12.5px/1.5 var(--mono); }
.status time, .byline time, .log time { font-size: inherit; }

/* Page head */
.top { padding: 40px 0 8px; }
h1 { font: 600 30px/1.14 var(--slab); margin: 0 0 20px; max-width: 24em; text-wrap: balance; }
.lede { font-size: 18px; line-height: 1.5; margin: 0 0 12px; max-width: 40em; }
.byline { font-size: 13px; color: var(--ink-3); margin: 0; }
h2 { font: 600 23px/1.22 var(--slab); margin: 0 0 12px; text-wrap: balance; }
h3 { font: 600 18px/1.3 var(--slab); margin: 28px 0 8px; }
section { margin: 64px 0 0; }
main section > h2 { border-top: 2px solid var(--ink); padding-top: 12px; }
main > section > p, main > p, .doc > section > p, .doc > p, .qa p, .plain, .findings { max-width: 44em; }
p { margin: 0 0 12px; }
.note { color: var(--ink-2); max-width: 44em; }
main > .note, .doc > .note, .hero-l > .note { margin-top: 16px; }

/* Home opening: the answer on the left, the figure on the right */
.hero { display: grid; gap: 32px; }
.hero-l { min-width: 0; }

/* Inner pages: a contents rail in the margin */
.rail { display: none; }

/* Sheets: tables lie on the desk as near-white paper */
.sheet { background: var(--sheet); border: 1px solid var(--rule-2); border-top: 3px solid var(--ink); }
table { width: 100%; border-collapse: collapse; margin: 0; font-size: 15px; }
caption { text-align: left; caption-side: top; font-size: 13.5px; color: var(--ink-2); padding: 12px 14px 10px; max-width: 64em; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--rule); font-weight: 400; overflow-wrap: break-word; }
tbody tr:last-child > * { border-bottom: 0; }
thead th { font-weight: 600; font-size: 13px; line-height: 1.3; color: var(--ink-2); vertical-align: bottom; border-top: 1px solid var(--rule); border-bottom: 2px solid var(--ink); background: var(--sheet); }
tbody th { font-weight: 600; }
tfoot th, tfoot td { font-weight: 600; border-top: 2px solid var(--ink); border-bottom: 0; }
td.num, th.num { text-align: right; }
td.num, .t:not(.t-notes) td:last-child { white-space: nowrap; }
.t thead th { overflow-wrap: normal; }
.t-notes td:nth-last-child(2) { white-space: nowrap; }
.t-notes td:last-child { width: 32%; font-size: 14px; color: var(--ink-2); }
.sheet + p { margin-top: 12px; }
.tfoot { font-size: 13.5px; color: var(--ink-2); margin: 10px 0 0; max-width: 64em; }
.t a, .reg a { text-decoration-color: var(--ink-3); }

/* The register */
.reg { table-layout: fixed; }
.reg tr { scroll-margin-top: 56px; }
.reg thead th { position: sticky; top: 0; z-index: 2; }
.reg .c-date { width: 124px; border-right: 1px solid var(--rule); }
.reg thead th { overflow-wrap: normal; }
.reg .c-company { width: 13%; }
.reg .c-jobs { width: 19%; }
.reg .c-ai { width: 12%; }
.reg .c-source { width: 12%; }
.reg .c-tag { width: 9%; }
.reg-how .c-ai { width: 16%; }
.reg-how .c-jobs { width: 17%; }
.reg small { display: block; margin-top: 3px; line-height: 1.4; }
.reg tbody th { font-size: 16px; }
.reg td.c-jobs .fig { display: block; font-size: 14px; font-weight: 500; color: var(--ink); }
.reg:not(.reg-how) tr.is-cited > * { background: var(--stamp-wash); }
.reg tr:target > *, .reg tr:has(:target) > * { background: #dfe5f1; }
.reg [id] { scroll-margin-top: 56px; }
.c-date time { white-space: nowrap; color: var(--ink); }
.tag { display: inline-block; font-size: 12px; line-height: 1.5; color: var(--ink-2); white-space: nowrap; border: 1px solid var(--rule-2); border-radius: 3px; padding: 0 5px; }

/* Sort buttons added by app.js */
.sort { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; white-space: nowrap; }
.sort::after { content: ""; display: inline-block; margin-left: 5px; border: 4px solid transparent; vertical-align: middle; }
th[aria-sort="ascending"] .sort::after { border-bottom-color: var(--stamp); transform: translateY(-2px); }
th[aria-sort="descending"] .sort::after { border-top-color: var(--stamp); transform: translateY(2px); }
.sort:hover { color: var(--stamp); }
th[aria-sort] .sort { color: var(--ink); }

/* The flag: solid, outlined, dotted. Solid is the stamp. */
.flag { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.flag i, .key i { width: 12px; height: 12px; flex: none; border: 2px solid var(--ink); }
.flag-cited { color: var(--stamp); font-weight: 600; }
.flag-cited i, .key-ai i { background: var(--stamp); border-color: var(--stamp); }
.flag-not-stated i { border-style: dotted; }

/* Controls */
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 0 0 16px; }
.controls[hidden], .none[hidden] { display: none; }
.ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.ctl-name { margin-right: 4px; }
.controls input, .controls select, .controls button {
  font: 400 16px/1 var(--sans); color: var(--ink); background: var(--sheet);
  border: 1px solid var(--rule-2); border-radius: 6px; height: 44px; padding: 0 12px;
}
.controls input { width: 240px; max-width: 100%; }
.controls button { cursor: pointer; font-size: 14px; transition: border-color 140ms var(--ease), background-color 140ms var(--ease); }
.controls button:hover, .controls input:hover, .controls select:hover { border-color: var(--ink); }
.controls button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fff; font-weight: 600; }
.count { margin: 0 0 0 auto; font: 400 12.5px/1.5 var(--mono); color: var(--ink-2); }
.none { padding: 16px 0; color: var(--ink-2); }

/* Legend and definition lists */
.legend { display: grid; gap: 8px 48px; margin-top: 24px; }
.legend h2 { font-size: 17px; margin: 0; border: 0; padding: 0; }
dl { margin: 0; }
.legend dl > div, .keyed > div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 6px 0; }
.legend dd, .keyed dd { margin: 0; font-size: 14px; color: var(--ink-2); }
.keyed dd { font-size: 16px; }
.defs { max-width: 58em; }
.defs > div { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.defs > div:first-child { border-top: 1px solid var(--rule); }
.defs dt { font-weight: 600; }
.defs dd { margin: 4px 0 0; }
.defs + p, .defs + h3 { margin-top: 16px; }

/* The figure: one row per month, like lines of a docket */
.chart { margin: 0; padding: 18px 16px 16px; background: var(--sheet); border: 1px solid var(--rule-2); border-top: 3px solid var(--ink); min-width: 0; }
section .chart { margin: 16px 0 24px; max-width: 46em; }
.chart-title { font: 600 17px/1.3 var(--slab); margin: 0 0 6px; text-wrap: balance; }
.chart-key { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 13.5px; color: var(--ink-2); margin: 0 0 14px; }
.key { display: inline-flex; align-items: center; gap: 8px; }
.key-all i { background: var(--sheet); border-width: 1px; }
.mr-head, .mrows li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) 4.25rem 2.75rem; column-gap: 10px; align-items: center; }
.mr-head { margin: 0; padding: 0 6px 6px; font-size: 12px; line-height: 1.3; color: var(--ink-3); border-bottom: 2px solid var(--ink); align-items: end; }
.mr-head > span:nth-child(n+3) { text-align: right; }
.mr-head > .mr-a { font-family: var(--sans); font-size: inherit; }
.mr-axis { position: relative; display: block; height: 1.3em; font-family: var(--mono); font-size: 11px; }
.mr-axis i { position: absolute; bottom: 0; font-style: normal; transform: translateX(-50%); }
.mr-axis i:nth-child(1) { left: 0; transform: none; }
.mr-axis i:nth-child(2), .mr-axis i:nth-child(3) { display: none; }
.mr-axis i:nth-child(4) { left: auto; right: 0; transform: none; }
.mrows, .rrows { list-style: none; margin: 0; padding: 0; }
.mrows li { padding: 0 6px; min-height: 32px; border-bottom: 1px solid var(--rule); transition: background-color 140ms var(--ease); }
.mr-m { font-weight: 600; font-size: 14px; }
.mr-t, .mr-a, .mr-s { font-family: var(--mono); font-size: 13px; text-align: right; white-space: nowrap; }
.mr-a, .mr-s { color: var(--stamp); }
.mr-s { font-weight: 500; }
.mr-a { display: none; }
.mr-bar { position: relative; display: block; height: 14px; }
.mr-bar::before, .mr-bar::after { content: ""; position: absolute; top: -9px; bottom: -9px; width: 1px; background: var(--rule); }
.mr-bar::before { left: 33.333%; }
.mr-bar::after { left: 66.667%; }
.mr-bar i { position: absolute; left: 0; top: 0; bottom: 0; transform-origin: 0 50%; }
.mr-bar .all { border: 1px solid var(--ink); background: var(--sheet); z-index: 1; }
.mr-bar .ai { background: var(--stamp); z-index: 2; }
.chart[data-on] .mrows li { cursor: default; }
.chart[data-on] .mrows li.on { background: rgba(20, 33, 58, 0.07); }
.readout { margin: 0; padding: 10px 6px 0; min-height: 9.2em; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.readout b { font: 600 14px/1.5 var(--slab); color: var(--ink); margin-right: 4px; }
.readout a { white-space: nowrap; font-family: var(--mono); font-size: 12.5px; }
.chart figcaption { font-size: 13px; line-height: 1.5; color: var(--ink-3); margin-top: 8px; padding: 10px 6px 0; border-top: 1px solid var(--rule); }
.rrows li { display: grid; grid-template-columns: minmax(0, 1fr) 4.25rem 4.5rem; column-gap: 10px; align-items: center; padding: 7px 6px; border-bottom: 1px solid var(--rule); }
.rrows li:first-child { border-top: 2px solid var(--ink); }
.rrows li:last-child { border-bottom: 0; }
.rr-n { grid-column: 1 / -1; font-size: 14px; }
.rrows .mr-bar::before, .rrows .mr-bar::after { content: none; }
.rrows .mr-s { color: var(--ink-2); font-weight: 400; }
.rrows .is-ai .rr-n { color: var(--stamp); font-weight: 600; }
.rrows .is-ai .all { background: var(--stamp); border-color: var(--stamp); }
.pair { display: grid; gap: 0; }
.pair .chart { margin-bottom: 24px; }

/* Findings and lists */
.findings, .plain { list-style: none; margin: 0; padding: 0; }
.findings li, .plain li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.findings li:first-child, .plain li:first-child { border-top: 1px solid var(--rule); }
.findings p { margin: 0 0 4px; }
.f-head { font-weight: 600; }
.f-head .tag { font-weight: 400; margin-left: 8px; }
.f-limit { font-size: 14px; color: var(--ink-2); }
.f-read { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.log time { margin-right: 8px; }
.qa-2 { display: grid; gap: 0 56px; }
.qa-2 h3 { margin-top: 12px; }

/* Publisher note */
.pub { margin: 72px 0 0; padding: 20px 20px 12px; background: var(--sheet); border: 1px solid var(--rule-2); border-top: 3px solid var(--ink); }
.pub h2 { font-size: 18px; }
.pub p { color: var(--ink-2); max-width: 44em; }
.go { display: inline-block; font-weight: 600; color: var(--cover-text); background: var(--ink); text-decoration: none; padding: 11px 18px; border-radius: 6px; transition: background-color 140ms var(--ease); }
.go:hover { background: var(--stamp); color: #fff; }

/* Footer: the back of the file cover */
.foot { margin-top: 72px; background: var(--ink); color: var(--cover-2); }
.foot-in { display: grid; gap: 24px; padding-top: 36px; padding-bottom: 44px; }
.foot h2 { font-size: 17px; margin: 0 0 8px; color: var(--cover-text); }
.foot p { font-size: 14px; max-width: 46em; }
.foot a { color: var(--cover-text); text-decoration-color: var(--cover-2); display: inline-block; padding: 6px 0; }
.foot a:hover { color: #fff; text-decoration-color: var(--lilac); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.foot section { margin: 0; }

/* Phones and narrow screens: each row becomes a record */
@media (max-width: 899px) {
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .reg thead th { position: static; }
  table, tbody, tfoot, tr, th, td { display: block; }
  caption { display: block; padding: 12px 12px 10px; border-bottom: 2px solid var(--ink); }
  tr { padding: 12px; border-bottom: 1px solid var(--rule); }
  tbody tr:last-child { border-bottom: 0; }
  th, td { padding: 2px 0; border: 0; width: auto !important; }
  tbody th { font-size: 16px; }
  tfoot th, tfoot td { border: 0; }
  tfoot tr { border-top: 2px solid var(--ink); border-bottom: 0; }
  td.num, th.num { text-align: left; white-space: normal; }
  td[data-label]::before { content: attr(data-label) ": "; font: 400 13px/1.5 var(--sans); color: var(--ink-3); }
  td:empty { display: none; }
  .reg tr { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 4px; }
  .reg tr[hidden] { display: none; }
  .reg tr > * { grid-column: 1 / -1; background: none !important; }
  .reg tr > .c-company { grid-column: 1; grid-row: 1; font: 600 18px/1.3 var(--slab); }
  .reg tr > .c-date { grid-column: 2; grid-row: 1; text-align: right; border: 0; padding-top: 4px; }
  .reg td.c-date::before { content: none; }
  .reg td.c-jobs::before, .reg td.c-reason::before { display: block; }
  .reg td.c-jobs .fig { display: inline; font-size: 15px; }
  .reg:not(.reg-how) tr.is-cited { background: var(--stamp-wash); }
  .reg .c-company small { font: 400 13px/1.4 var(--sans); }
  .mast nav a { padding: 12px 0 10px; }
  .reg td.c-ai .flag { vertical-align: middle; }
  .reg td.c-ai small { display: inline; margin-left: 8px; }
  .reg tr:target, .reg tr:has(:target) { background: #dfe5f1; }
  .controls .ctl:first-child, .controls input { width: 100%; }
  .count { margin-left: 0; }
}

@media (min-width: 560px) {
  .chart { padding: 20px 22px 18px; }
  .mr-head, .mrows li { grid-template-columns: 2.5rem minmax(0, 1fr) 4.5rem 4.25rem 3.75rem; column-gap: 14px; }
  .mr-a { display: block; }
  .mr-axis i:nth-child(2) { display: block; left: 33.333%; }
  .mr-axis i:nth-child(3) { display: block; left: 66.667%; }
  .readout { min-height: 6.6em; }
}

@media (min-width: 700px) {
  .wrap { padding-inline: 24px; }
  h1 { font-size: 38px; }
  .mast nav { width: auto; margin-left: auto; }
  .mast-in { padding-bottom: 0; }
  .brand { padding-bottom: 6px; }
  .legend { grid-template-columns: 1fr 1fr; }
  .legend h2 { grid-column: 1 / -1; }
  .foot-in { grid-template-columns: 3fr 2fr; gap: 56px; }
  .defs:not(.keyed) > div { display: grid; grid-template-columns: 13em 1fr; gap: 24px; }
  .defs:not(.keyed) dd { margin: 0; }
  .qa-2 { grid-template-columns: 1fr 1fr; }
  .pub { display: grid; grid-template-columns: 1fr auto; gap: 0 48px; align-items: end; padding: 24px 28px 16px; }
  .pub > :not(:last-child) { grid-column: 1; }
  .pub > :last-child { grid-column: 2; grid-row: 1 / span 3; }
}

@media (min-width: 1040px) {
  .hero { grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: 56px; align-items: start; }
  .hero .chart { margin-top: 44px; }
  .hero h1 { font-size: 40px; }
}

@media (min-width: 1280px) {
  .has-rail { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 0 64px; align-items: start; }
  .rail { display: block; position: sticky; top: 24px; margin-top: 52px; border-top: 2px solid var(--ink); padding-top: 12px; }
  .rail p { font: 600 14px/1.3 var(--slab); margin: 0 0 8px; }
  .rail ol { list-style: none; margin: 0; padding: 0; }
  .rail li { border-bottom: 1px solid var(--rule); }
  .rail a { display: block; padding: 8px 0; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); text-decoration: none; }
  .rail a:hover { color: var(--stamp); }
  .pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 32px; align-items: start; }
  .pair .chart { margin: 0; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
