/* Hallmark · pre-emit critique: P5 H5 E5 S5 R4 V5
 * macrostructure: Long Document · genre: editorial · theme: Newsprint (brick)
 * nav: N6 Newspaper masthead · footer: Ft1 Mast-headed (colophon beneath)
 * audience: analyst reading Microsoft hiring as a strategy signal
 * use: read the note top to bottom, then drill into the evidence
 * tone: technical / austere — a printed research note, not a dashboard
 *
 * Figures are hand-drawn SVG on the document measure. Every one of them
 * carries an axis, a scale and a unit, because a chart without those is
 * decoration. Colour is spent on direction and comparison only.
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: clip;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--leading-body);
  font-variant-numeric: tabular-nums lining;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-style: normal;
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-tight);
  overflow-wrap: anywhere;
  min-width: 0;
}

p {
  margin: 0;
}

ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

a {
  color: inherit;
}

table {
  font-variant-numeric: tabular-nums lining;
}

::selection {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* ============================================================ the sheet === */

.sheet {
  position: relative;
  min-height: 100vh;
}

/* The Swiss column grid is gone; a printed note has margins, not rails. */
.rails {
  display: none;
}

.shell {
  position: relative;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.page {
  margin: 0;
}

/* ================================================= N6 · masthead + folio ===
   The paper announces itself once, in full, then a thin ruled strip carries
   the section index down the page. */

.masthead {
  border-bottom: var(--rule-bold) solid var(--color-rule-strong);
  background: var(--color-paper);
}

.masthead__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: var(--space-md) var(--page-gutter) var(--space-xs);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-sm) var(--space-md);
  align-items: end;
}

.masthead__word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 4.4vw, 2.875rem);
  line-height: 0.95;
  letter-spacing: -0.028em;
  margin: 0;
}

.masthead__rule {
  grid-column: 1 / -1;
  height: 0;
  border-top: var(--rule-hair) solid var(--color-rule);
  margin-top: var(--space-2xs);
}

.masthead__meta {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
  text-align: right;
  line-height: 1.5;
  white-space: pre-line;
}

.masthead__strap {
  grid-column: 1 / -1;
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 2px var(--space-sm);
  padding-bottom: var(--space-2xs);
}

/* The running index. Sticky, one line, scrolls itself on narrow screens. */
.sectionbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--color-paper);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.sectionbar__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.sectionbar__inner::-webkit-scrollbar {
  display: none;
}

.sectionbar__link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-3xs);
  padding: 10px var(--space-sm) 9px 0;
  margin-right: var(--space-sm);
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-label);
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
  border-bottom: var(--rule-bold) solid transparent;
  transition: color var(--dur) var(--ease);
}

.sectionbar__link span:first-child {
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  color: var(--color-muted);
}

.sectionbar__link:hover,
.sectionbar__link:focus-visible {
  color: var(--color-accent);
}

.sectionbar__link[aria-current='true'] {
  color: var(--color-ink);
  font-weight: 600;
  border-bottom-color: var(--color-accent);
}

.sectionbar__link[aria-current='true'] span:first-child {
  color: var(--color-accent);
}

/* ======================================================== bands + heads ===
   A band is a chapter of the note, opened by a double rule. */

.band {
  position: relative;
  padding-block: var(--space-xl);
  border-top: var(--rule-hair) solid var(--color-rule);
}

.band + .band {
  border-top: 0;
}

.band--open {
  border-top: 0;
  padding-top: var(--space-lg);
}

.numeral {
  display: none;
}

.band__head {
  border-top: 3px double var(--color-rule-strong);
  padding-top: var(--space-sm);
  margin-bottom: var(--space-lg);
  display: grid;
  gap: var(--space-2xs);
}

.band__index {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-accent);
}

.band__title {
  font-size: clamp(1.5rem, 3.2vw, 2.125rem);
  max-width: 24ch;
}

.band__note {
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
  max-width: var(--measure);
}

/* ============================================================== opening ===
   Long Document opens with a lede, not a poster. The figure sits inside the
   sentence, at reading scale. */

.hero {
  padding-top: var(--space-lg);
}

.hero__kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 2px var(--space-sm);
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
  padding-bottom: var(--space-xs);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.hero h1 {
  margin-top: var(--space-md);
  font-size: var(--text-display);
  max-width: 17ch;
}

.hero__figure {
  font-variant-numeric: lining;
  letter-spacing: -0.03em;
}

.hero__figure::after {
  content: ' ';
}

.hero__lead {
  display: inline;
}

.period {
  display: none;
}

.hero__body {
  margin-top: var(--space-md);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: var(--space-lg);
  align-items: start;
}

.hero__standfirst p {
  font-size: var(--text-lg);
  line-height: 1.5;
  max-width: 54ch;
}

.hero__aside {
  border-top: var(--rule-hair) solid var(--color-rule-strong);
  padding-top: var(--space-2xs);
}

/* ================================================================= KPIs ===
   A ruled strip of figures, the way a note prints its summary table. */

.kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: var(--space-lg);
  border-top: var(--rule-bold) solid var(--color-rule-strong);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.kpi {
  padding: var(--space-xs) var(--space-sm) var(--space-sm);
  border-left: var(--rule-hair) solid var(--color-rule);
  min-width: 0;
}

.kpi:first-child {
  border-left: 0;
  padding-left: 0;
}

.kpi__value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.8vw, 2.125rem);
  line-height: 1;
  letter-spacing: -0.024em;
  overflow-wrap: anywhere;
}

.kpi__label {
  margin-top: var(--space-2xs);
  font-family: var(--font-label);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.kpi__sub {
  margin-top: 2px;
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.4;
}

/* ======================================================== the statement ===
   Newsprint floods nothing. The old poster plate becomes a ruled statement
   set across the measure: one figure, one sentence of consequence. */

.plate {
  border-top: 3px double var(--color-rule-strong);
  border-bottom: 3px double var(--color-rule-strong);
  margin-block: var(--space-xl);
  background: var(--color-paper-2);
}

.plate__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-md) var(--space-lg);
  align-items: baseline;
  padding-block: var(--space-md);
}

.plate__figure {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--color-accent);
}

.plate__lead {
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  max-width: 26ch;
}

.plate__note {
  margin-top: var(--space-2xs);
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
  max-width: var(--measure);
}

.plate .label {
  color: var(--color-accent);
}

/* ======================================================== prose + label === */

.label {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
}

.prose {
  font-size: var(--text-md);
  max-width: var(--measure);
  color: var(--color-ink-soft);
}

.prose + .prose {
  margin-top: var(--space-2xs);
}

.subhead {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
  padding-bottom: var(--space-3xs);
  margin-bottom: var(--space-2xs);
  border-bottom: var(--rule-hair) solid var(--color-rule-strong);
}

/* =============================================================== columns === */

.cols {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-lg) var(--space-lg);
}

.col-4 { grid-column: span 4; min-width: 0; }
.col-5 { grid-column: span 5; min-width: 0; }
.col-6 { grid-column: span 6; min-width: 0; }
.col-7 { grid-column: span 7; min-width: 0; }
.col-8 { grid-column: span 8; min-width: 0; }
.col-12 { grid-column: span 12; min-width: 0; }

/* ============================================================== findings === */

.finding {
  display: grid;
  grid-template-columns: 2.25em minmax(0, 1fr);
  gap: var(--space-2xs);
  padding-block: var(--space-2xs);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.finding__n {
  font-family: var(--font-label);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  padding-top: 4px;
}

.finding__text {
  font-size: var(--text-sm);
  line-height: 1.55;
}

.outlook {
  counter-reset: outlook;
  border-top: var(--rule-hair) solid var(--color-rule-strong);
}

.outlook li {
  counter-increment: outlook;
  display: grid;
  grid-template-columns: 2.5em minmax(0, 1fr);
  gap: var(--space-2xs);
  padding-block: var(--space-xs);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-md);
  max-width: none;
}

.outlook li::before {
  content: counter(outlook, decimal-leading-zero);
  font-family: var(--font-label);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  padding-top: 5px;
}

/* ============================================================ cells row === */

.strategy {
  margin-block: var(--space-lg);
  padding-block: var(--space-md);
  border-block: var(--rule-hair) solid var(--color-rule-strong);
}

.strategy h3 {
  margin-bottom: var(--space-xs);
}

.strategy > .prose,
.strategy > .cell__note,
.strategy .tablewrap {
  margin-bottom: var(--space-sm);
}

.strategy__detail {
  border-top: var(--rule-hair) solid var(--color-rule);
  padding-block: var(--space-xs);
}

.strategy__detail summary {
  cursor: pointer;
  font-weight: 600;
}

.strategy__detail[open] summary {
  margin-bottom: var(--space-xs);
}

.strategy__source {
  margin-top: var(--space-sm);
  padding-left: var(--space-xs);
  border-left: 2px solid var(--color-rule-strong);
  max-width: var(--measure);
  overflow-wrap: anywhere;
}

.strategy__source blockquote {
  margin: 0 0 var(--space-2xs);
  font-size: var(--text-sm);
}

.strategy__limits li {
  margin-top: var(--space-xs);
  max-width: var(--measure);
  font-size: var(--text-sm);
}

.cells {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  border-top: var(--rule-bold) solid var(--color-rule-strong);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.cell {
  padding: var(--space-xs) var(--space-sm) var(--space-sm);
  border-left: var(--rule-hair) solid var(--color-rule);
  min-width: 0;
}

.cell:first-child {
  border-left: 0;
  padding-left: 0;
}

.cell__value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  line-height: 1;
  letter-spacing: -0.024em;
}

.cell__label {
  margin-top: var(--space-2xs);
  font-family: var(--font-label);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.cell__note {
  margin-top: 4px;
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.45;
}

/* ================================================================== rank ===
   A ruled list with a hairline bar. The bar is a reading aid; the number is
   the fact, so the number is set in the figure face and right-aligned. */

.rank {
  display: grid;
}

.rank__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30% 4.5em;
  gap: var(--space-sm);
  align-items: center;
  padding-block: 7px;
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.rank--wide .rank__row {
  grid-template-columns: minmax(0, 1fr) 22% 4.5em;
}

.rank__name {
  font-size: var(--text-sm);
  line-height: 1.35;
  min-width: 0;
}

.rank__track {
  position: relative;
  height: 8px;
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.rank__fill {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 5px;
  background: var(--color-plot);
}

.rank__val {
  text-align: right;
  font-family: var(--font-figure);
  font-size: var(--text-sm);
  font-weight: 500;
}

.rank__sub {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-muted);
  line-height: 1.4;
  margin-top: 1px;
}

.rank__scale {
  font-family: var(--font-label);
  font-size: var(--text-2xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding-top: var(--space-3xs);
}

/* ============================================================== figures ===
   Every chart is an SVG drawn on the token palette. Shared furniture first. */

.figure {
  margin: 0;
}

.figure__caption,
figcaption {
  margin-top: var(--space-2xs);
  font-size: var(--text-xs);
  color: var(--color-muted);
  line-height: 1.5;
  max-width: var(--measure);
}

.chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart .axis {
  stroke: var(--color-rule-strong);
  stroke-width: 1;
}

.chart .grid {
  stroke: var(--color-grid);
  stroke-width: 1;
}

.chart .grid--zero {
  stroke: var(--color-rule-strong);
}

.chart .series {
  fill: none;
  stroke: var(--color-plot);
  stroke-width: 1.25;
  stroke-linejoin: round;
}

.chart .series--fill {
  fill: var(--color-plot);
  fill-opacity: 0.1;
  stroke: none;
}

.chart .series--mean {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.chart .marker {
  fill: var(--color-accent);
}

.chart .tick {
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  fill: var(--color-muted);
}

.chart .tick--ink {
  fill: var(--color-ink);
  font-weight: 600;
}

.chart .tick--accent {
  fill: var(--color-accent);
  font-weight: 600;
}

.chart .bar {
  fill: var(--color-plot);
}

.chart .bar--partial {
  fill: var(--color-plot-2);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-md);
  margin-top: var(--space-2xs);
  font-family: var(--font-label);
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend i {
  display: inline-block;
  width: 18px;
  height: 0;
  border-top: 2px solid var(--color-plot);
}

.legend i[data-kind='mean'] {
  border-top-color: var(--color-accent);
}

.legend i[data-kind='area'] {
  height: 8px;
  border: 0;
  background: color-mix(in oklab, var(--color-plot) 12%, transparent);
}

.legend i[data-kind='partial'] {
  height: 8px;
  border: 0;
  background: var(--color-plot-2);
}

/* ---- dot plot (momentum index) ---------------------------------------- */

.dots {
  display: grid;
}

.dots__scale {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 60%;
  gap: var(--space-sm);
  align-items: end;
  padding-bottom: 2px;
}

.dots__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 60%;
  gap: var(--space-sm);
  align-items: center;
  padding-block: 6px;
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.dots__label {
  font-size: var(--text-sm);
  line-height: 1.3;
  min-width: 0;
}

/* ---- dot plot (index against a 1.00 baseline) -------------------------- */

.dots {
  display: grid;
}

.dots__scale,
.dots__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52% 3.5em;
  gap: var(--space-sm);
  align-items: center;
}

.dots__scale {
  align-items: end;
  padding-bottom: 3px;
  border-bottom: var(--rule-hair) solid var(--color-rule-strong);
}

.dots__row {
  padding-block: 7px;
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.dots__ticks {
  position: relative;
  height: 14px;
  font-family: var(--font-label);
  font-size: var(--text-2xs);
  font-weight: 500;
  color: var(--color-muted);
}

.dots__ticks span {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}

.dots__ticks span[data-base='true'] {
  color: var(--color-ink);
  font-weight: 600;
}

.dots__label {
  font-size: var(--text-sm);
  line-height: 1.3;
  min-width: 0;
}

.dots__track {
  position: relative;
  height: 14px;
}

.dots__track::before {
  content: '';
  position: absolute;
  inset-block: 0;
  left: 0;
  right: 0;
  top: 50%;
  height: 0;
  border-top: var(--rule-hair) solid var(--color-rule);
}

.dots__base {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 0;
  border-left: var(--rule-hair) solid var(--color-rule-strong);
}

.dots__stem {
  position: absolute;
  top: 50%;
  height: 0;
  border-top: 2px solid var(--color-neg);
}

.dots__stem[data-dir='up'] {
  border-top-color: var(--color-pos);
}

.dots__dot {
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--color-neg);
}

.dots__dot[data-dir='up'] {
  background: var(--color-pos);
}

/* Off the end of the scale: an arrowhead, so it cannot be read as 2.00. */
.dots__dot[data-off='true'] {
  border-radius: 0;
  width: 11px;
  height: 11px;
  margin-left: -3px;
  margin-top: -5.5px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* ---- monthly small multiples ------------------------------------------ */

.spark {
  display: grid;
}

.spark__axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-label);
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  padding-bottom: var(--space-3xs);
  border-bottom: var(--rule-hair) solid var(--color-rule-strong);
}

.spark__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46% 3.5em;
  gap: var(--space-sm);
  align-items: center;
  padding-block: 5px;
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.spark__bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 30px;
  border-bottom: var(--rule-hair) solid var(--color-rule-strong);
}

.spark__bars i {
  flex: 1 1 0;
  min-width: 0;
  background: var(--color-plot);
  min-height: 1px;
}

.spark__bars i:last-child {
  background: var(--color-plot-2);
}

/* ---- share shift (diverging) ------------------------------------------ */

.shift__scale {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52% 4em;
  gap: var(--space-sm);
  padding-bottom: 2px;
}

.shift__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52% 4em;
  gap: var(--space-sm);
  align-items: center;
  padding-block: 7px;
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.shift__track {
  position: relative;
  height: 14px;
}

.shift__track::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -2px;
  bottom: -2px;
  border-left: var(--rule-hair) solid var(--color-rule-strong);
}

.shift__track i {
  position: absolute;
  top: 3px;
  height: 8px;
  background: var(--color-pos);
}

.shift__track i[data-dir='down'] {
  background: var(--color-neg);
}

.shift__val {
  text-align: right;
  font-family: var(--font-figure);
  font-size: var(--text-sm);
  font-weight: 600;
}

/* ============================================================= momentum ===
   Kept for markup compatibility; the dot plot replaces the gauge. */

.momentum__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 60%;
  gap: var(--space-sm);
  align-items: center;
  padding-block: 6px;
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.idx {
  font-family: var(--font-figure);
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: right;
}

/* =============================================================== tables === */

.tablewrap {
  overflow-x: auto;
}

.matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.matrix th,
.matrix td {
  padding: 6px var(--space-2xs);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  text-align: right;
  white-space: nowrap;
}

.matrix thead th {
  font-family: var(--font-label);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-muted);
  border-bottom: var(--rule-hair) solid var(--color-rule-strong);
  vertical-align: bottom;
}

.matrix thead th:first-child,
.matrix tbody th {
  text-align: left;
  white-space: normal;
}

.matrix tbody th {
  font-weight: 400;
  font-size: var(--text-sm);
  min-width: 12ch;
}

.matrix tbody td {
  font-family: var(--font-figure);
  font-size: var(--text-sm);
}

/* =============================================================== filters === */

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: var(--space-sm);
  padding-block: var(--space-sm);
  border-top: var(--rule-hair) solid var(--color-rule-strong);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  margin-bottom: var(--space-sm);
}

.field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.field > span {
  font-family: var(--font-label);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
}

.field input,
.field select {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-ink);
  background: var(--color-paper);
  border: var(--rule-hair) solid var(--color-rule-strong);
  border-radius: 0;
  padding: 7px var(--space-2xs);
  min-width: 0;
  width: 100%;
}

.field input:hover,
.field select:hover,
.field input:focus,
.field select:focus {
  border-color: var(--color-accent);
  outline: none;
}

/* ============================================================ role index === */

.index {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.index thead th {
  font-family: var(--font-label);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-align: left;
  padding: 6px var(--space-2xs) 6px 0;
  border-bottom: var(--rule-hair) solid var(--color-rule-strong);
  white-space: nowrap;
}

.index tbody td {
  padding: 8px var(--space-2xs) 8px 0;
  border-bottom: var(--rule-hair) solid var(--color-rule);
  vertical-align: top;
}

.index tbody tr:hover {
  background: var(--color-paper-2);
}

.index__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-md);
  text-decoration: none;
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.index__title:hover,
.index__title:focus-visible {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.index__meta {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-muted);
  line-height: 1.4;
  margin-top: 2px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tag {
  font-family: var(--font-label);
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  border: var(--rule-hair) solid var(--color-rule);
  padding: 2px 5px;
  white-space: nowrap;
}

.chip {
  font-family: var(--font-label);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink);
  background: var(--color-paper);
  border: var(--rule-hair) solid var(--color-rule-strong);
  border-radius: 0;
  padding: 8px var(--space-md);
  cursor: pointer;
  white-space: nowrap;
}

.chip:hover,
.chip:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.chip:disabled {
  color: var(--color-muted);
  border-color: var(--color-rule);
  cursor: default;
}

/* ============================================================== changes === */

.log__row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: var(--space-md);
  padding-block: var(--space-sm);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.delta {
  display: flex;
  gap: var(--space-sm);
  margin-top: 4px;
  font-family: var(--font-figure);
  font-size: var(--text-sm);
  font-weight: 500;
}

.delta .up {
  color: var(--color-accent);
}

.delta .down {
  color: var(--color-muted);
}

.log__items {
  margin-block: 4px var(--space-2xs);
}

.log__items li {
  font-size: var(--text-sm);
  padding-block: 2px;
  color: var(--color-ink-soft);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

/* ==================================================== Ft1 · mast-headed === */

.colophon {
  margin-top: var(--space-xl);
  border-top: 3px double var(--color-rule-strong);
  padding-top: var(--space-md);
  padding-bottom: var(--space-2xl);
}

.colophon__mast {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  letter-spacing: -0.028em;
  line-height: 1;
  margin-bottom: var(--space-md);
}

.colophon__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--space-md) var(--space-lg);
}

.colophon__block h3 {
  font-family: var(--font-label);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-2xs);
  padding-bottom: var(--space-3xs);
  border-bottom: var(--rule-hair) solid var(--color-rule-strong);
}

.colophon__block p,
.colophon__block li {
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
  line-height: 1.5;
}

.colophon__block li {
  padding-block: 5px;
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.colophon__rule {
  border: 0;
  border-top: var(--rule-hair) solid var(--color-rule);
  margin-block: var(--space-md);
}

.colophon__meta {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  color: var(--color-muted);
  line-height: 1.6;
}

.link {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: var(--rule-hair) solid var(--color-accent);
}

.link:hover,
.link:focus-visible {
  background: var(--color-accent-soft);
}

.empty {
  font-size: var(--text-sm);
  color: var(--color-muted);
  padding-block: var(--space-2xs);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* =========================================================== responsive === */

@media (max-width: 1024px) {
  .kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .kpi:nth-child(4) {
    border-left: 0;
    padding-left: 0;
  }

  .kpi:nth-child(n + 4) {
    border-top: var(--rule-hair) solid var(--color-rule);
  }
}

@media (max-width: 900px) {
  .hero__body {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-md);
  }

  .col-4,
  .col-5,
  .col-6,
  .col-7,
  .col-8 {
    grid-column: span 12;
  }

  .plate__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2xs);
  }

  .log__row {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2xs);
  }
}

@media (max-width: 640px) {
  .masthead__inner {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .masthead__meta {
    text-align: left;
  }

  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpi:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .kpi:nth-child(n + 3) {
    border-top: var(--rule-hair) solid var(--color-rule);
  }

  .rank__row,
  .rank--wide .rank__row {
    grid-template-columns: minmax(0, 1fr) 4.5em;
    gap: var(--space-2xs);
  }

  .rank__track {
    display: none;
  }

  .spark__row {
    grid-template-columns: minmax(0, 1fr) 40% 3em;
    gap: var(--space-2xs);
  }

  .shift__row,
  .shift__scale {
    grid-template-columns: minmax(0, 1fr) 40% 3.5em;
    gap: var(--space-2xs);
  }

  .dots__row,
  .dots__scale,
  .momentum__row {
      grid-template-columns: minmax(0, 1fr) 42% 3em;
    gap: var(--space-2xs);
  }

  .cell:nth-child(n + 2) {
    border-left: 0;
    padding-left: 0;
    border-top: var(--rule-hair) solid var(--color-rule);
  }
}

/* ======================================================== reduced motion === */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }
}
