/*
 * 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);
    }

}

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;
}

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

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

@media (width < 1024px) {
        main .section.nopadding{
        padding-inline: 0 !important;
    }
}

html:not(.error-page) body:not(.homepage) main .section:not(.isiinfo-container .isiinfo-wrapper) {
    padding-inline: 35px 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;
}

/* stylelint-disable-next-line no-descending-specificity */
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-figma);
    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-figma);
    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);
}

sup {
    top: -0.5em;
    position: relative;
    vertical-align: baseline;
    line-height: 0;
    font-size: 0.75em;
}

@media (width >= 992px){
    sup{
        font-size: 1.125rem;
    }
}

/* error page styles starts */
/* stylelint-disable-next-line no-descending-specificity */
main.error main{
    @media (width >= 992px){
        padding-inline: 2.1875rem 1.875rem !important;
        padding-top: 1.875rem;
        padding-right: 1.875rem !important;
    }

    @media (width < 1024px) and (width >= 768px){
        max-width: 720px !important;
    }

    @media (width < 768px){
        padding-inline: 15px !important;
    }
}

main.error main div.section:nth-child(1) .default-content-wrapper h1{
    font-family: var(--font-family-whitney);
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 700;
    color: var(--color-sage-base);
    margin-bottom: 0.5rem;
    text-align: left;

    @media (width >= 992px){
        font-size: 1.75rem;
        line-height: 1.25;
    }

    @media (width >=1024px){
        margin-top:8px;

    }

    @media (width < 1024px){
        margin-top: 24px;
    }
    
}

main.error main div.section:nth-child(1) .default-content-wrapper p{
    font-size: 0.9375rem;
    line-height: 1.4;
    color: #414042;
    margin-bottom: 1.875rem;
    font-weight: 400;
    font-family: var(--font-family-whitney);
}

main.error main div.section:nth-child(1) .default-content-wrapper p strong::before{
    @media (width < 768px){
        content: "\A";
        white-space: pre;
    }
}

main.error main a.rex-button{
    margin-bottom: 10px;
    margin-top: 0;
    margin-inline:4px;
    font-family: var(--font-family-whitney);
    padding-block: 8px;
    width: auto;

    @media (width < 1024px){
        width: 100%;
        max-width: none;
        margin-inline: 0;
        min-height: 50px;
        margin-bottom: 30px;
    }

    @media (width >= 1024px){
        padding-left: 0.9375rem;
        padding-right: 0.9375rem;
        min-height: 40px;
    }
}

main.error main .section.col-33{
    @media(width < 1024px){
        flex:auto;
    }
}

main.error main .section.isiinfo-container{
    @media(width >=992px){
        margin-top: 222px;
    }
}

/* error page ends */