/* ==========================================================================
   DESIGN V2 — Pink/Cream Overrides & Dark Mode
   ========================================================================== */

/* --- Header V2 --- */
.nk-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--nk-white);
    border-bottom: 1px solid var(--nk-border);
    transition: background .25s, border-color .25s;
}
.nk-header__inner {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 14px 28px;
}
.nk-header__logo {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    flex-shrink: 0;
}
.nk-header__logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: var(--nk-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.nk-header__logo-text {
    font-family: var(--nk-font-heading);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -.5px;
    color: var(--nk-heading);
    line-height: 1;
}
.nk-header__logo-accent {
    color: var(--nk-primary);
}
.nk-header__nav {
    margin-left: 8px;
    flex: 1;
}
.nk-header__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.nk-header__menu li a {
    font-weight: 500;
    font-size: 15px;
    color: var(--nk-text-light);
    padding: 8px 12px;
    border-radius: 9px;
    transition: background .15s, color .15s;
    text-decoration: none;
    display: block;
}
.nk-header__menu li a:hover {
    background: var(--nk-surface);
    color: var(--nk-heading);
}
.nk-header__menu li.current-menu-item a,
.nk-header__menu li.current_page_item a {
    font-weight: 600;
    color: var(--nk-heading);
}
.nk-header__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Dark mode toggle */
.nk-header__theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    border: 1px solid var(--nk-border);
    background: var(--nk-white);
    color: var(--nk-heading);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.nk-header__theme-toggle:hover {
    background: var(--nk-surface);
}
.nk-theme-icon--dark { display: none; }
[data-theme="dark"] .nk-theme-icon--light { display: none; }
[data-theme="dark"] .nk-theme-icon--dark { display: block; }

/* Subscribe button */
.nk-header__subscribe {
    font-family: var(--nk-font-heading);
    font-weight: 700;
    font-size: 14px;
    padding: 11px 20px;
    border-radius: 999px;
}

/* --- Card Image Fixes (V2) --- */
.nk-content-card__thumb,
.nk-archive-card__thumb {
    position: relative;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    height: 190px;
    background: var(--nk-surface);
}
.nk-content-card__thumb img,
.nk-archive-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.nk-content-card:hover .nk-content-card__thumb img,
.nk-archive-card:hover .nk-archive-card__thumb img {
    transform: scale(1.05);
}

/* Archive cards V2 */
.nk-archive-card {
    background: var(--nk-white);
    border: 1px solid var(--nk-border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .18s, box-shadow .18s;
}
.nk-archive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 44px rgba(180, 20, 70, 0.12);
}
.nk-archive-card__link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}
.nk-archive-card__body {
    padding: 18px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.nk-archive-card__title {
    font-family: var(--nk-font-heading);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.28;
    color: var(--nk-heading);
    margin: 0;
}
.nk-archive-card__excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: var(--nk-text-light);
    margin: 8px 0 0;
    flex: 1;
}
.nk-archive-card__meta {
    font-size: 13.5px;
    color: var(--nk-text-light);
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.nk-archive-card__cat {
    background: var(--nk-tag);
    color: var(--nk-tag-text);
    font-weight: 600;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
}
.nk-archive-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* Content cards V2 (homepage) */
.nk-content-card {
    background: var(--nk-white);
    border: 1px solid var(--nk-border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .18s, box-shadow .18s;
}
.nk-content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 44px rgba(180, 20, 70, 0.12);
}
.nk-content-card__body {
    padding: 18px 18px 20px;
}
.nk-content-card__title {
    font-family: var(--nk-font-heading);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.28;
    color: var(--nk-heading);
}

/* Category badge on card images */
.nk-badge--brand-overlay,
.nk-badge--category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #fff;
    color: var(--nk-tag-text);
    font-weight: 700;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    z-index: 2;
}

/* --- Single Article Image Fixes --- */
.nk-article-content img,
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    margin: 1.5rem 0;
    display: block;
    box-shadow: var(--nk-shadow-md);
}
.nk-article-content .wp-block-image,
.entry-content .wp-block-image {
    margin: 2rem 0;
}
.nk-article-content .wp-block-image img {
    border-radius: 18px;
}
.nk-article-content figure {
    margin: 1.5rem 0;
}
.nk-article-content figcaption {
    font-size: 13px;
    color: var(--nk-text-light);
    text-align: center;
    margin-top: 8px;
}

/* Featured image in single posts */
.nk-single__featured-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 22px;
    margin-bottom: 2rem;
    box-shadow: var(--nk-shadow-lg);
}

/* --- Category Cards V2 (emoji style) --- */
.nk-categories__card {
    background: var(--nk-white);
    border: 1px solid var(--nk-border);
    border-radius: 18px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform .18s, box-shadow .18s;
    text-decoration: none;
    color: inherit;
}
.nk-categories__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--nk-shadow-xl);
}
.nk-categories__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--nk-accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.nk-categories__label {
    font-family: var(--nk-font-heading);
    font-weight: 700;
    font-size: 17px;
    color: var(--nk-heading);
}
.nk-categories__desc {
    font-size: 14px;
    color: var(--nk-text-light);
    margin-top: 3px;
}

/* --- Hero V2 --- */
.nk-hero-v2 {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
    padding: 56px 0 40px;
}
.nk-hero-v2__badge {
    display: inline-block;
    background: var(--nk-accent-soft);
    color: var(--nk-tag-text);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .3px;
    padding: 7px 14px;
    border-radius: 999px;
}
.nk-hero-v2__title {
    font-family: var(--nk-font-heading);
    font-weight: 800;
    font-size: 52px;
    line-height: 1.05;
    letter-spacing: -1.5px;
    color: var(--nk-heading);
    margin: 20px 0 0;
}
.nk-hero-v2__title span {
    color: var(--nk-primary);
}
.nk-hero-v2__desc {
    font-size: 19px;
    line-height: 1.55;
    color: var(--nk-text-light);
    margin: 18px 0 28px;
    max-width: 520px;
}

/* Search bar in hero */
.nk-hero-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--nk-white);
    border: 1px solid var(--nk-border);
    border-radius: 999px;
    padding: 7px 7px 7px 20px;
    max-width: 480px;
    box-shadow: 0 8px 26px rgba(180, 20, 70, 0.07);
}
.nk-hero-search__icon {
    flex: 0 0 auto;
    color: var(--nk-text-light);
}
.nk-hero-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--nk-font-body);
    font-size: 16px;
    color: var(--nk-text);
    min-width: 0;
}
.nk-hero-search button {
    background: var(--nk-primary);
    color: #fff;
    font-family: var(--nk-font-heading);
    font-weight: 600;
    font-size: 15px;
    border: none;
    padding: 12px 24px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s;
}
.nk-hero-search button:hover {
    background: var(--nk-primary-dark);
}

/* Popular tags row */
.nk-hero-popular {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 18px;
    align-items: center;
}
.nk-hero-popular__label {
    font-size: 14px;
    color: var(--nk-text-light);
}
.nk-hero-popular a {
    font-size: 14px;
    font-weight: 600;
    color: var(--nk-heading);
    background: var(--nk-surface);
    padding: 7px 14px;
    border-radius: 999px;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.nk-hero-popular a:hover {
    background: var(--nk-accent-soft);
    color: var(--nk-tag-text);
}

/* Hero image area */
.nk-hero-v2__image {
    position: relative;
}
.nk-hero-v2__image-blob {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 120px;
    height: 120px;
    background: var(--nk-pink);
    border-radius: 50%;
    z-index: 0;
    animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}
.nk-hero-v2__image-frame {
    position: relative;
    z-index: 1;
    border-radius: 26px;
    overflow: hidden;
    height: 420px;
    box-shadow: 0 24px 60px rgba(180, 20, 70, 0.16);
    border: 1px solid var(--nk-border);
    background: var(--nk-surface);
}
.nk-hero-v2__image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nk-hero-v2__badge-float {
    position: absolute;
    left: -18px;
    bottom: 26px;
    z-index: 2;
    background: var(--nk-white);
    border: 1px solid var(--nk-border);
    border-radius: 16px;
    padding: 13px 17px;
    box-shadow: 0 14px 34px rgba(180, 20, 70, 0.14);
    display: flex;
    align-items: center;
    gap: 11px;
}
.nk-hero-v2__badge-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--nk-accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* --- Section headers V2 --- */
.nk-section-header-v2 {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 22px;
    gap: 16px;
}
.nk-section-header-v2 h2 {
    font-family: var(--nk-font-heading);
    font-weight: 800;
    font-size: 30px;
    letter-spacing: -.8px;
    color: var(--nk-heading);
    margin: 0;
}
.nk-section-header-v2 p {
    font-size: 16px;
    color: var(--nk-text-light);
    margin: 6px 0 0;
}
.nk-section-header-v2 .nk-viewall {
    font-family: var(--nk-font-heading);
    font-weight: 600;
    font-size: 15px;
    color: var(--nk-primary);
    text-decoration: none;
    white-space: nowrap;
}

/* --- CTA Gradient Card --- */
.nk-cta-gradient-card {
    background: linear-gradient(150deg, var(--nk-primary), var(--nk-primary-dark));
    border: none;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px;
    color: #fff;
    min-height: 250px;
    transition: transform .18s, box-shadow .18s;
}
.nk-cta-gradient-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 44px rgba(180, 20, 70, 0.28);
}
.nk-cta-gradient-card__title {
    font-family: var(--nk-font-heading);
    font-weight: 800;
    font-size: 26px;
    line-height: 1.15;
    color: #fff;
}
.nk-cta-gradient-card__text {
    font-size: 15px;
    line-height: 1.5;
    opacity: .92;
    margin: 12px 0 20px;
}
.nk-cta-gradient-card__btn {
    align-self: flex-start;
    background: #fff;
    color: var(--nk-primary);
    font-family: var(--nk-font-heading);
    font-weight: 700;
    font-size: 15px;
    padding: 12px 22px;
    border-radius: 999px;
    text-decoration: none;
    transition: transform .15s;
}
.nk-cta-gradient-card__btn:hover {
    transform: scale(1.03);
}

/* --- Newsletter V2 --- */
.nk-newsletter-v2 {
    background: var(--nk-pink);
    border-radius: 26px;
    padding: 48px 40px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
}
.nk-newsletter-v2__title {
    font-family: var(--nk-font-heading);
    font-weight: 800;
    font-size: 30px;
    letter-spacing: -.7px;
    color: var(--nk-heading);
    margin: 0;
}
.nk-newsletter-v2__desc {
    font-size: 17px;
    color: var(--nk-text-light);
    margin: 10px 0 0;
    max-width: 460px;
}
.nk-newsletter-v2__form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.nk-newsletter-v2__input {
    border: 1px solid var(--nk-border);
    background: var(--nk-white);
    border-radius: 999px;
    padding: 14px 22px;
    font-family: var(--nk-font-body);
    font-size: 16px;
    color: var(--nk-text);
    outline: none;
    min-width: 230px;
}
.nk-newsletter-v2__btn {
    background: var(--nk-primary);
    color: #fff;
    font-family: var(--nk-font-heading);
    font-weight: 700;
    font-size: 16px;
    border: none;
    padding: 14px 28px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
}
.nk-newsletter-v2__btn:hover {
    background: var(--nk-primary-dark);
}

/* --- Footer V2 --- */
.nk-footer-v2 {
    background: var(--nk-white);
    border-top: 1px solid var(--nk-border);
    transition: background .25s, border-color .25s;
}
.nk-footer-v2__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding: 48px 0 30px;
}
.nk-footer-v2__brand-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--nk-text-light);
    margin: 0;
    max-width: 320px;
}
.nk-footer-v2__col-title {
    font-family: var(--nk-font-heading);
    font-weight: 700;
    font-size: 14px;
    color: var(--nk-heading);
    margin-bottom: 12px;
}
.nk-footer-v2__links {
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.nk-footer-v2__links a {
    font-size: 15px;
    color: var(--nk-text-light);
    text-decoration: none;
    transition: color .15s;
}
.nk-footer-v2__links a:hover {
    color: var(--nk-primary);
}
.nk-footer-v2__bottom {
    border-top: 1px solid var(--nk-border);
    margin-top: 34px;
    padding-top: 22px;
}
.nk-footer-v2__disclosure {
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--nk-text-light);
    margin: 0 0 14px;
}
.nk-footer-v2__copyright {
    font-size: 13px;
    color: var(--nk-text-light);
}

/* --- Responsive V2 --- */
@media (max-width: 768px) {
    .nk-hero-v2 {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px 0 24px;
    }
    .nk-hero-v2__title {
        font-size: 36px;
    }
    .nk-hero-v2__image-frame {
        height: 280px;
    }
    .nk-hero-v2__badge-float {
        left: 10px;
        bottom: 14px;
    }
    .nk-archive-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .nk-newsletter-v2 {
        grid-template-columns: 1fr;
        padding: 32px 24px;
    }
    .nk-footer-v2__grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .nk-header__nav {
        display: none;
    }
    .nk-header__subscribe {
        display: none;
    }
    .nk-header__hamburger {
        display: flex;
    }
    .nk-section-header-v2 {
        flex-direction: column;
        align-items: flex-start;
    }
}
@media (min-width: 769px) {
    .nk-header__hamburger {
        display: none;
    }
    .nk-mobile-drawer {
        display: none !important;
    }
}
@media (max-width: 1024px) and (min-width: 769px) {
    .nk-archive-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .nk-hero-v2__title {
        font-size: 42px;
    }
}

/* --- Dark mode body/main transitions --- */
[data-theme="dark"] .nk-header {
    background: var(--nk-white);
    border-bottom-color: var(--nk-border);
}
[data-theme="dark"] .nk-header__logo-icon svg path {
    fill: #FF8FB8;
}
[data-theme="dark"] body {
    background: var(--nk-bg);
    color: var(--nk-text);
}

/* ==========================================================================
   V2 FIXES — Header, Breadcrumbs, Single Post Layout, TOC
   ========================================================================== */

/* --- Header nav: prevent Contact wrapping --- */
.nk-header__menu li a {
    font-size: 14px;
    padding: 7px 10px;
    white-space: nowrap;
}
.nk-header__menu {
    flex-wrap: nowrap;
    gap: 2px;
}

/* --- Breadcrumbs (single post + global) --- */
.nk-breadcrumbs__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    padding: 0;
    margin: 0;
    font-size: 14px;
    color: var(--nk-text-light);
}
.nk-breadcrumbs__item {
    display: flex;
    align-items: center;
}
.nk-breadcrumbs__item + .nk-breadcrumbs__item::before {
    content: "›";
    margin: 0 8px;
    color: var(--nk-text-light);
    font-size: 16px;
}
.nk-breadcrumbs__item a {
    color: var(--nk-text-light);
    text-decoration: none;
    transition: color .15s;
}
.nk-breadcrumbs__item a:hover {
    color: var(--nk-primary);
}
.nk-breadcrumbs__item--current {
    color: var(--nk-heading);
    font-weight: 500;
}

/* --- Single Post Layout --- */
.nk-single__header {
    padding: 32px 0 0;
}
.nk-single__title {
    font-family: var(--nk-font-heading);
    font-weight: 800;
    font-size: 36px;
    letter-spacing: -1px;
    color: var(--nk-heading);
    margin: 16px 0 12px;
    line-height: 1.15;
}
.nk-single__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--nk-text-light);
    margin-bottom: 24px;
}
.nk-single__meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}
.nk-single__avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}
.nk-badge--category {
    background: var(--nk-accent-soft);
    color: var(--nk-tag-text, var(--nk-primary));
    font-weight: 600;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    text-decoration: none;
}
.nk-badge--brand {
    background: var(--nk-surface);
    color: var(--nk-heading);
    font-weight: 600;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    text-decoration: none;
}

/* Featured image fix — object-fit on img not figure */
.nk-single__featured-img {
    width: 100%;
    max-height: 480px;
    border-radius: 22px;
    margin-bottom: 2rem;
    box-shadow: var(--nk-shadow-lg);
    overflow: hidden;
}
.nk-single__featured-img img {
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
    border-radius: 22px;
}

/* --- Two-column layout: TOC sidebar + content --- */
.nk-single__layout {
    padding: 32px 0;
}
.nk-single__layout-inner {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    align-items: start;
}

/* TOC sidebar styling */
.nk-toc-sidebar {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}
.nk-toc-sidebar__sticky {
    background: var(--nk-white);
    border: 1px solid var(--nk-border);
    border-radius: 16px;
    padding: 18px;
}
.nk-toc-sidebar__heading {
    font-family: var(--nk-font-heading);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--nk-text-light);
    margin: 0 0 12px;
}
.nk-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.nk-toc__list li {
    margin-bottom: 2px;
}
.nk-toc__list a {
    display: block;
    padding: 6px 10px;
    font-size: 13px;
    color: var(--nk-text-light);
    text-decoration: none;
    border-left: 2px solid transparent;
    border-radius: 0 6px 6px 0;
    transition: all .15s;
    line-height: 1.35;
}
.nk-toc__list a:hover,
.nk-toc__list a.active {
    color: var(--nk-primary);
    border-left-color: var(--nk-primary);
    background: rgba(42, 157, 143, .06);
}
.nk-toc__list a.active {
    font-weight: 600;
}

/* Mobile TOC sheet styling */
.nk-toc-mobile-trigger {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
    background: var(--nk-primary);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    font-family: var(--nk-font-heading);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(42, 157, 143, .3);
    align-items: center;
    gap: 6px;
}
.nk-toc-mobile-sheet {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
}
.nk-toc-mobile-sheet[aria-hidden="false"] {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.nk-toc-mobile-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.4);
}
.nk-toc-mobile-sheet__panel {
    position: relative;
    background: var(--nk-white);
    border-radius: 20px 20px 0 0;
    max-height: 60vh;
    overflow-y: auto;
    padding: 24px;
}
.nk-toc-mobile-sheet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.nk-toc-mobile-sheet__title {
    font-family: var(--nk-font-heading);
    font-weight: 700;
    font-size: 18px;
    color: var(--nk-heading);
    margin: 0;
}
.nk-toc-mobile-sheet__close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--nk-surface);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nk-text);
}

/* Article content area */
.nk-single__content-area {
    max-width: 760px;
    min-width: 0;
}

/* Article content typography */
.nk-article-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--nk-text);
}
.nk-article-content h2 {
    font-family: var(--nk-font-heading);
    font-weight: 700;
    font-size: 26px;
    color: var(--nk-heading);
    margin: 2rem 0 1rem;
    letter-spacing: -.5px;
}
.nk-article-content h3 {
    font-family: var(--nk-font-heading);
    font-weight: 600;
    font-size: 20px;
    color: var(--nk-heading);
    margin: 1.5rem 0 .75rem;
}
.nk-article-content p {
    margin: 0 0 1.25rem;
}
.nk-article-content ul,
.nk-article-content ol {
    margin: 0 0 1.5rem;
    padding-left: 1.5rem;
}
.nk-article-content li {
    margin-bottom: .5rem;
}
.nk-article-content a {
    color: var(--nk-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.nk-article-content blockquote {
    border-left: 4px solid var(--nk-primary);
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: var(--nk-surface);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--nk-text-light);
}

/* Related articles section */
.nk-related {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--nk-border);
}
.nk-related__title {
    font-family: var(--nk-font-heading);
    font-weight: 800;
    font-size: 24px;
    color: var(--nk-heading);
    margin: 0 0 20px;
}

/* Author box */
.nk-author-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
    background: var(--nk-surface);
    border-radius: 18px;
    margin-top: 40px;
}
.nk-author-box__img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}
.nk-author-box__name {
    font-family: var(--nk-font-heading);
    font-weight: 700;
    font-size: 17px;
    color: var(--nk-heading);
    margin: 0 0 8px;
}
.nk-author-box__bio {
    font-size: 14px;
    line-height: 1.6;
    color: var(--nk-text-light);
    margin: 0 0 10px;
}
.nk-author-box__link {
    font-size: 14px;
    font-weight: 600;
    color: var(--nk-primary);
    text-decoration: none;
}

/* Troubleshooting banner */
.nk-troubleshoot-banner {
    background: var(--nk-surface);
    border-bottom: 1px solid var(--nk-border);
    padding: 14px 0;
}
.nk-troubleshoot-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.nk-troubleshoot-banner__issue {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
}
.nk-troubleshoot-banner__icon {
    flex-shrink: 0;
    color: var(--nk-primary);
}
.nk-troubleshoot-banner__desc {
    font-size: 14px;
    color: var(--nk-text-light);
    margin: 0;
}
.nk-troubleshoot-banner__stats {
    display: flex;
    gap: 16px;
}
.nk-troubleshoot-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--nk-text-light);
}

/* Verdict box */
.nk-verdict-box {
    background: var(--nk-accent-soft);
    border: 1px solid var(--nk-border);
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 24px;
}
.nk-verdict-box__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.nk-verdict-box__icon {
    color: var(--nk-primary);
}
.nk-verdict-box__title {
    font-family: var(--nk-font-heading);
    font-weight: 700;
    font-size: 18px;
    color: var(--nk-heading);
    margin: 0;
}
.nk-verdict-box__content {
    font-size: 15px;
    line-height: 1.6;
    color: var(--nk-text);
}

/* Pros/Cons */
.nk-proscons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
.nk-proscons__heading {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--nk-font-heading);
    font-weight: 700;
    font-size: 16px;
    margin: 0 0 10px;
}
.nk-proscons__col {
    background: var(--nk-surface);
    border-radius: 14px;
    padding: 18px;
}
.nk-proscons__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.nk-proscons__list li {
    font-size: 14px;
    padding: 5px 0;
    border-bottom: 1px solid var(--nk-border);
}
.nk-proscons__list li:last-child {
    border-bottom: none;
}

/* --- Responsive single post --- */
@media (max-width: 768px) {
    .nk-single__layout-inner {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .nk-toc-sidebar {
        display: none;
    }
    .nk-toc-mobile-trigger {
        display: flex;
    }
    .nk-single__title {
        font-size: 28px;
    }
    .nk-proscons {
        grid-template-columns: 1fr;
    }
    .nk-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* --- Dark mode single post fixes --- */
[data-theme="dark"] .nk-toc-sidebar__sticky {
    background: var(--nk-white);
    border-color: var(--nk-border);
}
[data-theme="dark"] .nk-verdict-box {
    background: var(--nk-surface);
    border-color: var(--nk-border);
}
[data-theme="dark"] .nk-author-box {
    background: var(--nk-surface);
}
[data-theme="dark"] .nk-troubleshoot-banner {
    background: var(--nk-surface);
    border-color: var(--nk-border);
}
[data-theme="dark"] .nk-toc-mobile-sheet__panel {
    background: var(--nk-white);
}
[data-theme="dark"] .nk-proscons__col {
    background: var(--nk-surface);
}

/* --- Grid placement fix: explicit column assignment --- */
.nk-single__content-area {
    grid-column: 2;
    grid-row: 1;
}
.nk-toc-sidebar {
    grid-column: 1;
    grid-row: 1;
}

/* When TOC is hidden (<=1024px), make content full width */
@media (max-width: 1024px) {
    .nk-single__layout-inner {
        grid-template-columns: 1fr !important;
    }
    .nk-single__content-area {
        grid-column: 1;
        max-width: 800px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   Archive Hero & Filters — V2 Pink/Cream
   ========================================================================== */

/* Archive hero section */
.nk-archive-hero {
    padding: 48px 0 24px;
    border-bottom: 1px solid var(--nk-border);
    margin-bottom: 32px;
}
.nk-archive-hero__title {
    font-family: var(--nk-font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--nk-heading);
    margin: 0 0 8px;
    line-height: 1.2;
}
.nk-archive-hero__desc {
    font-size: 1.05rem;
    color: var(--nk-text-light);
    margin: 0 0 20px;
    max-width: 540px;
}

/* CTA buttons in archive hero */
.nk-archive-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.nk-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
    line-height: 1.4;
}
.nk-btn--primary {
    background: var(--nk-pink);
    color: #fff;
    border-color: var(--nk-pink);
}
.nk-btn--primary:hover {
    background: #c91259;
    border-color: #c91259;
}
.nk-btn--secondary {
    background: transparent;
    color: var(--nk-pink);
    border-color: var(--nk-pink);
}
.nk-btn--secondary:hover {
    background: var(--nk-pink);
    color: #fff;
}
.nk-btn--lg {
    padding: 12px 28px;
    font-size: 1rem;
}
.nk-btn__icon {
    flex-shrink: 0;
}

/* Category Chips */
.nk-archive-chips {
    margin-bottom: 16px;
}
.nk-archive-chips__row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.nk-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--nk-text);
    background: var(--nk-surface);
    border: 1px solid var(--nk-border);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.nk-chip:hover {
    border-color: var(--nk-pink);
    color: var(--nk-pink);
    background: rgba(225, 21, 102, 0.08);
}
.nk-chip--active {
    background: var(--nk-pink);
    border-color: var(--nk-pink);
    color: #fff;
    font-weight: 600;
}
.nk-chip--active:hover {
    background: #c91259;
    color: #fff;
}
.nk-chip__icon {
    display: flex;
    align-items: center;
}
.nk-chip__icon svg {
    width: 16px;
    height: 16px;
}

/* Brand Filter Buttons */
.nk-brand-filters__row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 8px 0 16px;
}
.nk-brand-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    background: var(--nk-surface);
    border: 1px solid var(--nk-border);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--nk-text);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--nk-font-body);
}
.nk-brand-btn:hover {
    border-color: var(--nk-pink);
    color: var(--nk-pink);
    background: rgba(225, 21, 102, 0.08);
}
.nk-brand-btn--active {
    background: var(--nk-pink);
    border-color: var(--nk-pink);
    color: #fff;
    font-weight: 600;
}

/* Pagination */
.nk-pagination {
    text-align: center;
    padding: 32px 0;
}
.nk-pagination__loadmore {
    margin-bottom: 16px;
}
.nk-pagination__numeric {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    align-items: center;
}
.nk-pagination__numeric .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--nk-surface);
    border: 1px solid var(--nk-border);
    color: var(--nk-text);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
}
.nk-pagination__numeric .page-numbers:hover {
    border-color: var(--nk-pink);
    color: var(--nk-pink);
}
.nk-pagination__numeric .page-numbers.current {
    background: var(--nk-pink);
    border-color: var(--nk-pink);
    color: #fff;
    font-weight: 700;
}
.nk-pagination__numeric .page-numbers.prev,
.nk-pagination__numeric .page-numbers.next {
    padding: 0 14px;
    font-weight: 600;
}

/* Section heading with count */
.nk-archive-section__header {
    margin-bottom: 24px;
}
.nk-archive-section__title {
    font-family: var(--nk-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--nk-heading);
    margin: 0 0 4px;
}
.nk-archive-section__count {
    font-size: 0.875rem;
    color: var(--nk-text-light);
}
