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

@import url('./fonts.css');
@import url('./tokens.css');
@import url('./reset.css');
@import url('./base.css');
@import url('./typography.css');
@import url('./layout.css');
@import url('./utilities.css');

/* Critical global page shell */
body {
  display: none;
  min-height: 100%;
  margin: 0;
  background: rgb(248 253 255);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: var(--font-weight-regular);
  line-height: 1;
  text-rendering: optimizelegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

body.appear {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

body>div:has([data-testid="privacy-gear"]) {
  position: fixed;
  z-index: 10000;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
}

/* Prevent raw carousel rows from inflating the Universal Editor canvas. */
.hero-carousel[data-aue-resource]:not([data-block-status='loaded']) {
  height: 0;
  overflow: hidden;
  padding-bottom: 0;
  visibility: hidden;
}

header {
  min-height: 57px;
  height: auto;
}

@media (width >= 1024px) {
  header {
    min-height: 57px;
  }
}

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

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

.media-kit .section.breadcrumb-container {
  margin-top: 96px;
  padding-top: 66px;
}

.media-kit .section.hero-banner-container {
  margin-top: 0;
}

.media-kit .hero-banner .hero-banner-item{
  padding-top: 2rem;
  margin-bottom: 100px;
}

.media-kit .hero-banner .hero-banner-heading {
  margin: 0 0 1rem;
}

/* Shared 403, 404, and 500 error-page presentation */
main.error {
  background: var(--color-background-canvas);
}

main.error > .section {
  width: 100%;
  margin: 0;
}

main.error > .section > .default-content-wrapper {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 44px 16px 40px;
  text-align: center;
}

main.error .error-title {
  margin: 0;
  color: var(--color-text-primary);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
}

main.error .error-description {
  max-width: 644px;
  margin: 40px auto 0;
  color: var(--color-brand-primary-muted);
  font-size: 1rem;
  line-height: 1.75;
}

main.error .error-description a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (width >= 600px) {
  main.error > .section > .default-content-wrapper {
    padding-right: 32px;
    padding-left: 32px;
  }
}

@media (width >= 900px) {
  main.error > .section > .default-content-wrapper {
    padding: 107px 4.16vw 64px;
  }

  main.error .error-title {
    font-size: 3rem;
    line-height: 1.125;
  }

  main.error .error-description {
    font-size: var(--body-font-size-s);
    line-height: 2;
  }
}
