/* The header of the site: the brand, the sections, Get started, the profile; a menu on a narrow
   screen. It stays at the top while the page scrolls. */

#fullHeightElement {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.sh {
    --sh-h: 56px;
    --sh-accent: #13d4e2;
    --sh-text: #e6eef0;
    --sh-muted: #8a9aa0;
    --sh-border: #20272b;
    background: rgba(13, 16, 18, 0.86);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--sh-border);
    font-family: 'Roboto', system-ui, sans-serif;
    transition: box-shadow 0.2s;
}

.sh.sh-scrolled {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

/* The open menu covers the page: the page is not seen through it */
.sh.sh-open {
    background: #0d1012;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.sh-in {
    max-width: 1320px;
    height: var(--sh-h);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 28px;
    box-sizing: border-box;
}

.sh a {
    text-decoration: none;
}

/* The brand */

.sh-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--sh-text);
    justify-self: start;
}

.sh-brand img {
    width: 30px;
    height: 30px;
    display: block;
}

.sh-name {
    font-family: 'Roboto Mono', monospace;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* The sections */

.sh-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.sh-nav a {
    position: relative;
    color: var(--sh-muted);
    font-size: 14.5px;
    font-weight: 400;
    padding: 8px 12px;
    border-radius: 8px;
    transition: color 0.12s, background 0.12s;
}

.sh-nav a:hover {
    color: var(--sh-text);
    background: rgba(255, 255, 255, 0.04);
}

.sh-nav a.sh-current {
    color: var(--sh-text);
}

.sh-nav a.sh-current::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -9px;
    height: 2px;
    border-radius: 2px;
    background: var(--sh-accent);
}

/* The right side */

.sh-right {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: end;
}

.sh-cta {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 16px;
    border-radius: 8px;
    background: #0e5f66;
    color: var(--sh-text) !important;
    font-size: 14px;
    font-weight: 400;
    transition: background 0.12s;
}

.sh-cta:hover {
    background: #12737b;
}

.sh-icon,
.sh-burger {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--sh-border);
    background: none;
    color: var(--sh-muted);
    cursor: pointer;
    padding: 0;
    transition: color 0.12s, border-color 0.12s;
}

.sh-icon:hover,
.sh-burger:hover {
    color: var(--sh-text);
    border-color: #36424a;
}

.sh-icon svg,
.sh-burger svg {
    display: block;
}

.sh-burger {
    display: none;
}

.sh-burger path {
    transition: transform 0.2s, opacity 0.2s;
    transform-origin: 12px 12px;
}

.sh.sh-open .sh-b1 {
    transform: translateY(5px) rotate(45deg);
}

.sh.sh-open .sh-b2 {
    opacity: 0;
}

.sh.sh-open .sh-b3 {
    transform: translateY(-5px) rotate(-45deg);
}

/* The menu of a narrow screen */

.sh-mobile {
    display: flex;
    flex-direction: column;
    padding: 6px 12px 14px;
    border-top: 1px solid var(--sh-border);
    animation: sh-down 0.16s ease-out;
}

.sh-mobile[hidden] {
    display: none;
}

.sh-mobile a {
    color: var(--sh-muted);
    font-size: 17px;
    padding: 12px 10px;
    border-radius: 8px;
}

.sh-mobile a:hover,
.sh-mobile a.sh-current {
    color: var(--sh-text);
    background: rgba(255, 255, 255, 0.04);
}

.sh-mobile a.sh-current {
    box-shadow: inset 3px 0 0 var(--sh-accent);
}

@keyframes sh-down {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
}

@media (max-width: 820px) {
    .sh-in {
        grid-template-columns: 1fr auto;
        gap: 12px;
        padding: 0 14px;
    }

    .sh-nav,
    .sh-cta {
        display: none;
    }

    .sh-burger {
        display: flex;
    }
}
