/*
 * Copyright 2020 Adobe. All rights reserved.
 * This file is licensed to you under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License. You may obtain a copy
 * of the License at http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under
 * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
 * OF ANY KIND, either express or implied. See the License for the specific language
 * governing permissions and limitations under the License.
 */

/* ─────────────────────────────────────────────────────────────────────────────
   CSS custom properties (formerly root.css — merged here to eliminate a
   separate network request and reduce render-blocking duration)
   ───────────────────────────────────────────────────────────────────────────── */
:root {
  /* colors */
  --background-color: white;
  --light-color: #f8f8f8;
  --text-color: #0e4343;      /* RevMed Darkest Green — primary text (: #0E4343) */
  --link-color: #3b63fb;
  --link-hover-color: #1d3ecf;
  --color-white: #fff;
  --color-black: #000;
  --onetrust-background-color: #426bba;
  --onetrust-text-color: #fff;
  --onetrust-disabled-color: #e8e8e8;
  --onetrust-secondary-color: #373d42;

  /* RevMed brand tokens — med-accordion */
  --med-font-display: 'FK Display', serif;
  --med-font-body: fkgroteskneueregular, sans-serif;

  /* RevMed colors */
  --med-color-teal: #229c9c;             /* : aqua green — h2 headings */
  --med-color-darkest-green: #0e4343;    /* : Darkest Green — primary headings & body text */
  --med-color-tasman: #d1dbd1;           /* : color/green/84 — dividers, accent bars */
  --med-color-section-bg: rgb(237 244 241 / 80%);
  --med-color-light-gray-section-bg: #E9EDEF;
  --med-color-winter-green: #1e6b5c;     /* : Winter Green — CTA button fill */
  --med-color-nav-hover: #10b981;         /* Header nav hover */
  --med-color-dark-gray: #495057;        /* : Dark gray — body text on white */
  --med-color-medium-gray: #b2b9c0;      /* : Medium gray — muted/secondary text */

  /* RevMed layout */
  --med-accordion-radius: 15px;

  /* RevMed heading scale */
  --med-heading-h2-size: 48px;
  --med-heading-h2-lh: 57px;
  --med-heading-h3-size: 36px;         /* : med-affair-accordion header (FK Display 36px) */
  --med-heading-h3-lh: 44px;
  --med-heading-h4-size: 30px;
  --med-heading-h4-lh: 37px;
  --med-heading-h5-size: 24px;
  --med-heading-h5-lh: 30px;

  /* RevMed body text scale */
  --med-body-size: 20px;
  --med-body-lh: 26px;

  /* ── Global brand font overrides ──────────────────────────────────
     RevMed brand uses Inter (body) and FK Display (headings).
     See fonts.css for @font-face / Google Fonts loading.
     ──────────────────────────────────────────────────────────────── */
  --body-font-family: fkgroteskneueregular, sans-serif;
  --heading-font-family: 'FK Display', serif;

  /* body sizes */
  --body-font-size-m: 22px;
  --body-font-size-s: 19px;

  /* nav height */
  --nav-height: 0px; /* nav bar only: 18px padding × 2 + 60px content; updated dynamically by header.js */

  /* Font families */
  --font-heading: "FK Display", serif;
  --font-body: fkgroteskneueregular, sans-serif;
  --font-subtitle: "Lato", sans-serif;

  /* Headings */
  --font-size-h1: 3.75rem;    /* 60px */
  --line-height-h1: 4.375rem; /* 70px */
  --font-size-h2: 3rem;       /* 48px */
  --line-height-h2: 3.5625rem; /* 57px */
  --font-size-h3: 2.25rem;    /* 36px */
  --line-height-h3: 2.75rem;  /* 44px */
  --font-size-h4: 1.875rem;   /* 30px */
  --line-height-h4: 2.3125rem; /* 37px */
  --font-size-h5: 1.5rem;     /* 24px */
  --line-height-h5: 1.875rem; /* 30px */

  /* Body */
  --font-size-body: 1.25rem;   /* 20px */
  --line-height-body: 1.625rem; /* 26px */
  --font-size-subtitle: 0.75rem; /* 12px */
  --line-height-subtitle: 1rem;  /* 16px */
  --spacing: 0.25rem;
}

@media (width >= 900px) {
  :root {
    /* body sizes */
    --body-font-size-m: 18px;
    --body-font-size-s: 16px;
  }
}

body {
  display: none;
  margin: 0;
  overflow-x: hidden;
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--body-font-family);
  font-size: var(--body-font-size-m);
  line-height: 1.6;
}

body.appear {
  display: block;
}

/* OneTrust CLS guard:
   Keep consent banner in a stable fixed position and disable entrance
   animations/transforms that can cause layout-shift bursts on mobile. */
#onetrust-consent-sdk #onetrust-banner-sdk {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

header {
  height: var(--nav-height);
}

header .header,
footer .footer {
  visibility: hidden;
}

header .header[data-block-status="loaded"],
footer .footer[data-block-status="loaded"] {
  visibility: visible;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font-family);
  font-weight: 400; /* FK Display uses Regular (400), not bold */
  color: var(--med-color-winter-green);
  margin: 0;
}

h1 {
  font-size: var(--font-size-h1);
  line-height: var(--line-height-h1);
}

h2 {
  color: var(--med-color-darkest-green); /* Figma heading/h2 — Darkest Green #0E4343 */
  font-size: var(--font-size-h2);
  line-height: var(--line-height-h2);
}

h3 {
  color: var(--med-color-darkest-green); /* Figma heading/h3 — Darkest Green #0E4343 */
  font-size: var(--font-size-h3);
  line-height: var(--line-height-h3);
}

h4 {
  font-size: var(--font-size-h4);
  line-height: var(--line-height-h4);
}

h5 {
  font-size: var(--font-size-h5);
  line-height: var(--line-height-h5);
}

h6 {
  font-size: var(--font-size-subtitle);
  line-height: var(--line-height-subtitle);
}

/* body copy — FKGroteskNeueRegular 20px/26px (p/body copy) */
body,
p {
  color: var(--med-color-darkest-green);
  font-family: FKGroteskNeueRegular, sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 26px; /* 130% */

}

/* subtitle — Lato 12px/16px (p/subtitle) */
.subtitle,
figcaption,
small {
  font-family: var(--font-subtitle);
  font-size: var(--font-size-subtitle);
  line-height: var(--line-height-subtitle);
}

p,
dl,
ol,
ul,
pre,
blockquote {
  margin-top: 0.8em;
  margin-bottom: 0.25em;
}

/* legal text style — small Lato, muted gray, used for disclaimers / footnotes */
.legal-text,
.legal-text p {
  font-family: var(--font-subtitle);  /* Lato */
  font-size: 0.75rem;                 /* 12px */
  line-height: 1.4;
  color: var(--med-color-medium-gray);
  font-weight: 400;
}

code,
pre {
  font-size: var(--body-font-size-s);
}

pre {
  padding: 16px;
  border-radius: 8px;
  background-color: var(--light-color);
  overflow-x: auto;
  white-space: pre;
}

main > div {
  margin: 40px 16px;
}

input,
textarea,
select {
  font: inherit;
}

/* buttons — default (EDS boilerplate) */
button {
  font: inherit;
}

a.button:hover,
a.button:focus,
button:hover,
button:focus {
  cursor: pointer;
}

button:disabled,
button:disabled:hover {
  background-color: var(--light-color);
  cursor: unset;
}

a.button.secondary:any-link,
button.secondary {
  background-color: unset;
  border: 2px solid currentcolor;
  color: var(--text-color);
}

/* primary button — (Winter Green pill CTA) */
a.button.primary:any-link,
button.primary {
  box-sizing: border-box;
  max-width: 100%;
  margin: 12px 0;
  border: 2px solid var(--med-color-winter-green);;
  border-radius: 35px;
  font-family: var(--med-font-body);
  font-style: normal;
  font-weight: 700;
  font-size: var(--med-body-size);
  line-height: var(--med-body-lh);
  text-align: center;
  text-decoration: none;
  background-color: var(--med-color-winter-green);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  overflow: visible;
  transition: background-color 0.2s ease;
  display: flex;
  width: 276px;
  padding: 20px 35px 20px 40px;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

a.button.primary:hover,
a.button.primary:focus,
button.primary:hover,
button.primary:focus {
  background-color: var(--med-color-winter-green);
  cursor: pointer;
}

/* links */
a:any-link {
  color: var(--link-color);
  text-decoration: none;
  overflow-wrap: break-word;
}

a:hover {
  color: var(--link-hover-color);
  text-decoration: underline;
}

main img {
  max-width: 100%;
  width: auto;
  height: auto;
}

.icon {
  display: inline-block;
  height: 24px;
  width: 24px;
}

.icon img {
  height: 100%;
  width: 100%;
}

/* sections */
main > .section {
  margin: 0;
  padding: 0;
  scroll-margin-top: var(--nav-height);
}

/* Last section before the footer: add bottom padding to prevent text being
   obscured by .footer-wrapper { margin-top: -3rem } (48px negative pull-up) */
main > .section:last-child {
  padding-bottom: 4rem;
}

/* ensure any anchored element within main clears the fixed nav */
main [id] {
  scroll-margin-top: var(--nav-height);
}

main > .section > div {
  max-width: 1139px;
  margin: auto;
  padding: 0 24px;
}

main > .section:first-of-type {
  margin-top: 0;
    padding: 0;
}

@media (width >= 900px) {
  main > .section > div {
    padding: 0 32px;
  }
}

/* section metadata */
main .section.light,
main .section.highlight {
  background-color: var(--light-color);
  margin: 0;
  padding: 40px 0;
}

main > .section.light-green{
  background-color: var(--med-color-section-bg);
}

main > .section.light-gray {
  background: var(--med-color-light-gray-section-bg);
}

/* Faintly template system styles */
.faintly-original-content,
.faintly-rendered-content {
  width: 100%;
}

/* Hide unnecessary empty elements in Universal Editor */
.ue-active .faintly-rendered-content,
.aue-active .faintly-rendered-content,
body.ue-active .faintly-rendered-content,
body.aue-active .faintly-rendered-content {
  display: none !important;
}

/* Make editable original content visible in Universal Editor */
.ue-active .faintly-original-content,
.aue-active .faintly-original-content,
body.ue-active .faintly-original-content,
body.aue-active .faintly-original-content {
  display: block !important;
}

/* Section style: row layout */
main > .section.row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-m, 24px);
}

main > .section.row > div {
  flex: 1 1 300px;
  max-width: 100%;
}

@media (width >= 900px) {
  main > .section.row > div {
    flex: 1 1 0;
  }
}

.error{
      padding-top: var(--nav-height);
}

sup {
    top: -.5em;
}

sub, sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
}