/* Global foundations. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--rw-announcement-height) + var(--rw-header-height) + 20px);
}

body.rw-site {
  background: var(--rw-color-bg);
  color: var(--rw-color-text);
  font-family: var(--rw-font-body);
  font-size: var(--rw-font-size-base);
  line-height: var(--rw-line-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.rw-site,
body.rw-site * {
  box-sizing: border-box;
}

body.rw-site img,
body.rw-site svg,
body.rw-site video {
  display: block;
  height: auto;
  max-width: 100%;
}

body.rw-site figure {
  margin: 0;
}

body.rw-site :where(h1, h2, h3, h4, h5, h6) {
  color: var(--rw-color-heading);
  font-family: var(--rw-font-heading);
  font-weight: 500;
  letter-spacing: var(--rw-letter-tight);
  line-height: var(--rw-line-heading);
  margin-block: 0 0.55em;
  text-wrap: balance;
}

body.rw-site :where(h1) { font-size: var(--rw-font-size-h1); }
body.rw-site :where(h2) { font-size: var(--rw-font-size-h2); }
body.rw-site :where(h3) { font-size: var(--rw-font-size-h3); }
body.rw-site :where(h4) { font-size: var(--rw-font-size-h4); }
body.rw-site :where(h5) { font-size: var(--rw-font-size-lg); }

body.rw-site p {
  margin-block: 0 1em;
  text-wrap: pretty;
}

body.rw-site ul,
body.rw-site ol {
  padding-inline-start: 1.25em;
}

body.rw-site a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color var(--rw-transition), opacity var(--rw-transition);
}

body.rw-site a:hover {
  color: var(--rw-color-muted);
}

body.rw-site ::selection {
  background: var(--rw-color-text);
  color: var(--rw-color-white);
}

body.rw-site :focus-visible {
  outline: 2px solid var(--rw-color-text);
  outline-offset: 3px;
}

body.rw-site hr {
  border: 0;
  border-top: 1px solid var(--rw-color-border);
  margin-block: var(--rw-space-9);
}

body.rw-site small {
  font-size: var(--rw-font-size-sm);
}

body.rw-site table {
  border-collapse: collapse;
  width: 100%;
}

body.rw-site th {
  font-size: var(--rw-font-size-xs);
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

body.rw-site .entry-content-wrap,
body.rw-site .content-container,
body.rw-site .site-container {
  min-width: 0;
}

.screen-reader-text:focus {
  clip: auto !important;
  height: auto;
  width: auto;
}
