/*
 * Base: element defaults, the content column and a few utilities.
 * Components (assets/css/components/*.css) build on this.
 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--yb-color-white);
  color: var(--yb-color-text);
  font-family: var(--yb-font-body);
  font-size: var(--yb-size-body);
  font-weight: var(--yb-weight-regular);
  line-height: var(--yb-leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--yb-color-primary);
  font-weight: var(--yb-weight-regular);
}

h1 { font-size: var(--yb-size-h1); line-height: var(--yb-leading-h1); }
h2 { font-size: var(--yb-size-h2); line-height: var(--yb-leading-h2); letter-spacing: var(--yb-tracking-h2); }
h3 { font-size: var(--yb-size-h3); line-height: var(--yb-leading-tight); font-weight: var(--yb-weight-medium); }
h4 { font-size: var(--yb-size-h4); line-height: var(--yb-leading-h4); font-weight: var(--yb-weight-medium); }
h5 { font-size: var(--yb-size-h5); line-height: var(--yb-leading-tight); font-weight: var(--yb-weight-medium); }
h6 { font-size: var(--yb-size-h6); line-height: var(--yb-leading-tight); font-weight: var(--yb-weight-medium); letter-spacing: var(--yb-tracking-h6); }

/* Heading-sized text that is not a heading in the outline. */
.yb-h1 { font-size: var(--yb-size-h1); line-height: var(--yb-leading-h1); }
.yb-h2 { font-size: var(--yb-size-h2); line-height: var(--yb-leading-h2); letter-spacing: var(--yb-tracking-h2); }
.yb-h3 { font-size: var(--yb-size-h3); line-height: var(--yb-leading-tight); font-weight: var(--yb-weight-medium); }
.yb-h4 { font-size: var(--yb-size-h4); line-height: var(--yb-leading-h4); font-weight: var(--yb-weight-medium); }
.yb-h5 { font-size: var(--yb-size-h5); line-height: var(--yb-leading-tight); font-weight: var(--yb-weight-medium); }
.yb-h6 { font-size: var(--yb-size-h6); line-height: var(--yb-leading-tight); font-weight: var(--yb-weight-medium); letter-spacing: var(--yb-tracking-h6); }

p {
  margin: 0 0 16px;
}

p:last-child {
  margin-bottom: 0;
}

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

a:hover {
  color: var(--yb-color-primary-hover);
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

img {
  height: auto;
  vertical-align: middle;
}

ul,
ol {
  margin: 0 0 16px;
  padding-left: 1.25em;
}

strong,
b {
  font-weight: var(--yb-weight-medium);
}

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

button {
  cursor: pointer;
}

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

/* Words picked out in a heading: <span class="yb-highlight">…</span>. */
.yb-highlight {
  color: var(--yb-color-primary-light);
}

.yb-highlight-yellow {
  color: var(--yb-color-accent);
}

/* The boxed content column: 1140px wide with side padding below that. */
.yb-container {
  width: 100%;
  max-width: calc(var(--yb-width-content) + 2 * var(--yb-gutter));
  margin-inline: auto;
  padding-inline: var(--yb-gutter);
}

.yb-main {
  display: block;
}

.yb-visually-hidden,
.screen-reader-text {
  position: absolute !important;
  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;
}

.yb-skip-link {
  position: absolute;
  top: -100px;
  left: var(--yb-space-m);
  z-index: 1000;
  padding: var(--yb-space-xs) var(--yb-space-m);
  border-radius: var(--yb-radius-pill);
  background: var(--yb-color-primary);
  color: var(--yb-color-white);
}

.yb-skip-link:focus {
  top: var(--yb-space-xs);
  color: var(--yb-color-white);
}

/* Lock page scrolling while a popup is open (set by site.js). */
html.yb-no-scroll {
  overflow: hidden;
}

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