:root {
    --pk-nav-surface: rgba(16, 24, 39, .96);
    --pk-nav-border: rgba(255, 255, 255, .12);
    --pk-nav-text: #ffffff;
    --pk-nav-muted: rgba(255, 255, 255, .72);
    --pk-nav-accent: #14b8a6;
    --pk-nav-link-active: #fbbf24;
}

.has-site-nav {
    padding-top: calc(64px + env(safe-area-inset-top, 0px));
}

.pk-site-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1030;
    width: 100%;
    border-bottom: 1px solid var(--pk-nav-border);
    background: var(--pk-nav-surface);
    backdrop-filter: blur(14px);
    box-shadow: 0 14px 32px rgba(16, 24, 39, .26);
    padding-top: env(safe-area-inset-top, 0px);
}

.pk-site-nav-inner {
    max-width: 1120px;
    min-height: 64px;
    margin: 0 auto;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.pk-site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--pk-nav-text);
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.pk-site-brand-text {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
}

.pk-site-brand b {
    color: #ffffff;
}

.pk-logo-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: transparent;
    color: var(--pk-nav-accent);
    border: 2px solid currentColor;
    font-family: Consolas, "Liberation Mono", monospace;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
}

.pk-nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 18px;
}

.pk-nav-links a {
    min-width: 58px;
    min-height: 48px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 10px;
    padding: 4px 8px;
    color: var(--pk-nav-muted);
    background: transparent;
    border: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.15;
    text-decoration: none;
    text-align: center;
}

.pk-nav-icon {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    color: currentColor;
    background: transparent;
    border: 0;
}

.pk-nav-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pk-nav-links a:hover,
.pk-nav-links a.active {
    color: var(--pk-nav-link-active);
    background: transparent;
    text-shadow: 0 0 18px rgba(251, 191, 36, .28);
}

.pk-nav-links a.active {
    font-weight: 700;
}

@media (max-width: 820px) {
    .has-site-nav {
        padding-top: calc(58px + env(safe-area-inset-top, 0px));
    }

    .pk-site-nav {
        border-bottom-color: var(--pk-nav-border);
    }

    .pk-site-nav-inner {
        min-height: 58px;
        padding: 7px 14px;
        gap: 10px;
    }

    .pk-logo-mark {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .pk-nav-links {
        gap: 10px;
    }

    .pk-nav-links a {
        min-width: 48px;
        min-height: 44px;
        gap: 2px;
        padding: 3px 6px;
        font-size: 12px;
    }

    .pk-nav-icon {
        width: 22px;
        height: 22px;
    }

    .pk-nav-icon svg {
        width: 21px;
        height: 21px;
    }
}

@media (max-width: 560px) {
    .pk-site-brand-text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .pk-nav-links {
        flex: 1;
    }

    .pk-nav-links a {
        flex: 1;
    }
}
