.ntl-resource-page {
  background: var(--ntl-color-surface);
  min-height: 100vh;
}

header.ntl-resource-header {
  min-height: 120px;
  padding-left: clamp(24px, 4vw, 72px);
  padding-right: clamp(24px, 4vw, 72px);
}

.ntl-resource-header__brand {
  align-items: center;
  color: var(--ntl-color-text);
  display: flex;
  flex: 0 1 auto;
  gap: 22px;
  min-width: 0;
  text-decoration: none;
}
.ntl-resource-header__brand img {
  flex: 0 0 auto;
  height: 58px;
  object-fit: contain;
  width: 58px;
}
.ntl-resource-header__brand span {
  font-size: 1.6875rem;
  line-height: var(--ntl-line-height-heading);
}
.ntl-resource-header__brand:hover, .ntl-resource-header__brand:focus {
  color: var(--ntl-color-primary);
  text-decoration: none;
}

.ntl-resource-header__links {
  align-items: center;
  display: flex;
  gap: 30px;
  margin-left: auto;
}
.ntl-resource-header__links a {
  align-items: center;
  color: var(--ntl-color-primary);
  display: inline-flex;
  font-size: 1.1875rem;
  font-weight: 700;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}
.ntl-resource-header__links img {
  height: 34px;
  object-fit: contain;
  width: auto;
}

.ntl-resource-header .ntl-header-actions {
  margin-left: 32px;
}

.ntl-resource-header__account {
  min-width: 150px;
}

.ntl-resource-global-menu .ntl-drawer-related,
.ntl-resource-global-menu .ntl-drawer-action {
  display: none;
}

.ntl-resource-shell {
  align-items: stretch;
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  min-height: calc(100vh - 120px);
}

.ntl-resource-sidebar {
  background: var(--ntl-color-background-white);
  border-right: 1px solid #eee1db;
}

.ntl-resource-sidebar__disclosure {
  height: 100%;
}
.ntl-resource-sidebar__disclosure > summary {
  display: none;
}

.ntl-resource-sidebar nav {
  position: sticky;
  top: 0;
}

.ntl-resource-sidebar a,
.ntl-resource-sidebar summary {
  color: var(--ntl-color-text-dark);
  text-decoration: none;
}

.ntl-resource-sidebar__home {
  border-bottom: 1px solid #eee1db;
  display: block;
  font-size: var(--ntl-font-size-h4);
  font-weight: 700;
  padding: 24px 28px;
}

.ntl-resource-sidebar__home.is-active,
.ntl-resource-sidebar a.is-active {
  border-left: 5px solid var(--ntl-color-primary);
  color: var(--ntl-color-primary);
}

.ntl-resource-sidebar__groups,
.ntl-resource-sidebar__groups ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ntl-resource-sidebar__groups > li {
  border-bottom: 1px solid #eee1db;
}
.ntl-resource-sidebar__groups > li > a {
  display: block;
  font-size: var(--ntl-font-size-h4);
  padding: 22px 28px;
}

.ntl-resource-sidebar__groups details > summary {
  cursor: pointer;
  font-size: var(--ntl-font-size-h4);
  font-weight: 700;
  list-style: none;
  padding: 22px 54px 22px 28px;
  position: relative;
}
.ntl-resource-sidebar__groups details > summary::-webkit-details-marker {
  display: none;
}
.ntl-resource-sidebar__groups details > summary::after {
  border-bottom: 4px solid var(--ntl-color-primary);
  border-right: 4px solid var(--ntl-color-primary);
  content: "";
  height: 14px;
  position: absolute;
  right: 30px;
  top: 24px;
  transform: rotate(45deg);
  transition: transform 160ms ease;
  width: 14px;
}

.ntl-resource-sidebar__groups details[open] > summary::after {
  transform: translateY(7px) rotate(225deg);
}

.ntl-resource-sidebar__groups details > ul {
  padding-bottom: 14px;
}

.ntl-resource-sidebar__groups details a {
  display: block;
  font-size: var(--ntl-font-size-body);
  padding: 13px 28px;
}

.ntl-resource-sidebar__groups details ul ul a {
  font-size: var(--ntl-font-size-small);
  padding-left: 48px;
}

.ntl-resource-sidebar a:hover,
.ntl-resource-sidebar a:focus,
.ntl-resource-sidebar summary:hover,
.ntl-resource-sidebar summary:focus {
  color: var(--ntl-color-primary);
}

.ntl-resource-main {
  min-width: 0;
  overflow: hidden;
}

@media (max-width: 1100px) {
  .ntl-resource-header__links {
    display: none;
  }
  .ntl-resource-header .ntl-header-actions {
    margin-left: auto;
  }
  .ntl-resource-global-menu .ntl-drawer-related,
  .ntl-resource-global-menu .ntl-drawer-action {
    display: block;
  }
}
@media (max-width: 1024px) {
  header.ntl-resource-header {
    min-height: var(--ntl-mobile-header-height);
  }
  .ntl-resource-header__brand {
    gap: 10px;
  }
  .ntl-resource-header__brand img {
    height: 40px;
    width: 40px;
  }
  .ntl-resource-header__brand span {
    font-size: 1.125rem;
  }
  .ntl-resource-header__account {
    display: none;
  }
  .ntl-resource-shell {
    display: block;
    min-height: calc(100vh - var(--ntl-mobile-header-height, 80px));
  }
  .ntl-resource-sidebar {
    border-bottom: 1px solid #eee1db;
    border-right: 0;
  }
  .ntl-resource-sidebar__disclosure {
    height: auto;
  }
  .ntl-resource-sidebar__disclosure > summary {
    background: var(--ntl-color-background-white);
    color: var(--ntl-color-text-dark);
    cursor: pointer;
    display: block;
    font-size: var(--ntl-font-size-body);
    font-weight: 700;
    list-style: none;
    padding: 18px 56px 18px 24px;
    position: relative;
  }
  .ntl-resource-sidebar__disclosure > summary::-webkit-details-marker {
    display: none;
  }
  .ntl-resource-sidebar__disclosure > summary::after {
    border-bottom: 3px solid var(--ntl-color-primary);
    border-right: 3px solid var(--ntl-color-primary);
    content: "";
    height: 12px;
    position: absolute;
    right: 28px;
    top: 19px;
    transform: rotate(45deg);
    width: 12px;
  }
  .ntl-resource-sidebar__disclosure[open] > summary::after {
    top: 25px;
    transform: rotate(225deg);
  }
  .ntl-resource-sidebar nav {
    max-height: min(65vh, 620px);
    overflow-y: auto;
    position: static;
  }
  .ntl-resource-sidebar__home,
  .ntl-resource-sidebar__groups > li > a,
  .ntl-resource-sidebar__groups details > summary {
    font-size: var(--ntl-font-size-body);
    padding-left: 24px;
  }
}
@media (max-width: 520px) {
  header.ntl-resource-header {
    padding-left: 18px;
    padding-right: 18px;
  }
  .ntl-resource-header__brand span {
    font-size: 16px;
    overflow-wrap: anywhere;
  }
}
