:root {
    --notebook-ink: #24252a;
    --notebook-muted: #626b73;
    --notebook-paper: #fffdfa;
    --notebook-line: #dcebed;
    --notebook-mint: #e3f9fa;
    --notebook-teal: #08c2cf;
    --notebook-teal-dark: #01929c;
    --notebook-yellow: #f8ca73;
    --notebook-header: #24252a;
}

body:has(.notebook-subheader) {
    min-width: 0;
    background: var(--notebook-paper);
    color: var(--notebook-ink);
}

.site-global-header .header-container {
    width: min(1220px, 100%);
}

.site-global-header,
.site-global-header * {
    font-family: "Montserrat", "Montserrat-Alternates", sans-serif;
}

.notebook-subheader {
    position: sticky;
    z-index: 900;
    top: 0;
    background: var(--notebook-header);
    border-top: 1px solid rgba(248, 202, 115, 0.42);
    border-bottom: 1px solid rgba(8, 194, 207, 0.38);
}

.notebook-subheader__inner {
    width: min(1180px, calc(100% - 40px));
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline: auto;
}

.notebook-subheader,
.notebook-subheader * {
    font-family: "Montserrat", "Montserrat-Alternates", sans-serif;
}

.notebook-subheader__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.notebook-subheader__nav a {
    position: relative;
    padding: 11px 16px;
    color: #fff;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: color 160ms ease, background-color 160ms ease;
}

.notebook-subheader__nav a:hover,
.notebook-subheader__nav a:focus-visible {
    color: var(--notebook-teal);
    background: rgba(8, 194, 207, 0.12);
    outline: none;
}

.notebook-subheader__nav a:focus-visible {
    box-shadow: 0 0 0 3px rgba(8, 194, 207, 0.25);
}

.notebook-subheader__nav a.is-active {
    color: var(--notebook-header);
    background: var(--notebook-yellow);
}

.notebook-detail-actions {
    margin-top: 22px;
}

.notebook-detail-actions form {
    margin: 0;
}

.notebook-detail-favorite {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 16px;
    color: var(--notebook-teal-dark);
    background: #fff;
    border: 1px solid #b7e8eb;
    border-radius: 12px;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.notebook-detail-favorite:hover,
.notebook-detail-favorite:focus-visible,
.notebook-detail-favorite.is-active {
    color: #6b4a00;
    background: #fff1d3;
    border-color: var(--notebook-yellow);
    outline: none;
}

.notebook-detail-favorite span {
    font-size: 19px;
}

@media (max-width: 780px) {
    .notebook-subheader {
        position: relative;
    }

    .notebook-subheader__inner {
        width: 100%;
        min-height: 60px;
        padding: 8px 14px;
    }

    .notebook-subheader__nav {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
        padding: 4px;
        background: rgba(255, 255, 255, 0.06);
        border-radius: 14px;
    }

    .notebook-subheader__nav a {
        min-width: 0;
        padding: 10px 5px;
        overflow: hidden;
        font-size: 11px;
        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .notebook-subheader__nav a {
        transition: none;
    }
}
