/*
 * 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.
 */

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

        /* heading sizes */
        --heading-font-size-xxl: 45px;
        --heading-font-size-xl: 36px;
        --heading-font-size-l: 28px;
        --heading-font-size-m: 22px;
        --heading-font-size-s: 20px;
        --heading-font-size-xs: 18px;
    }
}

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

body {
    display: none;
    margin: 0;
    color: var(--color-text-body);
    font-family: var(--font-family-body);
    font-size: var(--font-size-body-default);
    line-height: 1.6;

    @media (width >=1200px) {
        background-color: var(--color-background-color-hcp);
    }

}

body.appear {
    display: block;
}

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

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

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

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

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

input,
textarea,
select {
    font: inherit;
}

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

a:hover {
    color: var(--link-footer-primary-hover);
    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 */

@media (width >=1024px) {
    main {
        padding-right: calc(min(1366px, 100vw) * 0.25);
        position: relative;
        background: #fff;
    }

    body {
        position: relative;
    }
}

/* section background variants */
main .section.background-none {
    background: none;
    border-radius: 0;
    margin-inline: var(--spacing-20);
}

main .section.bg-color-background {
    background-color: var(--color-background-color);
    border-radius: var(--radius-24);
    margin-inline: var(--spacing-20);
}

main .section.bg-color-gray {
    background-color: var(--color-gray-color);
    border-radius: var(--radius-24);
    margin-inline: var(--spacing-20);
}

main .section.margin-none {
    margin-inline: var(--spacing-20);
}

main .section.margin-small {
    margin-inline: var(--spacing-40);
}

main {
    max-width: 1366px;
    margin-inline: auto;
    justify-content: space-between;
}

main .section:not(.hero-container, .indication-card-container, .video-card-container) {
    padding-inline: 36px 24px;

    @media (width < 1024px) {
        padding-inline: 17px;
    }
}

main:has(> .section[class*="col-"]) {
    display: flex;
    column-gap: var(--spacing-24);
    flex-wrap: wrap;
    max-width: 1366px;
    margin-inline: auto;
    justify-content: space-between;
}

main:has(> .section[class*="col-"]) .section:not([class*="col-"]) {
    width: 100%;
}


.col-62 {
    flex: 0 1 calc(62.4% - var(--spacing-24) * 1 / 2);
}

.col-50 {
    flex: 0 1 calc(50% - var(--spacing-24) / 2);
}

.col-37 {
    flex: 0 1 calc(37.6% - var(--spacing-24) * 1 / 2);
}

.col-33 {
    flex: 0 1 calc(33.3% - var(--spacing-24) * 3 / 4);
}

@media (width < 768px) {
    main>.section[class*="col-"] {
        flex: 0 0 100%;
    }
}

/* Reset for editor containers */
[data-aue-resource] {
    margin-bottom: 1rem;
}

/* text styles */

/* Default paragraph */
p {
    margin-top: 0;
    margin-bottom: 1rem;
    font-family: var(--font-family-whitney);
    font-size: var(--aad-font-size-body-default);
    line-height: var(--aad-line-height-body-default);
    color: var(--aad-color-text-body);
}

/* Default headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 0;
    font-family: var(--font-family-whitney);
    font-weight: var(--font-weight-regular);
    color: var(--color-text-body);
    font-style: normal;
}

/* Heading sizes — per Figma AAD typography specs */
h1 {
    font-size: var(--aad-font-size-heading-h1);
    line-height: var(--aad-line-height-heading-h1);
}

h2 {
    font-size: var(--aad-font-size-heading-h2);
    line-height: var(--aad-line-height-heading-h2);
}

h3 {
    font-size: var(--aad-font-size-heading-h3);
    line-height: var(--aad-line-height-heading-h3);
}

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

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

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

.jumboheading {
    h1,
    h2,
    h3,
    h4 {
        font-size: var(--font-size-heading-jumbo);
        line-height: var(--line-height-heading-jumbo);
    }
}

.headingregular {
    h1,
    h2,
    h3,
    h4 {
        font-weight: var(--font-weight-regular);
    }
}

.headingbold {
    h1,
    h2,
    h3,
    h4 {
        font-weight: var(--font-weight-bold);
    }
}

.bodysmall p {
    font-size: var(--font-size-body-small);
    line-height: var(--line-height-body-small);
}

.bodycaption p {
    font-size: var(--font-size-body-caption);
    line-height: var(--line-height-body-caption);
}

.bodysmallregular p,
.bodycaptionregular p,
.bodyregular p {
    font-weight: var(--font-weight-regular);
}