/* ============================================================================
   Graphicafix Public Blogs — Clean Editorial Design System
   Matches site palette: Primary #024442 | Accent #B6F763 | Slate Neutrals
   ============================================================================ */

:root {
    --gb-primary: #024442;
    --gb-primary-hover: #035c59;
    --gb-primary-soft: #eef7f6;
    --gb-accent: #B6F763;
    --gb-ink: #0f172a;
    --gb-ink-secondary: #334155;
    --gb-muted: #64748b;
    --gb-surface: #ffffff;
    --gb-bg: #f8fafc;
    --gb-border: #e2e8f0;
    --gb-border-light: #f1f5f9;
    --gb-radius: 16px;
    --gb-radius-sm: 10px;
}

/* ── Reading Progress Bar ────────────────────────────────────────────────── */
.gb-read-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--gb-primary), var(--gb-accent));
    z-index: 1045;
    transition: width 0.08s linear;
    pointer-events: none;
}

/* ── Blogs Index Hero ────────────────────────────────────────────────────── */
.gb-hero {
    position: relative;
    background: var(--gb-bg);
    padding: 132px 0 64px;
    border-bottom: 1px solid var(--gb-border);
    overflow: hidden;
}
.gb-hero::before,
.gb-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}
.gb-hero::before {
    width: 380px;
    height: 380px;
    background: rgba(182, 247, 99, 0.18);
    top: -120px;
    right: -80px;
}
.gb-hero::after {
    width: 320px;
    height: 320px;
    background: rgba(2, 68, 66, 0.06);
    bottom: -120px;
    left: -60px;
}
.gb-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.gb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gb-primary);
    background: rgba(182, 247, 99, 0.32);
    border: 1px solid rgba(2, 68, 66, 0.12);
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.gb-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.35rem);
    font-weight: 800;
    color: var(--gb-ink);
    letter-spacing: -0.03em;
    line-height: 1.12;
    margin: 0 0 16px;
}
.gb-hero h1 .gb-highlight {
    color: var(--gb-primary);
    position: relative;
    display: inline-block;
}
.gb-hero h1 .gb-highlight::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    height: 9px;
    background: var(--gb-accent);
    opacity: 0.45;
    z-index: -1;
    border-radius: 4px;
}
.gb-hero p {
    font-size: clamp(1rem, 1.8vw, 1.12rem);
    color: var(--gb-muted);
    line-height: 1.7;
    margin: 0 auto;
    max-width: 600px;
}

/* ── Sticky Filter & Search Toolbar ─────────────────────────────────────── */
.gb-toolbar {
    position: sticky;
    top: 70px;
    z-index: 90;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--gb-border);
    padding: 16px 0;
}
.gb-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.gb-cats {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
}
.gb-cats::-webkit-scrollbar { display: none; }
.gb-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--gb-border);
    background: var(--gb-surface);
    color: var(--gb-ink-secondary);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.gb-cat-btn:hover {
    border-color: var(--gb-primary);
    color: var(--gb-primary);
    background: var(--gb-primary-soft);
}
.gb-cat-btn.active {
    background: var(--gb-primary);
    border-color: var(--gb-primary);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(2, 68, 66, 0.18);
}
.gb-cat-count {
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: inherit;
}
.gb-cat-btn.active .gb-cat-count {
    background: rgba(255, 255, 255, 0.18);
    color: var(--gb-accent);
}

.gb-search-form {
    position: relative;
    width: 280px;
    max-width: 100%;
    flex-shrink: 0;
}
.gb-search-form i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gb-muted);
    font-size: 13.5px;
    pointer-events: none;
}
.gb-search-input {
    width: 100%;
    height: 40px;
    padding: 0 14px 0 40px;
    border-radius: 999px;
    border: 1px solid var(--gb-border);
    background: var(--gb-bg);
    color: var(--gb-ink);
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}
.gb-search-input:focus {
    background: var(--gb-surface);
    border-color: var(--gb-primary);
    box-shadow: 0 0 0 3px rgba(2, 68, 66, 0.1);
}

/* ── Main Content Section ────────────────────────────────────────────────── */
.gb-main {
    padding: 52px 0 88px;
    background: var(--gb-surface);
}
.gb-active-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 16px;
    margin-bottom: 28px;
    border-radius: 12px;
    background: var(--gb-bg);
    border: 1px solid var(--gb-border);
    font-size: 14px;
    color: var(--gb-ink-secondary);
}
.gb-clear-filter {
    color: var(--gb-primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 13px;
}
.gb-clear-filter:hover { text-decoration: underline; }

/* ── Featured Spotlight Card ─────────────────────────────────────────────── */
.gb-featured {
    margin-bottom: 52px;
}
.gb-featured-card {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    background: var(--gb-surface);
    border: 1px solid var(--gb-border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(2, 68, 66, 0.05);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.gb-featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 44px rgba(2, 68, 66, 0.09);
    border-color: #cbd5e1;
}
.gb-featured-media {
    position: relative;
    overflow: hidden;
    background: var(--gb-primary);
    min-height: 320px;
}
.gb-featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.gb-featured-card:hover .gb-featured-media img {
    transform: scale(1.04);
}
.gb-media-fallback {
    width: 100%;
    height: 100%;
    min-height: 210px;
    background: linear-gradient(135deg, #024442 0%, #046864 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    padding: 24px;
    text-align: center;
}
.gb-media-fallback i {
    font-size: 28px;
    color: var(--gb-accent);
}
.gb-media-fallback span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.85;
}
.gb-featured-body {
    padding: clamp(24px, 4vw, 44px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}
.gb-featured-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.gb-badge-featured {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--gb-accent);
    color: var(--gb-primary);
    padding: 4px 11px;
    border-radius: 999px;
}
.gb-badge-cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--gb-primary-soft);
    color: var(--gb-primary);
    padding: 4px 11px;
    border-radius: 999px;
    text-decoration: none;
}
.gb-badge-cat:hover {
    background: var(--gb-primary);
    color: #ffffff;
}
.gb-featured-body h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.95rem);
    font-weight: 800;
    color: var(--gb-ink);
    line-height: 1.24;
    letter-spacing: -0.02em;
    margin: 0;
}
.gb-featured-body h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease;
}
.gb-featured-body h2 a:hover { color: var(--gb-primary); }
.gb-featured-excerpt {
    font-size: 15.5px;
    color: var(--gb-muted);
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gb-meta-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--gb-muted);
}
.gb-meta-strip span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.gb-meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #cbd5e1;
}
.gb-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 11px 22px;
    border-radius: 999px;
    background: var(--gb-primary);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    width: fit-content;
    transition: all 0.2s ease;
}
.gb-read-btn:hover {
    background: var(--gb-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(2, 68, 66, 0.2);
}

/* ── Section Heading ─────────────────────────────────────────────────────── */
.gb-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}
.gb-section-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gb-primary);
    margin: 0;
}
.gb-section-count {
    font-size: 13px;
    color: var(--gb-muted);
    font-weight: 600;
}

/* ── Clean 3-Column Blog Grid ────────────────────────────────────────────── */
.gb-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}
.gb-card {
    background: var(--gb-surface);
    border: 1px solid var(--gb-border);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.gb-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(2, 68, 66, 0.08);
    border-color: #cbd5e1;
}
.gb-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--gb-bg);
    display: block;
}
.gb-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.gb-card:hover .gb-card-media img { transform: scale(1.05); }
.gb-card-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    color: var(--gb-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.gb-card-body {
    padding: 22px 22px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.gb-card-meta-top {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--gb-muted);
}
.gb-card-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gb-ink);
    line-height: 1.35;
    letter-spacing: -0.015em;
    margin: 0;
}
.gb-card-body h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease;
}
.gb-card-body h3 a:hover { color: var(--gb-primary); }
.gb-card-excerpt {
    font-size: 14px;
    color: var(--gb-muted);
    line-height: 1.65;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.gb-card-footer {
    padding: 14px 22px 18px;
    border-top: 1px solid var(--gb-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.gb-author-mini {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gb-ink-secondary);
}
.gb-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gb-primary);
    color: var(--gb-accent);
    font-size: 11.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.gb-card-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--gb-primary);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.18s ease;
}
.gb-card-link:hover { gap: 8px; color: var(--gb-primary-hover); }

/* ── Pagination ──────────────────────────────────────────────────────────── */
.gb-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 52px;
    flex-wrap: wrap;
}
.gb-page-link {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--gb-border);
    background: var(--gb-surface);
    color: var(--gb-ink-secondary);
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.18s ease;
}
.gb-page-link:hover {
    border-color: var(--gb-primary);
    color: var(--gb-primary);
    background: var(--gb-primary-soft);
}
.gb-page-link.active {
    background: var(--gb-primary);
    border-color: var(--gb-primary);
    color: #ffffff !important;
}
.gb-page-link.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ── Empty State ─────────────────────────────────────────────────────────── */
.gb-empty {
    text-align: center;
    padding: 72px 24px;
    border: 1px dashed var(--gb-border);
    border-radius: 20px;
    background: var(--gb-bg);
}
.gb-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--gb-primary-soft);
    color: var(--gb-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}
.gb-empty h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--gb-ink);
    margin: 0 0 8px;
}
.gb-empty p {
    font-size: 14.5px;
    color: var(--gb-muted);
    margin: 0 0 20px;
}

/* ── Clean CTA Band ──────────────────────────────────────────────────────── */
.gb-cta {
    background: var(--gb-primary);
    padding: clamp(56px, 7vw, 84px) 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.gb-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}
.gb-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}
.gb-cta h2 {
    font-size: clamp(1.65rem, 3.5vw, 2.45rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}
.gb-cta h2 span { color: var(--gb-accent); }
.gb-cta p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.65;
    margin: 0 0 26px;
}
.gb-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 999px;
    background: var(--gb-accent);
    color: var(--gb-primary) !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gb-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

/* ============================================================================
   SINGLE BLOG ARTICLE PAGE (blogs/blog_post.php)
   ============================================================================ */

.gb-article-header {
    background: var(--gb-bg);
    padding: 124px 0 44px;
    border-bottom: 1px solid var(--gb-border);
}
.gb-article-head-wrap {
    max-width: 820px;
    margin: 0 auto;
}
.gb-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--gb-muted);
    margin-bottom: 20px;
}
.gb-breadcrumb a {
    color: var(--gb-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}
.gb-breadcrumb a:hover { color: var(--gb-primary); }
.gb-breadcrumb .sep { color: #cbd5e1; }
.gb-breadcrumb .current {
    color: var(--gb-primary);
    font-weight: 600;
}

.gb-article-title {
    font-size: clamp(1.85rem, 4.2vw, 2.95rem);
    font-weight: 800;
    color: var(--gb-ink);
    letter-spacing: -0.03em;
    line-height: 1.16;
    margin: 14px 0 16px;
}
.gb-article-lead {
    font-size: clamp(1.02rem, 1.8vw, 1.18rem);
    color: var(--gb-muted);
    line-height: 1.7;
    margin: 0 0 24px;
}
.gb-article-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid var(--gb-border);
}
.gb-author-block {
    display: flex;
    align-items: center;
    gap: 12px;
}
.gb-author-block .gb-avatar {
    width: 40px;
    height: 40px;
    font-size: 15px;
}
.gb-author-name {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--gb-ink);
    line-height: 1.2;
}
.gb-author-sub {
    font-size: 12.5px;
    color: var(--gb-muted);
}

/* Cover Figure */
.gb-cover-wrap {
    max-width: 960px;
    margin: 36px auto 0;
}
.gb-cover-figure {
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--gb-border);
    box-shadow: 0 16px 40px rgba(2, 68, 66, 0.08);
    background: var(--gb-surface);
}
.gb-cover-figure img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

/* Article Body + Optional Sticky TOC Layout */
.gb-article-section {
    background: var(--gb-surface);
    padding: 52px 0 80px;
}
.gb-article-grid {
    display: grid;
    grid-template-columns: minmax(0, 760px) 260px;
    justify-content: center;
    gap: 48px;
    align-items: start;
}
.gb-article-grid.no-toc {
    grid-template-columns: minmax(0, 760px);
}

/* Editorial Prose Styling */
.gb-prose {
    font-size: 17px;
    line-height: 1.85;
    color: #1e293b;
    word-wrap: break-word;
}
.gb-prose > *:first-child { margin-top: 0; }
.gb-prose h2 {
    font-size: clamp(1.35rem, 2.5vw, 1.7rem);
    font-weight: 800;
    color: var(--gb-ink);
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin: 2.2em 0 0.7em;
    scroll-margin-top: 96px;
}
.gb-prose h3 {
    font-size: clamp(1.12rem, 2vw, 1.32rem);
    font-weight: 700;
    color: var(--gb-primary);
    line-height: 1.35;
    margin: 1.8em 0 0.55em;
    scroll-margin-top: 96px;
}
.gb-prose h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gb-ink);
    margin: 1.5em 0 0.45em;
}
.gb-prose p {
    margin: 0 0 1.35em;
}
.gb-prose a {
    color: var(--gb-primary);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(2, 68, 66, 0.3);
    text-underline-offset: 3px;
}
.gb-prose a:hover {
    text-decoration-color: var(--gb-primary);
}
.gb-prose ul,
.gb-prose ol {
    margin: 0 0 1.45em;
    padding-left: 1.5em;
}
.gb-prose li {
    margin-bottom: 0.5em;
    line-height: 1.75;
}
.gb-prose blockquote {
    margin: 1.8em 0;
    padding: 20px 24px;
    background: var(--gb-primary-soft);
    border-left: 4px solid var(--gb-primary);
    border-radius: 0 14px 14px 0;
    color: var(--gb-ink-secondary);
    font-size: 1.05em;
    font-style: italic;
}
.gb-prose blockquote p:last-child { margin-bottom: 0; }
.gb-prose pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 18px 20px;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.65;
    margin: 1.6em 0;
}
.gb-prose code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.88em;
    background: var(--gb-bg);
    border: 1px solid var(--gb-border);
    padding: 2px 6px;
    border-radius: 5px;
    color: var(--gb-primary);
}
.gb-prose pre code {
    background: transparent;
    border: none;
    padding: 0;
    color: inherit;
}
.gb-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    display: block;
    margin: 1.8em auto;
    border: 1px solid var(--gb-border);
}
.gb-prose figure.blog-figure {
    margin: 2em 0;
    text-align: center;
}
.gb-prose figure.blog-figure img {
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.gb-prose figure.blog-figure figcaption {
    margin-top: 10px;
    font-size: 13.5px;
    color: var(--gb-muted);
    line-height: 1.5;
}
.gb-prose hr {
    border: none;
    border-top: 1px solid var(--gb-border);
    margin: 2.4em 0;
}
.gb-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.8em 0;
    font-size: 15px;
    border: 1px solid var(--gb-border);
    border-radius: 10px;
    overflow: hidden;
}
.gb-prose th,
.gb-prose td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--gb-border);
    text-align: left;
}
.gb-prose th {
    background: var(--gb-bg);
    font-weight: 700;
    color: var(--gb-ink);
}
.gb-prose iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 14px;
    margin: 1.8em 0;
}

/* Sticky Minimalist TOC Rail */
.gb-toc-rail {
    position: sticky;
    top: 104px;
}
.gb-toc-box {
    background: var(--gb-bg);
    border: 1px solid var(--gb-border);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 18px;
}
.gb-toc-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gb-primary);
    margin: 0 0 12px;
}
.gb-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.gb-toc-list a {
    display: block;
    font-size: 13px;
    line-height: 1.45;
    color: var(--gb-muted);
    text-decoration: none;
    padding: 4px 0 4px 10px;
    border-left: 2px solid transparent;
    transition: all 0.15s ease;
}
.gb-toc-list a.is-h3 { padding-left: 20px; font-size: 12.5px; }
.gb-toc-list a:hover,
.gb-toc-list a.active {
    color: var(--gb-primary);
    border-left-color: var(--gb-primary);
    font-weight: 600;
}
.gb-toc-cta {
    background: var(--gb-primary);
    border-radius: 14px;
    padding: 20px;
    color: #ffffff;
}
.gb-toc-cta h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #ffffff;
}
.gb-toc-cta p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.55;
    margin: 0 0 14px;
}
.gb-toc-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--gb-accent);
    color: var(--gb-primary) !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
}

/* Tags & Share Bar */
.gb-article-footer {
    margin-top: 44px;
    padding: 22px 0;
    border-top: 1px solid var(--gb-border);
    border-bottom: 1px solid var(--gb-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.gb-tags-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.gb-tag-pill {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--gb-ink-secondary);
    background: var(--gb-bg);
    border: 1px solid var(--gb-border);
    padding: 5px 12px;
    border-radius: 999px;
    text-decoration: none !important;
    transition: all 0.16s ease;
}
.gb-tag-pill:hover {
    background: var(--gb-primary);
    border-color: var(--gb-primary);
    color: #ffffff !important;
}
.gb-share-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.gb-share-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gb-muted);
    margin-right: 4px;
}
.gb-share-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--gb-border);
    background: var(--gb-surface);
    color: var(--gb-ink-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.16s ease;
}
.gb-share-btn:hover {
    background: var(--gb-primary);
    border-color: var(--gb-primary);
    color: #ffffff !important;
}

/* Author Box */
.gb-author-card {
    margin-top: 32px;
    padding: 24px;
    border-radius: 16px;
    background: var(--gb-bg);
    border: 1px solid var(--gb-border);
    display: flex;
    align-items: flex-start;
    gap: 18px;
}
.gb-author-card .gb-avatar {
    width: 54px;
    height: 54px;
    font-size: 20px;
}
.gb-author-card h4 {
    font-size: 16px;
    font-weight: 800;
    color: var(--gb-ink);
    margin: 0 0 2px;
}
.gb-author-role {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gb-primary);
    margin-bottom: 8px;
}
.gb-author-bio {
    font-size: 14px;
    color: var(--gb-muted);
    line-height: 1.65;
    margin: 0;
}

/* Prev / Next Navigation */
.gb-post-nav {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.gb-nav-card {
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid var(--gb-border);
    background: var(--gb-surface);
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.18s ease;
}
.gb-nav-card:hover {
    border-color: var(--gb-primary);
    box-shadow: 0 8px 20px rgba(2, 68, 66, 0.07);
    transform: translateY(-2px);
}
.gb-nav-card.next { text-align: right; }
.gb-nav-dir {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gb-muted);
}
.gb-nav-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--gb-ink);
    line-height: 1.4;
}
.gb-nav-card:hover .gb-nav-title { color: var(--gb-primary); }

/* Related Articles Section */
.gb-related-section {
    background: var(--gb-bg);
    border-top: 1px solid var(--gb-border);
    padding: 64px 0 80px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
    .gb-article-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
    .gb-toc-rail {
        position: static;
        order: -1;
    }
}
@media (max-width: 991.98px) {
    .gb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gb-featured-card { grid-template-columns: 1fr; }
    .gb-featured-media { min-height: 240px; aspect-ratio: 16 / 9; }
    .gb-toolbar { top: 66px; }
}
@media (max-width: 640px) {
    .gb-hero { padding: 110px 0 48px; }
    .gb-article-header { padding: 106px 0 32px; }
    .gb-grid { grid-template-columns: 1fr; gap: 20px; }
    .gb-search-form { width: 100%; }
    .gb-post-nav { grid-template-columns: 1fr; }
    .gb-nav-card.next { text-align: left; }
    .gb-author-card { flex-direction: column; }
}
