/*
 * GistKE Design System — components.css
 *
 * This file contains ALL visual component styles.
 * CSS variables (design tokens) are declared in style.css.
 * This file references those variables exclusively.
 *
 * Load order: style.css → components.css → theme.css (overrides)
 *
 * Table of contents:
 *  1.  Breaking ticker
 *  2.  Post strip (scrolling latest posts)
 *  3.  Navigation bar
 *  4.  Mobile menu & search overlay
 *  5.  Category filter bar
 *  6.  Hero section
 *  7.  Post card component
 *  8.  Post grids
 *  9.  Featured wide cards
 * 10.  Section headers
 * 11.  Category archive hero
 * 12.  Single post layout
 * 13.  Share buttons (all platforms)
 * 14.  Author bio card
 * 15.  Comment section
 * 16.  Sidebar & widgets
 * 17.  Search page
 * 18.  404 page
 * 19.  Static page (page.php)
 * 20.  About strip
 * 21.  Footer
 * 22.  Pagination
 * 23.  No results
 * 24.  Dark / light mode toggle
 * 25.  Floating WhatsApp button
 * 26.  Utility animations
 * 27.  Responsive overrides
 */

/* ============================================================
   1. BREAKING TICKER
   Pure CSS animation — no JS required.
   Items managed via Customizer → Breaking News Ticker.
   ============================================================ */

.gk-ticker {
    background: var(--gk-red);
    display: flex;
    align-items: stretch;
    height: 34px;
    overflow: hidden;
    position: relative;
    z-index: 1000;
}

.gk-ticker__label {
    background: var(--gk-red-dk);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0 16px 0 14px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
    padding-right: 22px;
}

.gk-ticker__track {
    overflow: hidden;
    flex: 1;
    display: flex;
    align-items: center;
    mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
}

.gk-ticker__inner {
    display: flex;
    gap: 60px;
    white-space: nowrap;
    animation: gkTickerScroll 35s linear infinite;
    will-change: transform;
}

.gk-ticker__inner:hover {
    animation-play-state: paused;
}

.gk-ticker__inner span {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.96);
    flex-shrink: 0;
}

.gk-ticker__inner span::before {
    content: '⬥ ';
    color: var(--gk-gold-lt);
    margin-right: 5px;
    font-size: 10px;
}

@keyframes gkTickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   2. POST STRIP — scrolling latest posts above nav
   Shows thumbnails + truncated titles, auto-scrolls.
   ============================================================ */

.gk-post-strip {
    background: var(--gk-dark);
    border-bottom: 1px solid var(--gk-border);
    display: flex;
    align-items: stretch;
    height: 84px;
    overflow: hidden;
}

.gk-post-strip__label {
    background: var(--gk-card);
    color: var(--gk-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0 16px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    border-right: 1px solid var(--gk-border);
    white-space: nowrap;
}

.gk-post-strip__track {
    overflow: hidden;
    flex: 1;
    mask-image: linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%);
}

.gk-post-strip__inner {
    display: flex;
    align-items: center;
    gap: 0;
    height: 100%;
    animation: gkStripScroll 40s linear infinite;
    will-change: transform;
    width: max-content;
}

.gk-post-strip__inner:hover {
    animation-play-state: paused;
}

@keyframes gkStripScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.gk-strip-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px 0 0;
    margin-right: 24px;
    border-right: 1px solid var(--gk-border);
    height: 100%;
    text-decoration: none;
    color: var(--gk-text-md);
    transition: color var(--gk-transition);
    flex-shrink: 0;
    position: relative;
}

.gk-strip-item:hover {
    color: var(--gk-text);
}

.gk-strip-item__thumb {
    width: 62px;
    height: 62px;
    border-radius: var(--gk-radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.gk-strip-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.gk-strip-item:hover .gk-strip-item__thumb img {
    opacity: 1;
}

.gk-strip-item__title {
    font-size: 13px;
    font-weight: 500;
    white-space: normal;
    max-width: 220px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

/* ============================================================
   3. NAVIGATION BAR
   Sticky, backdrop-blur, logo co-existence zone.
   ============================================================ */

.gk-nav {
    background: rgba(10,10,10,0.96);
    border-bottom: 1px solid var(--gk-border);
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 62px;
    position: sticky;
    top: 0;
    z-index: 998;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: box-shadow var(--gk-transition), background var(--gk-transition);
    gap: 20px;
}

.gk-nav--scrolled {
    box-shadow: 0 1px 20px rgba(0,0,0,0.4);
    background: rgba(10,10,10,0.99);
}

.gk-nav--hidden {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

/* Brand zone — logo image + styled text co-exist */
.gk-nav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
}

/* Your site logo — preserves whatever size Customizer sets */
.gk-nav__logo img,
.gk-nav__logo .custom-logo {
    height: 38px !important;
    width: auto !important;
    display: block;
}

/* Divider between logo and styled text */
.gk-nav__brand-divider {
    width: 1px;
    height: 28px;
    background: var(--gk-border-lt);
    flex-shrink: 0;
}

/* Styled GistKE text — always visible alongside your logo */
.gk-nav__brand-text {
    font-family: var(--gk-serif);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #fff;
    line-height: 1;
    text-decoration: none;
    flex-shrink: 0;
}

.gk-nav__brand-text em {
    font-style: normal;
    color: var(--gk-red);
}

.gk-nav__brand-text sup {
    font-size: 11px;
    font-weight: 700;
    color: var(--gk-gold);
    letter-spacing: 1px;
    vertical-align: super;
    margin-left: 2px;
}

/* Primary menu */
.gk-nav__menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.gk-nav__links {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
}

.gk-nav-item { position: relative; }

.gk-nav-link {
    display: block;
    padding: 0 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--gk-muted);
    text-decoration: none;
    line-height: 62px;
    transition: color var(--gk-transition);
    white-space: nowrap;
}

.gk-nav-link:hover,
.gk-nav-item--active .gk-nav-link {
    color: var(--gk-text);
}

.gk-nav-item--active .gk-nav-link {
    color: var(--gk-gold);
    box-shadow: inset 0 -2px 0 var(--gk-gold);
}

/* Nav actions */
.gk-nav__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.gk-nav__search-btn {
    background: none;
    border: none;
    color: var(--gk-muted);
    padding: 6px;
    border-radius: var(--gk-radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color var(--gk-transition);
    font-size: 0;
    letter-spacing: 0;
    text-transform: none;
}

.gk-nav__search-btn:hover { color: var(--gk-text); }

.gk-nav__cta {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: var(--gk-radius-sm);
    white-space: nowrap;
}

.gk-nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    font-size: 0;
    letter-spacing: 0;
    text-transform: none;
}

.gk-nav__hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--gk-muted);
    border-radius: 1px;
    transition: all 0.25s ease;
}

.gk-nav__hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.gk-nav__hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.gk-nav__hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ============================================================
   4. MOBILE MENU & SEARCH OVERLAY
   ============================================================ */

/* Mobile drawer */
.gk-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: var(--gk-dark);
    border-left: 1px solid var(--gk-border);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.gk-mobile-menu.is-open {
    transform: translateX(0);
}

.gk-mobile-menu__inner {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 100%;
}

.gk-mobile-menu__brand {
    font-family: var(--gk-serif);
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gk-border);
}

.gk-mobile-menu__brand em {
    font-style: normal;
    color: var(--gk-red);
}

.gk-mobile-menu__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.gk-mobile-menu__links li a {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid var(--gk-border);
    font-size: 14px;
    font-weight: 500;
    color: var(--gk-text-md);
    text-decoration: none;
    transition: color var(--gk-transition), padding-left var(--gk-transition);
}

.gk-mobile-menu__links li a:hover {
    color: var(--gk-red);
    padding-left: 8px;
}

.gk-mobile-menu__footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--gk-border);
}

/* Dim overlay behind mobile menu */
.gk-mobile-menu__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.gk-mobile-menu__overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Search overlay */
.gk-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,0.97);
    z-index: 9997;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.gk-search-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.gk-search-overlay__close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--gk-muted);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 300;
    transition: color var(--gk-transition);
}

.gk-search-overlay__close:hover { color: var(--gk-text); }

.gk-search-overlay .search-form {
    width: 100%;
    max-width: 600px;
    display: flex;
    gap: 0;
}

.gk-search-overlay .search-field {
    flex: 1;
    font-size: 18px;
    padding: 14px 18px;
    background: var(--gk-card);
    border: 1px solid var(--gk-border-lt);
    border-right: none;
    border-radius: var(--gk-radius-md) 0 0 var(--gk-radius-md);
    color: var(--gk-text);
}

.gk-search-overlay .search-submit {
    background: var(--gk-red);
    color: #fff;
    border: none;
    padding: 14px 22px;
    font-size: 13px;
    border-radius: 0 var(--gk-radius-md) var(--gk-radius-md) 0;
}

/* ============================================================
   5. CATEGORY FILTER BAR
   Horizontally scrollable, auto-populated from WP categories.
   ============================================================ */

.gk-cats {
    background: var(--gk-dark);
    border-bottom: 1px solid var(--gk-border);
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    position: sticky;
    top: 62px; /* sticks below nav */
    z-index: 997;
}

.gk-cats::-webkit-scrollbar { display: none; }

.gk-cat {
    flex-shrink: 0;
    padding: 0 18px;
    height: 42px;
    display: flex;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: var(--gk-dim);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color var(--gk-transition), border-color var(--gk-transition), background var(--gk-transition);
    white-space: nowrap;
}

.gk-cat:hover {
    color: var(--gk-red);
    background: rgba(212, 72, 90, 0.04);
}

.gk-cat.active,
.gk-cat[aria-current="page"] {
    color: var(--gk-red);
    border-bottom-color: var(--gk-red);
}

.gk-cat--all {
    border-right: 1px solid var(--gk-border);
    color: var(--gk-muted);
}

/* ============================================================
   6. HERO SECTION
   Left: full-bleed featured story
   Right: numbered trending sidebar
   ============================================================ */

.gk-hero {
    display: grid;
    grid-template-columns: 1fr 320px;
    background: var(--gk-dark);
    border-bottom: 1px solid var(--gk-border);
    min-height: 480px;
    position: relative;
}

.gk-hero__main {
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    min-height: 480px;
    text-decoration: none;
    color: inherit;
}

.gk-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 0;
    transition: opacity 0.5s ease, transform 0.6s ease;
}

.gk-hero__main:hover .gk-hero__bg {
    opacity: 0.3;
    transform: scale(1.02);
}

.gk-hero__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10,10,10,0.98) 0%,
        rgba(10,10,10,0.7) 40%,
        rgba(10,10,10,0.2) 80%,
        rgba(10,10,10,0) 100%
    );
    z-index: 1;
}

.gk-hero__content {
    position: relative;
    z-index: 2;
    padding: 48px 36px 40px;
    max-width: 640px;
}

.gk-hero__title {
    font-family: var(--gk-serif);
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 900;
    line-height: 1.15;
    color: #faf7f2;
    margin: 14px 0;
}

.gk-hero__excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gk-muted);
    margin-bottom: 20px;
    max-width: 500px;
}

.gk-hero__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--gk-dim);
    flex-wrap: wrap;
}

.gk-hero__author { color: var(--gk-gold); font-weight: 500; }
.gk-hero__sep    { color: var(--gk-border-lt); }

.gk-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 22px;
    font-size: 10px;
}

/* Trending sidebar */
.gk-hero__sidebar {
    background: var(--gk-black);
    border-left: 1px solid var(--gk-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gk-hero__sidebar-header {
    padding: 13px 18px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gk-dim);
    border-bottom: 1px solid var(--gk-border);
    background: rgba(255,255,255,0.02);
}

.gk-side-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 18px;
    border-bottom: 1px solid var(--gk-border);
    text-decoration: none;
    color: inherit;
    transition: background var(--gk-transition);
}

.gk-side-item:hover { background: var(--gk-dark); }

.gk-side-item:last-child { border-bottom: none; }

.gk-side-item__num {
    font-family: var(--gk-serif);
    font-size: 26px;
    font-weight: 900;
    color: var(--gk-border-lt);
    line-height: 1;
    min-width: 30px;
    transition: color var(--gk-transition);
    margin-top: 2px;
}

.gk-side-item:hover .gk-side-item__num { color: var(--gk-red); }

.gk-side-item__body { flex: 1; min-width: 0; }

.gk-side-item__cat {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gk-red);
    margin-bottom: 5px;
}

.gk-side-item__title {
    font-size: 13px;
    font-weight: 500;
    color: #ccc9c4;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gk-side-item:hover .gk-side-item__title { color: var(--gk-text); }

.gk-side-item__time {
    font-size: 11px;
    color: var(--gk-dim);
    margin-top: 6px;
}

/* ============================================================
   7. POST CARD COMPONENT
   The single most reused component. Used everywhere.
   template-parts/card.php outputs this markup.
   ============================================================ */

/* (Base card styles already in style.css — these are the extras) */

/* Card with category left-border accent */
.gk-card--accented {
    border-left: 3px solid;
}

/* Each slot colour for border accent */
.gk-card.gk-cat-slot-1 { border-left-color: var(--gk-cat-1); }
.gk-card.gk-cat-slot-2 { border-left-color: var(--gk-cat-2); }
.gk-card.gk-cat-slot-3 { border-left-color: var(--gk-cat-3); }
.gk-card.gk-cat-slot-4 { border-left-color: var(--gk-cat-4); }
.gk-card.gk-cat-slot-5 { border-left-color: var(--gk-cat-5); }
.gk-card.gk-cat-slot-6 { border-left-color: var(--gk-cat-6); }
.gk-card.gk-cat-slot-7 { border-left-color: var(--gk-cat-7); }
.gk-card.gk-cat-slot-8 { border-left-color: var(--gk-cat-8); }

/* No image fallback */
.gk-card__thumb--no-image {
    aspect-ratio: 4 / 3;
    background: var(--gk-card);
    display: flex;
    align-items: flex-end;
    padding: 10px;
    position: relative;
}

/* ============================================================
   8. POST GRIDS
   (Base grid styles in style.css)
   Additional grid variant: list layout
   ============================================================ */

.gk-grid--list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--gk-border);
}

.gk-grid--list .gk-card {
    flex-direction: row;
    align-items: stretch;
    min-height: 100px;
}

.gk-grid--list .gk-card__thumb {
    width: 140px;
    flex-shrink: 0;
    aspect-ratio: unset;
}

.gk-grid--list .gk-card__body {
    padding: 14px 16px;
}

/* ============================================================
   9. FEATURED WIDE CARDS
   Full-bleed image cards for "This Week's Drama" section.
   ============================================================ */

.gk-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--gk-border);
}

.gk-fw-card {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.gk-fw-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    transition: opacity 0.4s ease, transform 0.5s ease;
}

.gk-fw-card:hover .gk-fw-card__img {
    opacity: 0.58;
    transform: scale(1.03);
}

.gk-fw-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.95) 0%,
        rgba(0,0,0,0.4) 50%,
        rgba(0,0,0,0) 100%
    );
}

.gk-fw-card__body {
    position: relative;
    z-index: 1;
    padding: 28px 26px;
}

.gk-fw-card__title {
    font-family: var(--gk-serif);
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin: 10px 0 8px;
}

.gk-fw-card__meta {
    font-size: 12px;
    color: var(--gk-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

/* ============================================================
   10. SECTION HEADERS
   (Base styles in style.css — .gk-section-head, .gk-section-title)
   ============================================================ */

/* Section with red left-border marker is in style.css */

/* ============================================================
   11. CATEGORY ARCHIVE HERO
   Full-colour banner on category.php
   ============================================================ */

.gk-cat-hero {
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--gk-border);
}

.gk-cat-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.12;
    z-index: 0;
}

.gk-cat-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.6) 100%);
    z-index: 1;
}

.gk-cat-hero__content {
    position: relative;
    z-index: 2;
    padding: 48px 28px;
    max-width: 700px;
}

.gk-cat-hero__title {
    font-family: var(--gk-serif);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    color: var(--gk-text);
    margin-bottom: 10px;
    line-height: 1.15;
}

.gk-cat-hero__desc {
    font-size: 15px;
    color: var(--gk-muted);
    line-height: 1.7;
    margin-bottom: 12px;
    max-width: 500px;
}

.gk-cat-hero__count {
    font-size: 13px;
    color: var(--gk-dim);
}

.gk-cat-hero__count strong { color: var(--gk-gold); }

/* ============================================================
   12. SINGLE POST LAYOUT
   ============================================================ */

.gk-single {
    max-width: 100%;
}

.gk-single__header {
    max-width: var(--gk-content-w);
    margin: 0 auto;
    padding: 32px var(--gk-space-lg) 0;
}

.gk-single__breadcrumb {
    font-size: 12px;
    color: var(--gk-dim);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.gk-single__breadcrumb a {
    color: var(--gk-muted);
    text-decoration: none;
}

.gk-single__breadcrumb a:hover { color: var(--gk-red); }

.gk-single__cat-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.gk-single__title {
    font-family: var(--gk-serif);
    font-size: clamp(26px, 4vw, 46px);
    font-weight: 900;
    line-height: 1.12;
    color: var(--gk-text);
    margin-bottom: 18px;
}

.gk-single__standfirst {
    font-size: 18px;
    line-height: 1.65;
    color: var(--gk-text-md);
    margin-bottom: 22px;
    font-style: italic;
    font-family: var(--gk-serif);
    border-left: 3px solid var(--gk-red);
    padding-left: 16px;
}

.gk-single__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--gk-border);
    border-bottom: 1px solid var(--gk-border);
    margin-bottom: 0;
    flex-wrap: wrap;
}

.gk-single__author-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gk-single__avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    object-fit: cover;
}

.gk-single__author-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.gk-single__author-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--gk-text-md);
}

.gk-single__author-name a { text-decoration: none; color: inherit; }
.gk-single__author-name a:hover { color: var(--gk-gold); }

.gk-single__date {
    font-size: 11px;
    color: var(--gk-dim);
}

.gk-single__stats {
    display: flex;
    align-items: center;
    gap: 14px;
}

.gk-single__comment-count {
    font-size: 12px;
    color: var(--gk-muted);
    text-decoration: none;
    transition: color var(--gk-transition);
}

.gk-single__comment-count:hover { color: var(--gk-text); }

/* Hero image */
.gk-single__hero-image {
    margin: 0 0 0;
    max-height: 520px;
    overflow: hidden;
}

.gk-single__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gk-single__img-caption {
    max-width: var(--gk-content-w);
    margin: 8px auto 0;
    padding: 0 var(--gk-space-lg);
    font-size: 12px;
    color: var(--gk-dim);
    font-style: italic;
    text-align: center;
}

/* Article body */
.gk-single__body {
    max-width: var(--gk-content-w);
    margin: 0 auto;
    padding: 36px var(--gk-space-lg) 0;
}

.gk-single__content {
    font-size: 17px;
    line-height: 1.85;
    color: var(--gk-text-md);
}

.gk-single__content p  { margin-bottom: 1.5em; }
.gk-single__content h2 { margin: 2em 0 0.75em; font-size: 1.5em; }
.gk-single__content h3 { margin: 1.75em 0 0.6em; font-size: 1.25em; }
.gk-single__content ul,
.gk-single__content ol {
    list-style: initial;
    padding-left: 1.5em;
    margin-bottom: 1.5em;
}
.gk-single__content li { margin-bottom: 0.5em; }
.gk-single__content a  { color: var(--gk-red); text-decoration: underline; }
.gk-single__content a:hover { color: var(--gk-red-lt); }

/* Tags */
.gk-single__tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 28px 0;
    padding-top: 20px;
    border-top: 1px solid var(--gk-border);
}

.gk-single__tags-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gk-dim);
    flex-shrink: 0;
}

.gk-tag {
    display: inline-block;
    background: var(--gk-card);
    border: 1px solid var(--gk-border-lt);
    color: var(--gk-muted);
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    text-decoration: none;
    transition: all var(--gk-transition);
}

.gk-tag:hover {
    border-color: var(--gk-red);
    color: var(--gk-red);
    background: rgba(212,72,90,0.06);
}

/* Related section */
.gk-related {
    margin-top: 48px;
    border-top: 1px solid var(--gk-border);
}

/* ============================================================
   13. SHARE BUTTONS — ALL PLATFORMS
   ============================================================ */

.gk-share {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gk-share--top {
    padding: 14px 0;
    border-bottom: 1px solid var(--gk-border);
    margin-bottom: 0;
}

.gk-share__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--gk-dim);
    flex-shrink: 0;
}

.gk-share--bottom {
    background: var(--gk-dark);
    border: 1px solid var(--gk-border);
    border-radius: var(--gk-radius-lg);
    padding: 24px;
    margin: 32px 0;
    text-align: center;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.gk-share__cta {
    font-family: var(--gk-serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--gk-text);
    margin: 0;
}

.gk-share__buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Base share button */
.gk-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--gk-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 7px 14px;
    border-radius: var(--gk-radius-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity var(--gk-transition), transform var(--gk-transition);
    white-space: nowrap;
    text-transform: none;
}

.gk-share-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.gk-share-btn:active { transform: translateY(0); }

/* Large variant for bottom share block */
.gk-share-btn--lg {
    font-size: 12px;
    padding: 10px 18px;
}

/* Platform colours */
.gk-share-btn--whatsapp {
    background: #25d366;
    color: #fff;
}

.gk-share-btn--twitter {
    background: #000;
    color: #fff;
}

.gk-share-btn--facebook {
    background: #1877f2;
    color: #fff;
}

.gk-share-btn--telegram {
    background: #229ed9;
    color: #fff;
}

.gk-share-btn--copy {
    background: var(--gk-card);
    color: var(--gk-muted);
    border: 1px solid var(--gk-border-lt);
}

.gk-share-btn--copy:hover {
    color: var(--gk-text);
    border-color: var(--gk-border-lt);
    opacity: 1;
}

.gk-share-btn--copied {
    background: var(--gk-cat-4) !important;
    color: #fff !important;
    border-color: transparent !important;
}

/* ============================================================
   14. AUTHOR BIO CARD
   ============================================================ */

.gk-author-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--gk-dark);
    border: 1px solid var(--gk-border);
    border-radius: var(--gk-radius-lg);
    padding: 24px;
    margin: 32px 0;
}

.gk-author-card__avatar { flex-shrink: 0; }

.gk-author-card__img {
    width: 72px !important;
    height: 72px !important;
    border-radius: 50% !important;
    object-fit: cover;
    border: 2px solid var(--gk-border-lt);
}

.gk-author-card__body { flex: 1; min-width: 0; }

.gk-author-card__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gk-dim);
    margin-bottom: 4px;
}

.gk-author-card__name {
    font-family: var(--gk-serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--gk-text);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

.gk-author-card__name:hover { color: var(--gk-gold); }

.gk-author-card__bio {
    font-size: 14px;
    color: var(--gk-muted);
    line-height: 1.65;
    margin-bottom: 10px;
}

.gk-author-card__link {
    font-size: 12px;
    font-weight: 600;
    color: var(--gk-red);
    text-decoration: none;
}

.gk-author-card__link:hover { color: var(--gk-red-lt); }

/* ============================================================
   15. COMMENTS SECTION
   ============================================================ */

.gk-comments {
    margin-top: 48px;
    border-top: 1px solid var(--gk-border);
}

.gk-comment {
    display: flex;
    gap: 14px;
    padding: 20px 0;
    border-bottom: 1px solid var(--gk-border);
}

.gk-comment:last-child { border-bottom: none; }

/* Nested reply indentation */
.gk-comment .gk-comment {
    margin-left: 54px;
    padding-top: 16px;
    border-top: 1px solid var(--gk-border);
    border-bottom: none;
}

.gk-comment__avatar { flex-shrink: 0; }

.gk-comment__avatar-img {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    border: 1px solid var(--gk-border-lt);
    object-fit: cover;
}

.gk-comment__body { flex: 1; min-width: 0; }

.gk-comment__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.gk-comment__author {
    font-size: 14px;
    font-weight: 600;
    color: var(--gk-text-md);
}

.gk-comment__author a { color: inherit; text-decoration: none; }
.gk-comment__author a:hover { color: var(--gk-gold); }

/* Gold badge for admin comments */
.gk-comment__admin-badge {
    background: var(--gk-gold);
    color: #0a0a0a;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 2px;
}

.gk-comment__pending {
    font-size: 11px;
    color: var(--gk-gold);
    font-style: italic;
}

.gk-comment__time {
    font-size: 11px;
    color: var(--gk-dim);
    margin-left: auto;
}

.gk-comment__text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--gk-text-md);
}

.gk-comment__text p { margin-bottom: 0.75em; }
.gk-comment__text p:last-child { margin-bottom: 0; }

.gk-comment__actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.gk-comment__reply a,
.gk-comment__edit a {
    font-size: 11px;
    font-weight: 600;
    color: var(--gk-dim);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color var(--gk-transition);
}

.gk-comment__reply a:hover { color: var(--gk-red); }
.gk-comment__edit a:hover  { color: var(--gk-gold); }

/* Comment form */
.gk-comment-form__title {
    font-family: var(--gk-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--gk-text);
    margin: 32px 0 6px;
}

.gk-comment-form__note {
    font-size: 13px;
    color: var(--gk-dim);
    margin-bottom: 20px;
    line-height: 1.6;
}

.gk-comment-form__field {
    margin-bottom: 16px;
}

.gk-comment-form__field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gk-muted);
    margin-bottom: 6px;
}

#comment-form,
.comment-form {
    max-width: 100%;
}

.comment-form p { margin-bottom: 0; }

.comments-closed { font-size: 14px; color: var(--gk-dim); font-style: italic; }

/* ============================================================
   16. SIDEBAR & WIDGETS
   ============================================================ */

.gk-widget {
    margin-bottom: 28px;
}

.gk-widget__title {
    font-family: var(--gk-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gk-dim);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gk-border);
    margin-bottom: 14px;
}

/* ============================================================
   17. SEARCH PAGE
   ============================================================ */

.gk-search-header {
    padding: 44px 28px 36px;
    border-bottom: 1px solid var(--gk-border);
    background: var(--gk-dark);
}

.gk-search-header__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gk-red);
    margin-bottom: 10px;
}

.gk-search-header__query {
    font-family: var(--gk-serif);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    color: var(--gk-text);
    margin-bottom: 10px;
}

.gk-search-header__count {
    font-size: 14px;
    color: var(--gk-muted);
    margin-bottom: 20px;
}

.gk-search-header__count strong { color: var(--gk-gold); }

.gk-search-header__form {
    max-width: 500px;
}

.gk-search-highlight {
    background: rgba(212, 72, 90, 0.2);
    color: var(--gk-red-lt);
    border-radius: 2px;
    padding: 0 2px;
    font-style: normal;
}

/* ============================================================
   18. 404 PAGE
   ============================================================ */

.gk-404 {
    padding: 60px 28px 0;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.gk-404__hero { margin-bottom: 32px; }

.gk-404__code {
    font-family: var(--gk-serif);
    font-size: clamp(80px, 15vw, 140px);
    font-weight: 900;
    line-height: 1;
    color: var(--gk-border-lt);
    margin-bottom: 16px;
    letter-spacing: -4px;
}

.gk-404__title {
    font-family: var(--gk-serif);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    color: var(--gk-text);
    margin-bottom: 14px;
}

.gk-404__message {
    font-size: 15px;
    color: var(--gk-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.gk-404__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.gk-404__search {
    padding: 24px;
    background: var(--gk-dark);
    border: 1px solid var(--gk-border);
    border-radius: var(--gk-radius-lg);
    margin-bottom: 48px;
}

.gk-404__search p {
    font-size: 13px;
    color: var(--gk-muted);
    margin-bottom: 12px;
}

/* ============================================================
   19. STATIC PAGE (page.php)
   ============================================================ */

.gk-page__hero-image {
    max-height: 400px;
    overflow: hidden;
    margin-bottom: 0;
}

.gk-page__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gk-page__header-content {
    max-width: var(--gk-content-w);
    margin: 0 auto;
    padding: 32px var(--gk-space-lg) 0;
}

.gk-page__title {
    font-family: var(--gk-serif);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    color: var(--gk-text);
    margin: 14px 0 8px;
    line-height: 1.15;
}

.gk-page__updated {
    font-size: 12px;
    color: var(--gk-dim);
    margin-bottom: 0;
}

.gk-page__body {
    max-width: var(--gk-content-w);
    margin: 0 auto;
    padding: 32px var(--gk-space-lg) 60px;
}

.gk-page__content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gk-text-md);
}

.gk-page__content h2 { margin: 2em 0 0.75em; }
.gk-page__content h3 { margin: 1.75em 0 0.6em; }
.gk-page__content p  { margin-bottom: 1.4em; }
.gk-page__content ul,
.gk-page__content ol {
    list-style: initial;
    padding-left: 1.5em;
    margin-bottom: 1.5em;
}
.gk-page__content a { color: var(--gk-red); text-decoration: underline; }

.gk-page__edit {
    font-size: 12px;
    color: var(--gk-dim);
    padding: 16px 28px;
    border-top: 1px solid var(--gk-border);
}

.gk-page__edit a { color: var(--gk-gold); }

/* ============================================================
   20. ABOUT STRIP (homepage)
   ============================================================ */

.gk-about-strip {
    background: var(--gk-dark);
    border-top: 1px solid var(--gk-border);
    border-bottom: 1px solid var(--gk-border);
    padding: 56px 28px;
    text-align: center;
}

.gk-about-strip h2 {
    font-family: var(--gk-serif);
    font-size: clamp(22px, 3vw, 32px);
    color: var(--gk-text);
    margin-bottom: 14px;
}

.gk-about-strip p {
    font-size: 15px;
    color: var(--gk-muted);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 24px;
}

/* ============================================================
   21. FOOTER
   ============================================================ */

.gk-footer {
    background: #080808;
    border-top: 1px solid var(--gk-border);
}

.gk-footer__widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--gk-border);
    border-bottom: 1px solid var(--gk-border);
}

.gk-footer__widget-col {
    background: var(--gk-dark);
    padding: 32px 24px;
}

.gk-footer__divider {
    height: 1px;
    background: var(--gk-border);
}

.gk-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 28px;
    flex-wrap: wrap;
}

.gk-footer__brand { display: flex; flex-direction: column; gap: 4px; }

.gk-footer__logo {
    font-family: var(--gk-serif);
    font-size: 22px;
    font-weight: 900;
    color: #2a2a2a;
    text-decoration: none;
    line-height: 1;
}

.gk-footer__logo em {
    font-style: normal;
    color: #4a1520;
}

.gk-footer__tagline {
    font-size: 11px;
    color: var(--gk-hint);
    margin: 0;
}

.gk-footer__links {
    display: flex;
    gap: 0;
    list-style: none;
    flex-wrap: wrap;
}

.gk-footer__links li a {
    font-size: 11px;
    font-weight: 500;
    color: var(--gk-dim);
    text-decoration: none;
    padding: 4px 12px;
    transition: color var(--gk-transition);
    display: block;
}

.gk-footer__links li a:hover { color: var(--gk-muted); }

.gk-footer__socials {
    display: flex;
    gap: 8px;
    align-items: center;
}

.gk-social-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--gk-border-lt);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    color: var(--gk-dim);
    text-decoration: none;
    letter-spacing: 0;
    text-transform: none;
    transition: all var(--gk-transition);
    cursor: pointer;
}

.gk-social-btn:hover {
    border-color: var(--gk-red);
    color: var(--gk-red);
    background: rgba(212,72,90,0.06);
}

.gk-footer__copy {
    padding: 14px 28px;
    border-top: 1px solid var(--gk-border);
    text-align: center;
}

.gk-footer__copy p {
    font-size: 11px;
    color: var(--gk-hint);
    margin: 0;
}

.gk-footer__copy a {
    color: var(--gk-dim);
    text-decoration: none;
    transition: color var(--gk-transition);
}

.gk-footer__copy a:hover { color: var(--gk-muted); }

/* ============================================================
   22. PAGINATION
   ============================================================ */

.gk-pagination {
    padding: 32px 28px;
    display: flex;
    justify-content: center;
    border-top: 1px solid var(--gk-border);
}

.gk-pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.gk-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--gk-radius-md);
    font-size: 13px;
    font-weight: 500;
    color: var(--gk-muted);
    text-decoration: none;
    transition: all var(--gk-transition);
    border: 1px solid var(--gk-border);
    background: var(--gk-dark);
}

.gk-pagination .page-numbers:hover {
    border-color: var(--gk-red);
    color: var(--gk-red);
}

.gk-pagination .page-numbers.current {
    background: var(--gk-red);
    border-color: var(--gk-red);
    color: #fff;
}

.gk-pagination .prev,
.gk-pagination .next {
    width: auto;
    padding: 0 14px;
    font-size: 12px;
    letter-spacing: 0.5px;
}

/* ============================================================
   23. NO RESULTS / EMPTY STATES
   ============================================================ */

.gk-no-results {
    padding: 60px 28px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.gk-no-results h2 {
    font-family: var(--gk-serif);
    font-size: 26px;
    color: var(--gk-text);
    margin-bottom: 12px;
}

.gk-no-results p {
    font-size: 15px;
    color: var(--gk-muted);
    margin-bottom: 24px;
}

.gk-no-results .gk-btn--primary { margin: 0 auto; }

/* ============================================================
   24. DARK / LIGHT MODE TOGGLE
   Default: dark. Toggle saves preference to localStorage.
   Applied via [data-theme="light"] on <html> element.
   ============================================================ */

/* Light mode overrides — applied when admin enables the toggle */
[data-theme="light"] {
    --gk-black:      #f8f5f0;
    --gk-dark:       #f0ece6;
    --gk-card:       #e8e4de;
    --gk-card-hover: #e0dcd6;
    --gk-border:     #d4d0ca;
    --gk-border-lt:  #c4c0ba;

    --gk-text:       #1a1816;
    --gk-text-md:    #2e2c28;
    --gk-muted:      #6e6b66;
    --gk-dim:        #9e9b96;
    --gk-hint:       #c4c0ba;
}

/* Toggle button — placed in nav or footer */
.gk-theme-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid var(--gk-border-lt);
    border-radius: 20px;
    padding: 5px 12px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    color: var(--gk-muted);
    transition: all var(--gk-transition);
    text-transform: none;
    letter-spacing: 0;
}

.gk-theme-toggle:hover {
    border-color: var(--gk-gold);
    color: var(--gk-gold);
}

.gk-theme-toggle__track {
    width: 28px;
    height: 16px;
    background: var(--gk-border-lt);
    border-radius: 8px;
    position: relative;
    transition: background 0.2s;
}

.gk-theme-toggle__thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    background: var(--gk-muted);
    border-radius: 50%;
    transition: transform 0.2s, background 0.2s;
}

[data-theme="light"] .gk-theme-toggle__track { background: var(--gk-gold); }
[data-theme="light"] .gk-theme-toggle__thumb {
    background: #fff;
    transform: translateX(12px);
}

/* ============================================================
   25. FLOATING WHATSAPP BUTTON (mobile, single posts)
   ============================================================ */

.gk-float-whatsapp {
    display: none; /* Hidden by default, shown on mobile via media query */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 996;
    background: #25d366;
    color: #fff;
    border-radius: 28px;
    padding: 10px 18px 10px 14px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(37,211,102,0.35);
    gap: 8px;
    align-items: center;
    transition: transform var(--gk-transition), box-shadow var(--gk-transition);
    letter-spacing: 0.3px;
}

.gk-float-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(37,211,102,0.45);
    color: #fff;
}

/* ============================================================
   26. UTILITY ANIMATIONS
   ============================================================ */

/* Fade in on scroll — add .gk-fade-in class to elements */
.gk-fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.gk-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Skeleton loading pulse */
.gk-skeleton {
    background: linear-gradient(90deg, var(--gk-card) 25%, var(--gk-card-hover) 50%, var(--gk-card) 75%);
    background-size: 200% 100%;
    animation: gkSkeleton 1.5s ease-in-out infinite;
    border-radius: var(--gk-radius-md);
}

@keyframes gkSkeleton {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Archive header */
.gk-archive-header {
    padding: 44px 28px 32px;
    border-bottom: 1px solid var(--gk-border);
    background: var(--gk-dark);
}

.gk-archive-header__title {
    font-family: var(--gk-serif);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    color: var(--gk-text);
    margin-bottom: 10px;
    line-height: 1.15;
}

.gk-archive-header__desc {
    font-size: 15px;
    color: var(--gk-muted);
    line-height: 1.7;
    margin-bottom: 10px;
    max-width: 600px;
}

.gk-archive-header__count {
    font-size: 13px;
    color: var(--gk-dim);
    margin: 0;
}

/* ============================================================
   27. RESPONSIVE OVERRIDES
   Mobile-first adjustments.
   ============================================================ */

@media (max-width: 1024px) {
    .gk-nav { padding: 0 20px; gap: 14px; }
    .gk-hero { grid-template-columns: 1fr 280px; }
    .gk-footer__widgets { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .gk-nav__menu { display: none; }
    .gk-nav__hamburger { display: flex; }
    .gk-nav__cta { display: none; }

    .gk-hero { grid-template-columns: 1fr; }
    .gk-hero__main { min-height: 380px; }
    .gk-hero__content { padding: 28px 20px 24px; }
    .gk-hero__sidebar { border-top: 1px solid var(--gk-border); border-left: none; }

    .gk-featured { grid-template-columns: 1fr; }
    .gk-fw-card { min-height: 220px; }

    .gk-footer__widgets { grid-template-columns: 1fr; }
    .gk-footer__bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 640px) {
    .gk-nav { padding: 0 14px; height: 54px; }
    .gk-nav__brand-text { font-size: 20px; }

    .gk-cats { top: 54px; }

    .gk-ticker { height: 30px; }
    .gk-ticker__label { font-size: 9px; }
    .gk-ticker__inner span { font-size: 11px; }

    .gk-post-strip { display: none; } /* hide on small screens to save space */

    .gk-single__header { padding: 20px 16px 0; }
    .gk-single__body { padding: 24px 16px 0; }
    .gk-single__content { font-size: 16px; }

    .gk-share--bottom { padding: 18px; }
    .gk-share__cta { font-size: 17px; }

    .gk-author-card { flex-direction: column; gap: 14px; }

    .gk-footer__links { flex-direction: column; }

    /* Show WhatsApp float button on mobile */
    .gk-float-whatsapp { display: flex; }

    .gk-404 { padding: 40px 16px 0; }
    .gk-no-results { padding: 40px 16px; }

    .gk-section-head { padding: 20px 16px 12px; }
    .gk-section-title { font-size: 17px; }
}

@media (max-width: 400px) {
    .gk-share__buttons { gap: 6px; }
    .gk-share-btn--lg { padding: 9px 13px; font-size: 11px; }
    .gk-hero__title { font-size: 24px; }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .gk-ticker__inner,
    .gk-post-strip__inner {
        animation: none;
    }
    .gk-fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
