/* The Growth Gazette — element defaults
 *
 * Ported from the runtime stylesheet in the design export's site-chrome.js.
 * Everything reads through a token; no literal colour or size appears here.
 */

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--body);
  line-height: var(--leading);
  text-wrap: pretty;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--link-hover);
}

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

th,
td {
  text-align: left;
}

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

/* Available to every template. Used for the written form of rank movement,
 * which is announced but not painted. See .gg-delta in components.css. */
.gg-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* The export lazy-loads photography inside <figure>. Keep images fluid so
 * nothing forces a horizontal scroll at 375px. */
img {
  max-width: 100%;
  height: auto;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
