/* exploit.cat shared navbar */
#navbar.site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    height: auto;
    min-height: 0;
    padding: 0;
    margin: 0;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 11, 0.82);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border-bottom: none;
}

.site-nav.nav-on-blog {
    position: fixed;
}
.site-nav.nav-on-git {
    position: sticky;
}

.site-nav a,
.site-nav a:hover,
.site-nav a:focus {
    text-decoration: none;
}

.nav-logo-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
#nav-line {
    position: absolute;
    right: calc(clamp(24px, 6vw, 80px) - 16px);
    top: 56%;
    height: 2px;
    background: #e8e8ed;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-logo-link {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: clamp(24px, 6vw, 80px);
}
.logo-text {
    position: relative;
    display: inline-block;
    font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
    font-size: 48px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: #e8e8ed;
    -webkit-text-stroke: 1px #e8e8ed;
    paint-order: stroke fill;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: color 0.2s ease;
}
.logo-dot {
    color: #00f0ff;
    -webkit-text-stroke: 0;
}

.nav-tab-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px clamp(24px, 6vw, 80px) 10px;
}
.nav-tabs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: -12px;
}
.nav-link {
    position: relative;
    display: inline-block;
    padding: 2px 12px;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #70708a;
    transition: color 0.15s ease;
}
.nav-link:not(.nav-active)::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 1px;
    background: #00f0ff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link:not(.nav-active):hover {
    color: #e8e8ed;
}
.nav-link:not(.nav-active):hover::after {
    transform: scaleX(1);
}
.nav-link.nav-active {
    color: #0a0a0b;
    z-index: 0;
}
.nav-link.nav-active::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 2px 6px;
    background: #e8e8ed;
}

.nav-cluster {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-icon {
    display: inline-flex;
    transform: translateY(-10px);
}
.icon-hollow svg {
    overflow: visible;
}
.icon-hollow svg path {
    fill: #70708a;
    stroke: #e8e8ed;
    stroke-linejoin: round;
    stroke-linecap: round;
    stroke-dasharray: 101;
    stroke-dashoffset: 101;
    transition:
        fill 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        stroke-dashoffset 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.icon-hollow:hover svg path {
    fill: transparent;
    stroke-dashoffset: 0;
}
.nav-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(-10px);
}

.nav-sep {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 14px;
    line-height: 20px;
    color: #2a2a33;
    transform: translateY(-10px);
    margin: 0 -8px 0 -12px;
    user-select: none;
}
.nav-signin {
    margin-right: -12px;
}

.nav-ctl {
    display: inline-flex;
    align-items: center;
    color: #70708a;
    cursor: pointer;
    transition: color 0.15s ease;
}
.nav-ctl:hover {
    color: #e8e8ed;
}
.nav-dropdown {
    display: inline-flex;
    align-items: center;
    height: 24px;
}
.nav-dropdown summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    padding: 0;
}
.nav-dropdown summary::-webkit-details-marker {
    display: none;
}
.nav-dropdown .content {
    background: #111114 !important;
    border: 1px solid #1e1e24;
}

@media (max-width: 639.98px) {
    .nav-icon-rss {
        display: none;
    }
    .site-nav.nav-on-git .nav-icon {
        display: none;
    }
    .site-nav.nav-on-blog .nav-controls {
        display: none;
    }
    .nav-sep {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-tabs {
        gap: 2px;
        margin-left: -7.2px;
    }
    .nav-link {
        padding: 2px 7.2px;
        letter-spacing: 0.025em;
    }
    .nav-link:not(.nav-active)::after {
        left: 7.2px;
        right: 7.2px;
    }
    .nav-link.nav-active::before {
        inset: 2px 3.2px;
    }
}
