/* Blog header and blog-only sizing tokens. Normal website navigation is separate. */
.ytk-blog-context {
    --ytk-blog-layout-max: 1480px;
    --ytk-blog-layout-cut: 96px;
    --ytk-blog-heading-size: clamp(36px, 3.4vw, 56px);
    --ytk-blog-header-height: 120px;
    --ytk-blog-sticky-top: var(--wp-admin--admin-bar--height, 0px);
}
.ytk-blog-header {
    position: sticky;
    top: var(--ytk-blog-sticky-top);
    z-index: 1000;
    background: #ffffff;
    color: var(--ytk-ink);
}
.ytk-blog-header-inner {
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 48px;
    width: calc(100% - var(--ytk-blog-layout-cut));
    max-width: var(--ytk-blog-layout-max);
    min-height: var(--ytk-blog-header-height);
    margin: 0 auto;
}
.ytk-blog-header-logo { display: block; width: 56px; height: 56px; }
.ytk-blog-header-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ytk-blog-header-nav { display: flex; justify-content: center; align-items: center; gap: 32px; }
.ytk-blog-header-nav a {
    color: var(--ytk-ink);
    font-size: 16px;
    font-weight: 650;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
}
.ytk-blog-header-nav a:hover,
.ytk-blog-header-nav a[aria-current] { text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 2px; }
.ytk-blog-header-return {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 28px;
    border-radius: 999px;
    background: #0071eb;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
}
.ytk-blog-header-return:hover { background: #005dc4; color: #ffffff; text-decoration: none; }
.ytk-blog-header a:focus-visible,
.ytk-blog-mobile-menu summary:focus-visible { outline: 2px solid #8ca0bb; outline-offset: 4px; }
.ytk-blog-mobile-menu { display: none; }
.ytk-blog-header-nav a:last-child,
.ytk-blog-mobile-menu nav a:last-child { color: #c72a3d; }

@media (max-width: 1200px) {
    .ytk-blog-context { --ytk-blog-layout-cut: 64px; }
    .ytk-blog-header-inner { gap: 28px; }
    .ytk-blog-header-nav { gap: 22px; }
}
@media (max-width: 1050px) {
    .ytk-blog-context { --ytk-blog-header-height: 104px; }
    .ytk-blog-header-inner { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 24px; }
    .ytk-blog-header-logo { width: 52px; height: 52px; }
    .ytk-blog-header-nav { display: none; }
    .ytk-blog-header-return { grid-column: 3; grid-row: 1; min-height: 48px; padding: 0 22px; font-size: 15px; }
    .ytk-blog-mobile-menu { display: block; grid-column: 2; grid-row: 1; justify-self: end; }
    .ytk-blog-mobile-menu summary {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        list-style: none;
        cursor: pointer;
        border-radius: 8px;
        color: var(--ytk-ink);
    }
    .ytk-blog-mobile-menu summary::-webkit-details-marker { display: none; }
    .ytk-blog-mobile-menu summary:hover { background: #f1f4f7; }
    .ytk-blog-mobile-menu summary .ytk-icon { font-size: 28px; }
    .ytk-blog-mobile-menu .ytk-blog-menu-close-icon { display: none; }
    .ytk-blog-mobile-menu[open] .ytk-blog-menu-open-icon { display: none; }
    .ytk-blog-mobile-menu[open] .ytk-blog-menu-close-icon { display: inline-flex; }
    .ytk-blog-mobile-menu nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        padding: 12px;
        border: 1px solid #dfe5ec;
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 12px 30px rgba(var(--ytk-ink-rgb), .08);
    }
    .ytk-blog-mobile-menu nav a { padding: 14px 16px; border-radius: 8px; color: var(--ytk-ink); font-size: 16px; font-weight: 650; text-decoration: none; }
    .ytk-blog-mobile-menu nav a:hover,
    .ytk-blog-mobile-menu nav a[aria-current] { background: #eef3f8; }
}
@media (max-width: 820px) {
    .ytk-blog-context { --ytk-blog-heading-size: 32px; }
}
@media (max-width: 782px) {
    .ytk-blog-context { --ytk-blog-sticky-top: 0px; }
}
@media (max-width: 680px) {
    .ytk-blog-context { --ytk-blog-layout-cut: 32px; --ytk-blog-header-height: 92px; }
    .ytk-blog-header-inner { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; }
    .ytk-blog-header-logo { width: 44px; height: 44px; }
    .ytk-blog-header-return { min-height: 44px; padding: 0 18px; font-size: 14px; }
}
