/* Shared styles for marketing templates (home, course, marketing) */

header.page-header {
  position: unset;
}

body {
  background-color: #fff;
  background-image: none;
  font-family: "Source Sans 3 Variable", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
    "Open Sans", "Helvetica Neue", sans-serif;
  font-optical-sizing: auto;
  line-height: 1.5;
  min-width: 22em;
  padding-bottom: 0;
}

.wrap {
  max-width: 70em;
  margin: 0 auto;
}

a.button {
  display: inline-block;
  background-color: hsl(205, 100%, 25%);
  color: #fff;
  line-height: 1;
  text-decoration: none;
  padding: 0.5em 1em;
  border-radius: 0.25em;
}
a.button:hover {
  background-color: hsl(205, 100%, 35%);
}

header.home-header,
footer.home-footer {
  background-color: hsl(205, 70%, 50%);
  color: white;
}
header.home-header {
  border-bottom: 1px solid #fff;
}
footer.home-footer {
  border-top: 1px solid #fff;
}
header.home-header .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
footer.home-footer .row {
  text-align: center;
}
@media screen and (min-width: 55em) {
  footer.home-footer .row {
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

header.home-header svg {
  display: block;
  height: clamp(2em, 5vw, 2.5em);
}
header.home-header a:hover svg {
  opacity: 0.8;
}
header.home-header a.button {
  background-color: hsl(205, 100%, 100%);
  color: #000;
}
header.home-header a.button:hover {
  background-color: hsl(205, 100%, 95%);
  color: #000;
}

footer.home-footer a {
  text-decoration: none;
  color: inherit;
}
footer.home-footer .col.left p {
  font-size: clamp(1em, 3vw, 1.25em);
  color: #000;
  font-weight: 600;
}
footer.home-footer .col.right p {
  font-size: clamp(1em, 3vw, 1.125em);
}
footer.home-footer a:hover {
  opacity: 0.75;
}

/* Profile Button and Dropdown */
header.home-header .col.right {
  display: flex;
  align-items: center;
  gap: 0.5em;
  position: relative;
}
button.profile-button {
  padding: 0.125em;
  background-color: hsl(205, 100%, 75%);
  color: #000;
  border: none;
  border-radius: 0.25em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
button.profile-button:hover {
  background-color: hsl(205, 100%, 70%);
}
button.profile-button svg {
  width: 1em;
  height: 1em;
  display: block;
  fill: hsl(205, 50%, 25%);
}
.marketing-user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5em);
  background: hsl(205, 100%, 95%);
  display: none;
  min-width: 15em;
  border-radius: 0.25em;
  z-index: 100;
  padding: 1em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.marketing-user-menu.visible {
  display: block;
}
.marketing-user-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.marketing-user-menu ul li {
  border-top: hsl(205, 70%, 80%) 1px solid;
  padding: 0.5em 0;
  color: #000;
}
.marketing-user-menu ul li:first-child {
  border-top: none;
}
.marketing-user-menu ul li a {
  color: hsl(205, 100%, 25%);
  text-decoration: none;
}
.marketing-user-menu ul li a:hover {
  color: hsl(205, 100%, 35%);
}
