/* Base: reset, document defaults and utilities shared by every page. */

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

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

body {
  margin: 0;
  min-width: 320px;
  background: var(--color-white);
  color: var(--color-black);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
figure,
address {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  line-height: var(--lh-tight);
}

address {
  font-style: normal;
}

ul[role="list"] {
  list-style: none;
  padding: 0;
}

[hidden] {
  display: none !important;
}

/* <source> never renders; keep it out of grid/flex layouts when <picture> uses display: contents. */
picture > source {
  display: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

bdi[dir="ltr"],
[dir="ltr"] {
  unicode-bidi: isolate;
}

/* Keyboard focus is always visible and always brand green. */
:focus {
  outline: none;
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

main:focus-visible {
  outline: none;
}

[id] {
  scroll-margin-top: var(--space-4);
}

/* Layout container: 1188px content with side gutters. */
.container {
  width: min(100% - 2 * var(--gutter), var(--content-max));
  margin-inline: auto;
}

/* Designed line breaks: the approved layout breaks some copy at fixed points. Each line is a
   block on wide screens and flows as normal text on narrow ones. */
.text-line {
  display: block;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
}

/* Mirrors a directional icon (e.g. the left arrow used as "previous" in RTL). Icons only, never text. */
.icon--flip {
  transform: scaleX(-1);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: var(--space-4);
  top: var(--space-2);
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--color-brand);
  color: var(--color-white);
  border-radius: var(--radius-control);
  transform: translateY(-160%);
}

.skip-link:focus-visible {
  transform: none;
}

/* Destinations that are reserved but not published yet (see README): visible, announced as
   unavailable, never navigable. */
.is-disabled {
  cursor: not-allowed;
}

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

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