@import url('brand.css');
@import url('course.css');
@import url('landing.css');
@import url('story.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 {
  /* body sizes */
  --body-font-size-l: 20px;
  --body-font-size-m: 16px;
  --body-font-size-s: 14px;
  --body-font-size-xs: 13px;

  /* heading sizes (mobile; desktop values in brand.css) */
  --heading-font-size-xxl: 36px;
  --heading-font-size-xl: 30px;
  --heading-font-size-l: 24px;
  --heading-font-size-m: 20px;
  --heading-font-size-s: 18px;
  --heading-font-size-xs: 16px;

  /* arrow icon used by buttons and CTA links */
  --arrow-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.3 5.3 12 6.6l4.4 4.5H4v1.8h12.4L12 17.4l1.3 1.3L20 12z'/%3E%3C/svg%3E");
}

/* fallback fonts */
@font-face {
  font-family: fraunces-fallback;
  size-adjust: 96%;
  src: local('Georgia');
}

@font-face {
  font-family: source-sans-fallback;
  size-adjust: 93%;
  src: local('Arial');
}

@media (width >= 769px) {
  :root {
    /* body sizes */
    --body-font-size-l: 24px;
    --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);
  }
}

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);
  line-height: 1.5;
}

body.appear {
  display: block;
}

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

/* matches the header block's desktop breakpoint */
@media (width >= 1098px) {
  :root {
    --nav-height: 110px;
  }
}

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

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

/* headings: h1/h2 use the serif display face, h3–h6 the sans */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--heading-color);
  font-family: var(--body-font-family);
  font-weight: 600;
  line-height: 1.2;
  scroll-margin: calc(var(--nav-height) + 16px);
}

h1,
h2 {
  font-family: var(--heading-font-family);
  font-weight: 400;
  letter-spacing: -0.01em;
}

h1 {
  margin-bottom: 24px;
  font-size: var(--heading-font-size-xxl);
}

h2 { font-size: var(--heading-font-size-xl); }
h3 { font-size: var(--heading-font-size-l); }

h4 {
  margin-bottom: 18px;
  font-size: var(--heading-font-size-m);
}

h5 {
  margin-bottom: 16px;
  font-size: var(--heading-font-size-s);
}

h6 {
  margin-bottom: 16px;
  font-size: var(--heading-font-size-xs);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

p,
dl,
ol,
ul,
pre,
blockquote {
  margin-top: 0;
  margin-bottom: 24px;
}

ul,
ol {
  padding-left: 1.5em;
}

li {
  margin-bottom: 12px;
}

li > ul,
li > ol {
  margin-top: 12px;
  margin-bottom: 0;
}

strong,
b {
  font-weight: 700;
}

blockquote {
  margin-left: 0;
  margin-right: 0;
  color: var(--heading-color);
  font-family: var(--heading-font-family);
  font-size: var(--body-font-size-l);
  font-style: italic;
  line-height: 1.3;
}

hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--uom-grey-border);
}

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

pre {
  padding: 16px;
  background-color: var(--light-color);
  overflow-x: auto;
  white-space: pre;
}

main > div {
  margin: 40px 16px;
}

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

input,
textarea,
select {
  box-sizing: border-box;
  border: 1px solid var(--uom-grey-border);
  border-radius: 0;
  padding: 12px 16px;
  background-color: var(--background-color);
  color: var(--text-color);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--focus-color);
  outline-offset: 0;
}

/* links */
a:any-link {
  color: var(--link-color);
  font-weight: 600;
  text-decoration: underline;
  overflow-wrap: break-word;
  transition: color 0.2s;
}

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

a:focus-visible {
  outline: 2px solid var(--focus-color);
  outline-offset: 2px;
}

/* buttons */
p.button-wrapper {
  margin: 12px 0;
}

a.button:any-link,
button.button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 12px 16px 12px 12px;
  font: inherit;
  font-size: var(--body-font-size-m);
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

a.button::before,
button.button::before {
  content: '';
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background-color: currentcolor;
  mask: var(--arrow-icon) center / contain no-repeat;
}

a.button:focus-visible,
button.button:focus-visible {
  outline: 2px solid var(--focus-color);
  outline-offset: 2px;
  text-decoration: underline;
}

a.button[aria-disabled="true"],
button.button:disabled {
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.5;
}

/* primary: cyan (e.g. "How to apply") */
a.button.primary,
button.button.primary {
  background-color: var(--uom-cyan);
  color: var(--uom-navy);
}

a.button.primary:hover,
button.button.primary:hover {
  background-color: var(--uom-cyan-light);
  color: var(--uom-navy);
}

/* secondary: sage (e.g. "Enquire", "Learn more") */
a.button.secondary,
button.button.secondary {
  background-color: var(--uom-sage);
  color: var(--uom-navy);
}

a.button.secondary:hover,
button.button.secondary:hover {
  background-color: var(--uom-sage-light);
  color: var(--uom-navy);
}

/* accent: navy, for use on light backgrounds */
a.button.accent,
button.button.accent {
  background-color: var(--uom-navy);
  color: #fff;
}

a.button.accent:hover,
button.button.accent:hover {
  background-color: var(--uom-navy-light);
  color: #fff;
}

main img {
  max-width: 100%;
  width: auto;
  height: auto;
}

.icon {
  display: inline-block;
  height: 24px;
  width: 24px;
}

.icon img {
  height: 100%;
  width: 100%;
}

/* tables in default content */
main .default-content-wrapper table {
  width: 100%;
  margin-bottom: 24px;
  border-collapse: collapse;
}

main .default-content-wrapper th,
main .default-content-wrapper td {
  padding: 16px;
  border-bottom: 1px solid var(--uom-grey-border);
  text-align: left;
  vertical-align: top;
}

main .default-content-wrapper th {
  background-color: var(--uom-navy);
  color: #fff;
  font-weight: 600;
}

main .default-content-wrapper tbody tr:nth-child(even) {
  background-color: var(--uom-grey);
}

/* sections */
main > .section {
  margin: 40px 0;
}

main > .section > div {
  max-width: var(--content-max-width);
  margin: auto;
  padding: 0 16px;
}

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

main > .section > .default-content-wrapper > * {
  max-width: var(--text-max-width);
}

main > .section > .default-content-wrapper > h1 + p {
  color: var(--heading-color);
  font-size: var(--body-font-size-l);
  font-weight: 600;
  line-height: 1.2;
}

@media (width >= 769px) {
  main > .section {
    margin: var(--section-padding) 0;
  }

  main > .section > div {
    padding: 0 32px;
  }
}

@media (width >= 1304px) {
  main > .section > div {
    padding: 0;
  }
}

/* section metadata: background styles */
main .section.light,
main .section.highlight,
main .section.grey,
main .section.sage,
main .section.cream,
main .section.navy,
main .section.dark,
main .section.teal {
  margin: 0;
  padding: 40px 0;
}

main .section.light,
main .section.highlight,
main .section.grey {
  background-color: var(--uom-grey);
}

main .section.sage {
  background-color: var(--uom-sage-pale);
}

main .section.cream {
  background-color: var(--uom-cream);
}

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

main .section.teal {
  background-color: var(--uom-teal);
  color: #fff;
}

main .section.navy :is(h1, h2, h3, h4, h5, h6),
main .section.dark :is(h1, h2, h3, h4, h5, h6),
main .section.teal :is(h1, h2, h3, h4, h5, h6),
main .section.navy a:any-link:not(.button),
main .section.dark a:any-link:not(.button),
main .section.teal a:any-link:not(.button) {
  color: #fff;
}

main .section.navy a:not(.button):hover,
main .section.dark a:not(.button):hover,
main .section.teal a:not(.button):hover {
  color: var(--link-on-dark-hover-color);
}

main .section.navy a.button.accent,
main .section.dark a.button.accent,
main .section.teal a.button.accent {
  background-color: #fff;
  color: var(--uom-navy);
}

@media (width >= 769px) {
  main .section.light,
  main .section.highlight,
  main .section.grey,
  main .section.sage,
  main .section.cream,
  main .section.navy,
  main .section.dark,
  main .section.teal {
    padding: var(--section-padding) 0;
  }
}

/* section style: centered intro (heading + lead paragraph above a block) */
main > .section.centered > .default-content-wrapper {
  text-align: center;
}

main > .section.centered > .default-content-wrapper > * {
  margin-inline: auto;
}

/* page header band: hero page header followed by search and quick links */
main > .section:has(> .hero-wrapper .hero-page-header) {
  padding-top: 0;
}

main > .section:has(> .hero-wrapper .hero-page-header) > .search-wrapper,
main > .section:has(> .hero-wrapper .hero-page-header) > .search-wrapper + .default-content-wrapper {
  background-color: var(--uom-navy-dark);
}

main > .section:has(> .hero-wrapper .hero-page-header) > .search-wrapper + .default-content-wrapper {
  padding-top: 24px;
  padding-bottom: 32px;
}

main > .section:has(> .hero-wrapper .hero-page-header) > .search-wrapper + .default-content-wrapper > :is(p, ul) {
  display: inline;
  margin: 0;
  padding: 0;
}

main > .section:has(> .hero-wrapper .hero-page-header) > .search-wrapper + .default-content-wrapper li {
  display: inline;
  margin-right: 8px;
}

main > .section:has(> .hero-wrapper .hero-page-header) > .search-wrapper + .default-content-wrapper a:any-link {
  font-weight: 600;
  text-decoration: underline;
}

main > .section:has(> .hero-wrapper .hero-page-header) .hero-page-header .hero-content {
  padding-bottom: 24px;
}

main > .section:has(> .hero-wrapper .hero-page-header) > .cards-wrapper {
  padding-top: 40px;
}

/* intro column beside a row of quotes */
main > .section:has(> .default-content-wrapper + .quote-wrapper + .quote-wrapper) > .default-content-wrapper h2 {
  margin-bottom: 20px;
  font-family: var(--body-font-family);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: normal;
}

main > .section:has(> .default-content-wrapper + .quote-wrapper + .quote-wrapper) > .default-content-wrapper p > a:only-child:any-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  font-weight: 600;
  text-decoration: none;
}

main > .section:has(> .default-content-wrapper + .quote-wrapper + .quote-wrapper) > .default-content-wrapper p > a:only-child::before {
  content: '';
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  background-color: currentcolor;
  mask: var(--arrow-icon) center / contain no-repeat;
}

main > .section:has(> .default-content-wrapper + .quote-wrapper + .quote-wrapper) > .default-content-wrapper p > a:only-child:hover {
  text-decoration: underline;
}

@media (width >= 600px) {
  main > .section:has(> .default-content-wrapper + .quote-wrapper + .quote-wrapper) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    padding-inline: 16px;
  }

  main > .section:has(> .default-content-wrapper + .quote-wrapper + .quote-wrapper) > div {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  main > .section:has(> .default-content-wrapper + .quote-wrapper + .quote-wrapper) > .default-content-wrapper {
    grid-column: 1 / -1;
    margin-bottom: 24px;
  }
}

@media (width >= 769px) {
  main > .section:has(> .hero-wrapper .hero-page-header) {
    display: grid;
    position: relative;
    isolation: isolate;
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 56px;
  }

  main > .section:has(> .hero-wrapper .hero-page-header)::before {
    content: '';
    grid-area: 1 / 1 / 4 / 2;
    z-index: -1;
    background-color: var(--uom-navy-dark);
  }

  main > .section:has(> .hero-wrapper .hero-page-header) > .hero-wrapper,
  main > .section:has(> .hero-wrapper .hero-page-header) .hero.hero-page-header {
    display: contents;
  }

  main > .section:has(> .hero-wrapper .hero-page-header) .hero-page-header .hero-content {
    grid-area: 1 / 1;
    box-sizing: border-box;
    width: 100%;
    min-height: 0;
    margin-inline: auto;
    padding-bottom: 48px;
  }

  main > .section:has(> .hero-wrapper .hero-page-header) .hero-page-header .hero-media {
    grid-area: 1 / 1 / 4 / 2;
  }

  main > .section:has(> .hero-wrapper .hero-page-header) > .search-wrapper {
    grid-area: 2 / 1;
    box-sizing: border-box;
    width: 100%;
    background-color: transparent;
  }

  main > .section:has(> .hero-wrapper .hero-page-header) > .search-wrapper + .default-content-wrapper {
    grid-area: 3 / 1;
    box-sizing: border-box;
    width: 100%;
    padding-bottom: 120px;
    background-color: transparent;
  }

  main > .section:has(> .hero-wrapper .hero-page-header) > .search-wrapper + .default-content-wrapper > * {
    max-width: 50%;
  }

  main > .section:has(> .hero-wrapper .hero-page-header) > .cards-wrapper {
    grid-area: 4 / 1;
    box-sizing: border-box;
    width: 100%;
    padding-top: 56px;
  }

  main > .section:has(> .default-content-wrapper + .quote-wrapper + .quote-wrapper) {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    column-gap: 24px;
    padding-inline: 32px;
  }

  main > .section:has(> .default-content-wrapper + .quote-wrapper + .quote-wrapper) > div {
    flex: 0 1 393px;
    min-width: 0;
    margin: 0;
    padding: 0;
  }

  main > .section:has(> .default-content-wrapper + .quote-wrapper + .quote-wrapper) > .default-content-wrapper {
    flex-basis: 357px;
    margin-right: 48px;
    margin-bottom: 0;
  }

  main > .section:has(> .default-content-wrapper + .quote-wrapper + .quote-wrapper) > .default-content-wrapper h2 {
    font-size: 32px;
  }

  /* white gap between a navy band and the image/text tiles that follow it */
  main > .section.navy + .section:has(> .columns-wrapper .columns.split) {
    margin-top: 48px;
  }
}
