/* CMS-managed main navigation + page content */

.cms-nav {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cms-nav-item {
  position: relative;
}

.cms-nav-item > a {
  display: block;
  padding: 10px 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.cms-nav-item.has-children > a::after {
  content: '';
  display: inline-block;
  margin-left: 6px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  vertical-align: middle;
}

.cms-subnav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  min-width: 220px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.cms-nav-item:hover > .cms-subnav,
.cms-nav-item:focus-within > .cms-subnav {
  display: block;
}

.cms-subnav a {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  white-space: nowrap;
}

.cms-subnav a:hover,
.cms-subnav a:focus {
  background: #f0f5f0;
}

/* Stack the menu when the desktop nav collapses */
@media (max-width: 900px) {
  .cms-nav {
    flex-flow: column nowrap;
    align-items: stretch;
  }

  .cms-subnav {
    display: block;
    position: static;
    border: none;
    box-shadow: none;
    padding-left: 16px;
  }
}

/* Basic CMS page content */
article.cms-page {
  padding: 12px 0 32px;
}

article.cms-page img {
  max-width: 100%;
  height: auto;
}
