/* ==========================================================================
   Upstream — base
   Reset, document defaults, and the type roles from the brand board.
   ========================================================================== */

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
figure,
ol,
ul,
dl,
dd {
  margin: 0;
}

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

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 2px;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Type roles
   Sentence case, no exclamation marks, plain English, short.
   -------------------------------------------------------------------------- */

.t-display {
  font: 700 42px/1.05 var(--font-sans);
  letter-spacing: -0.03em;
  text-wrap: pretty;
}

.t-headline {
  font: 700 34px/1.1 var(--font-sans);
  letter-spacing: -0.025em;
  text-wrap: pretty;
}

/* Verdict label. */
.t-verdict {
  font: 700 21px/1 var(--font-sans);
  letter-spacing: -0.015em;
}

/* Section label above a component. */
.t-label {
  font: 600 15px/1.2 var(--font-sans);
  letter-spacing: -0.012em;
  color: var(--tx);
}

/* Entity name in the chain. */
.t-entity {
  font: 600 15px/1.2 var(--font-sans);
  letter-spacing: -0.01em;
  color: var(--tx);
}

/* Body and verdict reason. */
.t-body {
  font: 400 14.5px/1.5 var(--font-sans);
  text-wrap: pretty;
}

.t-body-sm {
  font: 400 13.5px/1.5 var(--font-sans);
  text-wrap: pretty;
}

/* Annotation. Dates, source names, counts, anything secondary. */
.t-annotation {
  font: 400 12px/1.45 var(--font-sans);
  color: var(--tx3);
}

.t-micro {
  font: 400 11px/1 var(--font-sans);
  color: var(--tx3);
}

/* Barcodes and dataset versions. Nothing else. */
.t-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

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