/*
 * 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: 3.5625rem;
  height: auto;
}

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

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

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

/* Shared 403, 404, and 500 error-page presentation */
main.error {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  background: var(--color-background-canvas);
}

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

body.media-kit main>.section {
  margin: 2rem 0;
}

main.error>.section:not(.locale-banner-wrapper) {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
}

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

.media-kit .section.breadcrumb-container {
  margin-top: 6rem;
  padding-top: 4.125rem;
}

.media-kit .section.breadcrumb-container .breadcrumb-wrapper {
  padding-bottom: 0;
  padding-top: 0;
}

.media-kit .hero-banner .hero-banner-item {
  padding-top: 0;
  margin-bottom: 6rem;
}

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

.media-kit .resource-image-tile .resource-image-tile-grid {
  gap: 1.5rem 2rem;
}

.media-kit .resource-image-tile .resource-image-tile-heading {
  margin: 0 0 0.5rem;
}

.media-kit .resource-image-tile .resource-image-tile-details {
  padding: 1.0625rem 1.5rem;
}

.media-kit .resource-image-tile .resource-image-tile-thumbnail img {
  object-position: 60.625% 51.5556%;
}

.media-kit .resource-image-tile .resource-image-tile-link {
  padding: 0;
}

.media-kit .section.resource-image-tile-container {
  margin: 0 0 2.5rem;
}

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: 21.5625rem;
  margin: 2.5rem 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: 0.1875rem;
}

.inp-suite .section.video-player-container {
  margin-top: 3rem;
}

.inp-suite .icon-card-container.text-block-container .text-block-wrapper {
  padding-left: 4.16vw;
  padding-right: 4.16vw;
}

.inp-suite .icon-card-container.text-block-container .text-block-wrapper .text-block-heading {
  font-size: 2.5rem;
  line-height: 3rem;
  font-weight: 700;
}

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

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

@media (width < 1024px) {
  .media-kit .section.hero-banner-container .breadcrumb-wrapper {
    padding-bottom: 4rem;
    padding-top: 0;
  }

  .media-kit .section.breadcrumb-container {
    margin-top: 0;
    padding-top: 1.375rem;
  }

  .media-kit .hero-banner .hero-banner-item {
    padding-top: 4rem;
    margin-bottom: 9rem;
  }

  .media-kit .hero-banner .hero-banner-description {
    width: 83.6%;
  }

  .inp-suite .section.cards-container .cards-wrapper {
    padding-left: 3.9vw;
    padding-right: 3.9vw;
  }

  .media-kit .resource-image-tile .resource-image-tile-grid {
    gap: 1.5rem;
  }
}

@media (width <=768px) {
  .media-kit .section.breadcrumb-container {
    margin-top: 0;
    padding-top: 1.375rem;
  }

  .media-kit .hero-banner .hero-banner-item {
    padding-top: 0;
    margin-bottom: 9rem;
  }

  .media-kit .hero-banner .hero-banner-content {
    margin: 2rem 0;
  }

  .media-kit .resource-image-tile .resource-image-tile-heading {
    line-height: 3rem;
  }

  .inp-suite .section.cards-container .cards-wrapper {
    padding: 0 1rem;
  }

  .media-kit .hero-banner .hero-banner-description {
    width: 100%;
  }
}

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

  main.error .error-description {
    max-width: 40.25rem;
  }
}

@media (width >=900px) {
  main.error>.section>.default-content-wrapper {
    padding-top: 6.6rem;
    padding-bottom: 4rem;
  }

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

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

@media (width > 1800px) {
  body:has(main.error) footer.footer-wrapper {
    margin-top: 0;
  }
}

main>.section.external-link-modal-container {
  margin: 0;
}
