/**
 * LeadSync Blog Theme Styles
 *
 * Built on top of design-system.css (--ls-* tokens) and homepage-2026.css
 * (nav + footer component styles). No hardcoded colors or spacing.
 */

/* ========================================
   BASE — prevent scrollbar gutter showing
   transparent background on macOS
   ======================================== */

html {
    background-color: var(--ls-white);
}

/* ========================================
   SKIP LINK (WCAG 2.4.1)
   ======================================== */

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 10000;
    padding: var(--ls-space-3) var(--ls-space-6);
    background: var(--ls-accent);
    color: var(--ls-white);
    font-weight: var(--ls-weight-semibold);
    text-decoration: none;
    border-radius: 0 0 var(--ls-radius-md) 0;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--ls-white);
    outline-offset: 2px;
}

/* ========================================
   WORDPRESS ADMIN BAR COMPATIBILITY
   ======================================== */

.admin-bar .nav-2026 {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .nav-2026 {
        top: 46px;
    }
}

/* ========================================
   NAV DROPDOWN (Resources menu)
   ======================================== */

.nav-2026__has-dropdown {
    position: relative;
}

.nav-2026__dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--ls-space-1);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.nav-2026__chevron {
    transition: transform var(--ls-transition-fast);
    flex-shrink: 0;
}

.nav-2026__has-dropdown[data-open="true"] .nav-2026__chevron {
    transform: rotate(180deg);
}

.nav-2026__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + var(--ls-space-3));
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background: var(--ls-gray-900);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--ls-radius-lg);
    padding: var(--ls-space-2) 0;
    list-style: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.nav-2026__has-dropdown[data-open="true"] > .nav-2026__dropdown {
    display: block;
}

.nav-2026__dropdown li a {
    display: block;
    padding: var(--ls-space-2) var(--ls-space-5);
    color: var(--ls-gray-300);
    font-size: var(--ls-text-sm);
    font-weight: var(--ls-weight-medium);
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--ls-transition-fast), color var(--ls-transition-fast);
}

.nav-2026__dropdown li a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--ls-white);
}

/* Mobile: dropdown inline instead of positioned */
@media (max-width: 768px) {
    .nav-2026__dropdown {
        position: static;
        transform: none;
        min-width: 0;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: var(--ls-space-1) 0 var(--ls-space-1) var(--ls-space-4);
    }

    .nav-2026__dropdown li a {
        padding: var(--ls-space-2) 0;
    }
}

/* ========================================
   BLOG HERO (listing / archive header)
   ======================================== */

.blog-hero {
    background: var(--ls-gradient-hero);
    padding: 7rem 0 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Radial glow texture (matches homepage hero) */
.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, color-mix(in srgb, var(--ls-accent) 15%, transparent) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--ls-success, #10B981) 10%, transparent) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--ls-accent) 5%, transparent) 0%, transparent 70%);
    pointer-events: none;
}

/* Dot pattern overlay */
.blog-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.blog-hero__container {
    max-width: var(--ls-container-xl);
    margin: 0 auto;
    padding: 0 var(--ls-space-6);
    position: relative;
    z-index: 1;
}

.blog-hero__title {
    font-family: var(--ls-font-heading);
    font-size: var(--ls-text-4xl);
    font-weight: var(--ls-weight-bold);
    color: var(--ls-white);
    margin-bottom: var(--ls-space-4);
    line-height: var(--ls-leading-tight);
}

.blog-hero__subtitle {
    font-size: var(--ls-text-lg);
    color: var(--ls-gray-300);
    max-width: 640px;
    margin: 0 auto;
    line-height: var(--ls-leading-relaxed);
}

.blog-hero__query {
    color: var(--ls-accent-light);
}

/* ========================================
   BLOG MAIN / CONTAINER
   ======================================== */

.blog-main {
    padding: var(--ls-space-16) 0;
    background: var(--ls-white);
}

.blog-container {
    max-width: var(--ls-container-xl);
    margin: 0 auto;
    padding: 0 var(--ls-space-6);
}

/* ========================================
   BLOG GRID (post cards)
   ======================================== */

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--ls-space-8);
}

@media (min-width: 640px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Cap width when fewer than 3 cards to avoid floating orphans */
    .blog-grid:not(:has(> :nth-child(3))) {
        max-width: 720px;
    }
}

/* ========================================
   BLOG CARD
   ======================================== */

.blog-card {
    background: var(--ls-white);
    border: 1px solid var(--ls-gray-200);
    border-radius: var(--ls-radius-xl);
    overflow: hidden;
    transition: transform var(--ls-transition-base), box-shadow var(--ls-transition-base);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ls-shadow-lg);
}

.blog-card__image-link {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.blog-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    transition: transform var(--ls-transition-slow);
}

.blog-card:hover .blog-card__image {
    transform: scale(1.03);
}

.blog-card__image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--ls-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: color-mix(in srgb, var(--ls-accent) 30%, var(--ls-gray-300));
}

.blog-card__body {
    padding: var(--ls-space-6);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card__category {
    display: inline-block;
    font-size: var(--ls-text-xs);
    font-weight: var(--ls-weight-semibold);
    color: var(--ls-accent);
    text-transform: uppercase;
    letter-spacing: var(--ls-tracking-wide);
    margin-bottom: var(--ls-space-3);
    text-decoration: none;
}

.blog-card__category:hover {
    color: var(--ls-accent-hover);
}

.blog-card__title {
    font-family: var(--ls-font-heading);
    font-size: var(--ls-text-xl);
    font-weight: var(--ls-weight-bold);
    line-height: var(--ls-leading-snug);
    margin-bottom: var(--ls-space-3);
}

.blog-card__title a {
    color: var(--ls-gray-900);
    text-decoration: none;
}

.blog-card__title a:hover {
    color: var(--ls-accent);
}

.blog-card__title--sm {
    font-size: var(--ls-text-lg);
}

.blog-card__excerpt {
    font-size: var(--ls-text-sm);
    color: var(--ls-gray-500);
    line-height: var(--ls-leading-relaxed);
    margin-bottom: var(--ls-space-4);
    flex: 1;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: var(--ls-space-2);
    font-size: var(--ls-text-xs);
    color: var(--ls-gray-400);
    margin-top: auto;
}

.blog-card__avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--ls-radius-full);
    margin: 0;
    box-shadow: none;
}

.blog-card__author {
    font-weight: var(--ls-weight-medium);
    color: var(--ls-gray-600);
    text-decoration: none;
}

.blog-card__author:hover {
    color: var(--ls-accent);
}

.blog-card__sep {
    color: var(--ls-gray-300);
}

/* ========================================
   PAGINATION
   ======================================== */

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--ls-space-2);
    margin-top: var(--ls-space-12);
    font-size: var(--ls-text-sm);
}

.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--ls-space-3);
    border-radius: var(--ls-radius-md);
    text-decoration: none;
    transition: all var(--ls-transition-fast);
}

.nav-links a {
    color: var(--ls-gray-600);
    border: 1px solid var(--ls-gray-200);
}

.nav-links a:hover {
    background: var(--ls-gray-50);
    border-color: var(--ls-accent);
    color: var(--ls-accent);
}

.nav-links .current {
    background: var(--ls-accent);
    color: var(--ls-white);
    border: 1px solid var(--ls-accent);
    font-weight: var(--ls-weight-semibold);
}

.nav-links .dots {
    border: none;
    color: var(--ls-gray-400);
}

/* ========================================
   SINGLE POST — HEADER
   ======================================== */

.post-header {
    background: var(--ls-white);
    padding: 5rem 0 1.75rem;
    position: relative;
    border-bottom: 1px solid var(--ls-gray-200);
}

/* Dark overlays removed — light header needs no pseudo-element decoration */
.post-header::before,
.post-header::after {
    display: none;
}

.post-header__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--ls-space-6);
    position: relative;
    z-index: 1;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--ls-space-2);
    font-size: var(--ls-text-xs);
    margin-bottom: var(--ls-space-4);
}

.breadcrumbs a {
    color: var(--ls-gray-500);
    text-decoration: none;
    transition: color 0.15s ease;
}

.breadcrumbs a:hover {
    color: var(--ls-accent);
}

.breadcrumbs__sep {
    color: var(--ls-gray-300);
}

.breadcrumbs__current {
    color: var(--ls-gray-400);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: min(300px, 50vw);
}

/* Hero variant (light text on dark background) */
.breadcrumbs--hero {
    justify-content: center;
    margin-bottom: var(--ls-space-5);
}

.breadcrumbs--hero a {
    color: rgba(255, 255, 255, 0.65);
}

.breadcrumbs--hero a:hover {
    color: var(--ls-white);
}

.breadcrumbs--hero .breadcrumbs__sep {
    color: rgba(255, 255, 255, 0.35);
}

.breadcrumbs--hero .breadcrumbs__current {
    color: rgba(255, 255, 255, 0.5);
}

/* Meta top row */
.post-header__meta-top {
    display: flex;
    align-items: center;
    gap: var(--ls-space-3);
    margin-bottom: var(--ls-space-3);
}

.post-category-badge {
    display: inline-block;
    padding: var(--ls-space-1) var(--ls-space-3);
    background: color-mix(in srgb, var(--ls-accent) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--ls-accent) 25%, transparent);
    border-radius: var(--ls-radius-full);
    font-size: var(--ls-text-xs);
    font-weight: var(--ls-weight-semibold);
    color: var(--ls-accent);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: var(--ls-tracking-wide);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.post-category-badge:hover {
    background: var(--ls-accent);
    color: var(--ls-white);
    border-color: var(--ls-accent);
}

.post-read-time {
    font-size: var(--ls-text-sm);
    color: var(--ls-gray-400);
}

/* Title */
.post-header__title {
    font-family: var(--ls-font-heading);
    font-size: clamp(1.75rem, 1.5rem + 2vw, 2.75rem);
    font-weight: var(--ls-weight-bold);
    color: var(--ls-gray-900);
    line-height: var(--ls-leading-tight);
    letter-spacing: var(--ls-tracking-tight);
    margin-bottom: var(--ls-space-5);
}

/* Author row */
.post-header__author-row {
    display: flex;
    align-items: center;
    gap: var(--ls-space-3);
}

.post-header__avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--ls-radius-full);
    border: 2px solid var(--ls-gray-200);
    margin: 0;
    box-shadow: none;
}

.post-header__author-name {
    font-weight: var(--ls-weight-medium);
    color: var(--ls-gray-700);
    font-size: var(--ls-text-sm);
    display: block;
    text-decoration: none;
}

.post-header__author-name:hover {
    color: var(--ls-accent);
}

.post-header__date {
    font-size: var(--ls-text-xs);
    color: var(--ls-gray-400);
    display: block;
    margin-top: 1px;
}

.post-header__updated {
    color: var(--ls-gray-500);
}

/* Reviewed/Updated badge — visible E-E-A-T trust signal */
.post-header__reviewed {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 0.875rem;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #047857;
}

.post-header__reviewed-icon {
    flex-shrink: 0;
    color: #10b981;
}

.post-header__reviewed time {
    font-weight: 600;
}

.post-header__avatar-link {
    display: block;
    text-decoration: none;
    flex-shrink: 0;
}

/* ========================================
   SINGLE POST — FEATURED IMAGE
   ======================================== */

.post-featured-image {
    margin: 0 0 var(--ls-space-8);
}

.post-featured-image__img {
    width: 100%;
    height: auto;
    border-radius: var(--ls-radius-lg);
    box-shadow: var(--ls-shadow-md);
    margin: 0;
}

/* ========================================
   SINGLE POST — CONTENT WRAPPER

   Layout strategy:
   - Below 1100px: single column, prose capped at 720px, TOC inline+collapsed
   - 1100px–1439px: CSS Grid on .post-content pulls the inline EZ-TOC into a
     260px sticky left sidebar; prose takes the rest; outer container 1200px.
   - 1440px+: outer container expands to 1400px for large screens.

   The EZ-TOC plugin injects #ez-toc-container as the first child of .post-content.
   grid-row: 1 / 999 keeps it anchored to the left across all prose rows.
   ======================================== */

.post-content-wrapper {
    padding: var(--ls-space-12) 0 var(--ls-space-16);
}

/* Default (mobile-first): narrow prose column */
.post-content-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 var(--ls-space-6);
}

/* 1100px+: two-column layout — TOC sidebar left, prose right */
@media (min-width: 1100px) {

    .post-content-container {
        max-width: 1200px;
    }

    /* CSS Grid: 260px TOC column | 48px gap | prose column */
    .post-content {
        display: grid;
        grid-template-columns: 260px 1fr;
        column-gap: 48px;
        align-items: start;
    }

    /* Hugo nav.toc becomes the sticky left sidebar */
    .post-content > nav.toc {
        grid-column: 1;
        grid-row: 1 / 999;
        position: sticky;
        top: 100px;
        max-width: none;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        overscroll-behavior: contain;
        margin: 0;
        border-left: 3px solid #c4dcf0;
        border-radius: var(--ls-radius-lg, 0.75rem);
    }

    /* All other direct children go to the right prose column */
    .post-content > *:not(nav.toc) {
        grid-column: 2;
    }

    /* Tables break slightly wider than the prose column */
    .post-content > table,
    .post-content > .wp-block-table {
        margin-left: -2rem;
        margin-right: -2rem;
    }

    /* Thin scrollbar on the sticky TOC sidebar */
    .post-content > nav.toc::-webkit-scrollbar { width: 4px; }
    .post-content > nav.toc::-webkit-scrollbar-track { background: transparent; }
    .post-content > nav.toc::-webkit-scrollbar-thumb {
        background: var(--ls-gray-300, #d1d5db);
        border-radius: 2px;
    }
}

/* 1440px+: expand outer shell to reduce dead space on large screens */
@media (min-width: 1440px) {

    .post-content-container {
        max-width: 1400px;
    }

    .post-header__container {
        max-width: 1100px;
    }
}

/* ========================================
   POST CONTENT — COMPREHENSIVE ELEMENT STYLING

   design-system.css resets * { margin: 0; padding: 0 }
   so EVERY element needs explicit spacing and styling.
   ======================================== */

/* --- Typography --- */

.post-content h1 {
    font-family: var(--ls-font-heading);
    font-size: var(--ls-text-3xl);
    font-weight: var(--ls-weight-bold);
    color: var(--ls-gray-900);
    line-height: var(--ls-leading-tight);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.post-content h2 {
    font-family: var(--ls-font-heading);
    font-size: var(--ls-text-2xl);
    font-weight: var(--ls-weight-bold);
    color: var(--ls-gray-900);
    line-height: var(--ls-leading-snug);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.post-content h3 {
    font-family: var(--ls-font-heading);
    font-size: var(--ls-text-xl);
    font-weight: var(--ls-weight-semibold);
    color: var(--ls-gray-900);
    line-height: var(--ls-leading-snug);
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

.post-content h4 {
    font-family: var(--ls-font-heading);
    font-size: var(--ls-text-lg);
    font-weight: var(--ls-weight-semibold);
    color: var(--ls-gray-900);
    line-height: var(--ls-leading-snug);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.post-content h5 {
    font-family: var(--ls-font-heading);
    font-size: var(--ls-text-base);
    font-weight: var(--ls-weight-semibold);
    color: var(--ls-gray-900);
    line-height: var(--ls-leading-snug);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.post-content h6 {
    font-family: var(--ls-font-heading);
    font-size: var(--ls-text-sm);
    font-weight: var(--ls-weight-semibold);
    color: var(--ls-gray-500);
    line-height: var(--ls-leading-snug);
    text-transform: uppercase;
    letter-spacing: var(--ls-tracking-wide);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.post-content p {
    font-size: var(--ls-text-base);
    margin-bottom: 1.25rem;
    line-height: var(--ls-leading-relaxed);
    color: var(--ls-gray-700);
}

.post-content strong,
.post-content b {
    font-weight: var(--ls-weight-semibold);
    color: var(--ls-gray-900);
}

.post-content em,
.post-content i {
    font-style: italic;
}

.post-content small {
    font-size: var(--ls-text-sm);
    color: var(--ls-gray-500);
}

.post-content mark {
    background: color-mix(in srgb, var(--ls-accent) 10%, transparent);
    padding: 0.125em 0.25em;
    border-radius: 2px;
    color: inherit;
}

.post-content abbr[title] {
    text-decoration: underline dotted;
    cursor: help;
    text-decoration-color: var(--ls-gray-400);
}

.post-content sup {
    vertical-align: super;
    font-size: 0.75em;
    line-height: 0;
}

.post-content sub {
    vertical-align: sub;
    font-size: 0.75em;
    line-height: 0;
}

.post-content del,
.post-content s {
    text-decoration: line-through;
    color: var(--ls-gray-400);
}

.post-content ins {
    text-decoration: underline;
    background: rgba(16, 185, 129, 0.1);
}

/* --- Lists --- */

.post-content ul {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.post-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    list-style-type: decimal;
}

.post-content li {
    margin-bottom: 0.5rem;
    line-height: var(--ls-leading-relaxed);
    color: var(--ls-gray-700);
}

.post-content li > ul,
.post-content li > ol {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.post-content ul ul {
    list-style-type: circle;
}

.post-content ul ul ul {
    list-style-type: square;
}

.post-content ol ol {
    list-style-type: lower-alpha;
}

.post-content ol ol ol {
    list-style-type: lower-roman;
}

/* --- Blockquotes --- */

.post-content blockquote {
    border-left: 4px solid var(--ls-accent);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--ls-gray-50);
    border-radius: 0 var(--ls-radius-md) var(--ls-radius-md) 0;
    font-style: italic;
    color: var(--ls-gray-700);
}

.post-content blockquote p {
    margin-bottom: 0.5rem;
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

.post-content blockquote cite {
    display: block;
    margin-top: 0.75rem;
    font-style: normal;
    font-size: var(--ls-text-sm);
    color: var(--ls-gray-500);
}

.post-content blockquote cite::before {
    content: "\2014\00a0";
}

/* --- Code --- */

.post-content code {
    background: var(--ls-gray-100);
    padding: 0.125em 0.375em;
    border-radius: var(--ls-radius-sm);
    font-family: var(--ls-font-mono);
    font-size: var(--ls-text-sm);
    color: var(--ls-accent-hover);
    word-break: break-word;
}

.post-content pre {
    background: var(--ls-gray-900);
    color: var(--ls-gray-100);
    padding: 1.5rem;
    border-radius: var(--ls-radius-lg);
    overflow-x: auto;
    margin: 1.5rem 0;
    line-height: 1.6;
    -webkit-overflow-scrolling: touch;
}

.post-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: var(--ls-text-sm);
    border-radius: 0;
    word-break: normal;
}

.post-content kbd {
    background: var(--ls-gray-100);
    border: 1px solid var(--ls-gray-300);
    border-radius: var(--ls-radius-sm);
    padding: 0.125em 0.375em;
    font-family: var(--ls-font-mono);
    font-size: var(--ls-text-sm);
    box-shadow: inset 0 -1px 0 var(--ls-gray-300);
}

/* --- Tables --- */

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: var(--ls-text-sm);
}

.post-content thead {
    background: var(--ls-gray-50);
    border-bottom: 2px solid var(--ls-gray-200);
}

.post-content th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: var(--ls-weight-semibold);
    color: var(--ls-gray-700);
}

.post-content td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--ls-gray-200);
    color: var(--ls-gray-600);
}

.post-content tr:hover {
    background: var(--ls-gray-50);
}

.post-content caption {
    font-size: var(--ls-text-sm);
    color: var(--ls-gray-500);
    margin-bottom: 0.5rem;
    text-align: left;
    caption-side: top;
}

/* Table responsive wrapper */
.post-content .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
}

@media (max-width: 639px) {
    .post-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* --- Media --- */

.post-content img {
    border-radius: var(--ls-radius-lg);
    margin: 1.5rem 0;
    box-shadow: var(--ls-shadow-md);
    max-width: 100%;
    height: auto;
}

.post-content figure {
    margin: 1.5rem 0;
}

.post-content figure img {
    margin: 0;
}

.post-content figcaption {
    font-size: var(--ls-text-sm);
    color: var(--ls-gray-500);
    text-align: center;
    margin-top: 0.5rem;
}

.post-content video {
    width: 100%;
    border-radius: var(--ls-radius-lg);
    margin: 1.5rem 0;
}

.post-content iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--ls-radius-lg);
    margin: 1.5rem 0;
    border: none;
}

/* --- Horizontal Rule --- */

.post-content hr {
    border: none;
    height: 1px;
    background: var(--ls-gray-200);
    margin: 2rem 0;
}

/* --- Links in content --- */

.post-content a {
    color: var(--ls-accent);
    text-decoration: none;
    transition: color var(--ls-transition-fast);
}

.post-content a:hover {
    color: var(--ls-accent-hover);
    text-decoration: underline;
}

.post-content a:visited {
    color: var(--ls-accent-hover);
}

/* --- Definition Lists --- */

.post-content dl {
    margin: 1.5rem 0;
}

.post-content dt {
    font-weight: var(--ls-weight-semibold);
    color: var(--ls-gray-900);
    margin-top: 1rem;
}

.post-content dd {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--ls-gray-600);
    line-height: var(--ls-leading-relaxed);
}

/* --- Details / Summary (collapsible) --- */

.post-content details {
    margin: 1rem 0;
    border: 1px solid var(--ls-gray-200);
    border-radius: var(--ls-radius-md);
    padding: 0.75rem 1rem;
}

.post-content summary {
    cursor: pointer;
    font-weight: var(--ls-weight-medium);
    color: var(--ls-gray-700);
    list-style: revert;
}

.post-content details[open] summary {
    margin-bottom: 0.75rem;
}

/* ========================================
   WORDPRESS-SPECIFIC ELEMENTS
   ======================================== */

/* Alignment */
.post-content .alignleft {
    float: left;
    margin: 0 1.5rem 1rem 0;
}

.post-content .alignright {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

.post-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.post-content .alignwide {
    max-width: calc(100% + 4rem);
    margin-left: -2rem;
    margin-right: -2rem;
}

.post-content .alignfull {
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    overflow-x: hidden;
}

/* WP Blocks */
.post-content .wp-block-image {
    margin: 1.5rem 0;
}

.post-content .wp-block-image img {
    margin: 0;
}

.post-content .wp-block-image figcaption {
    font-size: var(--ls-text-sm);
    color: var(--ls-gray-500);
    text-align: center;
    margin-top: 0.5rem;
}

.post-content .wp-block-gallery {
    display: grid;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.post-content .wp-block-gallery.columns-2 { grid-template-columns: repeat(2, 1fr); }
.post-content .wp-block-gallery.columns-3 { grid-template-columns: repeat(3, 1fr); }
.post-content .wp-block-gallery.columns-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 639px) {
    .post-content .wp-block-gallery.columns-3,
    .post-content .wp-block-gallery.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.post-content .wp-block-gallery img {
    margin: 0;
    border-radius: var(--ls-radius-md);
}

.post-content .wp-block-quote {
    border-left: 4px solid var(--ls-accent);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--ls-gray-50);
    border-radius: 0 var(--ls-radius-md) var(--ls-radius-md) 0;
    font-style: italic;
}

.post-content .wp-block-pullquote {
    border-top: 4px solid var(--ls-accent);
    border-bottom: 4px solid var(--ls-accent);
    border-left: none;
    padding: 1.5rem 0;
    margin: 2rem 0;
    text-align: center;
    background: transparent;
    font-style: normal;
}

.post-content .wp-block-pullquote p {
    font-size: var(--ls-text-xl);
    font-weight: var(--ls-weight-medium);
    color: var(--ls-gray-900);
    line-height: var(--ls-leading-snug);
}

.post-content .wp-block-pullquote cite {
    font-size: var(--ls-text-sm);
    color: var(--ls-gray-500);
    font-style: normal;
}

.post-content .wp-block-separator {
    border: none;
    height: 1px;
    background: var(--ls-gray-200);
    margin: 2rem 0;
}

.post-content .wp-block-separator.is-style-wide {
    max-width: none;
}

.post-content .wp-block-separator.is-style-dots {
    height: auto;
    background: none;
    text-align: center;
    line-height: 1;
    letter-spacing: 0.5em;
    color: var(--ls-gray-400);
}

.post-content .wp-block-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
}

.post-content .wp-block-embed {
    margin: 1.5rem 0;
}

.post-content .wp-block-embed__wrapper {
    position: relative;
}

.post-content .wp-block-embed iframe {
    margin: 0;
}

.post-content .wp-block-code {
    background: var(--ls-gray-900);
    color: var(--ls-gray-100);
    padding: 1.5rem;
    border-radius: var(--ls-radius-lg);
    margin: 1.5rem 0;
    overflow-x: auto;
}

.post-content .wp-block-code code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: var(--ls-text-sm);
}

.post-content .wp-block-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.post-content .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: var(--ls-space-3) var(--ls-space-6);
    background: var(--ls-gradient-cta);
    color: var(--ls-white);
    border-radius: var(--ls-radius-lg);
    font-weight: var(--ls-weight-semibold);
    font-size: var(--ls-text-base);
    text-decoration: none;
    transition: transform var(--ls-transition-base), box-shadow var(--ls-transition-base);
    box-shadow: 0 4px 14px 0 color-mix(in srgb, var(--ls-accent) 40%, transparent);
}

.post-content .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 color-mix(in srgb, var(--ls-accent) 50%, transparent);
    color: var(--ls-white);
    text-decoration: none;
}

.post-content .wp-block-button__link:visited {
    color: var(--ls-white);
}

.post-content .wp-block-columns {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.post-content .wp-block-column {
    flex: 1;
    min-width: 0;
}

@media (max-width: 767px) {
    .post-content .wp-block-columns {
        flex-direction: column;
    }

    /* Keep CTA bar horizontal on tablets (640-767px) — the bar's own
       mobile stacking fires below 640px via a scoped media query. */
    .post-content .cta-bar .wp-block-columns {
        flex-direction: row !important;
    }
}

/* In-content CTA bars (authored in block editor with inline styles)
 *
 * HTML structure (immutable — set in block editor):
 *   .cta-bar.wp-block-columns[inline bg + padding]
 *     .wp-block-column
 *       .wp-block-columns.are-vertically-aligned-center
 *         .wp-block-column.cta-bar-left[flex-basis:60%]
 *           p.cta-text-1.has-white-color.has-small-font-size
 *         .wp-block-column.cta-bar-right[flex-basis:40%]
 *           .wp-block-buttons.is-content-justification-right
 *             .wp-block-button.cta-button
 *               a.wp-block-button__link[inline border-radius + bg + padding]
 *
 * Design reference: .cta-banner (end-of-post template banner)
 */

/* ---- Outer container ---- */
.post-content .cta-bar {
    /* Override inline background-color with the branded gradient */
    background:
        radial-gradient(circle at 20% 80%, color-mix(in srgb, var(--ls-accent) 20%, transparent) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--ls-success, #10B981) 15%, transparent) 0%, transparent 50%),
        var(--ls-gradient-hero) !important;
    border-radius: var(--ls-radius-xl) !important;
    /* Generous padding matches .cta-banner; inline padding from block editor is overridden */
    padding: var(--ls-space-8) !important;
    /* Extra vertical margin separates it clearly from surrounding body text */
    margin: var(--ls-space-10) 0 !important;
    overflow: hidden;
    position: relative;
}

/* ---- Direct child wrapper column — must fill full width ---- */
.post-content .cta-bar > .wp-block-column {
    flex: 1 1 100% !important;
    min-width: 0 !important;
    /* Cancel any flex-basis the block editor injects on the outer wrapper */
    width: 100% !important;
}

/* ---- Inner .wp-block-columns row (text + button side-by-side) ----
   The general rule at line 1196 sets margin on .wp-block-columns;
   override it here so there is no extra vertical gap inside the bar. */
.post-content .cta-bar .wp-block-columns {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: var(--ls-space-6) !important;
    margin: 0 !important;
}

/* ---- Left text column ---- */
.post-content .cta-bar .cta-bar-left {
    /* flex-basis:60% is set inline; honour it but allow shrink */
    flex-shrink: 1 !important;
    min-width: 0 !important;
}

/* ---- Right button column ---- */
.post-content .cta-bar .cta-bar-right {
    flex-shrink: 0 !important;
}

/* ---- CTA text — override WordPress has-small-font-size ----
   Specificity must beat .has-small-font-size on the same element,
   so we target the class directly alongside the ancestor chain.
   Matches .cta-banner__title (--ls-text-xl, bold, heading font). */
.post-content .cta-bar p,
.post-content .cta-bar p.has-small-font-size,
.post-content .cta-bar .cta-text-1 {
    font-family: var(--ls-font-heading) !important;
    font-size: var(--ls-text-xl) !important;
    font-weight: var(--ls-weight-bold) !important;
    color: var(--ls-white) !important;
    line-height: var(--ls-leading-snug) !important;
    margin: 0 !important;
}

/* ---- Button wrapper ---- */
.post-content .cta-bar .wp-block-button {
    margin: 0 !important;
    width: auto !important;
    /* Cancel the width-75 class percentage so button sizes to content */
    max-width: none !important;
}

/* ---- Button link — match .cta-banner__button styling ---- */
.post-content .cta-bar .wp-block-button__link {
    display: inline-flex !important;
    align-items: center !important;
    gap: var(--ls-space-2) !important;
    background: var(--ls-gradient-cta) !important;
    border-radius: var(--ls-radius-lg) !important;
    padding: var(--ls-space-3) var(--ls-space-6) !important;
    color: var(--ls-white) !important;
    font-size: var(--ls-text-base) !important;
    font-weight: var(--ls-weight-semibold) !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    /* Fallback for browsers without color-mix() (Safari <16.2 / iOS 15) */
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.4) !important;
    box-shadow: 0 4px 14px 0 color-mix(in srgb, var(--ls-accent) 40%, transparent) !important;
    transition: transform var(--ls-transition-base, 200ms ease),
                box-shadow var(--ls-transition-base, 200ms ease) !important;
    letter-spacing: normal !important;
}

/* Arrow icon after button text — matches .cta-banner__button SVG arrow */
.post-content .cta-bar .wp-block-button__link::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background: currentColor;
    /* -webkit-mask first for Safari, standard mask last for spec compliance */
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") no-repeat center / contain;
    flex-shrink: 0;
}

/* Normalise <strong> inside button — parent already sets semibold */
.post-content .cta-bar .wp-block-button__link strong {
    font-weight: inherit;
}

.post-content .cta-bar .wp-block-button__link:hover,
.post-content .cta-bar .wp-block-button__link:focus-visible {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.5) !important;
    box-shadow: 0 6px 20px 0 color-mix(in srgb, var(--ls-accent) 50%, transparent) !important;
    color: var(--ls-white) !important;
}

/* ---- Two-paragraph support: title + subtitle ----
   When the block editor text is split into two <p> tags, style the first
   as a heading (like .cta-banner__title) and the second as a subtitle
   (like .cta-banner__text). */
.post-content .cta-bar .cta-bar-left p + p {
    font-family: var(--ls-font-body, inherit) !important;
    font-size: var(--ls-text-sm) !important;
    font-weight: var(--ls-weight-normal) !important;
    color: var(--ls-gray-300) !important;
    line-height: var(--ls-leading-relaxed) !important;
    margin-top: var(--ls-space-1) !important;
}

/* ---- Mobile: stack vertically below 768 px (matches .cta-banner) ---- */
@media (max-width: 767px) {
    .post-content .cta-bar {
        padding: var(--ls-space-6) !important;
        margin: var(--ls-space-8) 0 !important;
    }

    /* Stack text above button */
    .post-content .cta-bar .wp-block-columns {
        flex-direction: column !important;
        align-items: center !important;
        gap: var(--ls-space-4) !important;
    }

    /* Centre text in columns on mobile */
    .post-content .cta-bar .cta-bar-left,
    .post-content .cta-bar .cta-bar-right {
        flex-basis: 100% !important;
        width: 100% !important;
        text-align: center !important;
    }

    /* Centre the button on mobile */
    .post-content .cta-bar .wp-block-buttons {
        justify-content: center !important;
    }

    .post-content .cta-bar .wp-block-button {
        width: auto !important;
    }

    .post-content .cta-bar .wp-block-button__link {
        min-width: 10rem !important;
        justify-content: center !important;
    }
}

/* WordPress captions (classic editor) */
.post-content .wp-caption {
    margin: 1.5rem 0;
    max-width: 100%;
}

.post-content .wp-caption img {
    margin: 0;
}

.post-content .wp-caption-text {
    font-size: var(--ls-text-sm);
    color: var(--ls-gray-500);
    text-align: center;
    margin-top: 0.5rem;
}

/* ========================================
   POST TAGS
   ======================================== */

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ls-space-2);
    margin-top: var(--ls-space-8);
    padding-top: var(--ls-space-6);
    border-top: 1px solid var(--ls-gray-200);
}

.post-tag {
    display: inline-block;
    padding: var(--ls-space-1) var(--ls-space-3);
    background: var(--ls-gray-100);
    border-radius: var(--ls-radius-full);
    font-size: var(--ls-text-xs);
    color: var(--ls-gray-600);
    text-decoration: none;
    transition: all var(--ls-transition-fast);
}

.post-tag:hover {
    background: var(--ls-accent);
    color: var(--ls-white);
}

/* ========================================
   CATEGORY LINKS (SEO internal linking)
   ======================================== */

.post-categories {
    margin-top: var(--ls-space-10);
    padding-top: var(--ls-space-8);
    border-top: 1px solid var(--ls-gray-200);
}

.post-categories__title {
    font-family: var(--ls-font-heading);
    font-size: var(--ls-text-lg);
    font-weight: var(--ls-weight-semibold);
    color: var(--ls-gray-900);
    margin-bottom: var(--ls-space-4);
}

.post-categories__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ls-space-2);
}

.post-categories__link {
    display: inline-flex;
    align-items: center;
    gap: var(--ls-space-2);
    padding: var(--ls-space-2) var(--ls-space-4);
    background: var(--ls-gray-50);
    border: 1px solid var(--ls-gray-200);
    border-radius: var(--ls-radius-full);
    font-size: var(--ls-text-sm);
    color: var(--ls-gray-600);
    text-decoration: none;
    transition: all var(--ls-transition-fast);
}

.post-categories__link:hover {
    background: var(--ls-accent);
    border-color: var(--ls-accent);
    color: var(--ls-white);
}

.post-categories__link--active {
    background: var(--ls-accent);
    border-color: var(--ls-accent);
    color: var(--ls-white);
}

.post-categories__count {
    font-size: var(--ls-text-xs);
    opacity: 0.7;
}

.post-categories__link:hover .post-categories__count,
.post-categories__link--active .post-categories__count {
    opacity: 0.9;
}

/* ========================================
   CTA BANNER
   ======================================== */

.cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ls-space-6);
    background:
        radial-gradient(circle at 20% 80%, color-mix(in srgb, var(--ls-accent) 20%, transparent) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--ls-success, #10B981) 15%, transparent) 0%, transparent 50%),
        var(--ls-gradient-hero);
    border-radius: var(--ls-radius-xl);
    padding: var(--ls-space-8);
    margin: var(--ls-space-10) 0;
    position: relative;
    overflow: hidden;
}

.cta-banner__title {
    font-family: var(--ls-font-heading);
    font-size: var(--ls-text-xl);
    font-weight: var(--ls-weight-bold);
    color: var(--ls-white);
    margin-bottom: var(--ls-space-2);
    line-height: var(--ls-leading-snug);
}

.cta-banner__text {
    font-size: var(--ls-text-sm);
    color: var(--ls-gray-300);
    line-height: var(--ls-leading-relaxed);
}

.cta-banner__button {
    display: inline-flex;
    align-items: center;
    gap: var(--ls-space-2);
    padding: var(--ls-space-3) var(--ls-space-6);
    background: var(--ls-gradient-cta);
    color: var(--ls-white);
    border-radius: var(--ls-radius-lg);
    font-weight: var(--ls-weight-semibold);
    font-size: var(--ls-text-base);
    text-decoration: none;
    white-space: nowrap;
    transition: transform var(--ls-transition-base), box-shadow var(--ls-transition-base);
    /* Fallback for browsers without color-mix() */
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.4);
    box-shadow: 0 4px 14px 0 color-mix(in srgb, var(--ls-accent) 40%, transparent);
}

.cta-banner__button:hover,
.cta-banner__button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.5);
    box-shadow: 0 6px 20px 0 color-mix(in srgb, var(--ls-accent) 50%, transparent);
    color: var(--ls-white);
}

.cta-banner__button:focus-visible {
    outline: 3px solid var(--ls-white);
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: var(--ls-space-6);
    }
}

/* ========================================
   AUTHOR BIO
   ======================================== */

.author-bio {
    display: flex;
    gap: var(--ls-space-5);
    padding: var(--ls-space-6);
    background: var(--ls-gray-50);
    border-radius: var(--ls-radius-xl);
    margin-top: var(--ls-space-10);
    border: 1px solid var(--ls-gray-200);
}

.author-bio__avatar a {
    display: block;
    text-decoration: none;
}

.author-bio__img {
    width: 80px;
    height: 80px;
    border-radius: var(--ls-radius-full);
    flex-shrink: 0;
    margin: 0;
    box-shadow: none;
}

.author-bio__name {
    font-family: var(--ls-font-heading);
    font-size: var(--ls-text-lg);
    font-weight: var(--ls-weight-semibold);
    color: var(--ls-gray-900);
    margin-bottom: var(--ls-space-2);
    line-height: var(--ls-leading-snug);
}

.author-bio__name a {
    color: inherit;
    text-decoration: none;
}

.author-bio__name a:hover {
    color: var(--ls-accent);
}

.author-bio__desc {
    font-size: var(--ls-text-sm);
    color: var(--ls-gray-500);
    line-height: var(--ls-leading-relaxed);
    margin-bottom: var(--ls-space-3);
}

.author-bio__posts-link {
    font-size: var(--ls-text-sm);
    font-weight: var(--ls-weight-medium);
    color: var(--ls-accent);
    text-decoration: none;
}

.author-bio__posts-link:hover {
    text-decoration: underline;
}

.author-bio__more {
    color: var(--ls-accent);
    font-weight: var(--ls-weight-medium);
    text-decoration: none;
    margin-left: 0.25rem;
    white-space: nowrap;
}

.author-bio__more:hover {
    text-decoration: underline;
}

.author-bio__social {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.author-bio__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ls-white);
    color: var(--ls-gray-600);
    text-decoration: none;
    transition: all 0.15s ease;
    border: 1px solid var(--ls-gray-200);
}

.author-bio__social a:hover {
    background: var(--ls-accent);
    color: var(--ls-white);
    border-color: var(--ls-accent);
    transform: translateY(-1px);
}

@media (max-width: 639px) {
    .author-bio {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .author-bio__social {
        justify-content: center;
    }
}

/* ========================================
   AUTHOR PAGE (term page for authors taxonomy)
   ======================================== */

.author-hero {
    background: var(--ls-gradient-hero);
    padding: 6rem 0 3rem;
    color: var(--ls-white);
}

.author-hero__container {
    max-width: var(--ls-container-xl);
    margin: 0 auto;
    padding: 0 var(--ls-space-6);
}

.author-hero__inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.author-hero__avatar img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.15);
    object-fit: cover;
    flex-shrink: 0;
}

.author-hero__info {
    flex: 1;
}

.author-hero__name {
    font-family: var(--ls-font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: var(--ls-weight-bold);
    margin: 0 0 0.5rem;
    color: var(--ls-white);
}

.author-hero__role {
    font-size: 1.125rem;
    color: var(--ls-gray-300);
    margin: 0 0 1.25rem;
}

.author-hero__role a {
    color: var(--ls-white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.author-hero__role a:hover {
    border-bottom-color: var(--ls-white);
}

.author-hero__social {
    display: flex;
    gap: 0.75rem;
}

.author-hero__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--ls-white);
    text-decoration: none;
    transition: all 0.15s ease;
}

.author-hero__social a:hover {
    background: var(--ls-white);
    color: var(--ls-gray-900);
    transform: translateY(-2px);
}

.author-main {
    background: var(--ls-white);
    padding: var(--ls-space-12) 0 var(--ls-space-16);
}

.author-container {
    max-width: var(--ls-container-xl);
    margin: 0 auto;
    padding: 0 var(--ls-space-6);
}

.author-section {
    margin-bottom: var(--ls-space-12);
}

.author-section__title {
    font-family: var(--ls-font-heading);
    font-size: 1.5rem;
    font-weight: var(--ls-weight-bold);
    color: var(--ls-gray-900);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--ls-gray-100);
}

.author-bio-text {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--ls-gray-700);
    max-width: 720px;
}

.author-bio-text p {
    margin: 0 0 1rem;
}

.author-credentials {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.75rem;
}

.author-credentials li {
    padding: 0.75rem 1rem;
    background: var(--ls-gray-50);
    border-left: 3px solid var(--ls-accent);
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    color: var(--ls-gray-700);
}

.author-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.author-expertise__tag {
    display: inline-block;
    padding: 0.5rem 0.875rem;
    background: #edf6ff;
    color: var(--ls-accent);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .author-hero__inner {
        flex-direction: column;
        text-align: center;
    }
    .author-hero__avatar img {
        width: 120px;
        height: 120px;
    }
}

/* ========================================
   RELATED POSTS
   ======================================== */

.related-posts {
    background: var(--ls-gray-100);
    padding: var(--ls-space-16) 0;
    border-top: 1px solid var(--ls-gray-200);
}

.related-posts__container {
    max-width: var(--ls-container-xl);
    margin: 0 auto;
    padding: 0 var(--ls-space-6);
}

.related-posts__title {
    font-family: var(--ls-font-heading);
    font-size: var(--ls-text-2xl);
    font-weight: var(--ls-weight-bold);
    color: var(--ls-gray-900);
    margin-bottom: var(--ls-space-8);
    text-align: center;
    line-height: var(--ls-leading-tight);
}

.related-posts__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--ls-space-8);
}

@media (min-width: 640px) {
    .related-posts__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .related-posts__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   CONTENT NONE (no results)
   ======================================== */

.content-none {
    text-align: center;
    padding: var(--ls-space-16) 0;
}

.content-none__title {
    font-family: var(--ls-font-heading);
    font-size: var(--ls-text-2xl);
    font-weight: var(--ls-weight-bold);
    color: var(--ls-gray-900);
    margin-bottom: var(--ls-space-4);
}

.content-none__text {
    font-size: var(--ls-text-lg);
    color: var(--ls-gray-500);
    margin-bottom: var(--ls-space-8);
    line-height: var(--ls-leading-relaxed);
}

.content-none__search {
    max-width: 480px;
    margin: 0 auto;
}

/* ========================================
   404 PAGE
   ======================================== */

.page-main {
    padding: var(--ls-space-16) 0;
    background: var(--ls-white);
}

.page-main--404 {
    padding: 8rem 0 var(--ls-space-16);
}

.page-container {
    max-width: var(--ls-container-xl);
    margin: 0 auto;
    padding: 0 var(--ls-space-6);
}

.page-container--narrow {
    max-width: 640px;
}

.page-header {
    margin-bottom: var(--ls-space-8);
    padding: 8rem 0 var(--ls-space-8);
    background: var(--ls-gradient-hero);
    margin: calc(-1 * var(--ls-space-16)) calc(-50vw + 50%) var(--ls-space-8);
    width: 100vw;
    padding-left: var(--ls-space-6);
    padding-right: var(--ls-space-6);
    text-align: center;
}

.page-header__title {
    font-family: var(--ls-font-heading);
    font-size: var(--ls-text-4xl);
    font-weight: var(--ls-weight-bold);
    color: var(--ls-white);
    max-width: var(--ls-container-xl);
    margin: 0 auto;
    line-height: var(--ls-leading-tight);
}

.not-found {
    text-align: center;
}

.not-found__title {
    font-family: var(--ls-font-heading);
    font-size: var(--ls-text-5xl);
    font-weight: var(--ls-weight-bold);
    color: var(--ls-gray-200);
    margin-bottom: var(--ls-space-4);
    line-height: 1;
}

.not-found__subtitle {
    font-family: var(--ls-font-heading);
    font-size: var(--ls-text-2xl);
    font-weight: var(--ls-weight-bold);
    color: var(--ls-gray-900);
    margin-bottom: var(--ls-space-4);
}

.not-found__text {
    font-size: var(--ls-text-lg);
    color: var(--ls-gray-500);
    margin-bottom: var(--ls-space-8);
    line-height: var(--ls-leading-relaxed);
}

.not-found__search {
    max-width: 400px;
    margin: 0 auto var(--ls-space-8);
}

.not-found__links {
    text-align: center;
}

.not-found__links p {
    font-size: var(--ls-text-sm);
    color: var(--ls-gray-500);
    margin-bottom: var(--ls-space-3);
}

.not-found__links ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: var(--ls-space-6);
}

.not-found__links a {
    color: var(--ls-accent);
    font-weight: var(--ls-weight-medium);
}

/* ========================================
   SEARCH FORM
   ======================================== */

.search-form__wrapper {
    display: flex;
    border: 1px solid var(--ls-gray-200);
    border-radius: var(--ls-radius-lg);
    overflow: hidden;
    transition: border-color var(--ls-transition-fast);
}

.search-form__wrapper:focus-within {
    border-color: var(--ls-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ls-accent) 10%, transparent);
}

.search-form__input {
    flex: 1;
    padding: var(--ls-space-3) var(--ls-space-4);
    border: none;
    font-family: var(--ls-font-body);
    font-size: var(--ls-text-base);
    color: var(--ls-gray-900);
    background: var(--ls-white);
    outline: none;
}

.search-form__input::placeholder {
    color: var(--ls-gray-400);
}

.search-form__button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--ls-space-3) var(--ls-space-4);
    background: var(--ls-accent);
    color: var(--ls-white);
    border: none;
    cursor: pointer;
    transition: background var(--ls-transition-fast);
}

.search-form__button:hover {
    background: var(--ls-accent-hover);
}

/* ========================================
   NAV SEARCH TOGGLE
   ======================================== */

.nav-2026__search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--ls-gray-300);
    cursor: pointer;
    padding: var(--ls-space-1);
    transition: color var(--ls-transition-fast);
}

.nav-2026__search-toggle:hover {
    color: var(--ls-white);
}

/* ========================================
   SEARCH OVERLAY
   ======================================== */

/* ==========================================================================
   Search Overlay — full-screen modal with Pagefind
   ========================================================================== */

.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 10vh 1rem 2rem;
    background: rgba(10, 15, 28, 0.95);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    overflow-y: auto;

    /* Override Pagefind defaults for dark theme */
    --pagefind-ui-scale: 0.85;
    --pagefind-ui-primary: #60a5fa;
    --pagefind-ui-text: #e2e8f0;
    --pagefind-ui-background: transparent;
    --pagefind-ui-border: rgba(255, 255, 255, 0.1);
    --pagefind-ui-tag: rgba(255, 255, 255, 0.1);
}

.search-overlay--open {
    opacity: 1;
    visibility: visible;
}

.search-overlay__inner {
    width: 100%;
    max-width: 600px;
    position: relative;
    transform: translateY(-8px);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.15s ease;
}

.search-overlay--open .search-overlay__inner {
    transform: translateY(0);
    opacity: 1;
}

/* Close button */
.search-overlay__close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: var(--ls-gray-400);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.15s, background 0.15s;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-overlay__close:hover {
    color: var(--ls-white);
    background: rgba(255, 255, 255, 0.14);
}

/* --- Pagefind UI overrides for dark overlay --- */

/* Search input */
.search-overlay .pagefind-ui__search-input {
    width: 100%;
    padding: 1rem 3.5rem 1rem 3rem;
    font-family: var(--ls-font-body);
    font-size: 1.125rem;
    font-weight: 500;
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.search-overlay .pagefind-ui__search-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.search-overlay .pagefind-ui__search-input:focus {
    border-color: var(--ls-accent, #2563eb);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Search icon in Pagefind form */
.search-overlay .pagefind-ui__form::before {
    background-color: rgba(255, 255, 255, 0.5);
}

/* Clear button */
.search-overlay .pagefind-ui__search-clear {
    color: rgba(255, 255, 255, 0.4);
    background: transparent;
    font-size: 0.8125rem;
    font-weight: 500;
}

.search-overlay .pagefind-ui__search-clear:hover {
    color: #fff;
}

/* Results count message */
.search-overlay .pagefind-ui__message {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.75rem 0;
}

/* Results area */
.search-overlay .pagefind-ui__results-area {
    margin-top: 0.5rem;
}

.search-overlay .pagefind-ui__results {
    padding: 0;
}

/* Individual result */
.search-overlay .pagefind-ui__result {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 0.5rem;
    transition: background 0.15s;
    gap: 1rem;
}

.search-overlay .pagefind-ui__result:last-of-type {
    border-bottom: none;
}

.search-overlay .pagefind-ui__result:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Result thumbnail */
.search-overlay .pagefind-ui__result-thumb {
    width: 60px;
    max-width: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.search-overlay .pagefind-ui__result-image {
    border-radius: 6px;
}

/* Result title / link — needs !important to override Pagefind's scoped Svelte styles */
.search-overlay .pagefind-ui__result-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.search-overlay .pagefind-ui__result-title .pagefind-ui__result-link {
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.4;
}

.search-overlay .pagefind-ui__result-title .pagefind-ui__result-link:hover {
    color: var(--ls-accent, #60a5fa) !important;
    text-decoration: underline;
}

/* Result excerpt */
.search-overlay .pagefind-ui__result-excerpt {
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 0.8125rem;
    line-height: 1.6;
}

/* Keyword highlight */
.search-overlay mark {
    background: rgba(96, 165, 250, 0.25);
    color: #fff !important;
    padding: 1px 4px;
    border-radius: 3px;
}

/* "Load more" button */
.search-overlay .pagefind-ui__button {
    margin-top: 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.search-overlay .pagefind-ui__button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Keyboard shortcut hint */
.search-overlay__hint {
    text-align: center;
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.75rem;
    margin-top: 1rem;
    padding-bottom: 2rem;
}

.search-overlay__hint kbd {
    display: inline-block;
    padding: 2px 6px;
    font-family: var(--ls-font-body);
    font-size: 0.6875rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    margin: 0 2px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .search-overlay {
        padding: 5vh 0.75rem 1rem;
    }

    .search-overlay .pagefind-ui__search-input {
        font-size: 1rem;
        padding: 0.875rem 3rem 0.875rem 2.75rem;
    }

    .search-overlay .pagefind-ui__result {
        padding: 0.75rem 1rem;
    }

    .search-overlay .pagefind-ui__result-thumb {
        width: 48px;
        max-width: 48px;
    }

    .search-overlay__close {
        top: 1rem;
        right: 1rem;
    }
}

/* ========================================
   SIDEBAR
   ======================================== */

.sidebar-widget {
    margin-bottom: var(--ls-space-8);
    padding: var(--ls-space-6);
    background: var(--ls-white);
    border: 1px solid var(--ls-gray-200);
    border-radius: var(--ls-radius-xl);
}

.sidebar-widget__title {
    font-family: var(--ls-font-heading);
    font-size: var(--ls-text-sm);
    font-weight: var(--ls-weight-semibold);
    color: var(--ls-gray-500);
    text-transform: uppercase;
    letter-spacing: var(--ls-tracking-wide);
    margin-bottom: var(--ls-space-4);
    padding-bottom: var(--ls-space-3);
    border-bottom: 1px solid var(--ls-gray-200);
    line-height: var(--ls-leading-snug);
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
}

.sidebar-widget li {
    margin-bottom: var(--ls-space-2);
}

.sidebar-widget a {
    color: var(--ls-gray-700);
    font-size: var(--ls-text-sm);
    text-decoration: none;
    transition: color var(--ls-transition-fast);
}

.sidebar-widget a:hover {
    color: var(--ls-accent);
}

/* ========================================
   COMMENTS
   ======================================== */

.comments-area {
    margin-top: var(--ls-space-12);
    padding-top: var(--ls-space-8);
    border-top: 1px solid var(--ls-gray-200);
}

.comments-area__title {
    font-family: var(--ls-font-heading);
    font-size: var(--ls-text-xl);
    font-weight: var(--ls-weight-bold);
    color: var(--ls-gray-900);
    margin-bottom: var(--ls-space-6);
    line-height: var(--ls-leading-snug);
}

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

.comment-list .comment {
    margin-bottom: var(--ls-space-6);
    padding: var(--ls-space-5);
    background: var(--ls-gray-50);
    border-radius: var(--ls-radius-lg);
}

.comment-list .comment-author {
    display: flex;
    align-items: center;
    gap: var(--ls-space-3);
    margin-bottom: var(--ls-space-3);
}

.comment-list .comment-author img {
    border-radius: var(--ls-radius-full);
    margin: 0;
    box-shadow: none;
}

.comment-list .comment-body p {
    font-size: var(--ls-text-sm);
    color: var(--ls-gray-600);
    line-height: var(--ls-leading-relaxed);
    margin-bottom: 0.5rem;
}

/* Comment form */
.comment-form label {
    display: block;
    font-size: var(--ls-text-sm);
    font-weight: var(--ls-weight-medium);
    color: var(--ls-gray-700);
    margin-bottom: var(--ls-space-2);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: var(--ls-space-3) var(--ls-space-4);
    border: 1px solid var(--ls-gray-200);
    border-radius: var(--ls-radius-md);
    font-family: var(--ls-font-body);
    font-size: var(--ls-text-base);
    color: var(--ls-gray-900);
    background: var(--ls-white);
    margin-bottom: var(--ls-space-4);
    transition: border-color var(--ls-transition-fast);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--ls-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ls-accent) 10%, transparent);
}

.comment-form__submit {
    display: inline-flex;
    align-items: center;
    padding: var(--ls-space-3) var(--ls-space-6);
    background: var(--ls-gradient-cta);
    color: var(--ls-white);
    border: none;
    border-radius: var(--ls-radius-lg);
    font-family: var(--ls-font-body);
    font-weight: var(--ls-weight-semibold);
    font-size: var(--ls-text-base);
    cursor: pointer;
    transition: transform var(--ls-transition-base), box-shadow var(--ls-transition-base);
    box-shadow: 0 4px 14px 0 color-mix(in srgb, var(--ls-accent) 40%, transparent);
}

.comment-form__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 color-mix(in srgb, var(--ls-accent) 50%, transparent);
}

/* ========================================
   EZ-TOC PLUGIN STYLING
   ======================================== */

#ez-toc-container {
    background: var(--ls-gray-50);
    border: 1px solid var(--ls-gray-200);
    border-left: 4px solid var(--ls-accent);
    border-radius: var(--ls-radius-xl);
    padding: var(--ls-space-4) var(--ls-space-6);
    margin: var(--ls-space-6) 0;
}

.ez-toc-title-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ez-toc-title {
    font-family: var(--ls-font-heading);
    font-size: var(--ls-text-base);
    font-weight: var(--ls-weight-semibold);
    color: var(--ls-gray-900);
    margin-bottom: 0;
}

/* Collapsed by default on narrow screens — overridden in sidebar mode above */
#ez-toc-container nav {
    display: none;
    padding-top: var(--ls-space-4);
}

#ez-toc-container nav.ez-toc-open {
    display: block;
}

#ez-toc-container nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#ez-toc-container nav ul ul {
    padding-left: var(--ls-space-5);
    margin: 0;
}

#ez-toc-container nav li {
    margin-bottom: var(--ls-space-2);
}

#ez-toc-container nav a {
    color: var(--ls-gray-600);
    font-size: var(--ls-text-sm);
    text-decoration: none;
    transition: color var(--ls-transition-fast);
    line-height: var(--ls-leading-relaxed);
}

#ez-toc-container nav a:hover {
    color: var(--ls-accent);
}

/* Active link highlight — EZ-TOC JS scroll spy adds this class */
#ez-toc-container nav a.active {
    color: var(--ls-accent);
    font-weight: var(--ls-weight-semibold);
}

/* ========================================
   NAV ACTIVE STATE (Blog link)
   ======================================== */

.nav-2026__link--active {
    color: var(--ls-white) !important;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .nav-2026,
    .footer-2026,
    .blog-sidebar,
    .cta-banner,
    .cta-bar,
    .related-posts,
    .comments-area,
    .post-tags,
    .breadcrumbs,
    .search-form,
    #ez-toc-container,
    #wpadminbar {
        display: none !important;
    }

    /* Reset grid layout to single-column for print */
    .post-content {
        display: block !important;
    }

    .post-content-wrapper,
    .post-content-container {
        max-width: 100% !important;
        padding: 0 !important;
    }

    .post-header {
        background: none !important;
        padding-top: 0;
    }

    .post-header__title,
    .post-header__author-name {
        color: #000 !important;
    }

    .post-header__date,
    .post-category-badge,
    .post-read-time {
        color: #666 !important;
    }

    .post-content img {
        box-shadow: none;
        border-radius: 0;
    }

    .post-featured-image__img {
        box-shadow: none;
        border-radius: 0;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    /* Show full URL after external links only; skip fragments and relative paths */
    a[href]:not([href^="#"]):not([href^="/"]):not([href^="?"]):not(.post-tag):not(.blog-card__category)::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}

/* ========================================
   REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .blog-card,
    .cta-banner__button,
    .wp-block-button__link,
    .comment-form__submit {
        transition: none;
    }

    .blog-card:hover {
        transform: none;
        box-shadow: var(--ls-shadow-lg);
    }

    .blog-card:hover .blog-card__image {
        transform: none;
    }
}

/* ========================================
   TABLE OF CONTENTS (Hugo native TOC)
   Styled to match EZ-TOC light-blue theme
   ======================================== */

.post-content nav.toc {
    background: #edf6ff;
    border: 1px solid #c4dcf0;
    border-radius: var(--ls-radius-md, 0.5rem);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    max-width: 340px;
}

.post-content nav.toc .toc__title {
    font-size: 1rem;
    font-weight: var(--ls-weight-semibold, 600);
    color: var(--ls-gray-800, #1e293b);
    margin: 0 0 0.75rem;
}

.post-content nav.toc ol,
.post-content nav.toc ul {
    margin: 0;
    padding: 0 0 0 1.25rem;
    list-style: none;
}

.post-content nav.toc ol ol,
.post-content nav.toc ul ul {
    margin-top: 0.25rem;
    padding-left: 1.25rem;
}


.post-content nav.toc li {
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--ls-gray-700, #374151);
}

.post-content nav.toc a {
    color: var(--ls-gray-700, #374151);
    text-decoration: none;
    transition: color 0.15s;
}

.post-content nav.toc a:hover {
    color: var(--ls-accent, #3b82f6);
}

@media (max-width: 768px) {
    .post-content nav.toc {
        max-width: 100%;
    }
}


/* ========================================
   STAT CALLOUT (citable statistics shortcode)
   ======================================== */

.stat-callout {
    background: linear-gradient(135deg, #edf6ff 0%, #f5faff 100%);
    border-left: 4px solid var(--ls-accent, #3b82f6);
    border-radius: 0.5rem;
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
    display: block;
}

.stat-callout__value {
    font-family: var(--ls-font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ls-accent, #3b82f6);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-callout__label {
    font-size: 1rem;
    color: var(--ls-gray-800, #1e293b);
    line-height: 1.5;
    font-weight: 500;
}

.stat-callout__source {
    display: block;
    font-size: 0.8125rem;
    color: var(--ls-gray-500, #6b7280);
    margin-top: 0.75rem;
    font-style: normal;
}

.stat-callout__source a {
    color: var(--ls-gray-600, #4b5563);
    text-decoration: underline;
    text-decoration-color: var(--ls-gray-300, #d1d5db);
}

.stat-callout__source a:hover {
    color: var(--ls-accent, #3b82f6);
}

/* ========================================
   KEY TAKEAWAYS BOX (top-of-post summary for GEO)
   ======================================== */

.key-takeaways {
    background: var(--ls-gray-50, #f8fafc);
    border: 1px solid var(--ls-gray-200, #e2e8f0);
    border-left: 4px solid var(--ls-accent, #3b82f6);
    border-radius: 0.75rem;
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
}

.key-takeaways__title {
    font-family: var(--ls-font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ls-accent, #3b82f6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.key-takeaways__title::before {
    content: "";
    width: 16px;
    height: 16px;
    background: var(--ls-accent, #3b82f6);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M9 2c-3.866 0-7 3.134-7 7 0 2.39 1.197 4.5 3.026 5.762.42.293.674.764.674 1.276V18a2 2 0 002 2h2.6a2 2 0 002 0H14a2 2 0 002-2v-1.962c0-.512.255-.983.674-1.276C18.503 13.5 19.7 11.39 19.7 9c0-3.866-3.134-7-7-7H9z\"/></svg>") center / contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M9 2c-3.866 0-7 3.134-7 7 0 2.39 1.197 4.5 3.026 5.762.42.293.674.764.674 1.276V18a2 2 0 002 2h2.6a2 2 0 002 0H14a2 2 0 002-2v-1.962c0-.512.255-.983.674-1.276C18.503 13.5 19.7 11.39 19.7 9c0-3.866-3.134-7-7-7H9z\"/></svg>") center / contain no-repeat;
}

.key-takeaways__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.key-takeaways__list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.625rem;
    color: var(--ls-gray-700, #374151);
    line-height: 1.6;
    font-size: 0.9375rem;
}

.key-takeaways__list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--ls-accent, #3b82f6);
    font-weight: 700;
}

.key-takeaways__list li:last-child {
    margin-bottom: 0;
}



/* ========================================
   SERIES NAVIGATION (in single posts)
   ======================================== */

.series-nav {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-left: 4px solid var(--ls-accent, #3b82f6);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

.series-nav__header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #bae6fd;
}

.series-nav__label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ls-accent, #3b82f6);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.25rem;
}

.series-nav__title {
    font-family: var(--ls-font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ls-gray-900);
    margin: 0;
    line-height: 1.3;
}

.series-nav__title a {
    color: inherit;
    text-decoration: none;
}

.series-nav__title a:hover {
    color: var(--ls-accent, #3b82f6);
}

.series-nav__list {
    list-style: decimal;
    margin: 0 0 1rem;
    padding: 0 0 0 1.5rem;
    counter-reset: series;
}

.series-nav__item {
    margin-bottom: 0.5rem;
    color: var(--ls-gray-700);
    font-size: 0.9375rem;
    line-height: 1.4;
}

.series-nav__item a {
    color: var(--ls-gray-700);
    text-decoration: none;
    transition: color 0.15s;
}

.series-nav__item a:hover {
    color: var(--ls-accent);
    text-decoration: underline;
}

.series-nav__item--current {
    font-weight: 600;
    color: var(--ls-gray-900);
}

.series-nav__current {
    color: var(--ls-gray-900);
}

.series-nav__current-label {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.125rem 0.5rem;
    background: var(--ls-accent, #3b82f6);
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 999px;
    vertical-align: middle;
}

.series-nav__pager {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #bae6fd;
}

.series-nav__pager-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.625rem 0.875rem;
    background: white;
    border: 1px solid #bae6fd;
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--ls-gray-800);
    font-size: 0.875rem;
    transition: all 0.15s;
    min-width: 0;
}

.series-nav__pager-link:hover {
    border-color: var(--ls-accent);
    background: #eff6ff;
}

.series-nav__pager-link--next {
    text-align: right;
}

.series-nav__pager-direction {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ls-accent);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.series-nav__pager-title {
    font-weight: 600;
    color: var(--ls-gray-900);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .series-nav__pager {
        flex-direction: column;
    }
    .series-nav__pager-link--next {
        text-align: left;
    }
}

/* ========================================
   SERIES TERM PAGE (full series listing)
   ======================================== */

.blog-hero__series-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.series-list {
    list-style: none;
    counter-reset: series;
    padding: 0;
    margin: 0;
    max-width: 800px;
    margin: 0 auto;
}

.series-list__item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--ls-gray-200);
}

.series-list__item:last-child {
    border-bottom: none;
}

.series-list__number {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--ls-accent);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.series-list__article {
    flex: 1;
    min-width: 0;
}

.series-list__title {
    font-family: var(--ls-font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ls-gray-900);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.series-list__title a {
    color: inherit;
    text-decoration: none;
}

.series-list__title a:hover {
    color: var(--ls-accent);
}

.series-list__excerpt {
    font-size: 0.9375rem;
    color: var(--ls-gray-600);
    line-height: 1.6;
    margin: 0 0 0.5rem;
}

.series-list__meta {
    font-size: 0.8125rem;
    color: var(--ls-gray-500);
}

.series-list__sep {
    margin: 0 0.4rem;
}

/* ==========================================================================
   Search Page
   ========================================================================== */

.search-page {
    padding: 3rem 0 4rem;
}

.search-page__container {
    max-width: 48rem;
    margin: 0 auto;
    padding: 0 var(--ls-space-4);
}

.search-page h1 {
    font-size: var(--ls-text-2xl);
    margin-bottom: var(--ls-space-6);
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--ls-space-2);
    list-style: none;
    padding: var(--ls-space-8) 0 var(--ls-space-4);
    margin: 0;
    flex-wrap: wrap;
}

.page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--ls-space-3);
    border-radius: var(--ls-radius-md);
    font-size: var(--ls-text-sm);
    font-weight: var(--ls-weight-medium);
    color: var(--ls-gray-600);
    text-decoration: none;
    border: 1px solid var(--ls-gray-200);
    background: var(--ls-white);
    transition: all 0.15s ease;
}

.page-item .page-link:hover {
    color: var(--ls-primary);
    border-color: var(--ls-primary);
    background: var(--ls-gray-50);
}

.page-item.active .page-link {
    color: var(--ls-white);
    background: var(--ls-primary);
    border-color: var(--ls-primary);
    font-weight: var(--ls-weight-semibold);
}

.page-item.disabled .page-link {
    color: var(--ls-gray-300);
    border-color: var(--ls-gray-100);
    pointer-events: none;
    background: var(--ls-gray-50);
}

/* Pagefind UI overrides to match LeadSync design system */
:root {
    --pagefind-ui-scale: 1;
    --pagefind-ui-primary: var(--ls-primary);
    --pagefind-ui-text: var(--ls-gray-800);
    --pagefind-ui-background: var(--ls-white);
    --pagefind-ui-border: var(--ls-gray-200);
    --pagefind-ui-border-width: 1px;
    --pagefind-ui-border-radius: 8px;
    --pagefind-ui-font: "DM Sans", sans-serif;
}
