/* The nextleap.app site header (partials/nl-header.hbs). Values follow odin's PageHeader.css and
   DesktopHeaderContainerComponent.css. The theme sets html{font-size:62.5%}, so sizes here are in px. */

.nl-head {
    position: relative;
    z-index: 1015;
    display: flex;
    align-items: center;
    height: 100px;
    background: #fff;
    color: #212121;
    font-family: "Lexend Deca", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.nl-head a,
.nl-drawer a {
    color: inherit;
    text-decoration: none;
}

.nl-head button,
.nl-drawer button {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.nl-head-logo {
    flex-shrink: 0;
    width: 120px;
    height: 32px;
}

.nl-head-logo img {
    width: 120px;
    height: 32px;
}

.nl-head-nav {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.nl-head-account {
    display: flex;
    align-items: center;
    height: 100%;
}

.nl-head-nav > *,
.nl-head-account > * {
    margin-left: 25px;
    padding-right: 25px;
}

.nl-head-item {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.nl-head [hidden],
.nl-drawer [hidden] {
    display: none !important;
}

.nl-head-link {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
    line-height: 134%;
    letter-spacing: 0.25px;
    white-space: nowrap;
}

.nl-head-link:hover {
    text-decoration: underline;
}

.nl-caret::after {
    content: "";
    display: inline-block;
    margin-left: 8px;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-left: 0.3em solid transparent;
}

/* Desktop dropdowns: open while the item is hovered or has focus. */
.nl-menu {
    position: absolute;
    top: 100%;
    display: none;
    box-sizing: border-box;
    border: 1px solid #000;
    background: #fff;
    color: #000;
}

.nl-has-menu:hover > .nl-menu,
.nl-has-menu:focus-within > .nl-menu {
    display: flex;
}

.nl-courses-menu {
    left: -32px;
    flex-direction: row;
}

.nl-courses-block {
    display: flex;
    flex-direction: column;
    min-width: 300px;
    padding: 32px 20px 32px 32px;
}

.nl-courses-block + .nl-courses-block {
    border-left: 1px solid #000;
}

.nl-courses-title {
    font-size: 15px;
    font-weight: 500;
    line-height: 160%;
    letter-spacing: 0.25px;
}

.nl-courses-subtitle {
    font-size: 13px;
    font-weight: 500;
    line-height: 150%;
    opacity: 0.6;
}

.nl-courses-divider {
    height: 1px;
    margin: 8px 0 4px;
    background: #000;
    opacity: 0.2;
}

.nl-course {
    display: flex;
    align-items: center;
    margin: 8px 0 0 -12px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 19px;
    font-weight: 500;
    line-height: 145%;
    letter-spacing: 0.15px;
    white-space: nowrap;
}

.nl-course::after {
    content: "";
    width: 13px;
    height: 13px;
    margin-left: 22px;
    background: url("https://assets.nextleap.app/images/arrow_right_alt_c2c3edd0-3114-4f02-9147-151f72114d55.svg") center / contain no-repeat;
    visibility: hidden;
}

.nl-course:hover {
    background: #f3f3f3;
}

.nl-course:hover::after {
    visibility: visible;
}

.nl-profile-menu {
    right: 0;
    flex-direction: column;
    min-width: 280px;
    padding: 20px 0 12px;
}

.nl-profile-name,
.nl-profile-email {
    padding: 0 21px;
    letter-spacing: 0.25px;
    line-height: 160%;
    overflow-wrap: anywhere;
}

.nl-profile-name {
    font-size: 17px;
    font-weight: 500;
    color: #1c1b1f;
}

.nl-profile-email {
    margin-bottom: 8px;
    font-size: 15px;
    color: rgba(28, 27, 31, 0.6);
}

.nl-head .nl-profile-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 21px;
    font-size: 17px;
    font-weight: 500;
    color: #1c1b1f;
    text-align: left;
}

.nl-profile-link:hover {
    text-decoration: underline;
}

.nl-profile-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    padding: 12px 20px 0 21px;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    font-size: 13px;
    opacity: 0.6;
}

.nl-profile-footer a:hover {
    text-decoration: underline;
}

/* Mobile: logo and a menu button that opens a full-width drawer. */
.nl-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    margin-left: auto;
    background: url("https://assets.nextleap.app/images/star-black-9d4aaf636700.svg") center / contain no-repeat !important;
}

.nl-burger span {
    display: block;
    width: 16px;
    height: 2px;
    margin: 2px 0;
    background: #fff;
    transition: transform 0.3s, opacity 0.3s;
}

.nl-burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(-45deg);
}

.nl-burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nl-burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(45deg);
}

.nl-drawer {
    position: fixed;
    top: 76px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1014;
    overflow-y: auto;
    padding: 8px 24px 48px;
    background: #fff;
    color: #212121;
    font-family: "Lexend Deca", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.nl-drawer[hidden] {
    display: none;
}

.nl-drawer-link {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
}

.nl-drawer-group > summary {
    list-style: none;
}

.nl-drawer-group > summary::-webkit-details-marker {
    display: none;
}

.nl-drawer-group > summary::after {
    content: "";
    float: right;
    margin-top: 10px;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-left: 0.3em solid transparent;
    transition: transform 0.2s;
}

.nl-drawer-group[open] > summary::after {
    transform: rotate(180deg);
}

.nl-drawer-subtitle {
    padding: 16px 0 4px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0.6;
}

.nl-drawer .nl-drawer-course {
    display: block;
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
}

@media (max-width: 1024px) {
    .nl-head {
        height: 76px;
    }

    .nl-head-nav,
    .nl-head-account {
        display: none;
    }

    .nl-burger {
        display: flex;
    }
}

@media (min-width: 1025px) {
    .nl-drawer {
        display: none !important;
    }
}

/* odin's padding-right-64-left-64, shared by the header and footer: 64px, 24px on phones, and a centred
   1200px column on wide screens. */
.nl-page-padding {
    padding-right: 64px;
    padding-left: 64px;
}

@media (max-width: 768px) {
    .nl-page-padding {
        padding-right: 24px;
        padding-left: 24px;
    }
}

@media (min-width: 1280px) {
    .nl-page-padding {
        padding-right: calc((100vw - 1200px) / 2);
        padding-left: calc((100vw - 1200px) / 2);
    }
}

body.nl-drawer-open {
    overflow: hidden;
}
