/* Static-runtime fallbacks layered on top of the preserved site design. */
html {
  box-sizing: border-box;
  font-size: 106.25%;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--color-surface-page);
  color: var(--color-text-base);
  font-size: var(--font-size-body);
  font-style: normal;
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#page { position: relative; }

a {
  background-color: transparent;
  color: var(--color-link);
  text-decoration: none;
}

a:hover,
a:focus { color: var(--color-accent-hover); }

/* Default heading role only inside content, excluding every hero. */
:is(.individual-page, .service-page, .legal-page) :is(h1, h2, h3, h4, h5, h6):not(:where(.home-hero *, .content-hero *, .service-hero *)) {
  color: var(--cd-primary-dark);
}

/* Content links retain a visible interaction cue without the legacy yellow. */
:where(.individual-page, .service-page, .legal-page) a:not(:where(.home-hero a, .content-hero a, .service-hero a, .service-cta, .home-trust-card)):is(:hover, :focus) {
  color: var(--cd-primary-dark);
  text-decoration: underline;
}

figure,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-text-base);
  font-weight: var(--font-weight-regular);
}

h1 { font-size: 48px; line-height: 1.24; }
h2 { font-size: 40px; line-height: 1.3; }
h3 { font-size: 32px; line-height: 1.3; }
h4 { font-size: 24px; line-height: 1.2; }
h5 { font-size: 20px; line-height: 1.2; }
h6 { font-size: 17px; line-height: 1.25; }

p { margin-bottom: 1.75em; }
ul { margin: 0 0 1.5em 3em; list-style: disc; }
li > ul { margin-bottom: 0; margin-left: 1.5em; }

address {
  margin: 0 0 1.5em;
  font-style: italic;
}

img {
  height: auto;
  max-width: 100%;
  border: 0;
  vertical-align: middle;
}

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

button,
select { text-transform: none; }

button,
input[type="button"],
input[type="reset"],
input[type="submit"] { cursor: pointer; }

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

.screen-reader-text:focus {
  z-index: 100000;
  top: 5px;
  left: 5px;
  display: block;
  width: auto;
  height: auto;
  padding: 15px 23px 14px;
  clip: auto !important;
  border-radius: 2px;
  background: #f1f1f1;
  box-shadow: 0 0 2px 2px rgb(0 0 0 / 60%);
  color: var(--cd-primary-dark);
  font-size: .875rem;
  line-height: normal;
  text-decoration: none;
}

@media (max-width: 921px) {
  h1 { font-size: 36px; }
  h2 { font-size: 30px; }
  h3 { font-size: 25px; }
  h4 { font-size: 20px; }
  h5 { font-size: 17px; }
  h6 { font-size: 15px; }
}

@media (max-width: 544px) {
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  h3 { font-size: 22px; }
  h4 { font-size: 18px; }
  h5 { font-size: 15px; }
  h6 { font-size: 13px; }
}

body,
button,
input,
select,
textarea,
footer {
  font-family: var(--font-body) !important;
}

h1,
h2,
h3,
h1 a,
h2 a,
h3 a {
  font-family: var(--font-heading) !important;
  font-optical-sizing: auto;
}

h4,
h5,
h6,
h4 a,
h5 a,
h6 a {
  font-family: var(--font-body) !important;
}

.static-form-status {
  width: 100%;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(216, 191, 91, 0.55);
  border-radius: 4px;
  background: rgba(216, 191, 91, 0.08);
  color: inherit;
  line-height: 1.5;
}

.static-form-status a {
  font-weight: 700;
}

/* Central state hook for the desktop and compact navigation submenus. */
.site-submenu[aria-hidden="true"] {
  display: none !important;
}

.site-submenu[aria-hidden="false"] {
  display: block !important;
}

.site-sticky-header-spacer {
  box-sizing: border-box;
  flex: 0 0 auto;
  pointer-events: none;
  visibility: hidden;
}

/* Heroes no longer sit behind the opaque editorial header. */
.home-hero, .content-hero, .service-hero {
  margin-top: 0 !important;
}

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