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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--rbcc-font-body);
  color: var(--rbcc-color-text);
  background: var(--rbcc-color-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

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

.screen-reader-text:focus {
  clip: auto;
  width: auto; height: auto;
  margin: 1rem;
  padding: .75rem 1rem;
  background: var(--rbcc-color-brand);
  color: var(--rbcc-color-white);
  z-index: 9999;
}

/* Elementor's frontend CSS gives .screen-reader-text "top: -10000em", so the rule
 * above unclipped the skip link but left it ~160,000px above the page. */
.rbcc-skip-link.screen-reader-text:focus {
  position: fixed !important;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  outline: 2px solid var(--rbcc-color-white);
  outline-offset: -5px;
  z-index: 100000;
}
body.admin-bar .rbcc-skip-link.screen-reader-text:focus { top: calc(32px + 1rem); }
@media (max-width: 782px) {
  body.admin-bar .rbcc-skip-link.screen-reader-text:focus { top: calc(46px + 1rem); }
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.8em;
  font-family: var(--rbcc-font-heading);
  line-height: normal;
  color: var(--rbcc-color-brand);
}

p, ul, ol, blockquote {
  margin: 0 0 1.15rem;
}

body.admin-bar .rbcc-site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .rbcc-site-header { top: 46px; }
}

:focus-visible {
  outline: 2px solid var(--rbcc-color-brand-soft);
  outline-offset: 2px;
}
