@import url('brand.css');

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

:root {
  /* colors */
  --light-color: #f5f5f5;
  --dark-color: var(--dark-bg);

  /* body sizes */
  --body-font-size-m: 18px;
  --body-font-size-s: 16px;
  --body-font-size-xs: 14px;

  /* heading sizes */
  --heading-font-size-xxl: var(--heading-size-xxl);
  --heading-font-size-xl: var(--heading-size-xl);
  --heading-font-size-l: var(--heading-size-l);
  --heading-font-size-m: var(--heading-size-m);
  --heading-font-size-s: var(--heading-size-s);
  --heading-font-size-xs: var(--heading-size-xs);

  /* nav heights */
  --breadcrumbs-height: 34px;
  --header-height: var(--nav-height);
}

/* fallback font */
@font-face {
  font-family: barlow-fallback;
  size-adjust: 97%;
  src: local('Arial');
}

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

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

body.appear {
  display: block;
}

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

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

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

@media (width >= 900px) {
  body[data-breadcrumbs] {
    --header-height: calc(var(--nav-height) + var(--breadcrumbs-height));
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0.8em;
  margin-bottom: 0.25em;
  font-family: var(--heading-font-family);
  font-weight: 600;
  line-height: 1.2;
  scroll-margin: 40px;
  color: var(--text-color);
}

h1 { font-size: var(--heading-font-size-xxl); }
h2 { font-size: var(--heading-font-size-xl); }
h3 { font-size: var(--heading-font-size-l); }
h4 { font-size: var(--heading-font-size-m); }
h5 { font-size: var(--heading-font-size-s); }
h6 { font-size: var(--heading-font-size-xs); }

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

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

input,
textarea,
select,
button {
  font: inherit;
}

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

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

/* buttons */
main .button-container {
  display: inline;
}

main a.button:any-link {
  box-sizing: border-box;
  display: inline-block;
  max-width: 100%;
  margin: 12px 0;
  border: 2px solid var(--link-color);
  border-radius: 4px;
  padding: 12px 24px;
  font-family: var(--body-font-family);
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  background-color: var(--link-color);
  color: #fff;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s;
}

main a.button:hover,
main a.button:focus {
  background-color: var(--brand-blue);
  border-color: var(--brand-blue);
  cursor: pointer;
}

main a.button.secondary {
  background-color: transparent;
  border: 2px solid var(--link-color);
  color: var(--link-color);
}

main a.button.secondary:hover,
main a.button.secondary:focus {
  background-color: var(--link-color);
  color: #fff;
}

button {
  font: inherit;
}

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

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: var(--section-padding);
  padding-left: 0;
  padding-right: 0;
}

main > .section > div {
  margin: auto;
  padding: 0 40px;
}

main > .section > .default-content-wrapper {
  max-width: 900px;
  text-align: left;
  padding-bottom: 200px;
}

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


/* section metadata */
main .section.light,
main .section.highlight {
  background-color: var(--light-color);
}

main .section.dark {
  background-color: var(--dark-bg);
  color: #fff;
}

main .section.dark h1,
main .section.dark h2,
main .section.dark h3,
main .section.dark h4,
main .section.dark h5,
main .section.dark h6 {
  color: #fff;
}

main .section.dark a:any-link {
  color: var(--brand-light-blue);
}
