/*
 * Blog Post & Archive Styles
 * Refactored to Canonical Tokens
 */

:root {
    /* Legacy variables removed/mapped to global tokens */
}

/* =========================================================
   1. General & Layout
   ========================================================= */
body {
    background-color: var(--gk-background);
}

html {
    scroll-behavior: smooth;
}

.gk-entry-content h2,
.gk-entry-content h3 {
    scroll-margin-top: 100px;
    position: relative;
}

.gk-blog-wrapper .container {
    max-width: var(--gk-site-width);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.gk-breadcrumb {
    font-size: 13px;
    color: var(--gk-neutral-600);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.gk-breadcrumb a { color: var(--gk-neutral-600); text-decoration: none; transition: .3s; }
.gk-breadcrumb a:hover { color: var(--gk-text); }
.gk-breadcrumb .dashicons { font-size: 14px; width: 14px; height: 14px; line-height: 14px; }
.gk-breadcrumb .current { color: var(--gk-text); font-weight: bold; }

.gk-blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
}

/* =========================================================
   2. Post Card
   ========================================================= */
.gk-post-card {
    background: var(--gk-surface);
    border-radius: var(--gk-radius-lg);
    box-shadow: var(--gk-shadow-sm);
    overflow: hidden;
    padding: 30px;
}

.gk-post-header { margin-bottom: 25px; }

.gk-badge {
    display: inline-block;
    background: var(--gk-primary-50);
    color: var(--gk-primary);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 15px;
    text-decoration: none;
}

.gk-post-title {
    font-size: 26px;
    line-height: 1.5;
    color: var(--gk-text);
    margin-bottom: 20px;
    font-weight: 800;
}

.gk-post-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: var(--gk-border-width) solid var(--gk-border-color);
    padding-bottom: 20px;
}

.meta-item {
    font-size: 13px;
    color: var(--gk-neutral-600);
    display: flex;
    align-items: center;
    gap: 6px;
}
.meta-item i { font-size: 16px; color: var(--gk-neutral-400); }

.gk-post-featured-img {
    margin: 0 -30px 30px -30px;
}
.gk-post-featured-img img {
    width: 100%;
    height: auto;
    display: block;
}

.gk-entry-content {
    font-size: 16px;
    line-height: 2;
    color: var(--gk-neutral-700);
    text-align: justify;
}
.gk-entry-content h2, .gk-entry-content h3 {
    color: var(--gk-text);
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 20px;
}
.gk-entry-content p { margin-bottom: 20px; }
.gk-entry-content img { border-radius: 12px; max-width: 100%; height: auto; }

.gk-post-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px dashed var(--gk-border-color);
}
.gk-tags-list a {
    display: inline-block;
    background: var(--gk-neutral-100);
    color: var(--gk-neutral-600);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    margin-left: 8px;
    transition: .3s;
}
.gk-tags-list a:hover { background: var(--gk-neutral-200); color: var(--gk-text); }

/* =========================================================
   3. Sidebar
   ========================================================= */
.gk-sticky-sidebar-inner {
    position: sticky;
    top: 20px;
}

.gk-widget {
    background: var(--gk-surface);
    border-radius: var(--gk-radius-lg);
    padding: 25px;
    box-shadow: var(--gk-shadow-sm);
    margin-bottom: 20px;
    text-align: center;
}

.gk-author-avatar img {
    border-radius: 50%;
    margin-bottom: 10px;
    border: 3px solid var(--gk-neutral-100);
}
.gk-author-label {
    display: block;
    font-size: 12px;
    color: var(--gk-neutral-600);
    margin-bottom: 5px;
}
.gk-author-name {
    font-size: 16px;
    color: var(--gk-text);
    margin-bottom: 10px;
    font-weight: bold;
}
.gk-author-bio {
    font-size: 13px;
    color: var(--gk-neutral-600);
    line-height: 1.6;
    margin-bottom: 15px;
}
.gk-author-link {
    display: inline-block;
    border: var(--gk-border-width) solid var(--gk-neutral-200);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    color: var(--gk-text);
    transition: .3s;
}
.gk-author-link:hover { border-color: var(--gk-text); }

.gk-share-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}
.share-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gk-neutral-50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gk-neutral-600);
    text-decoration: none;
    transition: .3s;
}
.share-icon:hover { background: var(--gk-primary); color: var(--gk-surface); transform: translateY(-3px); }

@media (max-width: 992px) {
    .gk-blog-layout {
        grid-template-columns: 1fr;
    }
    .gk-sticky-sidebar-inner { position: static; }
    .gk-blog-sidebar { order: 2; }
    .gk-post-card { padding: 20px; }
    .gk-post-featured-img { margin: 0 -20px 20px -20px; }
}

.gk-toc-widget .gk-widget-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gk-neutral-100);
    color: var(--gk-text);
}

.gk-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
}

.gk-toc-list::-webkit-scrollbar { width: 4px; }
.gk-toc-list::-webkit-scrollbar-thumb { background: var(--gk-neutral-300); border-radius: 4px; }

.gk-toc-item {
    margin-bottom: 0;
}

.gk-toc-item a {
    display: block;
    padding: 8px 0;
    font-size: 14px;
    color: var(--gk-neutral-600);
    text-decoration: none;
    border-right: 2px solid transparent;
    padding-right: 10px;
    transition: all .2s;
}

.gk-toc-item a:hover {
    color: var(--gk-primary);
    border-right-color: var(--gk-primary);
    background: linear-gradient(to left, var(--gk-surface), var(--gk-neutral-50));
}

.gk-toc-item.gk-toc-3 a {
    padding-right: 25px;
    font-size: 13px;
    color: var(--gk-neutral-500);
}

.gk-toc-item.active a {
    color: var(--gk-primary);
    border-right-color: var(--gk-primary);
    font-weight: bold;
}

/* =========================================================
   4. Comments Section
   ========================================================= */
.gk-comments-wrap {
    margin-top: 50px;
    border-top: var(--gk-border-width) solid var(--gk-border-color);
    padding-top: 40px;
}

.gk-comment-form-wrap {
    background: var(--gk-surface);
    border: var(--gk-border-width) solid var(--gk-border-color);
    border-radius: var(--gk-radius-lg);
    padding: 30px;
    margin-bottom: 50px;
    box-shadow: var(--gk-shadow);
}

.gk-comments-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.gk-comments-title i { color: var(--gk-primary); }

.gk-comments-subtitle {
    font-size: 14px;
    color: var(--gk-neutral-600);
    margin-bottom: 25px;
}

.gk-form-row {
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
}
.gk-form-col { flex: 1; }

.gk-comment-form-wrap input[type="text"],
.gk-comment-form-wrap input[type="email"],
.gk-comment-form-wrap textarea {
    width: 100%;
    padding: 12px 15px;
    border: var(--gk-border-width) solid var(--gk-neutral-300);
    border-radius: 8px;
    background: var(--gk-neutral-50);
    font-family: inherit;
    font-size: 14px;
    transition: .3s;
}

.gk-comment-form-wrap input:focus,
.gk-comment-form-wrap textarea:focus {
    background: var(--gk-surface);
    border-color: var(--gk-primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--gk-primary-100);
}

.gk-submit-btn {
    background: var(--gk-primary);
    color: var(--gk-surface);
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: .3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.gk-submit-btn:hover {
    background: var(--gk-primary-700);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--gk-primary-200);
}

.gk-list-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gk-neutral-100);
}

.gk-comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gk-comment-list > li {
    margin-bottom: 30px;
}

.gk-comment-body {
    display: flex;
    gap: 20px;
    background: var(--gk-surface);
    padding: 20px;
    border-radius: 12px;
    border: var(--gk-border-width) solid var(--gk-neutral-100);
}

.children {
    list-style: none;
    padding-right: 60px;
    margin-top: 20px;
    border-right: 2px solid var(--gk-neutral-100);
}
@media(max-width: 768px) {
    .children { padding-right: 20px; }
}

.gk-comment-avatar img {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.gk-comment-content { width: 100%; }

.gk-comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.gk-comment-author .fn {
    font-size: 16px;
    color: var(--gk-text);
}

.gk-author-badge {
    background: var(--gk-neutral-100);
    color: var(--gk-secondary);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 8px;
    vertical-align: middle;
}

.gk-comment-date {
    font-size: 12px;
    color: var(--gk-neutral-400);
}
.gk-comment-date a { color: inherit; text-decoration: none; }

.gk-comment-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--gk-neutral-700);
    margin-bottom: 15px;
}

.gk-comment-actions .reply-icon {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    color: var(--gk-neutral-600);
    border: var(--gk-border-width) solid var(--gk-neutral-200);
    padding: 4px 12px;
    border-radius: 20px;
    transition: .3s;
}
.gk-comment-actions a { text-decoration: none; color: inherit; }
.gk-comment-actions .reply-icon:hover {
    border-color: var(--gk-primary);
    color: var(--gk-primary);
}

.gk-comment-awaiting-moderation {
    background: var(--gk-neutral-100);
    color: var(--gk-neutral-700);
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 15px;
}

.gk-by-author {
    border-color: var(--gk-primary-100);
    background: var(--gk-surface);
}

/* =========================================================
   v1.8.6 Modern Page/Post/Blog System
   ========================================================= */
.gk-blog-container {
    width: min(var(--gk-blog-container, 1320px), calc(100% - 32px));
    margin-inline: auto;
}

.gk-blog-wrapper,
.gk-blog-archive-wrap,
.gk-page-shell {
    padding: 28px 0 56px;
    color: var(--gk-blog-text);
}

.gk-blog-wrapper .container,
.gk-blog-archive-wrap .container,
.gk-blog-wrapper .gk-blog-container,
.gk-blog-archive-wrap .gk-blog-container {
    max-width: var(--gk-blog-container, var(--gk-site-width));
}

.gk-blog-breadcrumb,
.gk-breadcrumb {
    width: min(var(--gk-blog-container, 1320px), calc(100% - 32px));
    margin: 0 auto 18px;
    background: color-mix(in srgb, var(--gk-blog-surface) 82%, transparent);
    border: 1px solid var(--gk-blog-border);
    border-radius: 999px;
    padding: 10px 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
    overflow: hidden;
    white-space: nowrap;
}

.gk-blog-breadcrumb span.current,
.gk-breadcrumb .current {
    overflow: hidden;
    text-overflow: ellipsis;
}

.gk-blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: var(--gk-blog-gap, 24px);
    align-items: start;
}

.gk-blog-layout--left-sidebar {
    grid-template-columns: 320px minmax(0, 1fr);
}
.gk-blog-layout--left-sidebar .gk-blog-sidebar { order: -1; }
.gk-blog-layout--no-sidebar { grid-template-columns: minmax(0, 1fr); }
.gk-blog-layout--no-sidebar .gk-blog-main { max-width: 980px; margin-inline: auto; width: 100%; }

.gk-post-card,
.gk-page-card,
.gk-widget,
.gk-comment-form-wrap {
    background: var(--gk-blog-surface);
    border: 1px solid var(--gk-blog-border);
    border-radius: var(--gk-blog-radius);
    box-shadow: var(--gk-blog-shadow);
}

.gk-post-card,
.gk-page-card {
    padding: clamp(18px, 3vw, 36px);
    overflow: hidden;
}

.gk-single-header {
    position: relative;
    padding-bottom: 22px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--gk-blog-border);
}

.gk-post-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.gk-badge,
.gk-card-cat,
.gk-archive-kicker,
.gk-page-kicker {
    background: var(--gk-blog-primary-soft);
    color: var(--gk-blog-primary);
    border: 1px solid color-mix(in srgb, var(--gk-blog-primary) 14%, transparent);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gk-post-title,
.gk-page-title,
.gk-archive-title {
    color: var(--gk-blog-text);
    letter-spacing: -.02em;
    line-height: 1.45;
    margin: 0;
}
.gk-post-title { font-size: clamp(24px, 3vw, 38px); font-weight: 900; }
.gk-page-title,
.gk-archive-title { font-size: clamp(24px, 3vw, 36px); font-weight: 900; margin-top: 10px; }
.gk-single-excerpt,
.gk-archive-desc,
.gk-page-header p {
    color: var(--gk-blog-muted);
    line-height: 2;
    font-size: 15px;
    margin: 12px 0 0;
}

.gk-post-meta-row,
.gk-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 18px;
    padding-bottom: 0;
    border-bottom: 0;
}
.meta-item,
.gk-card-meta span {
    color: var(--gk-blog-muted);
    background: var(--gk-blog-soft);
    border: 1px solid var(--gk-blog-border);
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.meta-item i,
.gk-card-meta i { color: var(--gk-blog-primary); width: 16px; height: 16px; font-size: 16px; }

.gk-post-featured-img,
.gk-page-featured-img {
    margin: 0 0 26px;
    border-radius: var(--gk-blog-image-radius);
    overflow: hidden;
    background: var(--gk-blog-soft);
    border: 1px solid var(--gk-blog-border);
}
.gk-post-featured-img img,
.gk-page-featured-img img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: inherit;
}

.gk-rich-content,
.gk-entry-content {
    color: var(--gk-blog-muted);
    font-size: var(--gk-blog-content-size);
    line-height: var(--gk-blog-content-lh);
    text-align: justify;
}
.gk-rich-content > *:first-child { margin-top: 0; }
.gk-rich-content > *:last-child { margin-bottom: 0; }
.gk-rich-content p { margin: 0 0 1.25em; }
.gk-rich-content h1,
.gk-rich-content h2,
.gk-rich-content h3,
.gk-rich-content h4,
.gk-rich-content h5,
.gk-rich-content h6 {
    color: var(--gk-blog-heading);
    font-weight: 900;
    line-height: 1.55;
    margin: 2.2em 0 .8em;
    scroll-margin-top: 110px;
}
.gk-rich-content h2 { font-size: clamp(22px, 2.3vw, 30px); }
.gk-rich-content h3 { font-size: clamp(19px, 2vw, 24px); }
.gk-rich-content h4 { font-size: 18px; }
.gk-rich-content h5,
.gk-rich-content h6 { font-size: 16px; }
.gk-rich-content h2::before,
.gk-rich-content h3::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 24px;
    border-radius: 999px;
    background: var(--gk-blog-primary);
    margin-left: 10px;
    vertical-align: -6px;
}
.gk-rich-content a { color: var(--gk-blog-link); font-weight: 800; text-decoration: none; border-bottom: 1px dashed color-mix(in srgb, var(--gk-blog-link) 45%, transparent); }
.gk-rich-content a:hover { border-bottom-style: solid; }
.gk-rich-content ul,
.gk-rich-content ol { padding-right: 1.35rem; margin: 0 0 1.4em; }
.gk-rich-content li { margin-bottom: .55em; }
.gk-rich-content li::marker { color: var(--gk-blog-primary); font-weight: 900; }
.gk-rich-content blockquote {
    margin: 1.8em 0;
    padding: 18px 20px;
    background: var(--gk-blog-quote-bg);
    border-right: 5px solid var(--gk-blog-quote-border);
    border-radius: calc(var(--gk-blog-radius) - 6px);
    color: var(--gk-blog-text);
    font-weight: 700;
}
.gk-rich-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.8em 0;
    overflow: hidden;
    border: 1px solid var(--gk-blog-border);
    border-radius: calc(var(--gk-blog-radius) - 6px);
    background: var(--gk-blog-surface);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
}
.gk-rich-content th,
.gk-rich-content td {
    border-bottom: 1px solid var(--gk-blog-border);
    border-left: 1px solid var(--gk-blog-border);
    padding: 13px 14px;
    text-align: right;
}
.gk-rich-content th { background: var(--gk-blog-table-head); color: var(--gk-blog-text); font-weight: 900; }
.gk-rich-content tr:last-child td { border-bottom: 0; }
.gk-rich-content td:last-child,
.gk-rich-content th:last-child { border-left: 0; }
.gk-rich-content img,
.gk-rich-content figure img {
    max-width: 100%;
    height: auto;
    border-radius: var(--gk-blog-image-radius);
}
.gk-rich-content figure { margin: 1.6em 0; }
.gk-rich-content figcaption { margin-top: 10px; color: var(--gk-blog-muted); font-size: 13px; text-align: center; }
.gk-rich-content pre,
.gk-rich-content code {
    direction: ltr;
    text-align: left;
    border-radius: 14px;
    background: #0f172a;
    color: #e2e8f0;
}
.gk-rich-content pre { padding: 16px; overflow: auto; }
.gk-rich-content code { padding: 2px 6px; }

.gk-post-footer {
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px dashed var(--gk-blog-border);
}
.gk-tags-list { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.gk-tags-label { color: var(--gk-blog-muted); font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.gk-tags-list a {
    margin: 0;
    background: var(--gk-blog-soft);
    color: var(--gk-blog-muted);
    border: 1px solid var(--gk-blog-border);
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 800;
}
.gk-tags-list a:hover { background: var(--gk-blog-primary-soft); color: var(--gk-blog-primary); }

/* Sidebar */
.gk-sticky-sidebar-inner { top: 24px; }
.gk-widget {
    padding: 20px;
    text-align: right;
    margin-bottom: var(--gk-blog-gap);
}
.gk-widget-title,
.gk-share-widget h4 {
    color: var(--gk-blog-text);
    font-size: 16px;
    font-weight: 900;
    margin: 0 0 14px;
}
.gk-author-widget { text-align: center; }
.gk-author-avatar img { border: 4px solid var(--gk-blog-soft); box-shadow: 0 8px 20px rgba(15, 23, 42, .08); }
.gk-author-link,
.gk-submit-btn,
.gk-read-more {
    background: var(--gk-blog-primary);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.gk-author-link:hover,
.gk-submit-btn:hover,
.gk-read-more:hover { transform: translateY(-2px); box-shadow: 0 10px 24px color-mix(in srgb, var(--gk-blog-primary) 24%, transparent); }
.gk-toc-list { max-height: 420px; }
.gk-toc-item a { border-right-color: transparent; border-radius: 12px; padding: 9px 12px; }
.gk-toc-item a:hover,
.gk-toc-item.active a { background: var(--gk-blog-primary-soft); color: var(--gk-blog-primary); }
.share-icon { background: var(--gk-blog-soft); color: var(--gk-blog-muted); border: 1px solid var(--gk-blog-border); }
.share-icon:hover { background: var(--gk-blog-primary); color: #fff; }

/* Archive */
.gk-archive-header {
    background: radial-gradient(circle at 10% 20%, color-mix(in srgb, var(--gk-blog-primary) 14%, transparent), transparent 34%), var(--gk-blog-surface);
    border-bottom: 1px solid var(--gk-blog-border);
    padding: clamp(32px, 6vw, 70px) 0;
    margin-bottom: 28px;
}
.gk-archive-desc { max-width: 760px; }
.gk-blog-grid {
    display: grid;
    grid-template-columns: repeat(var(--gk-blog-cols-desktop), minmax(0, 1fr));
    gap: var(--gk-blog-gap);
}
.gk-blog-card {
    background: var(--gk-blog-surface);
    border: 1px solid var(--gk-blog-border);
    border-radius: var(--gk-blog-radius);
    overflow: hidden;
    box-shadow: var(--gk-blog-shadow);
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.gk-blog-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--gk-blog-primary) 24%, var(--gk-blog-border)); }
.gk-card-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--gk-blog-soft);
}
.gk-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.gk-blog-card:hover .gk-card-thumb img { transform: scale(1.04); }
.gk-card-cat { position: absolute; top: 12px; right: 12px; backdrop-filter: blur(10px); }
.gk-card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.gk-card-meta { margin: 0 0 12px; }
.gk-card-title { margin: 0 0 10px; font-size: 18px; line-height: 1.7; font-weight: 900; }
.gk-card-title a { color: var(--gk-blog-text); text-decoration: none; }
.gk-card-title a:hover { color: var(--gk-blog-primary); }
.gk-card-excerpt { color: var(--gk-blog-muted); font-size: 14px; line-height: 1.9; margin-bottom: 18px; }
.gk-read-more { margin-top: auto; align-self: flex-start; }
.gk-blog-grid--list { grid-template-columns: 1fr; }
.gk-blog-grid--list .gk-blog-card { flex-direction: row; }
.gk-blog-grid--list .gk-card-thumb { width: min(38%, 360px); min-height: 230px; aspect-ratio: auto; flex: 0 0 auto; }
.gk-blog-grid--magazine .gk-blog-card:first-child { grid-column: span 2; }
.gk-blog-grid--magazine .gk-blog-card:first-child .gk-card-thumb { aspect-ratio: 16 / 7; }
.gk-pagination { margin-top: 34px; display: flex; justify-content: center; }
.gk-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.gk-pagination .page-numbers {
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gk-blog-border);
    border-radius: 14px;
    background: var(--gk-blog-surface);
    color: var(--gk-blog-muted);
    text-decoration: none;
    font-weight: 900;
}
.gk-pagination .page-numbers.current,
.gk-pagination .page-numbers:hover { background: var(--gk-blog-primary); color: #fff; border-color: var(--gk-blog-primary); }
.gk-empty-state { grid-column: 1/-1; background: var(--gk-blog-surface); border: 1px solid var(--gk-blog-border); border-radius: var(--gk-blog-radius); padding: 30px; text-align: center; color: var(--gk-blog-muted); }

/* Pages */
.gk-page-shell { padding: 34px 0 58px; }
.gk-page-shell--elementor-safe { padding: 0; background: transparent; }
.gk-page-card { max-width: 980px; margin-inline: auto; }
.gk-page-shell--wide .gk-page-card { max-width: none; }
.gk-page-shell--minimal .gk-page-card { box-shadow: none; border-color: transparent; background: transparent; }
.gk-page-header { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--gk-blog-border); }
.gk-page-featured-img { margin-bottom: 24px; }
.gk-page-comments { margin-top: 24px; }

/* Comments modern */
.gk-comments-wrap { border-top: 0; padding-top: 0; }
.gk-comment-form-wrap input[type="text"],
.gk-comment-form-wrap input[type="email"],
.gk-comment-form-wrap textarea {
    background: var(--gk-blog-soft);
    border-color: var(--gk-blog-border);
    border-radius: 14px;
}
.gk-comment-body { border-color: var(--gk-blog-border); border-radius: calc(var(--gk-blog-radius) - 8px); background: var(--gk-blog-surface); }

/* Reading progress */
.gk-blog-reading-progress {
    position: fixed;
    top: 0;
    right: 0;
    height: 3px;
    width: 0;
    background: var(--gk-blog-primary);
    z-index: 99999;
    transition: width .08s linear;
}

@media (max-width: 1024px) {
    .gk-blog-grid--magazine .gk-blog-card:first-child { grid-column: span 1; }
    .gk-blog-grid { grid-template-columns: repeat(var(--gk-blog-cols-tablet), minmax(0, 1fr)); }
    .gk-blog-layout,
    .gk-blog-layout--left-sidebar { grid-template-columns: 1fr; }
    .gk-blog-layout--left-sidebar .gk-blog-sidebar { order: initial; }
    .gk-sticky-sidebar-inner { position: static; }
}
@media (max-width: 767px) {
    .gk-blog-wrapper,
    .gk-blog-archive-wrap,
    .gk-page-shell { padding: 18px 0 40px; }
    .gk-blog-container,
    .gk-blog-breadcrumb,
    .gk-breadcrumb { width: min(100% - 20px, var(--gk-blog-container)); }
    .gk-post-card,
    .gk-page-card { padding: 16px; border-radius: calc(var(--gk-blog-radius) - 6px); }
    .gk-post-title { font-size: 23px; }
    .gk-blog-grid { grid-template-columns: repeat(var(--gk-blog-cols-mobile), minmax(0, 1fr)); }
    .gk-blog-grid--list .gk-blog-card { flex-direction: column; }
    .gk-blog-grid--list .gk-card-thumb { width: 100%; min-height: 0; aspect-ratio: 16/10; }
    .gk-form-row { flex-direction: column; gap: 0; }
    .gk-rich-content table { display: block; overflow-x: auto; white-space: nowrap; }
}
