/*
 * Gudang Kemasanku — Custom CSS Layout
 * Replaces Tailwind CDN dependency for reliable rendering in WordPress
 */

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #fff;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }

/* ── CSS Variables (Color Tokens) ───────────────────────── */
:root {
    --primary:  #0f172a;
    --accent:   #005bb5;
    --success:  #16a34a;
    --natural:  #f8fafc;
    --slate-50: #f8fafc;
    --slate-100:#f1f5f9;
    --slate-200:#e2e8f0;
    --slate-400:#94a3b8;
    --slate-500:#64748b;
    --slate-600:#475569;
    --slate-700:#334155;
    --slate-800:#1e293b;
    --slate-900:#0f172a;
}

/* ── Container ───────────────────────────────────────────── */
.container, .gk-container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ── Astra Hard Overrides ────────────────────────────────── */
/* Force full-width: remove Astra's #page max-width constraint */
html body,
html body #page,
html body .site,
html body #content,
html body .ast-container,
html body .site-content,
html body .ast-plain-container,
html body .ast-boxed-container,
html body .ast-narrow-container {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}

body.admin-bar header.gk-header { top: 32px; }
body.admin-bar .gk-spacer { height: 112px; }
#ast-fixed-header, #masthead, .ast-desktop-header,
.site-header, .astra-default-header { display: none !important; }
footer.ast-small-footer, .ast-footer-overlay,
.site-footer.ast-footer { display: none !important; }
body .ast-separate-container .ast-article-single,
.ast-page-builder-template #content { padding: 0 !important; margin: 0 !important; }
.entry-content p { margin-bottom: 0; }

/* ── Typography ─────────────────────────────────────────── */
h1,h2,h3,h4 { font-weight: 700; line-height: 1.2; color: var(--slate-900); margin: 0; }
p { margin: 0; }

/* ── Utility Colors ─────────────────────────────────────── */
.text-accent        { color: var(--accent); }
.text-success       { color: var(--success); }
.text-white         { color: #fff; }
.text-slate-400     { color: var(--slate-400); }
.text-slate-500     { color: var(--slate-500); }
.text-slate-600     { color: var(--slate-600); }
.text-slate-900     { color: var(--slate-900); }
.bg-white           { background: #fff; }
.bg-accent          { background: var(--accent); }
.bg-primary         { background: var(--primary); }
.bg-natural         { background: var(--natural); }
.bg-success         { background: var(--success); }
.bg-slate-50        { background: var(--slate-50); }
.bg-slate-900       { background: var(--slate-900); }

/* ── Grid System ────────────────────────────────────────── */
.gk-grid { display: grid; gap: 2rem; }
.gk-grid-2 { grid-template-columns: 1fr; }
.gk-grid-3 { grid-template-columns: 1fr; }
.gk-grid-4 { grid-template-columns: repeat(2, 1fr); }
.gk-grid-5 { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 640px) {
    .gk-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .gk-grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .gk-grid-2 { grid-template-columns: repeat(2, 1fr); }
    .gk-grid-3 { grid-template-columns: repeat(3, 1fr); }
    .gk-grid-4 { grid-template-columns: repeat(4, 1fr); }
    .gk-grid-5 { grid-template-columns: repeat(5, 1fr); }
}

/* ── Sections ────────────────────────────────────────────── */
.gk-section { width: 100%; }
.gk-section-py { padding-top: 6rem; padding-bottom: 6rem; }
.gk-section-py-sm { padding-top: 3rem; padding-bottom: 3rem; }

/* ── Hero Section ────────────────────────────────────────── */
.gk-hero {
    position: relative;
    padding: 8rem 0 5rem;
    overflow: hidden;
    background: var(--slate-900);
    min-height: 600px;
    display: flex;
    align-items: center;
}
@media (min-width: 1024px) { .gk-hero { padding: 12rem 0 8rem; } }
.gk-hero-overlay {
    position: absolute; inset: 0; z-index: 0;
    background: rgba(15,23,42,.7);
}
.gk-hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background-size: cover; background-position: center;
    transition: opacity 1s ease;
}
.gk-hero-content {
    position: relative; z-index: 10;
    max-width: 780px;
}
.gk-hero h1 {
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.gk-hero p { font-size: 1.125rem; color: #cbd5e1; margin-bottom: 2.5rem; line-height: 1.75; max-width: 600px; }

/* ── Badge ───────────────────────────────────────────────── */
.gk-badge {
    display: inline-flex; align-items: center;
    padding: .35rem .9rem;
    background: var(--accent);
    color: #fff; border-radius: 6px;
    font-size: .7rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    margin-bottom: 1.5rem;
}

/* ── Buttons ─────────────────────────────────────────────── */
.gk-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: 1rem 2.5rem;
    border-radius: .75rem;
    font-weight: 700; font-size: 1rem;
    cursor: pointer; transition: all .2s;
    text-decoration: none;
    border: none;
}
.gk-btn-primary { background: var(--accent); color: #fff; }
.gk-btn-primary:hover { background: #004fa3; color: #fff; }
.gk-btn-ghost { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; }
.gk-btn-ghost:hover { background: rgba(255,255,255,.2); }
.gk-btn-wa { background: var(--success); color: #fff; }
.gk-btn-wa:hover { opacity: .9; }
.gk-btn-group { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ── Cards ───────────────────────────────────────────────── */
.gk-card {
    background: #fff;
    border: 1px solid var(--slate-100);
    border-radius: .75rem;
    overflow: hidden;
    transition: box-shadow .3s;
}
.gk-card:hover { box-shadow: 0 20px 40px rgba(0,0,0,.08); }

/* ── Category Card ───────────────────────────────────────── */
.gk-cat-card {
    display: block;
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: .75rem;
    padding: 1.25rem 1rem;
    text-align: center;
    text-decoration: none;
    transition: all .3s;
    color: inherit;
}
.gk-cat-card:hover {
    box-shadow: 0 8px 24px rgba(0,91,181,.1);
    border-color: var(--accent);
    color: var(--accent);
}
.gk-cat-icon {
    width: 36px; height: 36px;
    border-radius: .5rem;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto .75rem;
    color: var(--accent);
    transition: all .3s;
}
.gk-cat-card:hover .gk-cat-icon { background: var(--accent); color: #fff; border-color: var(--accent); }
.gk-cat-card h3 { font-size: .95rem; font-weight: 700; color: var(--slate-900); }

/* ── Product Card ────────────────────────────────────────── */
.gk-product-card {
    background: #fff;
    border: 1px solid var(--slate-100);
    border-radius: .75rem;
    overflow: hidden;
    transition: box-shadow .4s;
}
.gk-product-card:hover { box-shadow: 0 20px 40px rgba(0,0,0,.1); }
.gk-product-thumb {
    aspect-ratio: 1;
    background: var(--slate-50);
    overflow: hidden;
    position: relative;
}
.gk-product-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.gk-product-card:hover .gk-product-thumb img { transform: scale(1.07); }
.gk-product-body { padding: 1.25rem; }
.gk-product-cat { font-size: .65rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem; }
.gk-product-name { font-weight: 700; color: var(--slate-900); margin-bottom: .5rem; font-size: .95rem; }
.gk-product-desc { font-size: .8rem; color: var(--slate-500); margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gk-product-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--slate-50); padding-top: 1rem; gap: .5rem; }
.gk-price-label { font-size: .65rem; color: var(--slate-400); font-weight: 700; text-transform: uppercase; }
.gk-price { font-size: 1.1rem; font-weight: 700; color: var(--slate-900); }
.gk-btn-wa-sm {
    display: inline-flex; align-items: center;
    padding: .4rem 1rem;
    background: rgba(22,163,74,.1);
    color: var(--success);
    border-radius: .5rem;
    font-size: .75rem; font-weight: 700;
    transition: all .2s; white-space: nowrap;
    text-decoration: none;
}
.gk-btn-wa-sm:hover { background: var(--success); color: #fff; }

/* ── Testimonial ─────────────────────────────────────────── */
.gk-testimonial {
    background: #fff; padding: 2.5rem;
    border: 1px solid var(--slate-100);
    border-radius: .75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.gk-testimonial p.quote { color: var(--slate-600); line-height: 1.8; font-style: italic; margin-bottom: 2rem; }
.gk-testimonial-author { display: flex; align-items: center; gap: 1rem; border-top: 1px solid var(--slate-50); padding-top: 1.5rem; }
.gk-testimonial-author img { width: 48px; height: 48px; border-radius: 9999px; object-fit: cover; }

/* ── FAQ ─────────────────────────────────────────────────── */
.gk-faq-item {
    background: #fff;
    border: 1px solid var(--slate-100);
    border-radius: .75rem;
    overflow: hidden;
    margin-bottom: 1rem;
}
.gk-faq-toggle {
    width: 100%; background: none; border: none; cursor: pointer;
    padding: 1.5rem 2rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    text-align: left;
    font-weight: 700; font-size: 1rem; color: var(--slate-900);
}
.gk-faq-toggle:hover { color: var(--accent); }
.gk-faq-toggle svg { flex-shrink: 0; transition: transform .3s; }
.gk-faq-item.open .gk-faq-toggle svg { transform: rotate(180deg); }
.gk-faq-content {
    display: none;
    padding: 0 2rem 1.5rem;
    font-size: .9rem; color: var(--slate-500); line-height: 1.8;
    border-top: 1px solid var(--slate-50);
}
.gk-faq-item.open .gk-faq-content { display: block; }

/* ── Blog Card ───────────────────────────────────────────── */
.gk-blog-card { text-decoration: none; color: inherit; display: block; }
.gk-blog-thumb {
    aspect-ratio: 16/9;
    border-radius: .75rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid var(--slate-100);
}
.gk-blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gk-blog-card:hover .gk-blog-thumb img { transform: scale(1.04); }
.gk-blog-meta { display: flex; align-items: center; gap: .75rem; font-size: .7rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; }
.gk-blog-card h3 { font-size: 1.1rem; color: var(--slate-900); line-height: 1.4; transition: color .2s; }
.gk-blog-card:hover h3 { color: var(--accent); }

/* ── Trust Section ───────────────────────────────────────── */
.gk-stat-row {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
    max-width: 900px; margin: 0 auto;
}
.gk-stat-item { text-align: center; }
.gk-stat-num { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--accent); line-height: 1.2; }
.gk-stat-label { font-size: .8rem; font-weight: 600; color: var(--slate-500); margin-top: .25rem; }
@media (max-width: 640px) { .gk-stat-row { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem; } }

/* ── Section Title ───────────────────────────────────────── */
.gk-section-title { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; color: var(--slate-900); line-height: 1.2; }
.gk-section-sub { color: var(--slate-600); font-size: 1rem; margin-top: .75rem; }
.gk-text-center { text-align: center; }
.gk-max-narrow { max-width: 672px; margin: 0 auto; }

/* ── Catalog Search ──────────────────────────────────────── */
.gk-catalog-search {
    display: flex; align-items: center; gap: .75rem;
    background: #fff; border: 1px solid var(--slate-200); border-radius: 999px;
    padding: .5rem .5rem .5rem 1.25rem; margin-bottom: 2.5rem; max-width: 560px;
    transition: border-color .2s;
}
.gk-catalog-search:focus-within { border-color: var(--accent); }
.gk-catalog-search input {
    flex: 1; border: none; outline: none; font-size: .95rem; color: var(--slate-900);
    background: transparent; min-width: 0;
}
.gk-catalog-search input::placeholder { color: var(--slate-400); }
.gk-catalog-search-clear {
    flex-shrink: 0; width: 22px; height: 22px; border-radius: 999px; background: var(--slate-100);
    color: var(--slate-500); display: flex; align-items: center; justify-content: center;
    font-size: 15px; line-height: 1; text-decoration: none;
}
.gk-catalog-search-clear:hover { background: var(--slate-200); }
.gk-catalog-search button {
    flex-shrink: 0; background: var(--accent); color: #fff; border: none; border-radius: 999px;
    padding: .6rem 1.5rem; font-size: .9rem; font-weight: 600; cursor: pointer; transition: background .2s;
}
.gk-catalog-search button:hover { background: var(--accent-dark, var(--accent)); }
.gk-search-summary { font-size: .9rem; color: var(--slate-600); margin-bottom: 1.5rem; }

/* ── Sidebar Filter ──────────────────────────────────────── */
.gk-catalog-wrap { display: flex; gap: 3rem; align-items: flex-start; }
.gk-sidebar { width: 220px; flex-shrink: 0; }
.gk-sidebar-title { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--slate-900); margin-bottom: 1.5rem; cursor: default; list-style: none; }
.gk-sidebar-title::-webkit-details-marker { display: none; }
.gk-sidebar-current { text-transform: none; letter-spacing: normal; font-weight: 600; color: var(--accent); }
.gk-sidebar ul { display: flex; flex-direction: column; gap: 1rem; }
.gk-sidebar a { display: flex; align-items: center; gap: .6rem; font-size: .95rem; color: var(--slate-600); text-decoration: none; transition: color .2s; }
.gk-sidebar a:hover, .gk-sidebar a.active { color: var(--accent); font-weight: 600; }
.gk-product-grid { flex: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 1200px) { .gk-product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .gk-catalog-wrap { flex-direction: column; } .gk-sidebar { width: 100%; } .gk-product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gk-product-grid { grid-template-columns: 1fr; } }

/* Mobile: category list collapses into an accordion; desktop stays always-open */
@media (max-width: 768px) {
    .gk-sidebar-mobile { border: 1px solid var(--slate-200); border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 2rem; }
    .gk-sidebar-mobile .gk-sidebar-title { margin-bottom: 0; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
    .gk-sidebar-mobile .gk-sidebar-title::after { content: '\25BE'; color: var(--slate-400); font-size: .8rem; }
    .gk-sidebar-mobile[open] .gk-sidebar-title { margin-bottom: 1.25rem; }
    .gk-sidebar-mobile[open] .gk-sidebar-title::after { content: '\25B4'; }
    .gk-sidebar-mobile:not([open]) .gk-sidebar-current { display: inline; }
}
@media (min-width: 769px) {
    .gk-sidebar-title::after { display: none; }
}

/* ── CTA Banner ──────────────────────────────────────────── */
.gk-cta-banner {
    background: var(--primary);
    border-radius: 1rem;
    padding: 4rem 3rem;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.gk-cta-banner::before {
    content: '';
    position: absolute;
    top: -4rem; right: -4rem;
    width: 24rem; height: 24rem;
    background: rgba(255,255,255,.06);
    border-radius: 9999px;
    filter: blur(40px);
}
.gk-cta-banner h2 { font-size: clamp(1.8rem, 4vw, 3rem); color: #fff; margin-bottom: 1.25rem; }
.gk-cta-banner p { color: #bfdbfe; font-size: 1.1rem; margin-bottom: 2.5rem; max-width: 480px; margin-inline: auto; }

/* ── Breadcrumb ──────────────────────────────────────────── */
.gk-breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--slate-400); margin-bottom: 2rem; }
.gk-breadcrumb a { color: var(--slate-400); text-decoration: none; }
.gk-breadcrumb a:hover { color: var(--accent); }
.gk-breadcrumb span { color: var(--slate-900); }

/* ── Feature Item ────────────────────────────────────────── */
.gk-feature { padding: 1rem; }
.gk-feature-icon {
    width: 64px; height: 64px;
    background: var(--slate-50);
    border-radius: .75rem;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem;
    transition: all .3s;
    color: var(--slate-700);
}
.gk-feature:hover .gk-feature-icon { background: var(--accent); color: #fff; }
.gk-feature h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .75rem; }
.gk-feature p { color: var(--slate-500); line-height: 1.75; font-size: .95rem; }

/* ── Utility ─────────────────────────────────────────────── */
.gk-flex { display: flex; }
.gk-flex-center { display: flex; align-items: center; justify-content: center; }
.gk-flex-between { display: flex; align-items: center; justify-content: space-between; }
.gk-gap-4 { gap: 1rem; }
.gk-mb-4 { margin-bottom: 1rem; }
.gk-mb-6 { margin-bottom: 1.5rem; }
.gk-mb-8 { margin-bottom: 2rem; }
.gk-mb-16 { margin-bottom: 4rem; }
.gk-rounded { border-radius: .75rem; }
.gk-shadow { box-shadow: 0 4px 16px rgba(0,0,0,.08); }

/* ── Alert Notice ────────────────────────────────────────── */
.gk-notice {
    background: #fffbeb; border: 1px solid #fde68a;
    padding: 1rem 1.25rem; border-radius: .75rem;
    font-size: .8rem; color: #92400e; max-width: 320px;
}

/* ── Pagination ──────────────────────────────────────────── */
.gk-pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 4rem; }
.gk-pagination a, .gk-pagination span {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: .5rem; font-weight: 700; font-size: .9rem; text-decoration: none;
    border: 1px solid var(--slate-200); color: var(--slate-600);
    transition: all .2s;
}
.gk-pagination a:hover, .gk-pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Responsive helpers ──────────────────────────────────── */
@media (max-width: 768px) {
    .gk-hide-mobile { display: none !important; }
    .gk-hero { padding: 5rem 0 3rem; }
    .gk-section-py { padding-top: 3rem; padding-bottom: 3rem; }
    .gk-cta-banner { padding: 2.5rem 1.5rem; }
}

/* ── Footer Grid ─────────────────────────────────────────── */
.gk-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 0;
}
.gk-footer-brand { grid-column: 1; }

@media (min-width: 640px) {
    .gk-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gk-footer-brand { grid-column: span 2; }
}

@media (min-width: 1024px) {
    .gk-footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 48px;
    }
    .gk-footer-brand { grid-column: 1; }
}

/* ── Blog Single: 2-column layout ─────────────────────────── */
.gk-blog-layout { display: flex; gap: 3rem; align-items: flex-start; width: 100%; }
.gk-blog-main { flex: 1; min-width: 0; }
.gk-blog-aside { width: 325px; flex-shrink: 0; position: sticky; top: 96px; display: flex; flex-direction: column; gap: 1.5rem; }
@media (max-width: 900px) {
    .gk-blog-layout { flex-direction: column; }
    .gk-blog-main { max-width: 100%; }
    .gk-blog-aside { width: 100%; position: static; }
}

.gk-aside-card { background: var(--slate-50); border: 1px solid var(--slate-100); border-radius: 16px; padding: 1.5rem; }
.gk-aside-card h4 { font-size: .95rem; font-weight: 800; color: var(--slate-900); margin-bottom: 1rem; }
.gk-aside-cta { background: var(--primary); border-color: var(--primary); }
.gk-aside-cta h4 { color: #fff; }
.gk-aside-cta p { font-size: .85rem; color: #cbd5e1; line-height: 1.6; margin-bottom: 1.25rem; }
.gk-aside-list { display: flex; flex-direction: column; gap: .85rem; }
.gk-aside-catlist a {
    display: flex; justify-content: space-between; align-items: center;
    font-size: .9rem; color: var(--slate-600); text-decoration: none; transition: color .2s;
}
.gk-aside-catlist a:hover { color: var(--accent); }
.gk-aside-catlist a span { font-size: .75rem; color: var(--slate-400); background: #fff; border-radius: 999px; padding: .1rem .5rem; }
.gk-aside-related a { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.gk-aside-related-thumb { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--slate-100); }
.gk-aside-related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gk-aside-related span { font-size: .85rem; font-weight: 600; color: var(--slate-800); line-height: 1.4; transition: color .2s; }
.gk-aside-related a:hover span { color: var(--accent); }

/* ── Table of Contents ────────────────────────────────────── */
.gk-toc {
    background: #fff; border: 1px solid var(--slate-200); border-radius: 14px;
    margin-bottom: 2.5rem; overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .04);
}
.gk-toc-title {
    display: flex; align-items: center; gap: .65rem; cursor: pointer; list-style: none;
    font-size: .95rem; font-weight: 800; color: var(--slate-900);
    padding: 1rem 1.25rem; background: var(--slate-50);
    border-bottom: 1px solid transparent; transition: background .2s;
    -webkit-user-select: none; user-select: none;
}
.gk-toc[open] .gk-toc-title { border-bottom-color: var(--slate-100); }
.gk-toc-title:hover { background: var(--slate-100); }
.gk-toc-title::-webkit-details-marker { display: none; }
.gk-toc-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
    background: var(--accent); color: #fff;
}
.gk-toc-icon svg { width: 15px; height: 15px; }
.gk-toc-count {
    font-size: .7rem; font-weight: 700; color: var(--slate-500);
    background: #fff; border: 1px solid var(--slate-200);
    border-radius: 999px; padding: .15rem .6rem; white-space: nowrap;
}
.gk-toc-chevron {
    margin-left: auto; color: var(--slate-400); width: 18px; height: 18px;
    flex-shrink: 0; transition: transform .25s ease;
}
.gk-toc[open] .gk-toc-chevron { transform: rotate(180deg); }
.gk-toc-list {
    list-style: none;
    margin: 0; padding: .5rem .75rem .75rem;
    display: flex; flex-direction: column;
}
.gk-toc-list > li { border-bottom: 1px dashed var(--slate-100); }
.gk-toc-list > li:last-child { border-bottom: 0; }
.gk-toc-list > li > a {
    display: flex; align-items: flex-start; gap: .75rem;
    font-size: .9rem; font-weight: 600; line-height: 1.45;
    color: var(--slate-700); text-decoration: none;
    padding: .6rem .5rem; border-radius: 8px;
    transition: background .15s, color .15s;
}
.gk-toc-list > li > a:hover,
.gk-toc-list > li > a.is-active { background: var(--slate-50); color: var(--accent); }
.gk-toc-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 7px; flex-shrink: 0;
    font-size: .7rem; font-weight: 800; letter-spacing: .02em;
    font-variant-numeric: tabular-nums;
    color: var(--accent);
    background: var(--slate-50); border: 1px solid var(--slate-200);
    background: color-mix(in srgb, var(--accent) 10%, #fff);
    border-color: color-mix(in srgb, var(--accent) 22%, #fff);
    transition: background .15s, color .15s, border-color .15s;
}
.gk-toc-list > li > a:hover .gk-toc-num,
.gk-toc-list > li > a.is-active .gk-toc-num { background: var(--accent); border-color: var(--accent); color: #fff; }
.gk-toc-sublist {
    list-style: none; margin: 0 0 .6rem 1.65rem; padding: 0 0 0 .85rem;
    display: flex; flex-direction: column; gap: .1rem;
    border-left: 2px solid var(--slate-100);
}
.gk-toc .gk-toc-sublist a {
    display: block; font-size: .83rem; font-weight: 500; line-height: 1.45;
    color: var(--slate-500); text-decoration: none;
    padding: .3rem .5rem; border-radius: 6px;
    transition: background .15s, color .15s;
}
.gk-toc .gk-toc-sublist a:hover,
.gk-toc .gk-toc-sublist a.is-active { background: var(--slate-50); color: var(--accent); }

/* Anchor offset so jumped-to headings aren't hidden under the sticky header */
.entry-content h2[id], .entry-content h3[id] { scroll-margin-top: 100px; }
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

/* ── Blog → Katalog related products block ────────────────── */
.gk-related-products { margin-top: 2.5rem; padding: 1.5rem; background: var(--slate-50); border: 1px solid var(--slate-100); border-radius: 14px; }
.gk-related-products h4 { font-size: .95rem; font-weight: 800; color: var(--slate-900); margin-bottom: 1rem; }
.gk-related-products-list { display: flex; flex-direction: column; gap: .6rem; }
.gk-related-products-list a {
    display: flex; align-items: center; gap: .6rem; background: #fff; border: 1px solid var(--slate-200);
    border-radius: 10px; padding: .75rem 1rem; font-size: .9rem; font-weight: 600; color: var(--slate-700);
    text-decoration: none; transition: border-color .2s, color .2s;
}
.gk-related-products-list a:hover { border-color: var(--accent); color: var(--accent); }

