/* Main Stylesheet for PickrC Theme */

/* Ensure body and html allow sticky positioning */
html {
    overflow-x: hidden !important;
    overflow-y: visible !important; /* Explicitly set to visible to allow sticky positioning */
    /* Body handles vertical scrolling instead */
}

body {
    overflow-x: hidden;
    overflow-y: auto;
    /* Don't create containing block that prevents sticky */
    position: static;
}

/* Testhome: Body must have visible overflow for sticky to work */
body.testhome-page {
    overflow: visible !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    height: auto !important;
}

.score__wrap { 
    border-radius: 1rem;
}

#methodology {
	margin-top:2rem;
}

/* Canvas pages: Body must have visible overflow for sticky sidebars to work */
/* We target both legacy canvas body classes and our JS-applied .cnvs-page flag,
   as well as the specific Canvas Full Width template body class. */
body.canvas-page,
body.canvas-sticky-page,
body.cnvs-page,
body.page-template-template-canvas-fullwidth,
body.canvas-single-share-page {
    overflow: visible !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    height: auto !important;
}

/* Author pages now use archive-page class, so they inherit archive body styles */
/* Archive pages already have body overflow handled via archive-page class */

/* Hide standard WordPress sidebars on Canvas Full Width pages
   (we use block-based sidebars instead via Section with Sidebar block) */
body.canvas-page #secondary,
body.canvas-page .sidebar:not(.pickrc-section-with-sidebar__inner > *),
body.canvas-page .widget-area:not(.pickrc-section-with-sidebar__inner > *),
body.canvas-page #canvas-sticky-sidebar,
body.canvas-sticky-page #secondary,
body.canvas-sticky-page .sidebar:not(.pickrc-section-with-sidebar__inner > *),
body.canvas-sticky-page .widget-area:not(.pickrc-section-with-sidebar__inner > *),
body.canvas-sticky-page #canvas-sticky-sidebar,
body.cnvs-page #secondary,
body.cnvs-page .sidebar:not(.pickrc-section-with-sidebar__inner > *),
body.cnvs-page .widget-area:not(.pickrc-section-with-sidebar__inner > *),
body.cnvs-page #canvas-sticky-sidebar,
body.page-template-template-canvas-fullwidth #secondary,
body.page-template-template-canvas-fullwidth .sidebar:not(.pickrc-section-with-sidebar__inner > *),
body.page-template-template-canvas-fullwidth .widget-area:not(.pickrc-section-with-sidebar__inner > *),
body.page-template-template-canvas-fullwidth #canvas-sticky-sidebar {
    display: none !important;
}

/* Ensure canvas-sticky-container allows sticky positioning for Section with Sidebar blocks */
.canvas-sticky-container {
    overflow: visible !important;
    height: auto !important;
    position: static !important;
    transform: none !important;
    filter: none !important;
    will-change: auto !important;
    contain: none !important;
}

.canvas-content-wrapper {
    overflow: visible !important;
    height: auto !important;
    position: static !important;
    transform: none !important;
    filter: none !important;
    will-change: auto !important;
    contain: none !important;
}

/* Canvas pages: Ensure ALL parent containers don't break sticky.
   Apply to both legacy classes, JS-applied .cnvs-page, and the Canvas Full Width template. */
body.canvas-page #page,
body.canvas-page .site,
body.canvas-page #content,
body.canvas-page .site-content,
body.canvas-page #main,
body.canvas-page .site-main,
body.canvas-page .canvas-main,
body.canvas-page .canvas-content,
body.canvas-page .entry-content,
body.canvas-sticky-page #page,
body.canvas-sticky-page .site,
body.canvas-sticky-page #content,
body.canvas-sticky-page .site-content,
body.canvas-sticky-page #main,
body.canvas-sticky-page .site-main,
body.canvas-sticky-page .canvas-main,
body.canvas-sticky-page .canvas-content,
body.canvas-sticky-page .entry-content,
body.canvas-sticky-page .canvas-sticky-container,
body.cnvs-page #page,
body.cnvs-page .site,
body.cnvs-page #content,
body.cnvs-page .site-content,
body.cnvs-page #main,
body.cnvs-page .site-main,
body.cnvs-page .canvas-main,
body.cnvs-page .canvas-content,
body.cnvs-page .entry-content,
body.page-template-template-canvas-fullwidth #page,
body.page-template-template-canvas-fullwidth .site,
body.page-template-template-canvas-fullwidth #content,
body.page-template-template-canvas-fullwidth .site-content,
body.page-template-template-canvas-fullwidth #main,
body.page-template-template-canvas-fullwidth .site-main,
body.page-template-template-canvas-fullwidth .canvas-main,
body.page-template-template-canvas-fullwidth .canvas-content,
body.page-template-template-canvas-fullwidth .entry-content {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    position: static !important;
    transform: none !important;
    filter: none !important;
    will-change: auto !important;
    contain: none !important;
}

/* Canvas Full Width: explicitly neutralise #canvas-content wrapper so it
   cannot create a containing block that breaks sticky sidebars */
body.page-template-template-canvas-fullwidth div#canvas-content.canvas-content.entry-content {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    height: auto !important;
    max-height: none !important;
    position: static !important;
    transform: none !important;
    filter: none !important;
    will-change: auto !important;
    contain: none !important;
}

/* Canvas: neutralise inner section wrappers that Canvas often stretches with huge fixed heights.
   These can prevent sticky/fixed behaviour from behaving intuitively, so we force them back to
   natural height and a non-containing layout. */
.cnvs-block-section-inner,
.cnvs-block-section-outer,
.cnvs-block-section {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    position: static !important;
    transform: none !important;
    filter: none !important;
    will-change: auto !important;
    contain: none !important;
}

/* Canvas section content: prevent it from becoming its own scroll container,
   so sticky sidebars work relative to the page scroll instead. */
.cnvs-block-section-content {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    overflow-y: visible !important;
}

/* ============================================
   Mobile Image Constraints
   Prevent images from causing horizontal overflow when they fail to load
   ============================================ */

@media (max-width: 782px) {
    /* Ensure all images respect viewport width */
    img {
        max-width: 100% !important;
        height: auto !important;
        width: auto !important;
        box-sizing: border-box;
    }
    
    /* Exception: Keep logo images constrained to their intended size */
    .logo-image,
    .logo-image-dark,
    .logo-image-light,
    .slide-in-menu-logo-image,
    .slide-in-menu-logo-image-dark,
    .slide-in-menu-logo-image-light {
        max-width: 200px !important;
        height: 40px !important;
        width: auto !important;
    }
    
    /* Make logo smaller on very small screens for better mobile UX */
    @media (max-width: 480px) {
        .logo-image,
        .logo-image-dark,
        .logo-image-light {
            max-width: 150px !important;
            height: 32px !important;
        }
    }
    
    /* Constrain all image containers */
    figure,
    .wp-block-image,
    .wp-block-gallery,
    .gallery,
    .gallery-item,
    picture,
    .image-container,
    .img-container,
    [class*="image"],
    [class*="img"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    /* Ensure image containers don't expand beyond viewport */
    figure img,
    .wp-block-image img,
    .wp-block-gallery img,
    .gallery img,
    .gallery-item img,
    picture img,
    .image-container img,
    .img-container img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
        box-sizing: border-box;
    }
    
    /* Constrain article content images specifically */
    .article-content img,
    .article-content figure,
    .article-content .wp-block-image,
    .article-content .wp-block-gallery,
    .article-content figure img,
    .article-content .wp-block-image img,
    .article-content .wp-block-gallery img {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    
    /* Prevent layout shift for wp-block-image on mobile */
    /* Only apply aspect-ratio to the first image block (heading image) */
    .article-content .wp-block-image {
        min-height: 0;
        display: block;
        /* Inline aspect-ratio style will be added by PHP function only for first image */
    }
    
    /* Remove aspect-ratio from all image blocks except the first one */
    .article-content .wp-block-image ~ .wp-block-image {
        aspect-ratio: auto !important;
    }
    
    /* Ensure images maintain aspect ratio on mobile */
    .article-content .wp-block-image img[width][height] {
        max-width: 100%;
        height: auto;
        display: block;
    }
    
    /* Fallback for browsers that don't support aspect-ratio */
    @supports not (aspect-ratio: 1) {
        .article-content .wp-block-image:first-of-type[style*="aspect-ratio"] {
            position: relative;
        }
        
        .article-content .wp-block-image:first-of-type[style*="aspect-ratio"]::before {
            content: '';
            display: block;
            /* Padding-bottom will be calculated by JavaScript if needed */
        }
    }
    
    /* Ensure entry content respects viewport */
    .entry-content,
    .post-content,
    .content,
    article,
    .article {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    /* Constrain any container that might hold images */
    .container,
    .wrapper,
    .content-wrapper,
    .main-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }
}

/* ============================================
   Pickr Section with Sidebar Block
   ============================================ */

.pickrc-section-with-sidebar {
    width: 100%;
    margin: 0 auto;
    padding: 3rem 0;
}

.pickrc-section-with-sidebar--wide {
    max-width: 1200px;
}

.pickrc-section-with-sidebar--full {
    max-width: none;
}

/* ============================================
   Pickr Section Full Width Block
   ============================================ */

.pickrc-section-full-width {
    width: 100%;
    margin: 0 auto;
    padding: 3rem 0;
}

.pickrc-section-full-width--wide {
    max-width: 1200px;
}

.pickrc-section-full-width__inner {
    width: 100%;
}

.pickrc-section-full-width__content-inner {
    width: 100%;
}

/* Ensure Section Full Width allows full-width content when set to full */
/* Break out of parent containers to achieve true full viewport width */
.pickrc-section-full-width--full {
    max-width: none !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    position: relative !important;
    box-sizing: border-box !important;
}

.pickrc-section-full-width--full .pickrc-section-full-width__inner {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.pickrc-section-full-width--full .pickrc-section-full-width__content-inner {
    max-width: none !important;
    width: 100% !important;
}

/* Featured Grid inside Section Full Width - ensure it stretches to full width */
/* Since Section Full Width is already 100vw, Featured Grid should be 100% of parent */
.pickrc-section-full-width .featured-grid-section {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    position: relative !important;
    box-sizing: border-box !important;
}

/* Featured Grid Container inside Section Full Width - uses same styles as Home Page */

.pickrc-section-with-sidebar__inner {
    display: grid;
    grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: flex-start;
}

/* Sidebar column: max width 420px (right sidebar is last child) */
.pickrc-section-with-sidebar--right .pickrc-section-with-sidebar__inner > *:last-child {
    max-width: 420px;
    width: 100%;
    box-sizing: border-box;
}

.pickrc-section-with-sidebar--left .pickrc-section-with-sidebar__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr);
}

.pickrc-section-with-sidebar--left .pickrc-section-with-sidebar__inner > *:first-child {
    order: 2;
}

/* Left sidebar: first child in DOM (order: 1) gets max-width */
.pickrc-section-with-sidebar--left .pickrc-section-with-sidebar__inner > *:last-child {
    order: 1;
    max-width: 420px;
    width: 100%;
    box-sizing: border-box;
}

/* Ensure all content inside sidebar respects the 420px constraint */
.pickrc-section-with-sidebar__inner > *:last-child img,
.pickrc-section-with-sidebar--left .pickrc-section-with-sidebar__inner > *:last-child img,
.pickrc-section-with-sidebar--right .pickrc-section-with-sidebar__inner > *:last-child img {
    max-width: 100%;
    height: auto;
    width: 100%;
}

.pickrc-section-with-sidebar__inner > *:last-child *,
.pickrc-section-with-sidebar--left .pickrc-section-with-sidebar__inner > *:last-child *,
.pickrc-section-with-sidebar--right .pickrc-section-with-sidebar__inner > *:last-child * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Ensure images in main content column (non-sidebar) are also constrained */
.pickrc-section-with-sidebar--right .pickrc-section-with-sidebar__inner > *:first-child img,
.pickrc-section-with-sidebar--left .pickrc-section-with-sidebar__inner > *:first-child img {
    max-width: 100%;
    height: auto;
    width: 100%;
}

.pickrc-section-with-sidebar--right .pickrc-section-with-sidebar__inner > *:first-child *,
.pickrc-section-with-sidebar--left .pickrc-section-with-sidebar__inner > *:first-child * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Auto-apply border radius to images on page templates */
body.page img,
body.page-template img,
body.page-template-template-canvas-fullwidth img,
body.page-template-template-canvas-sticky img {
    border-radius: 1rem;
}

/* Exclude corner peek images from the above rule */
body.page .blog-card-corner-peek-image,
body.page-template .blog-card-corner-peek-image,
body.page-template-template-canvas-fullwidth .blog-card-corner-peek-image,
body.page-template-template-canvas-sticky .blog-card-corner-peek-image {
    border-radius: 0 0 0 5rem !important;
}

body.page .blog-card-corner-peek-img,
body.page-template .blog-card-corner-peek-img,
body.page-template-template-canvas-fullwidth .blog-card-corner-peek-img,
body.page-template-template-canvas-sticky .blog-card-corner-peek-img {
    border-radius: 0 0 0 5rem !important;
}

/* Logo images should never have border radius */
.logo-image,
.logo-image-dark,
.logo-image-light,
.slide-in-menu-logo-image,
.slide-in-menu-logo-image-dark,
.slide-in-menu-logo-image-light,
.footer-logo-image,
.footer-logo-image-dark,
.footer-logo-image-light {
    border-radius: 0 !important;
}

/* Sticky behavior driven purely by CSS */
.pickrc-section-with-sidebar--sticky .pickrc-section-with-sidebar__inner > *:last-child {
    position: sticky;
    top: calc(var(--navbar-height, 80px) + 30px);
    align-self: flex-start;
}

/* Mobile: stack columns, disable sticky for safety */
@media (max-width: 782px) {
    .pickrc-section-with-sidebar__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .pickrc-section-with-sidebar--sticky .pickrc-section-with-sidebar__inner > *:last-child {
        position: static;
        top: auto;
    }
}

/* Ensure article wrapper doesn't interfere with Canvas sticky (only for non-Canvas pages) */
body.canvas-page article.page-content,
body.canvas-sticky-page article.page-content {
    overflow: visible !important;
    height: auto !important;
    position: static !important;
    transform: none !important;
    contain: none !important;
}

/* ============================================
   Color Variables (will be overridden by Customizer)
   ============================================ */
:root {
    /* Dark Mode Defaults */
    --color-dark-accent: #3b82f6;
    --color-dark-headings: inherit;
    --color-dark-background: #0f172a;
    --color-dark-text: #ffffff;
    --color-dark-links: #60a5fa;
    --color-dark-links-hover: #93c5fd;
    --color-dark-links-visited: #a78bfa;
    
    /* Light Mode Defaults */
    --color-light-accent: #2563eb;
    --color-light-headings: inherit;
    --color-light-background: #f8fafc;
    --color-light-text: #0f172a;
    --color-light-links: #2563eb;
    --color-light-links-hover: #1d4ed8;
    --color-light-links-visited: #7c3aed;
    
    /* Current theme colors (set by JavaScript/CSS) */
    --color-accent: var(--color-dark-accent);
    --color-headings: var(--color-dark-headings);
    --color-background: var(--color-dark-background);
    --color-text: var(--color-dark-text);
    --color-links: var(--color-dark-links);
    --color-links-hover: var(--color-dark-links-hover);
    --color-links-visited: var(--color-dark-links-visited);
}

body.light-mode {
    --color-accent: var(--color-light-accent);
    --color-headings: var(--color-light-headings);
    --color-background: var(--color-light-background);
    --color-text: var(--color-light-text);
    --color-links: var(--color-light-links);
    --color-links-hover: var(--color-light-links-hover);
    --color-links-visited: var(--color-light-links-visited);
}

/* ============================================
   Navigation Styles
   ============================================ */
.main-navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.3s ease;
    padding: 0;
}

/* No Sticky - navbar scrolls with page */
body.navbar-sticky-no_sticky .main-navigation {
    position: static;
}

/* Sticky - always at top (default) */
body.navbar-sticky-sticky .main-navigation {
    position: fixed;
}

/* Sticky Only on Up Scroll - controlled by JavaScript */
body.navbar-sticky-sticky_on_up .main-navigation {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: translateY(0);
    transition: transform 0.3s ease, background 0.3s ease;
    will-change: transform;
}

body.navbar-sticky-sticky_on_up .main-navigation.navbar-hidden {
    transform: translateY(-100%) !important;
}

/* Adjust navbar position when admin bar is visible */
body.admin-bar .main-navigation {
    top: 46px; /* Mobile admin bar height */
}

@media screen and (min-width: 783px) {
    body.admin-bar .main-navigation {
        top: 32px; /* Desktop admin bar height */
    }
}

/* Admin bar adjustments for sticky on up scroll */
body.admin-bar.navbar-sticky-sticky_on_up .main-navigation {
    top: 46px !important;
}

@media screen and (min-width: 783px) {
    body.admin-bar.navbar-sticky-sticky_on_up .main-navigation {
        top: 32px !important;
    }
}

/* Keep navbar sticky on Canvas pages - we'll handle sidebar offset instead */
/* Removed: navbar static on Canvas pages - keeping it sticky */

.main-navigation.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.light-mode .main-navigation.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(226, 232, 240, 1);
}

/* Navbar sticky on testhome page */
body.testhome-page .main-navigation {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.3s ease;
    padding: 0;
}

/* Adjust testhome navbar position when admin bar is visible */
body.admin-bar.testhome-page .main-navigation {
    top: 46px; /* Mobile admin bar height */
}

@media screen and (min-width: 783px) {
    body.admin-bar.testhome-page .main-navigation {
        top: 32px; /* Desktop admin bar height */
    }
}

/* Navbar container matches featured grid width on testhome page */
body.testhome-page .nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    body.testhome-page .nav-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    body.testhome-page .nav-container {
        padding: 0 2rem;
    }
}

body.testhome-page .main-navigation.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.testhome-page.light-mode .main-navigation.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(226, 232, 240, 1);
}

/* Slide-in menu visible on testhome page */
body.testhome-page .slide-in-menu {
    display: block;
}

/* Simple testhome page - ensure ALL parent containers don't break sticky */
body.testhome-page {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}

body.testhome-page #page,
body.testhome-page .site,
body.testhome-page #content,
body.testhome-page .site-content,
body.testhome-page #main,
body.testhome-page .site-main,
body.testhome-page .container {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    position: static !important;
    transform: none !important;
    filter: none !important;
    will-change: auto !important;
    contain: none !important;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .nav-container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
    .nav-container { padding: 0 2rem; }
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Full Width Navbar Layout */
body.navbar-width-full_width .nav-container {
    max-width: 100%;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    body.navbar-width-full_width .nav-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    body.navbar-width-full_width .nav-container {
        padding: 0 2rem;
    }
}

body.navbar-width-full_width .nav-content {
    justify-content: flex-start;
    gap: 2rem;
}

body.navbar-width-full_width .nav-logo-group {
    flex-shrink: 0;
}

/* Group menu and actions on the right in full-width mode */
body.navbar-width-full_width .nav-menu-desktop {
    margin-left: auto;
    display: flex;
    align-items: center;
}

/* Push actions to the right - if menu exists, it will be between logo and actions */
body.navbar-width-full_width .nav-actions {
    flex-shrink: 0;
}

/* If no menu, push actions all the way to the right */
body.navbar-width-full_width .nav-logo-group + .nav-actions {
    margin-left: auto;
}

.nav-logo-group {
    display: flex;
    align-items: center;
    gap: 0;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-image {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: opacity 0.3s ease;
    border-radius: 0 !important;
}

.logo-image-dark {
    display: block;
}

.logo-image-light {
    display: none;
}

body.light-mode .logo-image-dark {
    display: none;
}

body.light-mode .logo-image-light {
    display: block;
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--color-accent);
    filter: drop-shadow(0 0 8px var(--color-accent));
    opacity: 0.5;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--color-accent), var(--color-links));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nav Tagline with Pipe Delimiter */
.nav-tagline-wrapper {
    display: none;
    align-items: center;
    gap: 1rem;
    flex-shrink: 1;
    min-width: 0;
    margin-left: 1rem;
}

@media (min-width: 1024px) {
    .nav-tagline-wrapper {
        display: flex;
    }
}

.nav-pipe-delimiter {
    width: 1px;
    height: 24px;
    background-color: rgba(148, 163, 184, 0.3);
    flex-shrink: 0;
    margin: 0 0.5rem;
}

body.light-mode .nav-pipe-delimiter {
    background-color: rgba(71, 85, 105, 0.3);
}

.nav-tagline {
    color: #cbd5e1;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
}

body.light-mode .nav-tagline {
    color: #475569;
}

.nav-menu-desktop {
    display: none;
    gap: 0.25rem;
}

@media (min-width: 1024px) {
    .nav-menu-desktop {
        display: flex;
    }
}

.nav-menu-slogan {
    display: flex;
    align-items: center;
    color: #cbd5e1;
    font-size: 0.875rem;
    font-weight: 500;
    font-style: italic;
    line-height: 1.5;
}

body.light-mode .nav-menu-slogan {
    color: #475569;
}

.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--color-text);
}

body.light-mode .nav-link {
    color: #475569;
}

body.light-mode .nav-link:hover {
    color: var(--color-text);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, var(--color-accent), var(--color-links));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover::after {
    opacity: 1;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.nav-search {
    display: none;
    position: relative;
}

@media (min-width: 768px) {
    .nav-search {
        display: block;
    }
}

.nav-search form {
    display: flex;
    align-items: center;
    position: relative;
}

.search-input {
    width: 256px;
    padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.search-input::placeholder {
    color: #94a3b8;
}

body.light-mode .search-input {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

body.light-mode .search-input::placeholder {
    color: #64748b;
}

.search-button {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.25rem;
}

.theme-toggle {
    padding: 0.5rem;
    border-radius: 9999px;
    background: rgba(30, 41, 59, 0.8);
    border: none;
    color: #fbbf24;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: rgba(51, 65, 85, 0.8);
    transform: scale(1.1);
}

body.light-mode .theme-toggle {
    background: #e2e8f0;
    color: #475569;
}

.theme-icon {
    width: 20px;
    height: 20px;
}

.theme-icon-moon {
    display: block;
}

.theme-icon-sun {
    display: none;
}

body.light-mode .theme-icon-moon {
    display: none;
}

body.light-mode .theme-icon-sun {
    display: block;
}

/* Mobile Search Button */
.mobile-search-toggle {
    display: block;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.mobile-search-toggle:hover {
    transform: scale(1.1);
}

@media (min-width: 768px) {
    .mobile-search-toggle {
        display: none;
    }
}

body.light-mode .mobile-search-toggle {
    color: #0f172a;
}

.mobile-search-icon {
    width: 20px;
    height: 20px;
}

/* Mobile Search Dropdown */
.mobile-search-dropdown {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    padding: 1rem;
    display: none;
    z-index: 999;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
    .mobile-search-dropdown {
        display: none !important;
    }
}

.mobile-search-dropdown.active {
    display: block;
}

body.light-mode .mobile-search-dropdown {
    background: rgba(248, 250, 252, 0.98);
    border-top-color: rgba(226, 232, 240, 1);
}

.mobile-search-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.mobile-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.mobile-search-input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(30, 41, 59, 0.7);
}

.mobile-search-input::placeholder {
    color: #94a3b8;
}

body.light-mode .mobile-search-input {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

body.light-mode .mobile-search-input:focus {
    background: #ffffff;
}

body.light-mode .mobile-search-input::placeholder {
    color: #64748b;
}

.mobile-search-submit {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 0.5rem;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mobile-search-submit:hover {
    background: rgba(51, 65, 85, 0.8);
    color: #ffffff;
    border-color: var(--color-accent);
}

body.light-mode .mobile-search-submit {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #475569;
}

body.light-mode .mobile-search-submit:hover {
    background: #cbd5e1;
    color: #0f172a;
}

.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

body.light-mode .mobile-menu-toggle {
    color: #0f172a;
}

.menu-icon {
    width: 24px;
    height: 24px;
}

.menu-icon-close {
    display: none;
}

.mobile-menu-toggle.active .menu-icon-open {
    display: none;
}

.mobile-menu-toggle.active .menu-icon-close {
    display: block;
}

.nav-menu-mobile {
    display: none;
    flex-direction: column;
    padding: 1rem 0;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.nav-menu-mobile.active {
    display: flex;
}

body.light-mode .nav-menu-mobile {
    border-top-color: rgba(226, 232, 240, 1);
}

.nav-link-mobile {
    padding: 0.75rem 1rem;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.nav-link-mobile:hover {
    color: #ffffff;
    background: rgba(51, 65, 85, 0.5);
}

body.light-mode .nav-link-mobile {
    color: #475569;
}

body.light-mode .nav-link-mobile:hover {
    color: #0f172a;
    background: #f1f5f9;
}

/* Hamburger Menu Toggle (shown when Heading Menu is disabled) */
.hamburger-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.hamburger-menu-toggle:hover {
    transform: scale(1.1);
}

@media (min-width: 1024px) {
    .hamburger-menu-toggle {
        display: block;
    }
}

body.light-mode .hamburger-menu-toggle {
    color: #0f172a;
}

.hamburger-menu-toggle .menu-icon-close {
    display: none;
}

.hamburger-menu-toggle.active .menu-icon-open {
    display: none;
}

.hamburger-menu-toggle.active .menu-icon-close {
    display: block;
}

/* Slide-in Menu */
.slide-in-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0s 0.3s;
}

.slide-in-menu.active {
    pointer-events: auto;
    visibility: visible;
    transition: visibility 0s 0s;
}

.slide-in-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slide-in-menu.active .slide-in-menu-overlay {
    opacity: 1;
}

/* Left Drawer (Default) */
.slide-in-menu-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: var(--color-dark-background);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

body.light-mode .slide-in-menu-content {
    background: var(--color-light-background);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.slide-in-menu-left.active .slide-in-menu-content {
    transform: translateX(0);
}

/* Right Drawer */
.slide-in-menu-right .slide-in-menu-content {
    left: auto;
    right: 0;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
}

body.light-mode .slide-in-menu-right .slide-in-menu-content {
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.slide-in-menu-right.active .slide-in-menu-content {
    transform: translateX(0);
}

/* Logo at top of menu drawer */
.slide-in-menu-logo {
    padding: 1.25rem 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

body.light-mode .slide-in-menu-logo {
    border-bottom-color: rgba(226, 232, 240, 1);
}

.slide-in-menu-logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.slide-in-menu-logo-image {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: opacity 0.3s ease;
    border-radius: 0 !important;
}

.slide-in-menu-logo-image-dark {
    display: block;
}

.slide-in-menu-logo-image-light {
    display: none;
}

body.light-mode .slide-in-menu-logo-image-dark {
    display: none;
}

body.light-mode .slide-in-menu-logo-image-light {
    display: block;
}

.slide-in-menu-logo-icon {
    width: 32px;
    height: 32px;
    color: var(--color-accent);
    filter: drop-shadow(0 0 8px var(--color-accent));
    opacity: 0.5;
}

.slide-in-menu-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--color-accent), var(--color-links));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slide-in-menu-header {
    padding: 2rem 1.5rem;
}

.slide-in-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.slide-in-menu-list li {
    margin-bottom: 0.5rem;
}

.slide-in-menu-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.slide-in-menu-link:hover {
    color: #ffffff;
    background: rgba(51, 65, 85, 0.5);
}

body.light-mode .slide-in-menu-link {
    color: #475569;
}

body.light-mode .slide-in-menu-link:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.slide-in-menu-slogan {
    margin-top: auto;
    padding: 2rem 1.5rem;
    padding-bottom: 3rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    font-size: 0.875rem;
    font-style: italic;
    line-height: 1.6;
}

body.light-mode .slide-in-menu-slogan {
    border-top-color: rgba(226, 232, 240, 1);
    color: #64748b;
}

/* Heading Menu Styles */
.heading-menu {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.heading-menu li {
    margin: 0;
}

.heading-menu a {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: block;
}

.heading-menu a:hover {
    color: var(--color-text);
}

body.light-mode .heading-menu a {
    color: #475569;
}

body.light-mode .heading-menu a:hover {
    color: var(--color-text);
}

.heading-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, var(--color-accent), var(--color-links));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.heading-menu a:hover::after {
    opacity: 1;
}

/* ============================================
   Site Content
   ============================================ */
.site-content {
    padding-top: 10px;
}

/* ============================================
   Featured Grid Section
   ============================================ */
.featured-grid-section {
    position: relative;
    min-height: 600px; /* Fixed height to prevent layout shift */
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 3rem 0 3rem 0;
    /* Use CSS variable that respects current theme instead of forcing dark mode */
    background: linear-gradient(to bottom, var(--color-background, var(--color-dark-background)), var(--color-background, var(--color-dark-background)), var(--color-background, var(--color-dark-background)));
    opacity: 1 !important; /* Ensure featured grid section is always visible - prevent flash on page load */
    visibility: visible !important; /* Ensure visibility */
    contain: layout style paint; /* Optimize rendering */
    will-change: auto; /* Prevent unnecessary repaints */
    z-index: 1 !important; /* Ensure it's above blog-section */
    order: 1 !important; /* Comes first in document flow */
    /* Make it full width by breaking out of parent containers */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    box-sizing: border-box;
}

/* Reduce spacing on testhome page */
body.testhome-page .featured-grid-section {
    padding: 0.5rem 0 3rem 0;
}

/* Light mode background - use CSS variable */
body.light-mode .featured-grid-section {
    background: linear-gradient(to bottom, var(--color-background, var(--color-light-background)), var(--color-background, var(--color-light-background)), var(--color-background, var(--color-light-background)));
}

/* Canvas Sticky: Featured Grid should still be full viewport width */
/* The viewport width calculation above handles this, but ensure it works within canvas containers */
/* Use high specificity to override Canvas CSS that loads later */
body.canvas-sticky-page .featured-grid-section,
body.canvas-sticky-page .canvas-content-wrapper .featured-grid-section,
body.canvas-sticky-page .canvas-content .featured-grid-section,
body.canvas-sticky-page .entry-content .featured-grid-section,
body.canvas-sticky-page .canvas-sticky-inner .canvas-content-wrapper .featured-grid-section,
body.canvas-sticky-page .canvas-sticky-inner .canvas-content-wrapper .canvas-content .featured-grid-section,
body.canvas-sticky-page .canvas-sticky-inner .canvas-content-wrapper .entry-content .featured-grid-section,
body.page-template-template-canvas-fullwidth .featured-grid-section,
body.page-template-template-canvas-fullwidth .canvas-content-wrapper .featured-grid-section,
body.page-template-template-canvas-fullwidth .canvas-content .featured-grid-section,
body.page-template-template-canvas-fullwidth .entry-content .featured-grid-section,
body.cnvs-page .featured-grid-section,
body.cnvs-page .canvas-content-wrapper .featured-grid-section,
body.cnvs-page .canvas-content .featured-grid-section,
body.cnvs-page .entry-content .featured-grid-section {
    /* Full viewport width - override any parent constraints including Canvas CSS */
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    position: relative !important;
    z-index: 1 !important;
    box-sizing: border-box !important;
}

/* Override container max-width inside Featured Grid - make it full width */
/* Use high specificity to override any Canvas or theme CSS */
.featured-grid-section .container,
body.canvas-sticky-page .featured-grid-section .container,
body.canvas-sticky-page .canvas-content-wrapper .featured-grid-section .container,
body.canvas-sticky-page .canvas-content .featured-grid-section .container,
body.canvas-sticky-page .entry-content .featured-grid-section .container,
body.page-template-template-canvas-fullwidth .featured-grid-section .container,
body.page-template-template-canvas-fullwidth .canvas-content-wrapper .featured-grid-section .container,
body.page-template-template-canvas-fullwidth .canvas-content .featured-grid-section .container,
body.page-template-template-canvas-fullwidth .entry-content .featured-grid-section .container,
body.cnvs-page .featured-grid-section .container,
body.cnvs-page .canvas-content-wrapper .featured-grid-section .container,
body.cnvs-page .canvas-content .featured-grid-section .container,
body.cnvs-page .entry-content .featured-grid-section .container {
    max-width: 100% !important;
    width: 100% !important;
    /* Override shorthand padding property to prevent default .container rules from applying */
    padding: 0 1rem !important;
    box-sizing: border-box !important;
}

@media (min-width: 640px) {
    .featured-grid-section .container,
    body.canvas-sticky-page .featured-grid-section .container,
    body.canvas-sticky-page .canvas-content-wrapper .featured-grid-section .container,
    body.canvas-sticky-page .canvas-content .featured-grid-section .container,
    body.canvas-sticky-page .entry-content .featured-grid-section .container,
    body.page-template-template-canvas-fullwidth .featured-grid-section .container,
    body.page-template-template-canvas-fullwidth .canvas-content-wrapper .featured-grid-section .container,
    body.page-template-template-canvas-fullwidth .canvas-content .featured-grid-section .container,
    body.page-template-template-canvas-fullwidth .entry-content .featured-grid-section .container,
    body.cnvs-page .featured-grid-section .container,
    body.cnvs-page .canvas-content-wrapper .featured-grid-section .container,
    body.cnvs-page .canvas-content .featured-grid-section .container,
    body.cnvs-page .entry-content .featured-grid-section .container {
        /* Override shorthand padding property to prevent default .container rules from applying */
        padding: 0 1.5rem !important;
    }
}

@media (min-width: 1024px) {
    .featured-grid-section .container,
    body.canvas-sticky-page .featured-grid-section .container,
    body.canvas-sticky-page .canvas-content-wrapper .featured-grid-section .container,
    body.canvas-sticky-page .canvas-content .featured-grid-section .container,
    body.canvas-sticky-page .entry-content .featured-grid-section .container,
    body.page-template-template-canvas-fullwidth .featured-grid-section .container,
    body.page-template-template-canvas-fullwidth .canvas-content-wrapper .featured-grid-section .container,
    body.page-template-template-canvas-fullwidth .canvas-content .featured-grid-section .container,
    body.page-template-template-canvas-fullwidth .entry-content .featured-grid-section .container,
    body.cnvs-page .featured-grid-section .container,
    body.cnvs-page .canvas-content-wrapper .featured-grid-section .container,
    body.cnvs-page .canvas-content .featured-grid-section .container,
    body.cnvs-page .entry-content .featured-grid-section .container {
        /* Override shorthand padding property to prevent default .container rules from applying */
        padding: 0 2rem !important;
    }
}

/* Featured Grid Container - matches Home Page styles */
.featured-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 0.5rem;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .featured-grid-container {
        padding: 2rem 0.5rem;
    }
}

@media (min-width: 1024px) {
    .featured-grid-container {
        padding: 2rem 0.5rem;
    }
}

/* Match canvas-sticky-container max-width for inner content */
body.canvas-sticky-page .featured-grid-section .container,
body.canvas-sticky-page .canvas-content-wrapper .featured-grid-section .container,
body.canvas-sticky-page .canvas-content .featured-grid-section .container,
body.canvas-sticky-page .entry-content .featured-grid-section .container,
body.page-template-template-canvas-fullwidth .featured-grid-section .container,
body.page-template-template-canvas-fullwidth .canvas-content-wrapper .featured-grid-section .container,
body.page-template-template-canvas-fullwidth .canvas-content .featured-grid-section .container,
body.page-template-template-canvas-fullwidth .entry-content .featured-grid-section .container {
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Featured Grid Container inside Section Full Width */
.pickrc-section-full-width .featured-grid-section .featured-grid-container {
    max-width: 1400px !important;
    width: 100% !important;
    padding: 2rem 0.5rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

@media (min-width: 640px) {
    .pickrc-section-full-width .featured-grid-section .featured-grid-container {
        padding: 2rem 0.5rem !important;
    }
}

@media (min-width: 1024px) {
    .pickrc-section-full-width .featured-grid-section .featured-grid-container {
        padding: 2rem 0.5rem !important;
    }
}

/* Particle Effects */
.particles-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-links);
    border-radius: 50%;
    opacity: 0.2;
    will-change: transform, opacity;
}

body.light-mode .particle {
    opacity: 0.3;
}

.section-header {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

body.light-mode .section-title {
    color: #0f172a;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    opacity: 1 !important; /* Ensure featured grid is always visible - prevent flash on page load */
    visibility: visible !important; /* Ensure visibility */
}

@media (min-width: 1024px) {
    .featured-grid {
        display: flex;
        gap: 1rem;
        align-items: stretch;
    }
}

.featured-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .featured-column {
        flex: 1 1 0;
        min-width: 0;
    }
}

.featured-column-large {
    height: 600px;
}

.featured-column-medium {
    height: 600px;
}

.featured-column-text {
    height: 600px;
}

.featured-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 1 !important; /* Ensure featured cards are always visible - prevent flash on page load */
}

.category-tile-widget {
    max-width: 430px;
    width: 100%;
    margin: 0 auto;
}

.category-tile-widget .featured-image {
    aspect-ratio: 16 / 9;
    min-height: 220px;
}

/* Any Post Tile Widget Styles */
.any-post-tile-widget {
    max-width: 430px;
    width: 100%;
    margin: 0 auto;
}

.any-post-tile-widget .featured-image {
    aspect-ratio: 16 / 9;
    min-height: 220px;
}

/* Subtitle Styles */
.any-post-tile__subtitle {
    font-size: 0.875rem;
    color: #ffffff;
    margin-top: 0.75rem;
    line-height: 1.4;
}

.any-post-tile__subtitle--button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.375rem;
    backdrop-filter: blur(4px);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.any-post-tile__subtitle--button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.any-post-tile__subtitle--all-caps {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.any-post-tile__subtitle--capitalized {
    text-transform: capitalize;
}

.any-post-tile__subtitle--italics {
    font-style: italic;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.featured-card-large {
    height: 100%;
}

.featured-card-medium {
    flex: 1 1 0;
    min-height: 0;
}

.featured-card-text {
    flex: 1 1 0;
    min-height: 0;
    padding: 1rem 1.25rem;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(100, 116, 139, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    overflow: hidden;
}

.featured-card-text .post-meta {
    margin-top: auto;
    margin-bottom: 0;
    padding-top: 0.75rem;
    color: #94a3b8;
}

body.light-mode .featured-card-text .post-meta {
    color: #64748b;
}

body.light-mode .featured-card-text {
    background: #ffffff;
    border-color: #e2e8f0;
}

.featured-card a {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.featured-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    min-height: 400px; /* Prevent layout shift */
    background-color: rgba(30, 41, 59, 0.3); /* Placeholder color while loading */
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 1 !important; /* Ensure images are visible immediately */
    display: block; /* Remove inline spacing */
}

/* Ensure Featured Grid block images use cover (not contain) */
.featured-grid-section .card-image,
.wp-block-pickrc-featured-grid .card-image,
.featured-grid-section .featured-image img,
.wp-block-pickrc-featured-grid .featured-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Post Tile Widget Styles */
.post-tile-widget__image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.post-tile-widget__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.post-tile-widget:hover .post-tile-widget__image img {
    transform: scale(1.05);
}

.featured-card:hover .card-image {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4), transparent);
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    z-index: 10;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    margin-bottom: 0;
    font-size: 0.875rem;
    color: #ffffff;
}

.featured-content .post-meta {
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.post-date {
    font-weight: 500;
}

.featured-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    transition: color 0.3s ease;
}

@media (min-width: 768px) {
    .featured-title {
        font-size: 2rem;
    }
}

.featured-card:hover .featured-title {
    color: #ffffff;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

body.light-mode .card-title {
    color: #0f172a;
}

.featured-card-text:hover .card-title {
    color: #ffffff;
}

body.light-mode .featured-card-text:hover .card-title {
    color: #0f172a;
}

.featured-card-text:hover .card-excerpt {
    color: #94a3b8;
}

body.light-mode .featured-card-text:hover .card-excerpt {
    color: #64748b;
}

.featured-card-text:hover .post-meta {
    color: #ffffff;
}

.card-excerpt {
    font-size: 0.875rem !important;
    color: #94a3b8;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 0;
}

/* Override grouped excerpt font-size rule from customizer */
.featured-card-text .card-excerpt,
.featured-grid-section .card-excerpt {
    font-size: 0.875rem !important;
}

body.light-mode .card-excerpt {
    color: #64748b;
}

/* ============================================
   Tetris Grid Section
   ============================================ */
.tetris-grid-section {
    position: relative;
    padding: 3rem 0;
    background: linear-gradient(to bottom, var(--color-background, var(--color-dark-background)), var(--color-background, var(--color-dark-background)));
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    box-sizing: border-box;
}

body.light-mode .tetris-grid-section {
    background: linear-gradient(to bottom, var(--color-background, var(--color-light-background)), var(--color-background, var(--color-light-background)));
}

.tetris-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .tetris-grid-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .tetris-grid-container {
        padding: 0 2rem;
    }
}

.tetris-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
}

@media (min-width: 768px) {
    .tetris-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
        grid-auto-rows: minmax(200px, auto);
        grid-auto-flow: dense;
    }
}

/* Tetris Card Base Styles */
.tetris-card {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 200px;
    background-color: #1e293b;
}

.tetris-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.tetris-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

/* Card Sizes */
.tetris-card-small {
    grid-column: span 1;
    grid-row: span 1;
}

.tetris-card-medium {
    grid-column: span 2;
    grid-row: span 1;
}

.tetris-card-large {
    grid-column: span 1;
    grid-row: span 2;
}

.tetris-card-tall {
    grid-column: span 1;
    grid-row: span 3;
}

.tetris-card-xlarge {
    grid-column: span 2;
    grid-row: span 2;
}

@media (max-width: 767px) {
    .tetris-card-medium,
    .tetris-card-xlarge {
        grid-column: span 1;
        grid-row: span 1;
    }
    /* Keep tall cards (large and tall) as tall on mobile */
    .tetris-card-large {
        grid-column: span 1;
        grid-row: span 2;
    }
    .tetris-card-tall {
        grid-column: span 1;
        grid-row: span 3;
    }
}

/* Card with Image */
.tetris-card-has-image .tetris-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.tetris-card-has-image .tetris-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tetris-card-has-image:hover .tetris-card-image img {
    transform: scale(1.05);
}

.tetris-card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.3), transparent);
    z-index: 1;
}

/* Card Content */
.tetris-card-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    color: #ffffff;
}

.tetris-card-category {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    color: #ffffff;
    opacity: 0.95;
}

/* Category-only cards (like "Breaking") */
.tetris-card-content.tetris-card-category-only {
    justify-content: center;
    align-items: flex-start;
}

.tetris-card-content.tetris-card-category-only .tetris-card-category {
    font-size: 1rem;
    margin-bottom: 0;
}

.tetris-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.5rem 0;
    color: #ffffff;
}

.tetris-card-small .tetris-card-title {
    font-size: 1.125rem;
    line-height: 1.4;
}

.tetris-card-medium .tetris-card-title {
    font-size: 1.25rem;
    line-height: 1.35;
}

.tetris-card-xlarge .tetris-card-title {
    font-size: 1.875rem;
    line-height: 1.25;
}

.tetris-card-large .tetris-card-title {
    font-size: 1.5rem;
    line-height: 1.3;
}

.tetris-card-tall .tetris-card-title {
    font-size: 1.75rem;
    line-height: 1.25;
}

.tetris-card-date {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.5rem;
    font-weight: 500;
}

.tetris-card-excerpt {
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin: 0.5rem 0 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Light mode adjustments */
body.light-mode .tetris-card-content {
    color: #ffffff;
}

body.light-mode .tetris-card-title {
    color: #ffffff;
}

body.light-mode .tetris-card-category {
    color: rgba(255, 255, 255, 0.9);
}

body.light-mode .tetris-card-date {
    color: rgba(255, 255, 255, 0.8);
}

body.light-mode .tetris-card-excerpt {
    color: rgba(255, 255, 255, 0.9);
}

/* Load More Button */
.tetris-grid-load-more {
    margin-top: 60px;
    margin-bottom: 60px;
    padding-top: 40px;
    padding-bottom: 40px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    text-align: center;
}

.tetris-load-more-button {
    background: linear-gradient(135deg, var(--color-accent), var(--color-links));
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 15px 30px color-mix(in srgb, var(--color-accent) 35%, transparent);
}

.tetris-load-more-button:hover {
    transform: translateY(-1px);
}

.tetris-load-more-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tetris-load-more-button.loading {
    opacity: 0.7;
}

/* ============================================
   Blog Section
   ============================================ */
.blog-section {
    padding: 2rem 2rem 5rem 2rem;
    border-radius: 1rem;
    /* CRITICAL: Must allow sticky to work */
    overflow: visible !important;
    position: relative;
    /* Don't create containing block */
    transform: none !important;
    filter: none !important;
    will-change: auto !important;
    contain: none !important;
    z-index: 0 !important; /* Ensure it's below featured grid */
    order: 2 !important; /* Comes after featured grid in document flow */
}

body.light-mode .blog-section {
    background: #ffffff;
}

.blog-section .container {
    /* CRITICAL: Must allow sticky to work */
    overflow: visible !important;
    position: relative;
    /* Don't create containing block */
    transform: none !important;
    filter: none !important;
    will-change: auto !important;
    contain: none !important;
}

/* Blog Layout - Matching article-layout pattern from single.php */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
    /* Ensure containers don't break sticky */
    overflow: visible !important;
    /* Don't create containing block */
    position: relative !important;
    transform: none !important;
    filter: none !important;
    will-change: auto !important;
    contain: none !important;
}

@media (min-width: 1024px) {
    .blog-layout {
        grid-template-columns: 2fr 1fr;
        align-items: start;
        overflow: visible !important;
        position: relative !important;
        transform: none !important;
        filter: none !important;
        will-change: auto !important;
        contain: none !important;
    }
}

.blog-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-card {
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.blog-card:not(:first-child) {
    margin-top: 2.5rem;
}

.blog-card:last-child {
    border-bottom: none;
}

body.light-mode .blog-card {
    border-bottom-color: #e2e8f0;
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
}

.blog-card-link:visited,
.blog-card-link:hover,
.blog-card-link:focus {
    color: inherit;
}

.blog-card-header {
    margin-bottom: 1rem;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.category-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s ease;
}

.category-badge:hover {
    opacity: 0.8;
}

.category-badge:visited {
    color: inherit;
}

.category-badge-purple {
    color: #c084fc;
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
}

.category-badge-purple:visited {
    color: #c084fc;
}

.category-badge-blue {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

.category-badge-blue:visited {
    color: #60a5fa;
}

.category-badge-green {
    color: #4ade80;
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
}

.category-badge-green:visited {
    color: #4ade80;
}

.category-badge-red {
    color: #f87171;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.category-badge-red:visited {
    color: #f87171;
}

.category-badge-yellow {
    color: #fbbf24;
    background: rgba(234, 179, 8, 0.1);
    border-color: rgba(234, 179, 8, 0.2);
}

.category-badge-yellow:visited {
    color: #fbbf24;
}

.category-badge-indigo {
    color: #818cf8;
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
}

.category-badge-indigo:visited {
    color: #818cf8;
}

.category-badge-gray {
    color: #9ca3af;
    background: rgba(107, 114, 128, 0.1);
    border-color: rgba(107, 114, 128, 0.2);
}

.category-badge-gray:visited {
    color: #9ca3af;
}

.post-date-small {
    font-size: 0.75rem;
    color: #64748b;
}

body.light-mode .post-date-small {
    color: #64748b;
}

.blog-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: var(--color-text);
    transition: color 0.3s ease;
}

@media (min-width: 768px) {
    .blog-card-title {
        font-size: 1.875rem;
    }
}

.blog-card:hover .blog-card-title {
    color: var(--color-text);
}

.blog-card-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: none;
}

body.light-mode .blog-card-excerpt {
    color: var(--color-text);
}

.blog-card:hover .blog-card-excerpt {
    color: var(--color-text);
}

body.light-mode .blog-card:hover .blog-card-excerpt {
    color: var(--color-text);
}

.blog-card-image {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    aspect-ratio: 16 / 9;
    margin-bottom: 1rem;
}

.blog-card-image .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-image .card-image {
    transform: scale(1.05);
}

.read-more-indicator {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    background: #ffffff;
    color: #0f172a;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover .read-more-indicator {
    opacity: 1;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 0.875rem;
    color: #64748b;
}

body.light-mode .blog-card-footer {
    color: #64748b;
}

.blog-card-meta-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.post-time-small {
    font-size: 0.75rem;
    color: #64748b;
}

body.light-mode .post-time-small {
    color: #64748b;
}

.read-time-footer {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
}

/* ============================================
   Blog Left Image Layout
   ============================================ */
.blog-card-left-image {
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.blog-card-left-image:not(:first-child) {
    margin-top: 2.5rem;
}

.blog-card-left-image:last-child {
    border-bottom: none;
}

body.light-mode .blog-card-left-image {
    border-bottom-color: #e2e8f0;
}

.blog-card-content-left {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.blog-card-image-left {
    flex: 0 0 25%;
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    aspect-ratio: 16 / 10;
    min-width: 0;
}

.blog-card-image-left .card-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
}

.blog-card-left-image:hover .blog-card-image-left .card-image {
    transform: scale(1.05);
}

.blog-card-image-left .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.blog-card-left-image:hover .blog-card-image-left .image-overlay {
    background: rgba(0, 0, 0, 0.1);
}

.blog-card-content-right {
    flex: 0 0 75%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
    padding-right: 1rem;
}

.blog-card-left-image .blog-card-header {
    margin-bottom: 0;
}

.blog-card-left-image .blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    color: var(--color-text);
    transition: color 0.3s ease;
}

@media (min-width: 768px) {
    .blog-card-left-image .blog-card-title {
        font-size: 1.5rem;
    }
}

.blog-card-left-image:hover .blog-card-title {
    color: var(--color-text);
}

.blog-card-left-image .blog-card-excerpt-wrapper {
    margin-bottom: 0;
    margin-top: 0.25rem;
}

.blog-card-left-image .blog-card-excerpt {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text);
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: none;
}

body.light-mode .blog-card-left-image .blog-card-excerpt {
    color: var(--color-text);
}

.blog-card-left-image:hover .blog-card-excerpt {
    color: var(--color-text);
}

body.light-mode .blog-card-left-image:hover .blog-card-excerpt {
    color: var(--color-text);
}

.blog-card-left-image .blog-card-footer {
    margin-top: auto;
}

/* Responsive adjustments for blog left image layout */
@media (max-width: 767px) {
    .blog-card-content-left {
        flex-direction: column;
        gap: 1rem;
    }
    
    .blog-card-image-left {
        flex: 0 0 auto;
        width: 100%;
        aspect-ratio: 16 / 9;
    }
    
    .blog-card-content-right {
        flex: 0 0 auto;
        width: 100%;
        padding-right: 0;
    }
}

/* ============================================
   Blog Right Image Layout
   ============================================ */
.blog-card-right-image {
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.blog-card-right-image:not(:first-child) {
    margin-top: 2.5rem;
}

.blog-card-right-image:last-child {
    border-bottom: none;
}

body.light-mode .blog-card-right-image {
    border-bottom-color: #e2e8f0;
}

.blog-card-content-right-wrapper {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.blog-card-content-left-text {
    flex: 0 0 75%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
    padding-right: 1rem;
}

.blog-card-image-right {
    flex: 0 0 25%;
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    aspect-ratio: 16 / 10;
    min-width: 0;
    order: 2;
}

.blog-card-image-right .card-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
}

.blog-card-right-image:hover .blog-card-image-right .card-image {
    transform: scale(1.05);
}

.blog-card-image-right .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.blog-card-right-image:hover .blog-card-image-right .image-overlay {
    background: rgba(0, 0, 0, 0.1);
}

.blog-card-right-image .blog-card-header {
    margin-bottom: 0;
}

.blog-card-right-image .blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    color: var(--color-text);
    transition: color 0.3s ease;
}

@media (min-width: 768px) {
    .blog-card-right-image .blog-card-title {
        font-size: 1.5rem;
    }
}

.blog-card-right-image:hover .blog-card-title {
    color: var(--color-text);
}

.blog-card-right-image .blog-card-excerpt-wrapper {
    margin-bottom: 0;
    margin-top: 0.25rem;
}

.blog-card-right-image .blog-card-excerpt {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text);
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: none;
}

body.light-mode .blog-card-right-image .blog-card-excerpt {
    color: var(--color-text);
}

.blog-card-right-image:hover .blog-card-excerpt {
    color: var(--color-text);
}

body.light-mode .blog-card-right-image:hover .blog-card-excerpt {
    color: var(--color-text);
}

.blog-card-right-image .blog-card-footer {
    margin-top: auto;
}

/* Responsive adjustments for blog right image layout */
@media (max-width: 767px) {
    .blog-card-content-right-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .blog-card-image-right {
        flex: 0 0 auto;
        width: 100%;
        aspect-ratio: 16 / 9;
        order: 0;
    }
    
    .blog-card-content-left-text {
        flex: 0 0 auto;
        width: 100%;
        padding-right: 0;
    }
}

/* ============================================
   Blog Z Flip Layout (Alternating Left/Right)
   ============================================ */
.blog-card-z-flip {
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.blog-card-z-flip:not(:first-child) {
    margin-top: 2.5rem;
}

.blog-card-z-flip:last-child {
    border-bottom: none;
}

body.light-mode .blog-card-z-flip {
    border-bottom-color: #e2e8f0;
}

/* Z Flip uses the same content structure as left/right, but alternates */
.blog-card-z-flip .blog-card-content-left,
.blog-card-z-flip .blog-card-content-right-wrapper {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.blog-card-z-flip .blog-card-image-left,
.blog-card-z-flip .blog-card-image-right {
    flex: 0 0 25%;
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    aspect-ratio: 16 / 10;
    min-width: 0;
}

.blog-card-z-flip .blog-card-image-left .card-image,
.blog-card-z-flip .blog-card-image-right .card-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
}

.blog-card-z-flip:hover .blog-card-image-left .card-image,
.blog-card-z-flip:hover .blog-card-image-right .card-image {
    transform: scale(1.05);
}

.blog-card-z-flip .blog-card-image-left .image-overlay,
.blog-card-z-flip .blog-card-image-right .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.blog-card-z-flip:hover .blog-card-image-left .image-overlay,
.blog-card-z-flip:hover .blog-card-image-right .image-overlay {
    background: rgba(0, 0, 0, 0.1);
}

.blog-card-z-flip .blog-card-content-right,
.blog-card-z-flip .blog-card-content-left-text {
    flex: 0 0 75%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
    padding-right: 1rem;
}

.blog-card-z-flip .blog-card-header {
    margin-bottom: 0;
}

.blog-card-z-flip .blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    color: var(--color-text);
    transition: color 0.3s ease;
}

@media (min-width: 768px) {
    .blog-card-z-flip .blog-card-title {
        font-size: 1.5rem;
    }
}

.blog-card-z-flip:hover .blog-card-title {
    color: var(--color-text);
}

.blog-card-z-flip .blog-card-excerpt-wrapper {
    margin-bottom: 0;
    margin-top: 0.25rem;
}

.blog-card-z-flip .blog-card-excerpt {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text);
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: none;
}

body.light-mode .blog-card-z-flip .blog-card-excerpt {
    color: var(--color-text);
}

.blog-card-z-flip:hover .blog-card-excerpt {
    color: var(--color-text);
}

body.light-mode .blog-card-z-flip:hover .blog-card-excerpt {
    color: var(--color-text);
}

.blog-card-z-flip .blog-card-footer {
    margin-top: auto;
}

/* For right image layout in Z Flip, the template already has content first, then image */
/* No special CSS needed as the template structure handles the order */

/* Responsive adjustments for blog z flip layout */
@media (max-width: 767px) {
    .blog-card-z-flip .blog-card-content-left,
    .blog-card-z-flip .blog-card-content-right-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Mobile: Images appear first above content */
    .blog-card-z-flip .blog-card-image-left,
    .blog-card-z-flip .blog-card-image-right {
        flex: 0 0 auto;
        width: 100%;
        aspect-ratio: 16 / 9;
        order: -1 !important;
    }
    
    /* Mobile: Content appears after images */
    .blog-card-z-flip .blog-card-content-right,
    .blog-card-z-flip .blog-card-content-left-text {
        flex: 0 0 auto;
        width: 100%;
        padding-right: 0;
        order: 0 !important;
    }
}

/* ============================================
   Large Card Layout
   ============================================ */
.blog-card-large {
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    background: rgba(15, 23, 42, 0.3);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card-large:not(:first-child) {
    margin-top: 2.5rem;
}

.blog-card-large:last-child {
    border-bottom: none;
}

body.light-mode .blog-card-large {
    border-bottom-color: #e2e8f0;
    background: #ffffff;
}

.blog-card-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

body.light-mode .blog-card-large:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-card-large-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.blog-card-large-image-link {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.blog-card-large-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card-large:hover .blog-card-large-image {
    transform: scale(1.05);
}

.blog-card-large-category-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

.blog-card-large-content {
    padding: 1.5rem;
}

.blog-card-large-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.blog-card-large-title a {
    text-decoration: none;
    color: inherit;
}

.blog-card-large-title a:hover {
    color: var(--color-accent);
}

@media (min-width: 768px) {
    .blog-card-large-title {
        font-size: 1.875rem;
    }
}

.blog-card-large-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 1.25rem;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.light-mode .blog-card-large-excerpt {
    color: var(--color-text);
}

.blog-card-large-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

body.light-mode .blog-card-large-meta {
    color: #64748b;
}

.blog-card-large-meta-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.blog-card-large-author,
.blog-card-large-date,
.blog-card-large-read-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
}

.blog-card-large-author {
    font-variant-emoji: text;
    -webkit-font-feature-settings: "liga" off;
    font-feature-settings: "liga" off;
}

body.light-mode .blog-card-large-author,
body.light-mode .blog-card-large-date,
body.light-mode .blog-card-large-read-time {
    color: #64748b;
}

.blog-card-large-author svg,
.blog-card-large-date svg,
.blog-card-large-read-time svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.blog-card-large-bookmark {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: color 0.3s ease;
    margin-left: auto;
}

.blog-card-large-bookmark:hover {
    color: var(--color-accent);
}

body.light-mode .blog-card-large-bookmark {
    color: #64748b;
}

body.light-mode .blog-card-large-bookmark:hover {
    color: var(--color-accent);
}

/* Responsive adjustments for large card */
@media (max-width: 767px) {
    .blog-card-large-content {
        padding: 1.25rem;
    }
    
    .blog-card-large-title {
        font-size: 1.25rem;
    }
    
    .blog-card-large-excerpt {
        font-size: 0.9375rem;
    }
    
    .blog-card-large-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .blog-card-large-bookmark {
        align-self: flex-end;
    }
    
    /* Hide bookmark icon on mobile for Post List Large Card style */
    .pickrc-post-list-style-large-card .blog-card-large-bookmark {
        display: none;
    }
}

/* Tablet adjustments for large card - ensure it stays within container */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Ensure large card respects container width on tablet */
    .pickrc-post-list-style-large-card .blog-card-large,
    .blog-main.pickrc-post-list-style-large-card .blog-card-large {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Ensure image wrapper doesn't overflow */
    .pickrc-post-list-style-large-card .blog-card-large-image-wrapper,
    .blog-main.pickrc-post-list-style-large-card .blog-card-large-image-wrapper {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Ensure content section doesn't overflow */
    .pickrc-post-list-style-large-card .blog-card-large-content,
    .blog-main.pickrc-post-list-style-large-card .blog-card-large-content {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        padding: 1.5rem;
    }
    
    /* Ensure the blog-main container itself respects width */
    .blog-main.pickrc-post-list-style-large-card {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        min-width: 0; /* Prevent flex item from overflowing */
    }
}

/* Desktop adjustments for large card - ensure it stays within container */
@media (min-width: 1024px) {
    /* Ensure large card respects container width on desktop */
    .pickrc-post-list-style-large-card .blog-card-large,
    .blog-main.pickrc-post-list-style-large-card .blog-card-large {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Ensure image wrapper doesn't overflow */
    .pickrc-post-list-style-large-card .blog-card-large-image-wrapper,
    .blog-main.pickrc-post-list-style-large-card .blog-card-large-image-wrapper {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Ensure content section doesn't overflow */
    .pickrc-post-list-style-large-card .blog-card-large-content,
    .blog-main.pickrc-post-list-style-large-card .blog-card-large-content {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Ensure the blog-main container itself respects width */
    .blog-main.pickrc-post-list-style-large-card {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        min-width: 0; /* Prevent flex item from overflowing */
    }
}

/* ============================================
   Card Left Image Layout
   ============================================ */
.blog-card-left-image-card {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

body.light-mode .blog-card-left-image-card {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.blog-card-left-image-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

body.light-mode .blog-card-left-image-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-card-left-image-card-wrapper {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
    flex: 1;
    min-height: 200px;
}

.blog-card-left-image-card-image-link {
    display: block;
    flex: 0 0 33.33%;
    max-width: 33.33%;
    min-width: 0;
    align-self: stretch;
    padding: 1.5rem 1rem 0 1.5rem;
    box-sizing: border-box;
}

.blog-card-left-image-card-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0.75rem;
}

.blog-card-left-image-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card-left-image-card:hover .blog-card-left-image-card-img {
    transform: scale(1.05);
}

.blog-card-left-image-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.5rem 0 0;
    min-width: 0;
    align-self: stretch;
}

.blog-card-left-image-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.blog-card-left-image-card-date {
    font-size: 0.875rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.light-mode .blog-card-left-image-card-date {
    color: #64748b;
}

.blog-card-left-image-card-time {
    margin-left: 0.25rem;
}

.blog-card-left-image-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    color: var(--color-text);
}

.blog-card-left-image-card-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.blog-card-left-image-card-title a:hover {
    color: var(--color-accent);
}

@media (min-width: 768px) {
    .blog-card-left-image-card-title {
        font-size: 1.5rem;
    }
}

.blog-card-left-image-card .blog-card-excerpt-wrapper {
    margin-bottom: 1rem;
    flex: 1;
}

.blog-card-left-image-card .blog-card-excerpt {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text);
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.light-mode .blog-card-left-image-card .blog-card-excerpt {
    color: var(--color-text);
}

.blog-card-left-image-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(51, 65, 85, 0.2);
}

body.light-mode .blog-card-left-image-card-footer {
    border-top-color: #e2e8f0;
}

.blog-card-left-image-card-author {
    font-size: 0.875rem;
    color: #64748b;
    font-variant-emoji: text;
    -webkit-font-feature-settings: "liga" off;
    font-feature-settings: "liga" off;
}

body.light-mode .blog-card-left-image-card-author {
    color: #64748b;
}

.blog-card-left-image-card-bookmark {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: color 0.3s ease;
    margin-left: auto;
}

.blog-card-left-image-card-bookmark:hover {
    color: var(--color-accent);
}

.blog-card-left-image-card-bookmark .bookmark-icon {
    width: 20px;
    height: 20px;
}

.blog-card-left-image-card-bookmark.bookmarked .bookmark-icon-fill {
    color: var(--color-accent);
}

body.light-mode .blog-card-left-image-card-bookmark {
    color: #64748b;
}

body.light-mode .blog-card-left-image-card-bookmark:hover {
    color: var(--color-accent);
}

/* Responsive adjustments for card left image */
@media (max-width: 767px) {
    .blog-card-left-image-card-wrapper {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .blog-card-left-image-card-image-link {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        padding: 1rem;
    }
    
    .blog-card-left-image-card-image {
        aspect-ratio: 16 / 9;
        height: auto;
    }
    
    .blog-card-left-image-card-content {
        padding: 1.25rem;
        gap: 0;
    }
    
    .blog-card-left-image-card-header {
        margin-bottom: 0.75rem;
        gap: 0.75rem;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
    }
    
    .blog-card-left-image-card-header .category-badge {
        flex-shrink: 0;
    }
    
    .blog-card-left-image-card-date {
        font-size: 0.8125rem;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .blog-card-left-image-card-title {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
        line-height: 1.4;
    }
    
    .blog-card-left-image-card .blog-card-excerpt-wrapper {
        margin-bottom: 1rem;
    }
    
    .blog-card-left-image-card .blog-card-excerpt {
        font-size: 0.875rem;
        line-height: 1.6;
    }
    
    .blog-card-left-image-card-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-top: 0.5rem;
        padding-top: 0.75rem;
        gap: 0.75rem;
    }
    
    .blog-card-left-image-card-author {
        font-size: 0.8125rem;
        flex-shrink: 0;
    }
    
    .blog-card-left-image-card-bookmark {
        flex-shrink: 0;
        margin-left: auto;
    }
}

/* ============================================
   Corner Peek Blog Card Styles
   ============================================ */
.blog-card-corner-peek {
    margin-bottom: 1.5rem;
}

.blog-card-corner-peek-wrapper {
    position: relative;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(51, 65, 85, 0.5);
    overflow: hidden; /* Contain the overflowing image */
}

body.light-mode .blog-card-corner-peek-wrapper {
    background: #ffffff;
    border-color: #e2e8f0;
}

.blog-card-corner-peek-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

body.light-mode .blog-card-corner-peek-wrapper:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-card-corner-peek-link {
    text-decoration: none;
    color: var(--color-text);
    display: block;
}

/* Prevent link color from affecting excerpt - override any inherited colors */
.blog-card-corner-peek-link p,
.blog-card-corner-peek-link .blog-card-corner-peek-excerpt {
    color: var(--color-slate-400) !important;
}

body.light-mode .blog-card-corner-peek-link p,
body.light-mode .blog-card-corner-peek-link .blog-card-corner-peek-excerpt {
    color: var(--color-slate-600) !important;
}

.blog-card-corner-peek-content {
    position: relative;
    padding-right: 120px; /* Space for corner image */
}

.blog-card-corner-peek-category {
    margin-bottom: 0.75rem;
}

.blog-card-corner-peek-header {
    margin-bottom: 0.5rem;
}

.blog-card-corner-peek-date {
    font-size: 0.8125rem;
    color: var(--color-slate-400);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.light-mode .blog-card-corner-peek-date {
    color: var(--color-slate-500);
}

.blog-card-corner-peek-time {
    margin-left: 0.25rem;
}

.blog-card-corner-peek-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.75rem 0;
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-corner-peek-excerpt {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-slate-400) !important;
    margin: 0 0 1rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.light-mode .blog-card-corner-peek-excerpt {
    color: var(--color-slate-600) !important;
}

/* Ensure excerpt doesn't inherit link color even when inside the link */
.blog-card-corner-peek-link .blog-card-corner-peek-excerpt,
.blog-card-corner-peek-link p.blog-card-corner-peek-excerpt,
a.blog-card-corner-peek-link .blog-card-corner-peek-excerpt,
a.blog-card-corner-peek-link p.blog-card-corner-peek-excerpt {
    color: var(--color-slate-400) !important;
}

body.light-mode .blog-card-corner-peek-link .blog-card-corner-peek-excerpt,
body.light-mode .blog-card-corner-peek-link p.blog-card-corner-peek-excerpt,
body.light-mode a.blog-card-corner-peek-link .blog-card-corner-peek-excerpt,
body.light-mode a.blog-card-corner-peek-link p.blog-card-corner-peek-excerpt {
    color: var(--color-slate-600) !important;
}

.blog-card-corner-peek-image {
    position: absolute;
    top: -1.5rem; /* Negative padding to align with wrapper edge */
    right: -1.5rem; /* Negative padding to align with wrapper edge */
    width: 200px;
    height: 200px;
    border-radius: 0 0 0 5rem !important; /* Only bottom-left corner - 5rem */
    overflow: hidden;
    opacity: 0.4;
    margin: 0;
    padding: 0;
    z-index: 1;
}

.blog-card-corner-peek-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0 0 0 5rem !important; /* Ensure image itself also has the radius */
    margin: 0;
    padding: 0;
}

.blog-card-corner-peek-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(51, 65, 85, 0.3);
    gap: 1rem;
}

body.light-mode .blog-card-corner-peek-footer {
    border-top-color: rgba(15, 23, 42, 0.1);
}

.blog-card-corner-peek-author {
    font-size: 0.8125rem;
    color: var(--color-slate-400);
    flex-shrink: 0;
}

body.light-mode .blog-card-corner-peek-author {
    color: var(--color-slate-500);
}

.blog-card-corner-peek-bookmark {
    flex-shrink: 0;
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--color-slate-400);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.light-mode .blog-card-corner-peek-bookmark {
    color: var(--color-slate-500);
}

.blog-card-corner-peek-bookmark:hover {
    color: var(--color-accent);
}

.blog-card-corner-peek-bookmark .bookmark-icon {
    width: 20px;
    height: 20px;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .blog-card-corner-peek-wrapper {
        padding: 1.25rem;
    }
    
    .blog-card-corner-peek-content {
        padding-right: 80px; /* Smaller space for corner image on mobile */
    }
    
    .blog-card-corner-peek-title {
        font-size: 1.25rem;
    }
    
    .blog-card-corner-peek-image {
        width: 85px;
        height: 85px;
        top: -1.25rem; /* Negative padding to align with wrapper edge (mobile padding is 1.25rem) */
        right: -1.25rem; /* Negative padding to align with wrapper edge */
        border-radius: 0 0 0 5rem !important; /* Only bottom-left corner - 5rem */
        margin: 0;
        padding: 0;
    }
    
    /* Override body.page img styles for corner peek on mobile */
    body.page .blog-card-corner-peek-image,
    body.page-template .blog-card-corner-peek-image,
    body.page-template-template-canvas-fullwidth .blog-card-corner-peek-image,
    body.page-template-template-canvas-sticky .blog-card-corner-peek-image {
        border-radius: 0 0 0 5rem !important;
    }
    
    body.page .blog-card-corner-peek-img,
    body.page-template .blog-card-corner-peek-img,
    body.page-template-template-canvas-fullwidth .blog-card-corner-peek-img,
    body.page-template-template-canvas-sticky .blog-card-corner-peek-img {
        border-radius: 0 0 0 5rem !important;
    }
    
    .blog-card-corner-peek-footer {
        flex-direction: row;
        align-items: center;
    }
}

/* ============================================
   Related Posts Section
   ============================================ */
.related-posts-section {
    padding: 4rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(51, 65, 85, 0.5);
}

body.light-mode .related-posts-section {
    border-top-color: rgba(15, 23, 42, 0.1);
}

.related-posts-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #ffffff;
}

body.light-mode .related-posts-title {
    color: #0f172a;
}

.related-posts-grid {
    display: grid;
    gap: 2rem;
}

/* Use data attributes to control grid columns based on customizer settings */
/* Mobile: Maximum 2 columns, respect mobile count for number of posts shown */
.related-posts-grid[data-mobile-count="1"] {
    grid-template-columns: 1fr;
}

.related-posts-grid[data-mobile-count="2"],
.related-posts-grid[data-mobile-count="3"],
.related-posts-grid[data-mobile-count="4"],
.related-posts-grid[data-mobile-count="5"],
.related-posts-grid[data-mobile-count="6"] {
    grid-template-columns: repeat(2, 1fr);
}

/* Hide posts beyond mobile count on mobile screens */
.related-posts-grid[data-mobile-count="1"] .related-post-card:nth-child(n+2) {
    display: none;
}

.related-posts-grid[data-mobile-count="2"] .related-post-card:nth-child(n+3) {
    display: none;
}

.related-posts-grid[data-mobile-count="3"] .related-post-card:nth-child(n+4) {
    display: none;
}

.related-posts-grid[data-mobile-count="4"] .related-post-card:nth-child(n+5) {
    display: none;
}

.related-posts-grid[data-mobile-count="5"] .related-post-card:nth-child(n+6) {
    display: none;
}

.related-posts-grid[data-mobile-count="6"] .related-post-card:nth-child(n+7) {
    display: none;
}

@media (min-width: 1024px) {
    /* Show all posts on desktop */
    .related-posts-grid .related-post-card {
        display: block !important;
    }
    
    .related-posts-grid[data-desktop-count="1"] {
        grid-template-columns: 1fr;
    }
    
    .related-posts-grid[data-desktop-count="2"] {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-posts-grid[data-desktop-count="3"] {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .related-posts-grid[data-desktop-count="4"] {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .related-posts-grid[data-desktop-count="5"] {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .related-posts-grid[data-desktop-count="6"] {
        grid-template-columns: repeat(6, 1fr);
    }
}

.related-post-card {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.light-mode .related-post-card {
    background: #f8fafc;
}

.related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

body.light-mode .related-post-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.related-post-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.related-post-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 1rem;
}

.related-post-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-post-card:hover .related-post-thumbnail {
    transform: scale(1.1);
}

.related-post-content {
    padding: 1.25rem;
}

.related-post-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0.75rem 0 0.5rem 0;
    color: #ffffff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.light-mode .related-post-title {
    color: #0f172a;
}

.related-post-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #94a3b8;
    flex-wrap: wrap;
}

body.light-mode .related-post-meta {
    color: #64748b;
}

.related-post-date {
    font-weight: 500;
}

.related-post-read-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.related-post-read-time svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

body.light-mode .read-time-footer {
    color: #64748b;
}

.read-time-footer svg {
    width: 14px;
    height: 14px;
}

.post-views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ============================================
   Sidebar - Matching article-sidebar pattern from single.php
   ============================================ */
.blog-sidebar {
    /* Mobile: static positioning */
    position: static;
    width: 100%;
}

@media (min-width: 1024px) {
    .blog-sidebar {
        display: block;
        position: -webkit-sticky;
        position: sticky;
        top: 120px;
        height: fit-content;
        /* Remove max-height - let sidebar extend naturally, no scrollbar */
        align-self: start;
        z-index: 5;
        /* NO scrollbar - sidebar content should be fully visible */
        overflow: visible !important;
        overflow-y: visible !important;
        overflow-x: visible !important;
    }
    
    /* Disable theme sticky on Canvas pages - let Canvas handle it */
    .cnvs-block-section .blog-sidebar,
    .cnvs-block-row .blog-sidebar,
    [class*="cnvs-"] .blog-sidebar {
        position: static !important;
    }
    
    /* Archive pages (including author pages) use standard sticky sidebar */
    /* Author pages now use archive-page class, so they inherit archive sticky behavior */
    
    /* Archive page sidebars stick to bottom like homepage */
    .archive-page .blog-sidebar {
        align-self: end;
    }
}

/* Homepage React Sidebar Sticky */
.homepage-sidebar-sticky {
    position: static;
    width: 100%;
}

@media (min-width: 1024px) {
    .homepage-sidebar-sticky {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 96px !important;
        height: fit-content !important;
        align-self: flex-start !important;
        max-height: calc(100vh - 96px) !important;
        overflow-y: auto !important;
    }
    
    /* Disable theme sticky on Canvas pages - let Canvas handle it */
    .cnvs-block-section .homepage-sidebar-sticky,
    .cnvs-block-row .homepage-sidebar-sticky,
    [class*="cnvs-"] .homepage-sidebar-sticky {
        position: static !important;
    }
}

/* Homepage Sidebar - Hide on mobile, show on desktop */
.homepage-sidebar-desktop {
    display: none !important;
}

@media (min-width: 1024px) {
    .homepage-sidebar-desktop {
        display: block !important;
    }
}

/* Homepage Sidebar - Show on mobile, hide on desktop */
.homepage-sidebar-mobile {
    display: block;
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    align-self: auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Remove bottom padding from homepage containers and blog-sections on mobile to eliminate gap before mobile sidebar */
@media (max-width: 1023px) {
    /* Remove bottom padding from containers that come before mobile sidebar */
    .container + .homepage-sidebar-mobile {
        margin-top: 0;
    }
    
    /* Target the container that precedes mobile sidebar and remove its bottom padding */
    main.site-main > .container {
        padding-bottom: 0 !important;
    }
    
    /* Remove bottom padding from blog-section inside homepage containers on mobile */
    main.site-main > .container .blog-section {
        padding-bottom: 0 !important;
    }
}

@media (min-width: 1024px) {
    .homepage-sidebar-mobile {
        display: none !important;
    }
}

/* Ensure sidebar widgets work in mobile sidebar */
.homepage-sidebar-mobile .sidebar-widget,
.homepage-sidebar-mobile .widget {
    margin-bottom: 2rem;
}

.homepage-sidebar-mobile .widget-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

body.light-mode .homepage-sidebar-mobile .widget-title {
    color: #0f172a;
}

.homepage-sidebar-mobile .widget-icon {
    color: var(--color-accent);
}

/* Ensure review listing widget matches desktop styling on mobile */
.homepage-sidebar-mobile .review-listing-widget {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.homepage-sidebar-mobile .review-listing-item {
    transition: transform 0.3s ease;
}

.homepage-sidebar-mobile .review-listing-item:hover {
    transform: translateX(5px);
}

.homepage-sidebar-mobile .review-listing-item a {
    display: flex;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.homepage-sidebar-mobile .review-listing-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(to bottom right, var(--color-dark-accent), var(--color-dark-links));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: #ffffff;
}

body.light-mode .homepage-sidebar-mobile .review-listing-number {
    background: linear-gradient(to bottom right, var(--color-light-accent), var(--color-light-links));
}

.homepage-sidebar-mobile .review-listing-content {
    flex: 1;
}

.homepage-sidebar-mobile .review-listing-content h3 {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: #ffffff !important;
    margin-bottom: 0.25rem !important;
    display: -webkit-box !important;
    line-clamp: 2 !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    transition: color 0.3s ease !important;
}

body.light-mode .homepage-sidebar-mobile .review-listing-content h3 {
    color: #0f172a !important;
}

.homepage-sidebar-mobile .review-listing-item:hover .review-listing-content h3 {
    color: var(--color-dark-accent);
}

body.light-mode .homepage-sidebar-mobile .review-listing-item:hover .review-listing-content h3 {
    color: var(--color-light-accent);
}

.homepage-sidebar-mobile .review-listing-meta {
    font-size: 0.75rem !important;
    color: #64748b !important;
    display: flex !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
}

.homepage-sidebar-mobile .review-listing-meta .pickrc-star-rating {
    color: var(--color-accent) !important;
}

.homepage-sidebar-mobile .review-listing-meta .pickrc-star-rating .pickrc-star-filled {
    color: var(--color-accent) !important;
}

.homepage-sidebar-mobile .review-listing-meta span {
    display: inline-block;
}

.sidebar-widget {
    margin-bottom: 2rem;
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

body.light-mode .widget-title {
    color: #0f172a;
}

.widget-icon {
    color: var(--color-accent);
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.trending-item {
    transition: transform 0.3s ease;
}

.trending-item:hover {
    transform: translateX(5px);
}

.trending-item a {
    display: flex;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.trending-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(to bottom right, var(--color-accent), var(--color-links));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: #ffffff;
}

.trending-content h3 {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    color: #ffffff;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

body.light-mode .trending-content h3 {
    color: #0f172a;
}

.trending-item:hover .trending-content h3 {
    color: var(--color-dark-accent);
}

body.light-mode .trending-item:hover .trending-content h3 {
    color: var(--color-light-accent);
}

.trending-content h4 {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    color: #ffffff;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

/* Author's Gear Widget */
.authors-gear-widget-wrapper {
    margin-bottom: 2rem;
}

.authors-gear-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
    display: block;
}

body.light-mode .authors-gear-title {
    color: #0f172a;
}

.authors-gear-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

body.light-mode .authors-gear-subtitle {
    color: #64748b;
}

.authors-gear-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.authors-gear-item {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.authors-gear-item:hover {
    transform: translateX(5px);
}

.authors-gear-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.authors-gear-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

body.light-mode .authors-gear-thumbnail {
    background: #f3f4f6;
}

.authors-gear-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.authors-gear-content {
    flex: 1;
    min-width: 0;
}

.authors-gear-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: #dc2626;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.authors-gear-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.4;
    transition: color 0.3s ease;
}

body.light-mode .authors-gear-name {
    color: #0f172a;
}

.authors-gear-item:hover .authors-gear-name {
    color: var(--color-dark-accent);
}

body.light-mode .authors-gear-item:hover .authors-gear-name {
    color: var(--color-light-accent);
}

body.light-mode .trending-content h4 {
    color: #0f172a;
}

.trending-item:hover .trending-content h4 {
    color: var(--color-dark-accent);
}

body.light-mode .trending-item:hover .trending-content h4 {
    color: var(--color-light-accent);
}

.trending-date {
    font-size: 0.75rem;
    color: #64748b;
}

/* ============================================
   Breakout Story
   ============================================ */
.breakout-story {
    margin: 4rem 0;
}

.breakout-story a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.breakout-content {
    position: relative;
    background: linear-gradient(to bottom right, rgba(234, 88, 12, 0.2), rgba(220, 38, 38, 0.2), rgba(236, 72, 153, 0.2)), rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(249, 115, 22, 0.3);
    border-radius: 1.5rem;
    overflow: hidden;
    padding: 2rem;
}

body.light-mode .breakout-content {
    background: linear-gradient(to bottom right, rgba(234, 88, 12, 0.1), rgba(220, 38, 38, 0.1), rgba(236, 72, 153, 0.1)), rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(249, 115, 22, 0.2);
}

@media (min-width: 768px) {
    .breakout-content {
        padding: 3rem;
    }
}

@media (min-width: 1024px) {
    .breakout-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: center;
    }
}

.breakout-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.breakout-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(to right, #ea580c, #dc2626);
    border-radius: 9999px;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
}

.breakout-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
    transition: color 0.3s ease;
}

@media (min-width: 768px) {
    .breakout-text h2 {
        font-size: 3rem;
    }
}

.breakout-story:hover .breakout-text h2 {
    color: var(--color-accent);
}

.breakout-text p {
    font-size: 1.25rem;
    color: var(--color-text);
    opacity: 0.8;
    line-height: 1.6;
}

.breakout-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--color-text);
    opacity: 0.7;
}

.breakout-button {
    padding: 1rem 2rem;
    background: linear-gradient(to right, #ea580c, #dc2626);
    border: none;
    border-radius: 9999px;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.25);
    transition: all 0.3s ease;
    width: fit-content;
}

.breakout-button:hover {
    background: linear-gradient(to right, #f97316, #ef4444);
    transform: scale(1.05);
}

.breakout-image {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

body.light-mode .breakout-image {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.breakout-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* Random Content Tiles Layout */
.breakout-random .breakout-content {
    display: block;
}

.breakout-random-label {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: inherit;
}

@media (min-width: 768px) {
    .breakout-random-label {
        font-size: 2.5rem;
    }
}

.breakout-random-tiles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .breakout-random-tiles {
        grid-template-columns: repeat(3, 1fr);
    }
}

.breakout-random-tile {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.breakout-random-tile:hover {
    transform: translateY(-5px);
}

.breakout-random-tile a {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 1.5rem;
}

.breakout-random-image {
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.breakout-random-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0.5rem;
}

.breakout-random-tile h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: inherit;
}

.breakout-random-tile p {
    font-size: 0.875rem;
    color: inherit;
    opacity: 0.8;
    line-height: 1.5;
}

body.light-mode .breakout-random-tile {
    background: rgba(0, 0, 0, 0.03);
}

/* ============================================
   Single Post
   ============================================ */
.single-post {
    padding-top: 4rem;
    padding-bottom: 3rem;
    overflow: visible;
    min-height: 100vh;
}

.single-post.no-breadcrumb-bar {
    padding-top: 0.5rem;
}

.single-post article {
    overflow: visible;
}

.single-post .container {
    overflow: visible;
    /* Container padding to show edges of title block */
    padding-left: 1rem;
    padding-right: 1rem;
}

.breadcrumbs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    flex: 1;
    min-width: 0;
}

.breadcrumb-link {
    display: flex;
    align-items: center;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #3b82f6;
}

.breadcrumb-separator {
    color: #64748b;
}

.breadcrumb-current {
    color: #ffffff;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.light-mode .breadcrumb-current {
    color: #0f172a;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.action-button {
    padding: 0.5rem;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.3s ease;
}

.action-button:hover {
    color: #ffffff;
}

body.light-mode .action-button {
    color: #64748b;
}

body.light-mode .action-button:hover {
    color: #0f172a;
}

.post-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 1024px) {
    .post-hero {
        grid-template-columns: 1fr 1fr;
        gap: 0;
        align-items: start;
    }
}

.post-hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    height: 100%;
}

@media (min-width: 1024px) {
    .post-hero-content {
        padding-right: 5rem;
    }
}

.post-hero-text {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (min-width: 640px) {
    .post-hero-text {
        padding: 2rem;
    }
}

@media (min-width: 1024px) {
    .post-hero-text {
        padding: 2.5rem;
        margin-right: -80px;
    }
}

.post-hero-image {
    position: relative;
    display: flex;
    align-items: stretch;
    /* Prevent CLS: Reserve space for image container */
    min-height: 0;
}

/* Prevent CLS: Ensure featured media container reserves space */
.featured-media-container {
    position: relative;
    width: 100%;
    /* Reserve space to prevent layout shift */
    min-height: 0;
}

/* On mobile, show image before content for split tile */
.post-hero-split-tile .post-hero-image {
    order: -1;
}

.post-hero-split-tile .post-hero-content {
    order: 1;
}

/* Prevent CLS: Ensure mobile images maintain aspect ratio */
@media (max-width: 1023px) {
    .post-hero-split-tile .hero-image,
    .post-hero-split-tile-sidebar .hero-image,
    .post-hero-reverse-split .hero-image {
        aspect-ratio: 16 / 9;
        height: auto;
    }
    
    /* Extra padding for Split Tile video on mobile when TOC is present (images remain unchanged) */
    body:has(.toc-mobile-container) .post-hero-split-tile .post-hero-image .featured-video-wrapper,
    body:has(.toc-mobile-container) .post-hero-split-tile-sidebar .post-hero-image .featured-video-wrapper {
        margin-top: 1rem;
    }
}

@media (min-width: 1024px) {
    .post-hero-image {
        padding-left: 5rem;
        min-height: 100%;
    }
    
    /* Constrain image and video containers to max 700px, matching title block */
    .post-hero-split-tile .post-hero-image,
    .post-hero-split-tile-sidebar .post-hero-image {
        min-height: 500px;
        max-height: 700px;
    }
    
    /* Make content block match the title block height (max 700px) */
    .post-hero-split-tile .post-hero-content,
    .post-hero-split-tile-sidebar .post-hero-content {
        max-height: 700px;
        overflow: visible;
    }
    
    /* Title block: max 700px dependent on title content, image/video will match this */
    .post-hero-split-tile .post-hero-text,
    .post-hero-split-tile-sidebar .post-hero-text {
        max-height: 700px;
        overflow-y: auto;
        border-radius: 1rem;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }
    
    /* Reset order on desktop to maintain original layout */
    .post-hero-split-tile .post-hero-image {
        order: 0;
    }
    
    .post-hero-split-tile .post-hero-content {
        order: 0;
    }
    
    /* Prevent CLS: Override aspect-ratio on desktop for Split Tile to match title block height */
    .post-hero-split-tile .hero-image,
    .post-hero-split-tile-sidebar .hero-image {
        aspect-ratio: auto;
        height: 100%;
        max-height: 700px;
        min-height: 500px;
        object-fit: cover;
        width: 100%;
    }
}

.hero-image {
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    object-fit: cover;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    /* Prevent CLS: Set aspect ratio for images */
    aspect-ratio: 16 / 9;
    height: auto;
}

/* Remove drop shadow for Split Tile layout */
.post-hero-split-tile .hero-image {
    filter: none;
}

/* Split Tile video wrapper - match image shape and spacing exactly */
.post-hero-split-tile .post-hero-image .featured-video-wrapper,
.post-hero-split-tile-sidebar .post-hero-image .featured-video-wrapper {
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    background: #000;
    /* Match image dimensions and aspect ratio behavior */
    aspect-ratio: 16 / 9;
    height: auto;
    /* Match image styling - no drop shadow on mobile */
    filter: none;
}

/* Ensure mobile video wrapper matches image aspect ratio */
@media (max-width: 1023px) {
    /* Ensure image container maintains aspect ratio for proper video overlay */
    .post-hero-split-tile .post-hero-image .hero-image.featured-image-placeholder,
    .post-hero-split-tile-sidebar .post-hero-image .hero-image.featured-image-placeholder {
        position: relative;
        z-index: 1;
        /* Image stays visible to reserve space and prevent CLS */
        opacity: 1;
        display: block;
        width: 100%;
        height: auto;
    }
    
    .post-hero-split-tile .post-hero-image .featured-video-wrapper,
    .post-hero-split-tile-sidebar .post-hero-image .featured-video-wrapper {
        /* Position absolutely over the image to prevent layout shift */
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* Match image aspect ratio (16:9) */
        aspect-ratio: 16 / 9;
        /* Ensure video overlays image without affecting layout */
        z-index: 2;
        border-radius: 1rem;
        overflow: hidden;
    }
}

@media (min-width: 1024px) {
    .post-hero-split-tile .post-hero-image .featured-video-wrapper,
    .post-hero-split-tile-sidebar .post-hero-image .featured-video-wrapper {
        aspect-ratio: auto;
        height: 100%;
        max-height: 700px;
        min-height: 500px;
    }
}

/* Video iframe - cover and fill the frame */
.post-hero-split-tile .post-hero-image .featured-video-embed,
.post-hero-split-tile-sidebar .post-hero-image .featured-video-embed {
    border: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* JavaScript will set width/height for cover effect */
    object-fit: cover;
}

/* Mobile-specific: Ensure video iframe covers the wrapper completely */
/* Expected dimensions on mobile (16:9 aspect ratio):
 * - Container has 1rem padding each side (16px each = 32px total)
 * - For 375px viewport: wrapper width = 343px, height = 193px
 * - For 414px viewport: wrapper width = 382px, height = 215px
 * - For 390px viewport: wrapper width = 358px, height = 201px
 * Formula: height = width * 9 / 16 = width * 0.5625
 */
@media (max-width: 1023px) {
    .post-hero-split-tile .post-hero-image .featured-video-wrapper,
    .post-hero-split-tile-sidebar .post-hero-image .featured-video-wrapper {
        /* Ensure wrapper clips overflow properly */
        overflow: hidden;
    }
    
    .post-hero-split-tile .post-hero-image .featured-video-embed,
    .post-hero-split-tile-sidebar .post-hero-image .featured-video-embed {
        /* Cover approach: iframe must fill wrapper completely */
        /* Scale up to 110% to ensure no black bars from rounding/calculation issues */
        /* JavaScript will override with calculated pixel values for precise sizing */
        width: 110%;
        /* Height will be calculated from aspect-ratio automatically */
        aspect-ratio: 16 / 9;
        /* Ensure minimum coverage - JavaScript will set exact pixel values */
        min-width: 100%;
        min-height: 100%;
    }
}

/* Light mode background for Split Tile text box */
body.light-mode .post-hero-split-tile .post-hero-text {
    background: rgba(255, 255, 255, 0.95);
}

/* Split Tile Sidebar - Inherits from Split Tile */
/* On mobile, show image before content for split tile sidebar */
.post-hero-split-tile-sidebar .post-hero-image {
    order: -1;
}

.post-hero-split-tile-sidebar .post-hero-content {
    order: 1;
}

@media (min-width: 1024px) {
    /* Reset order on desktop to maintain original layout */
    .post-hero-split-tile-sidebar .post-hero-image {
        order: 0;
    }
    
    .post-hero-split-tile-sidebar .post-hero-content {
        order: 0;
    }
}

/* Remove drop shadow for Split Tile Sidebar layout */
.post-hero-split-tile-sidebar .hero-image {
    filter: none;
}

/* Light mode background for Split Tile Sidebar text box */
body.light-mode .post-hero-split-tile-sidebar .post-hero-text {
    background: rgba(255, 255, 255, 0.95);
}

/* Reverse Split Header Style - Flips image and content order */
/* On mobile, show image before content */
.post-hero-reverse-split .post-hero-image {
    order: -1;
}

.post-hero-reverse-split .post-hero-content {
    order: 1;
}

@media (min-width: 1024px) {
    .hero-image {
        height: 100%;
        min-height: 500px;
    }
    
    /* Constrain image and video containers to max 700px, matching title block */
    .post-hero-reverse-split .post-hero-image {
        min-height: 500px;
        max-height: 700px;
    }
    
    /* Make content block match the title block height (max 700px) */
    .post-hero-reverse-split .post-hero-content {
        max-height: 700px;
        overflow: visible;
    }
    
    /* Title block: max 700px dependent on title content, image/video will match this */
    .post-hero-reverse-split .post-hero-text {
        max-height: 700px;
        overflow-y: auto;
        border-radius: 1rem;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }
    
    /* On desktop, show image before content (flipped from split_tile) */
    .post-hero-reverse-split .post-hero-image {
        order: -1;
    }
    
    .post-hero-reverse-split .post-hero-content {
        order: 1;
    }
    
    /* Adjust padding for reverse split - image on left, content on right */
    .post-hero-reverse-split .post-hero-image {
        padding-left: 0;
        padding-right: 5rem;
    }
    
    .post-hero-reverse-split .post-hero-content {
        padding-right: 0;
        padding-left: 5rem;
    }
    
    /* Adjust margin for reverse split text overlay */
    .post-hero-reverse-split .post-hero-text {
        margin-right: 0;
        margin-left: -80px;
    }
    
    /* Prevent CLS: Override aspect-ratio on desktop for Reverse Split to match title block height */
    .post-hero-reverse-split .hero-image {
        aspect-ratio: auto;
        height: 100%;
        max-height: 700px;
        min-height: 500px;
        object-fit: cover;
        width: 100%;
    }
    
    /* Reverse Split video wrapper - match image dimensions and title block height */
    .post-hero-reverse-split .post-hero-image .featured-video-wrapper {
        aspect-ratio: auto;
        height: 100%;
        max-height: 700px;
        min-height: 500px;
    }
}

/* Remove drop shadow for Reverse Split layout */
.post-hero-reverse-split .hero-image {
    filter: none;
}

/* Light mode background for Reverse Split text box */
body.light-mode .post-hero-reverse-split .post-hero-text {
    background: rgba(255, 255, 255, 0.95);
}

/* Bold Minimalist Header Style - No box, two-column layout */
.post-hero-bold-minimalist {
    display: block;
    margin-bottom: 4rem;
    padding-top: 40px;
}

/* Mobile: Extra padding for table of contents */
@media (max-width: 1023px) {
    .post-hero-bold-minimalist {
        padding-top: 100px;
    }
}

@media (min-width: 1024px) {
    .post-hero-bold-minimalist {
        padding-top: 10px;
    }
}

/* Categories at top */
.bold-minimalist-categories {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.bold-minimalist-categories .category-link {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bold-minimalist-categories .category-link:visited {
    color: #64748b;
}

.bold-minimalist-categories .category-link:hover {
    color: #ffffff;
}

body.light-mode .bold-minimalist-categories .category-link {
    color: #94a3b8;
}

body.light-mode .bold-minimalist-categories .category-link:visited {
    color: #94a3b8;
}

body.light-mode .bold-minimalist-categories .category-link:hover {
    color: #0f172a;
}

/* Title - no box styling */
.bold-minimalist-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: #ffffff;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .bold-minimalist-title {
        font-size: 4rem;
    }
}

@media (min-width: 1024px) {
    .bold-minimalist-title {
        font-size: 5rem;
        margin-bottom: 2.5rem;
    }
}

body.light-mode .bold-minimalist-title {
    color: #0f172a;
}

/* Two Column Layout */
.bold-minimalist-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 1024px) {
    .bold-minimalist-layout {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: start;
    }
}

/* Column 1: Excerpt, Byline, First Paragraph */
.bold-minimalist-col-1 {
    display: flex;
    flex-direction: column;
}

.bold-minimalist-excerpt {
    font-size: 1.375rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: #cbd5e1;
    font-weight: 400;
    /* Hide excerpt in header on mobile - it will show inline with body copy */
    display: none;
}

@media (min-width: 1024px) {
    .bold-minimalist-excerpt {
        font-size: 1.5rem;
        display: block;
    }
}

body.light-mode .bold-minimalist-excerpt {
    color: #475569;
}

/* Excerpt shown inline with body copy on mobile */
.bold-minimalist-excerpt-mobile {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: #cbd5e1;
    font-weight: 400;
    display: block;
}

@media (min-width: 1024px) {
    .bold-minimalist-excerpt-mobile {
        display: none;
    }
}

body.light-mode .bold-minimalist-excerpt-mobile {
    color: #475569;
}

.bold-minimalist-byline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: #94a3b8;
    margin-bottom: 2rem;
}

body.light-mode .bold-minimalist-byline {
    color: #64748b;
}

.bold-minimalist-byline .byline-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bold-minimalist-byline .byline-author a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bold-minimalist-byline .byline-author a:hover {
    color: #ffffff;
}

body.light-mode .bold-minimalist-byline .byline-author a:hover {
    color: #0f172a;
}

.bold-minimalist-byline .byline-author strong {
    font-weight: 600;
}

.bold-minimalist-byline .byline-separator {
    color: rgba(148, 163, 184, 0.5);
}

body.light-mode .bold-minimalist-byline .byline-separator {
    color: rgba(100, 116, 139, 0.5);
}

.bold-minimalist-byline .byline-date {
    color: inherit;
}

.bold-minimalist-byline .byline-read-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: inherit;
}

.bold-minimalist-byline .byline-read-time svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* First Paragraph */
.bold-minimalist-first-para {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #cbd5e1;
}

body.light-mode .bold-minimalist-first-para {
    color: #475569;
}

.bold-minimalist-first-para p {
    margin: 0;
}

/* Column 2: Featured Image - positioned to align with second paragraph */
.bold-minimalist-col-2 {
    display: flex;
    align-items: flex-start;
}

@media (max-width: 1023px) {
    .bold-minimalist-col-2 {
        order: -1;
        margin-bottom: 2rem;
    }
}

.bold-minimalist-featured-image {
    width: 100%;
    position: sticky;
    top: 120px;
    align-self: flex-start;
    /* Position image to align with where second paragraph would start */
    margin-top: 0;
}

@media (max-width: 1023px) {
    .bold-minimalist-featured-image {
        position: static;
        margin-top: 0;
    }
}

.bold-minimalist-featured-image .featured-image {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    object-fit: cover;
    display: block;
}

/* Full Hover Header Style */
.post-hero-full-hover {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
    overflow: hidden;
    /* Ensure this doesn't interfere with sticky elements - use contain but allow overflow for sticky */
    contain: layout style;
    /* Don't create containing block for sticky */
    z-index: 1;
}

@media (min-width: 1024px) {
    .post-hero-full-hover {
        margin-bottom: 4rem;
    }
}

/* Mobile: Image appears first, displayed normally */
.post-hero-full-image-mobile {
    display: block;
    margin-bottom: 1rem;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: 0;
    position: relative;
}

@media (min-width: 640px) {
    .post-hero-full-image-mobile {
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .post-hero-full-image-mobile {
        display: none;
    }
}

.hero-full-image-mobile {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 60vh;
}

/* Desktop: Image as background */
.post-hero-full-image {
    display: none;
}

@media (min-width: 1024px) {
    .post-hero-full-image {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        overflow: hidden;
    }
}

.hero-full-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-hero-full-hover .container {
    position: relative;
    z-index: 10;
    overflow: visible;
}

.post-hero-full-hover-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0;
    min-height: auto;
    position: relative;
    z-index: 10;
}

@media (min-width: 640px) {
    .post-hero-full-hover-layout {
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .post-hero-full-hover {
        min-height: 600px;
    }
    
    .post-hero-full-hover-layout {
        grid-template-columns: 1fr 1fr;
        gap: 0;
        align-items: start;
        min-height: 600px;
        padding: 4rem 0;
    }
}

.post-hero-full-hover-layout .post-hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    height: 100%;
}

@media (min-width: 1024px) {
    .post-hero-full-hover-layout .post-hero-content {
        padding-right: 5rem;
    }
}

.post-hero-full-hover-layout .post-hero-text {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

@media (min-width: 640px) {
    .post-hero-full-hover-layout .post-hero-text {
        padding: 2rem;
    }
}

@media (min-width: 1024px) {
    .post-hero-full-hover-layout .post-hero-text {
        padding: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .post-hero-full-hover-layout .post-hero-text {
        margin-right: -80px;
    }
}

body.light-mode .post-hero-full-hover-layout .post-hero-text {
    background: rgba(255, 255, 255, 0.95);
}

/* Hide the image column in full hover layout since image is background */
.post-hero-full-hover-layout .post-hero-image {
    display: none;
}

/* Pickr 25 Header Style */
.post-hero-pickr-25 {
    position: relative;
    width: 100%;
    margin-bottom: 4rem;
    overflow: hidden;
}

.post-hero-pickr-25-image {
    position: relative;
    width: 100%;
    min-height: 60vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1024px) {
    .post-hero-pickr-25-image {
        min-height: 70vh;
    }
}

.hero-pickr-25-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-pickr-25-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.post-hero-pickr-25-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 2rem;
}

@media (min-width: 1024px) {
    .post-hero-pickr-25-content {
        padding: 0;
        max-width: 1400px;
        margin: 0 auto;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.pickr-25-categories {
    position: absolute;
    left: 2rem;
    /* Position above title section on mobile: title bottom (2rem) + estimated title height (~5rem) + padding (1.5rem) */
    bottom: calc(2rem + 5rem + 1.5rem);
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    z-index: 3;
    align-items: baseline;
    flex-wrap: wrap;
}

@media (max-width: 1023px) {
    .pickr-25-categories {
        /* Higher position on mobile for better spacing above title */
        bottom: calc(2rem + 6rem + 1.5rem);
    }
}

@media (min-width: 1024px) {
    .pickr-25-categories {
        /* Position at left sidebar area, aligned with title baseline */
        left: 2rem;
        /* Match title section bottom position exactly for baseline alignment */
        bottom: 4rem;
        align-items: baseline;
        /* Limit width so tags wrap before reaching title column */
        /* Title starts at: 2rem + 80px + 6rem, so tags should wrap before that */
        max-width: calc(2rem + 80px + 6rem - 2rem - 1rem);
    }
}

.pickr-25-hashtag {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s ease;
}

.pickr-25-hashtag:hover {
    opacity: 0.8;
}

.pickr-25-hashtag:visited {
    color: #ffffff;
}

@media (min-width: 1024px) {
    .pickr-25-hashtag {
        font-size: 0.625rem;
    }
}

.pickr-25-title-section {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    z-index: 3;
    text-align: left;
}

@media (min-width: 1024px) {
    .pickr-25-title-section {
        bottom: 4rem;
        /* Align with article content area: container padding + left sidebar (~80px) + gap (6rem) */
        left: calc(2rem + 80px + 6rem);
        right: auto;
        max-width: 720px;
    }
}


.pickr-25-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    text-align: left;
}

.pickr-25-excerpt {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #ffffff;
    opacity: 0.95;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
    .pickr-25-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .pickr-25-excerpt {
        font-size: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .pickr-25-title {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    .pickr-25-excerpt {
        font-size: 1.375rem;
    }
}

.pickr-25-author-date {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    color: #ffffff;
    font-size: 0.875rem;
    text-align: left;
}

.pickr-25-author,
.pickr-25-date {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

.pickr-25-author {
    font-size: 0.875rem;
    font-weight: normal;
}

.pickr-25-author .author-phrase {
    color: #ffffff !important;
}

.pickr-25-author strong {
    font-weight: 600;
    color: #ffffff;
}

.pickr-25-author-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s;
}

.pickr-25-author-link:hover {
    opacity: 0.8;
}

/* Hide author link on desktop where bio tile is visible */
@media (min-width: 1024px) {
    .pickr-25-author-link {
        pointer-events: none;
        cursor: default;
    }
    
    .pickr-25-author-link:hover {
        opacity: 1;
    }
}

.pickr-25-date {
    opacity: 0.95;
}

/* Author Bio Tile for Pickr 25 Style - Positioned in hero image area */
.post-hero-pickr-25-image {
    position: relative;
}

.pickr-25-author-bio-tile {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 10;
    width: calc(100% - 4rem);
    max-width: calc(100% - 4rem);
    display: none;
}

@media (min-width: 1024px) {
    .pickr-25-author-bio-tile {
        display: block;
        bottom: 4rem;
        right: 2rem;
        padding: 1.5rem;
        max-width: 300px;
        width: auto;
        /* Position aligned with title section at same bottom level */
    }
}

body.light-mode .pickr-25-author-bio-tile {
    background: rgba(255, 255, 255, 0.95);
}

.pickr-25-author-bio-tile .author-avatar {
    margin-bottom: 0.75rem;
}

.pickr-25-author-bio-tile .author-avatar img {
    width: 48px;
    height: 48px;
}

.pickr-25-author-bio-tile .author-name {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #ffffff;
    line-height: 1.4;
    letter-spacing: 0;
    word-spacing: 0;
    font-variant-emoji: text;
    -webkit-font-feature-settings: "liga" off;
    font-feature-settings: "liga" off;
}

.pickr-25-author-bio-tile .author-name a {
    color: #ffffff;
    text-decoration: none;
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
}

.pickr-25-author-bio-tile .author-name strong {
    font-weight: 600;
    white-space: normal;
    margin: 0;
    padding: 0;
    display: inline;
}

.pickr-25-author-bio-tile .author-short-bio {
    font-size: 0.75rem;
    line-height: 1.5;
    color: #cbd5e1;
    font-weight: normal;
    display: inline;
    margin: 0;
    padding: 0;
}

body.light-mode .pickr-25-author-bio-tile .author-name {
    color: #0f172a;
}

body.light-mode .pickr-25-author-bio-tile .author-name a {
    color: #0f172a;
}

body.light-mode .pickr-25-author-bio-tile .author-short-bio {
    color: #475569;
}

body.light-mode .pickr-25-author-bio-tile .author-bio {
    color: #475569;
}

/* Video Header Style */
.post-hero-video-header {
    position: relative;
    width: 100%;
    margin-bottom: 4rem;
    overflow: hidden;
}

.post-hero-video-header-media {
    position: relative;
    width: 100%;
    min-height: 60vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1024px) {
    .post-hero-video-header-media {
        min-height: 70vh;
    }
}

.hero-video-header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-video-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.post-hero-video-header-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 2rem;
    display: flex;
    align-items: flex-end;
}

@media (min-width: 1024px) {
    .post-hero-video-header-content {
        padding: 3rem;
        max-width: 1400px;
        margin: 0 auto;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

.post-hero-video-header-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
    .post-hero-video-header-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .post-hero-video-header-title {
        font-size: 3.75rem;
    }
}

/* Featured video wrapper styling for video header */
.post-hero-video-header-media .featured-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.post-hero-video-header-media .featured-video-embed {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    border: 0;
    pointer-events: none;
}

.post-meta-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.post-date-meta {
    font-size: 0.875rem;
    color: #94a3b8;
}

.post-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff;
}

@media (min-width: 1024px) {
    .header-block-style-wrapper .post-title {
        font-size: 3.75rem;
    }
}

body.light-mode .post-title {
    color: #0f172a;
}

.post-excerpt {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #cbd5e1;
}

body.light-mode .post-excerpt {
    color: #475569;
}

.post-author-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(51, 65, 85, 0.5);
}

body.light-mode .post-author-info {
    border-top-color: #e2e8f0;
}

/* Remove horizontal line for pages */
body.page .post-author-info,
body.page .page-last-updated {
    border-top: none;
    padding-top: 0;
}

/* Style last updated date below author bio */
.last-updated-meta {
    margin-top: 0.75rem;
    margin-bottom: 0;
    font-size: 0.875rem;
    color: #94a3b8;
}

body.light-mode .last-updated-meta {
    color: #64748b;
}

.last-updated-meta .last-updated-text {
    margin-right: 0.5rem;
}

.last-updated-meta strong {
    font-weight: 600;
    color: #ffffff;
}

body.light-mode .last-updated-meta strong {
    color: #0f172a;
}

/* Pickr 25 last updated in bio tile */
.pickr-25-last-updated-bio {
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.pickr-25-last-updated-bio span {
    margin-right: 0.5rem;
}

.pickr-25-last-updated-bio strong {
    font-weight: 600;
    color: #ffffff;
}

.author-avatar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar img {
    width: 56px;
    height: auto;
    max-width: 100%;
    border-radius: 9999px;
    background: linear-gradient(to bottom right, #3b82f6, #8b5cf6);
    padding: 2px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 0.875rem;
    font-weight: normal;
    color: #ffffff;
    display: inline;
    line-height: 1.5;
    letter-spacing: 0;
    word-spacing: 0;
    font-variant-emoji: text;
    -webkit-font-feature-settings: "liga" off;
    font-feature-settings: "liga" off;
}

body.light-mode .author-name {
    color: #0f172a;
}

.author-name a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s;
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
}

.author-name a:hover {
    opacity: 0.8;
}

.author-name strong {
    font-weight: 600;
    white-space: normal;
    margin: 0;
    padding: 0;
    display: inline;
}

.author-phrase {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: normal;
    display: inline;
    margin-right: 0.25rem;
}

body.light-mode .author-phrase {
    color: #64748b;
}

.author-short-bio {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: normal;
    display: inline;
    margin: 0;
    padding: 0;
}

body.light-mode .author-short-bio {
    color: #64748b;
}

.author-role {
    font-size: 0.875rem;
    color: #64748b;
}

.post-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #64748b;
    justify-content: space-between;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-item svg {
    display: block;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

/* Full Hover Header: Show read time only on mobile */
@media (min-width: 1024px) {
    .post-hero-full-hover-layout .post-stats .stat-item:first-child {
        display: none; /* Hide read time on desktop */
    }
}

/* Split Tile Header: Show read time on mobile */
@media (min-width: 1024px) {
    .post-hero-split-tile .post-stats .stat-item:first-child,
    .post-hero-split-tile-sidebar .post-stats .stat-item:first-child {
        display: none; /* Hide read time on desktop */
    }
}

/* Reverse Split Header: Show read time only on mobile */
@media (min-width: 1024px) {
    .post-hero-reverse-split .post-stats .stat-item:first-child {
        display: none; /* Hide read time on desktop */
    }
}

/* Clean Article Layout */
.article-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .article-layout {
        grid-template-columns: auto 1fr auto;
        gap: 6rem;
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 2rem;
    }
    
    /* Ensure content wrapper takes up the middle column */
    .article-content-wrapper {
        grid-column: 2;
        justify-self: center;
    }
}

/* Left Sidebar */
.article-sidebar-left {
    display: none;
}

@media (min-width: 1024px) {
    .article-sidebar-left {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        position: sticky;
        top: 120px;
        height: fit-content;
        align-self: start;
        z-index: 5;
    }
}

/* Article Content Wrapper: Constrains content to 720px */
.article-content-wrapper {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

/* Apply consistent article content wrapper padding for all single post layouts - match Full Hover */
/* This ensures all layouts (Full Hover, Split Tile, Reverse Split) have the same body copy padding */
@media (max-width: 1023px) {
    .single-post .container .article-content-wrapper {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .single-post .container .article-content-wrapper {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1024px) {
    .article-content-wrapper {
        max-width: 720px;
        width: 100%;
    }
}

/* Main Content */
.article-content {
    min-width: 0; /* Prevent grid overflow */
    width: 100%;
}

/* Article Content Typography and Spacing */
.article-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

body.light-mode .article-content p {
    color: #334155;
}

/* Improved spacing after images */
.article-content figure,
.article-content .wp-block-image {
    margin-bottom: 2.5rem;
    margin-top: 2rem;
}

.article-content img {
    margin-bottom: 0;
    margin-top: 2rem;
}

/* Images with captions have reduced bottom margin since caption adds spacing */
.article-content figure:has(figcaption),
.article-content .wp-block-image:has(figcaption) {
    margin-bottom: 2rem;
}

.article-content p + figure,
.article-content p + .wp-block-image,
.article-content p + img {
    margin-top: 2.5rem;
}

.article-content figure + p,
.article-content .wp-block-image + p,
.article-content img + p {
    margin-top: 2.5rem;
}

/* Soften corners on all images */
.article-content img {
    border-radius: 0.75rem;
    overflow: hidden;
}

.article-content figure img,
.article-content .wp-block-image img {
    border-radius: 0.75rem;
}

/* Gallery thumbnails */
.article-content .wp-block-gallery,
.article-content .gallery {
    margin-bottom: 2.5rem;
    margin-top: 2rem;
}

.article-content .wp-block-gallery img,
.article-content .gallery img,
.article-content .gallery-item img {
    border-radius: 0.75rem;
}

.article-content .wp-block-gallery .wp-block-image img,
.article-content .gallery-item img {
    border-radius: 0.75rem;
}

/* Gallery images with captions - add dark gradient overlay */
.article-content .wp-block-gallery .wp-block-image:has(figcaption),
.article-content .wp-block-gallery figure:has(figcaption),
.article-content .gallery-item:has(figcaption) {
    position: relative;
    overflow: hidden; /* Ensure caption stays within bounds */
}

/* Ensure gallery image containers account for caption space */
.article-content .wp-block-gallery .wp-block-image:has(figcaption) img,
.article-content .wp-block-gallery figure:has(figcaption) img,
.article-content .gallery-item:has(figcaption) img {
    display: block;
    width: 100%;
    height: auto;
    position: relative; /* Ensure image is in normal flow */
}

.article-content .wp-block-gallery .wp-block-image:has(figcaption)::after,
.article-content .wp-block-gallery figure:has(figcaption)::after,
.article-content .gallery-item:has(figcaption)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
    border-radius: 0 0 0.75rem 0.75rem;
    z-index: 0;
}

/* Gallery captions - white and non-italic, positioned at bottom of image */
/* Only target individual image captions, not gallery-level captions */
.article-content .wp-block-gallery .wp-block-image figcaption,
.article-content .wp-block-gallery figure:not(.blocks-gallery-caption):not(.wp-element-caption) figcaption,
.article-content .gallery-item figcaption {
    position: absolute;
    bottom: 0.75rem;
    left: 0;
    right: 0;
    color: #ffffff;
    font-style: normal;
    font-size: 0.875rem;
    line-height: 1.3;
    padding: 0 1rem;
    text-align: center;
    z-index: 1;
    margin: 0;
    pointer-events: none; /* Allow clicks to pass through to image */
}

body.light-mode .article-content .wp-block-gallery .wp-block-image figcaption,
body.light-mode .article-content .wp-block-gallery figure:not(.blocks-gallery-caption):not(.wp-element-caption) figcaption,
body.light-mode .article-content .gallery-item figcaption {
    color: #ffffff;
}

/* Gallery Lightbox */
.pickrc-gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pickrc-gallery-lightbox.active {
    display: flex;
    opacity: 1;
}

.pickrc-gallery-lightbox-content {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pickrc-gallery-lightbox-picture {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: calc(100vh - 8rem);
}

.pickrc-gallery-lightbox-image {
    max-width: 100%;
    max-height: calc(100vh - 8rem);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.5rem;
    display: block;
}

.pickrc-gallery-lightbox-caption {
    margin-top: 1.5rem;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
    max-width: 90%;
    font-style: normal;
    padding: 0 1rem;
}

.pickrc-gallery-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    z-index: 10000;
    line-height: 1;
    padding: 0;
}

.pickrc-gallery-lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.pickrc-gallery-lightbox-close:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Ensure figure elements also have rounded corners */
.article-content figure {
    border-radius: 0.75rem;
}

/* For figures with captions, allow overflow to show the caption */
.article-content figure:has(figcaption),
.article-content figure:has(.wp-element-caption) {
    overflow: visible;
}

/* For figures without captions, use overflow: hidden for clean rounded corners */
.article-content figure:not(:has(figcaption)):not(:has(.wp-element-caption)) {
    overflow: hidden;
}

/* Apply rounded corners to images within figures */
.article-content figure img {
    border-radius: 0.75rem;
    display: block;
}

.article-content .wp-block-image {
    border-radius: 0.75rem;
    display: block;
    position: relative;
    /* Ensure container doesn't collapse before image loads */
    min-height: 0;
    /* Allow captions to be visible - don't clip them */
    overflow: visible;
}

/* Apply border-radius to the image itself for rounded corners */
.article-content .wp-block-image img {
    border-radius: 0.75rem;
    display: block;
}

.article-content .wp-block-image img {
    /* Ensure images fill their container while maintaining aspect ratio */
    width: 100%;
    height: auto;
    display: block;
    /* Prevent layout shift during load */
    max-width: 100%;
}

/* For images with explicit width/height, calculate aspect-ratio from attributes */
.article-content .wp-block-image img[width][height] {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Image Captions */
.article-content figcaption,
.article-content .wp-caption-text,
.article-content .wp-block-image figcaption,
.article-content figure figcaption,
.article-content .wp-block-image .wp-element-caption {
    font-size: 0.875rem;
    line-height: 1.3;
    margin-top: 0.5rem;
    margin-bottom: 0;
    padding: 0 1rem;
    font-style: italic;
    color: #94a3b8;
    text-align: center;
    display: block !important; /* Ensure captions are visible */
    visibility: visible !important;
    opacity: 1 !important;
}

/* Exclude individual gallery image captions from default caption styling (they have their own styles above) */
.article-content .wp-block-gallery .wp-block-image figcaption,
.article-content .wp-block-gallery figure:not(.blocks-gallery-caption):not(.wp-element-caption) figcaption,
.article-content .gallery-item figcaption {
    margin-top: 0;
    margin-bottom: 0;
}

/* Gallery-level captions (below entire gallery module) */
.article-content .wp-block-gallery + .blocks-gallery-caption,
.article-content .wp-block-gallery + .wp-element-caption,
.article-content .wp-block-gallery > .blocks-gallery-caption,
.article-content .wp-block-gallery > .wp-element-caption,
.article-content .wp-block-gallery figcaption.blocks-gallery-caption,
.article-content .wp-block-gallery figcaption.wp-element-caption,
.article-content .blocks-gallery-caption,
.article-content .wp-element-caption {
    font-size: 0.875rem;
    line-height: 1.3;
    margin-top: 0.75rem;
    margin-bottom: 0;
    padding: 0 1rem;
    font-style: italic;
    color: #94a3b8;
    text-align: center;
    display: block;
    position: static !important; /* Override any absolute positioning */
}

body.light-mode .article-content .wp-block-gallery + .blocks-gallery-caption,
body.light-mode .article-content .wp-block-gallery + .wp-element-caption,
body.light-mode .article-content .wp-block-gallery > .blocks-gallery-caption,
body.light-mode .article-content .wp-block-gallery > .wp-element-caption,
body.light-mode .article-content .wp-block-gallery figcaption.blocks-gallery-caption,
body.light-mode .article-content .wp-block-gallery figcaption.wp-element-caption,
body.light-mode .article-content .blocks-gallery-caption,
body.light-mode .article-content .wp-element-caption {
    color: #64748b;
}

body.light-mode .article-content figcaption,
body.light-mode .article-content .wp-caption-text,
body.light-mode .article-content .wp-block-image figcaption,
body.light-mode .article-content figure figcaption {
    color: #64748b;
}

/* Adjust spacing for figures with captions */
.article-content figure:has(figcaption) {
    margin-bottom: 2rem;
}

.article-content figure:has(figcaption) + p {
    margin-top: 2rem;
}

/* Headings spacing */
.article-content h1,
.article-content h2:not(.quickreview-heading):not(.blocks-gallery-caption):not(.wp-element-caption):not(.gbb-block-title),
.article-content h3:not(.blocks-gallery-caption):not(.wp-element-caption):not(.gbb-label),
.article-content h4:not(.blocks-gallery-caption):not(.wp-element-caption):not(.gbb-product-name),
.article-content h5:not(.blocks-gallery-caption):not(.wp-element-caption):not(.gbb-features-title):not(.quickreview-h5) {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

body.light-mode .article-content h1,
body.light-mode .article-content h2:not(.quickreview-heading):not(.blocks-gallery-caption):not(.wp-element-caption):not(.gbb-block-title),
body.light-mode .article-content h3:not(.blocks-gallery-caption):not(.wp-element-caption):not(.gbb-label),
body.light-mode .article-content h4:not(.blocks-gallery-caption):not(.wp-element-caption):not(.gbb-product-name),
body.light-mode .article-content h5:not(.blocks-gallery-caption):not(.wp-element-caption):not(.gbb-features-title):not(.quickreview-h5) {
    color: #0f172a;
}

.article-content h1 {
    font-size: 1.875rem;
}

.article-content h2:not(.quickreview-heading) {
    font-size: 2.5rem;
}

.article-content h2.quickreview-heading {
    font-size: 1.7rem;
}

.article-content h3 {
    font-size: 1.25rem;
}

.article-content h4 {
    font-size: 1.125rem;
}

/* Lists */
.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: #cbd5e1;
}

body.light-mode .article-content ul,
body.light-mode .article-content ol {
    color: #334155;
}

/* Blockquotes */
.article-content blockquote,
.post-content blockquote,
.wp-block-quote {
    position: relative;
    border-left: 4px solid var(--color-accent);
    border-top: none;
    border-right: none;
    border-bottom: none;
    padding: 1.5rem 1.5rem 1.5rem 4rem;
    margin: 2rem 0;
    font-style: italic;
    color: #94a3b8;
    border-radius: 1rem;
    overflow: hidden;
}

/* Background with accent color opacity */
.article-content blockquote::after,
.post-content blockquote::after,
.wp-block-quote::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-accent);
    opacity: 0.1;
    z-index: -1;
    border-radius: 1rem;
}

/* Quote icon - default (regular quote icon) */
.article-content blockquote::before,
.post-content blockquote::before,
.wp-block-quote::before {
    content: '';
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    width: 3rem;
    height: 3rem;
    background-color: var(--color-accent);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23000' viewBox='0 0 16 16'%3E%3Cpath d='M12 12a1 1 0 0 0 1-1V8.558a1 1 0 0 0-1-1h-1.388q0-.527.062-1.054.093-.558.31-.992t.559-.683q.34-.279.868-.279V3q-.868 0-1.52.372a3.3 3.3 0 0 0-1.085.992 4.9 4.9 0 0 0-.62 1.458A7.7 7.7 0 0 0 9 7.558V11a1 1 0 0 0 1 1zm-6 0a1 1 0 0 0 1-1V8.558a1 1 0 0 0-1-1H4.612q0-.527.062-1.054.094-.558.31-.992.217-.434.559-.683.34-.279.868-.279V3q-.868 0-1.52.372a3.3 3.3 0 0 0-1.085.992 4.9 4.9 0 0 0-.62 1.458A7.7 7.7 0 0 0 3 7.558V11a1 1 0 0 0 1 1z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23000' viewBox='0 0 16 16'%3E%3Cpath d='M12 12a1 1 0 0 0 1-1V8.558a1 1 0 0 0-1-1h-1.388q0-.527.062-1.054.093-.558.31-.992t.559-.683q.34-.279.868-.279V3q-.868 0-1.52.372a3.3 3.3 0 0 0-1.085.992 4.9 4.9 0 0 0-.62 1.458A7.7 7.7 0 0 0 9 7.558V11a1 1 0 0 0 1 1zm-6 0a1 1 0 0 0 1-1V8.558a1 1 0 0 0-1-1H4.612q0-.527.062-1.054.094-.558.31-.992.217-.434.559-.683.34-.279.868-.279V3q-.868 0-1.52.372a3.3 3.3 0 0 0-1.085.992 4.9 4.9 0 0 0-.62 1.458A7.7 7.7 0 0 0 3 7.558V11a1 1 0 0 0 1 1z'/%3E%3C/svg%3E");
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    z-index: 0;
    opacity: 0.8;
}

/* All blockquotes use the same regular quote icon - no special icon for citations */

/* Citation styling */
.article-content blockquote cite,
.article-content blockquote .wp-block-quote__citation,
.article-content blockquote footer,
.post-content blockquote cite,
.post-content blockquote .wp-block-quote__citation,
.post-content blockquote footer,
.wp-block-quote cite,
.wp-block-quote .wp-block-quote__citation,
.wp-block-quote footer {
    display: block;
    font-style: normal;
    font-size: 0.875rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.3);
    color: #64748b;
    text-align: left;
}

body.light-mode .article-content blockquote cite,
body.light-mode .article-content blockquote .wp-block-quote__citation,
body.light-mode .article-content blockquote footer,
body.light-mode .post-content blockquote cite,
body.light-mode .post-content blockquote .wp-block-quote__citation,
body.light-mode .post-content blockquote footer,
body.light-mode .wp-block-quote cite,
body.light-mode .wp-block-quote .wp-block-quote__citation,
body.light-mode .wp-block-quote footer {
    color: #475569;
    border-top-color: rgba(100, 116, 139, 0.3);
}

/* Ensure text content appears above background */
.article-content blockquote > *,
.post-content blockquote > *,
.wp-block-quote > * {
    position: relative;
    z-index: 1;
}

body.light-mode .article-content blockquote,
body.light-mode .post-content blockquote,
body.light-mode .wp-block-quote {
    color: #64748b;
}

/* Pullquotes - Distinct from blockquotes */
.wp-block-pickrc-pullquote {
    position: relative;
    margin: 2.5rem 0;
    padding: 0;
    border-left: 4px solid var(--color-accent);
    padding-left: 2rem;
    padding-right: 0;
    font-style: italic;
}

.wp-block-pickrc-pullquote .pullquote-content {
    font-size: 1.5rem;
    line-height: 1.6;
    font-weight: 600;
    color: #cbd5e1;
    margin: 0;
    padding: 0;
}

body.light-mode .wp-block-pickrc-pullquote .pullquote-content {
    color: #475569;
}

/* Pullquote in article content */
.article-content .wp-block-pickrc-pullquote,
.post-content .wp-block-pickrc-pullquote {
    margin: 2.5rem 0;
}

/* Preformatted Block in Article Content */
.article-content .wp-block-preformatted {
    margin: 2rem 0;
}

/* Right Sidebar */
.article-sidebar-right {
    display: none;
}

@media (min-width: 1024px) {
    .article-sidebar-right {
        display: block;
        position: sticky;
        top: 120px;
        height: fit-content;
        align-self: start;
        z-index: 5;
    }
    
    /* Disable theme sticky on Canvas pages - let Canvas handle it */
    .cnvs-block-section .article-sidebar-right,
    .cnvs-block-row .article-sidebar-right,
    [class*="cnvs-"] .article-sidebar-right {
        position: static !important;
    }
}

.post-read-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-read-time svg {
    color: #64748b;
}

body.light-mode .post-read-time {
    color: #64748b;
}

body.light-mode .post-read-time svg {
    color: #94a3b8;
}

.post-share-icons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* New class for mobile share icons in header - horizontal by default */
.header-mobile-share-icons {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Mobile Share Icons: Inline in header (on right side of same row) */
.header-mobile-share-inline {
    display: none; /* Hidden by default */
}

/* Mobile Share Icons: Inside split tile, on right side of read time */
.split-tile-mobile-share {
    display: none; /* Hidden by default */
    margin-left: auto;
}

/* Show mobile share icons on mobile only, inside split tile styles */
@media (max-width: 1023px) {
    .post-hero-split-tile .split-tile-mobile-share,
    .post-hero-split-tile-sidebar .split-tile-mobile-share,
    .post-hero-full-hover-layout .split-tile-mobile-share,
    .post-hero-reverse-split .split-tile-mobile-share {
        display: block;
    }
    
    .split-tile-mobile-share .post-share-icons-mobile {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
        flex-wrap: wrap;
    }
    
    /* Smaller icons for mobile within split tile */
    .split-tile-mobile-share .share-icon {
        width: 32px;
        height: 32px;
    }
    
    .split-tile-mobile-share .share-icon svg {
        width: 16px;
        height: 16px;
    }
}

/* Mobile Share Icons: Inside bold minimalist, on right side of byline */
.bold-minimalist-mobile-share {
    display: none; /* Hidden by default */
}

/* Show mobile share icons on mobile only, inside bold minimalist style */
@media (max-width: 1023px) {
    .bold-minimalist-mobile-share {
        display: flex;
        margin-left: auto;
        align-items: center;
    }
    
    .bold-minimalist-mobile-share .post-share-icons-mobile {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
        flex-wrap: wrap;
    }
    
    /* Smaller icons for mobile within bold minimalist */
    .bold-minimalist-mobile-share .share-icon {
        width: 32px;
        height: 32px;
    }
    
    .bold-minimalist-mobile-share .share-icon svg {
        width: 16px;
        height: 16px;
    }
    
    /* Ensure byline wraps properly with share icons */
    .bold-minimalist-byline {
        justify-content: space-between;
    }
}

/* Hide mobile share bar on desktop */
@media (min-width: 1024px) {
    .split-tile-mobile-share {
        display: none;
    }
    
    .bold-minimalist-mobile-share {
        display: none;
    }
}

/* Hide the old mobile share bar (now moved inside split tile) */
.header-mobile-share-bar {
    display: none;
}

/* Show mobile share bar on mobile for single posts and Canvas Sticky Share pages */
@media (max-width: 1023px) {
    .header-mobile-share-bar {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.75rem;
        padding: 1rem;
        background: rgba(15, 23, 42, 0.8);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(148, 163, 184, 0.1);
    }
    
    body.light-mode .header-mobile-share-bar {
        background: rgba(255, 255, 255, 0.9);
        border-top: 1px solid rgba(148, 163, 184, 0.2);
    }
    
    .header-mobile-share-bar .post-share-icons-mobile {
        display: flex;
        flex-direction: row;
        gap: 0.75rem;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .header-mobile-share-bar .share-icon {
        width: 40px;
        height: 40px;
    }
    
    .header-mobile-share-bar .share-icon svg {
        width: 20px;
        height: 20px;
    }
}

.share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #94a3b8;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-icon:hover {
    color: var(--color-dark-accent, #3b82f6);
    transform: translateY(-2px);
}

.share-icon:hover::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: var(--color-dark-accent, #3b82f6);
    opacity: 0.1;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.share-icon svg {
    width: 20px;
    height: 20px;
}

body.light-mode .share-icon {
    color: #64748b;
}

body.light-mode .share-icon:hover {
    color: var(--color-light-accent, #2563eb);
}

body.light-mode .share-icon:hover::before {
    background: var(--color-light-accent, #2563eb);
    opacity: 0.1;
    z-index: -1;
}

/* Bookmark button in share panel */
.share-icon.bookmark-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.share-icon.bookmark-button .bookmark-icon-fill {
    color: var(--color-accent);
}

.share-icon.bookmark-button.bookmarked {
    color: var(--color-accent);
}

.share-icon.bookmark-button.bookmarked:hover {
    color: var(--color-accent);
    opacity: 0.8;
}

.share-icon.bookmark-button.bookmarked:hover::before {
    background: var(--color-accent);
    opacity: 0.15;
}

/* Legacy class support - can be removed later */
.post-content-wrapper,
.post-content-container,
.post-content-sidebar,
.article-right-sidebar-wrapper,
.article-right-sidebar {
    display: block; /* Maintain basic layout if legacy classes still exist */
}

/* TOC Sidebar */
.toc-sidebar {
    display: none;
}

@media (min-width: 1024px) {
    .toc-sidebar {
        display: block;
        padding: 1.5rem;
        background: rgba(15, 23, 42, 0.5);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(148, 163, 184, 0.1);
        border-radius: 0.75rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        max-width: 200px;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    body.light-mode .toc-sidebar {
        background: rgba(255, 255, 255, 0.7);
        border-color: rgba(226, 232, 240, 0.8);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }
    
    /* TOC on left side (inside post-content-sidebar) - positioned below social icons */
    .post-content-sidebar .toc-sidebar,
    .toc-sidebar-left {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: calc(120px + 200px) !important; /* Below social icons */
        max-height: calc(100vh - 340px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        margin-top: 2rem;
        width: 100%;
        max-width: 200px;
    }
    
    /* Force sticky positioning for right side TOC - use universal selector to override everything */
    #toc-sidebar:not(.toc-sidebar-left),
    .article-right-sidebar .toc-sidebar,
    .article-right-sidebar #toc-sidebar,
    .post-content-wrapper .article-right-sidebar .toc-sidebar,
    .post-content-wrapper .article-right-sidebar #toc-sidebar,
    .single-post .article-right-sidebar .toc-sidebar,
    .single-post .article-right-sidebar #toc-sidebar,
    .single-post .post-content-wrapper .article-right-sidebar .toc-sidebar,
    .single-post .post-content-wrapper .article-right-sidebar #toc-sidebar {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 120px !important;
        max-height: calc(100vh - 140px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        align-self: flex-start !important;
    }
    
    /* Ensure right sidebar sticky works for Split Tile layout */
    .post-hero-split-tile ~ .container .post-content-wrapper .article-right-sidebar .toc-sidebar,
    .post-hero-split-tile ~ .container .post-content-wrapper .article-right-sidebar #toc-sidebar,
    .single-post .post-hero-split-tile ~ .container .post-content-wrapper .article-right-sidebar .toc-sidebar,
    .single-post .post-hero-split-tile ~ .container .post-content-wrapper .article-right-sidebar #toc-sidebar {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 120px !important;
        max-height: calc(100vh - 140px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        align-self: flex-start !important;
    }
    
    /* Ensure right sidebar sticky works for Reverse Split layout */
    .post-hero-reverse-split ~ .container .post-content-wrapper .article-right-sidebar .toc-sidebar,
    .post-hero-reverse-split ~ .container .post-content-wrapper .article-right-sidebar #toc-sidebar,
    .single-post .post-hero-reverse-split ~ .container .post-content-wrapper .article-right-sidebar .toc-sidebar,
    .single-post .post-hero-reverse-split ~ .container .post-content-wrapper .article-right-sidebar #toc-sidebar {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 120px !important;
        max-height: calc(100vh - 140px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        align-self: flex-start !important;
    }
    
    /* Top Edge Sticky (explicit) */
    .article-right-sidebar[data-sticky-sidebar="top_edge"] .toc-sidebar,
    .article-right-sidebar[data-sticky-sidebar="top_edge"] #toc-sidebar {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 120px !important;
        bottom: auto !important;
        max-height: calc(100vh - 140px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        align-self: flex-start !important;
    }
    
    /* Ensure Split Tile layout works with top edge sticky */
    .post-hero-split-tile ~ .container .post-content-wrapper .article-right-sidebar[data-sticky-sidebar="top_edge"] .toc-sidebar,
    .post-hero-split-tile ~ .container .post-content-wrapper .article-right-sidebar[data-sticky-sidebar="top_edge"] #toc-sidebar {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 120px !important;
    }
    
    /* Ensure Reverse Split layout works with top edge sticky */
    .post-hero-reverse-split ~ .container .post-content-wrapper .article-right-sidebar[data-sticky-sidebar="top_edge"] .toc-sidebar,
    .post-hero-reverse-split ~ .container .post-content-wrapper .article-right-sidebar[data-sticky-sidebar="top_edge"] #toc-sidebar {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 120px !important;
        bottom: auto !important;
        max-height: calc(100vh - 140px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        align-self: flex-start !important;
    }
    
    /* Bottom Edge Sticky */
    .article-right-sidebar[data-sticky-sidebar="bottom_edge"] .toc-sidebar {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: auto !important;
        bottom: 2rem !important;
        max-height: calc(100vh - 140px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
    
    /* No Sticky */
    .article-right-sidebar[data-sticky-sidebar="no_sticky"] .toc-sidebar {
        position: static !important;
        overflow: visible !important;
        max-height: none !important;
        top: auto !important;
        bottom: auto !important;
    }
    
    body.light-mode .toc-sidebar {
        background: rgba(255, 255, 255, 0.7);
        border-color: rgba(226, 232, 240, 0.8);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }
    
    .toc-sidebar::-webkit-scrollbar {
        width: 4px;
    }
    
    .toc-sidebar::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .toc-sidebar::-webkit-scrollbar-thumb {
        background: rgba(148, 163, 184, 0.3);
        border-radius: 2px;
    }
    
    .toc-sidebar::-webkit-scrollbar-thumb:hover {
        background: rgba(148, 163, 184, 0.5);
    }
}

.article-sidebar-widgets {
    display: none;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 1024px) {
    /* Article Sidebar Widgets (when used as right sidebar) */
    .article-sidebar-right.article-sidebar-widgets {
        display: block;
        position: sticky;
        top: 120px;
        height: fit-content;
        align-self: start;
        z-index: 5;
        max-width: 200px;
    }
    
    /* Standard Sidebar (sidebar-1) for Split Tile Sidebar style */
    .article-sidebar-right.article-sidebar-widgets.article-sidebar-standard {
        display: block;
        position: sticky;
        top: 120px;
        height: fit-content;
        align-self: start;
        z-index: 5;
        max-width: 300px;
    }
    
    .article-sidebar-widgets {
        align-self: start;
        position: static;
    }
    
    /* Top Edge Sticky (explicit) */
    .article-right-sidebar[data-sticky-sidebar="top_edge"] .article-sidebar-widgets {
        /* position: -webkit-sticky !important; */
        /* position: sticky !important; */
        /* top: 120px !important; */
        /* bottom: auto !important; */
        position: static;
    }
    
    /* Bottom Edge Sticky */
    .article-right-sidebar[data-sticky-sidebar="bottom_edge"] .article-sidebar-widgets {
        /* position: -webkit-sticky !important; */
        /* position: sticky !important; */
        /* top: auto !important; */
        /* bottom: 2rem !important; */
        position: static;
    }
    
    /* No Sticky */
    .article-right-sidebar[data-sticky-sidebar="no_sticky"] .article-sidebar-widgets {
        position: static !important;
        top: auto !important;
        bottom: auto !important;
    }
}

.article-sidebar-widgets .widget {
    margin-bottom: 0;
}

.article-sidebar-widgets .widget-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

body.light-mode .article-sidebar-widgets .widget-title {
    color: #0f172a;
}

/* Article Sidebar Widgets Styling (when used as right sidebar) */
@media (min-width: 1024px) {
    .article-sidebar-right.article-sidebar-widgets .widget,
    .article-sidebar-right.article-sidebar-widgets.article-sidebar-standard .widget {
        padding: 1.5rem;
        background: rgba(15, 23, 42, 0.5);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(148, 163, 184, 0.1);
        border-radius: 0.75rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        margin-bottom: 2rem;
    }
    
    .article-sidebar-right.article-sidebar-widgets .widget:last-child,
    .article-sidebar-right.article-sidebar-widgets.article-sidebar-standard .widget:last-child {
        margin-bottom: 0;
    }
    
    body.light-mode .article-sidebar-right.article-sidebar-widgets .widget,
    body.light-mode .article-sidebar-right.article-sidebar-widgets.article-sidebar-standard .widget {
        background: rgba(255, 255, 255, 0.7);
        border-color: rgba(226, 232, 240, 0.8);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }
    
    .article-sidebar-right.article-sidebar-widgets .widget-title,
    .article-sidebar-right.article-sidebar-widgets.article-sidebar-standard .widget-title {
        font-size: 0.875rem;
        font-weight: 600;
        margin-bottom: 1rem;
        color: #ffffff;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    
    body.light-mode .article-sidebar-right.article-sidebar-widgets .widget-title {
        color: #0f172a;
    }
}

.toc-nav {
    font-size: 0.875rem;
}

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

.toc-item {
    margin-bottom: 0.5rem;
}

.toc-link {
    display: block;
    position: relative;
    color: #94a3b8;
    text-decoration: none;
    padding: 0.375rem 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.toc-link:hover {
    color: var(--color-dark-accent, #3b82f6);
}

.toc-link:hover::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: var(--color-dark-accent, #3b82f6);
    opacity: 0.1;
    border-radius: 0.375rem;
    pointer-events: none;
    z-index: -1;
}

.toc-link.active {
    color: var(--color-dark-accent, #3b82f6);
    font-weight: 500;
}

.toc-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: var(--color-dark-accent, #3b82f6);
    opacity: 0.15;
    border-radius: 0.375rem;
    pointer-events: none;
    z-index: -1;
}

body.light-mode .toc-link {
    color: #64748b;
}

body.light-mode .toc-link:hover {
    color: var(--color-light-accent, #2563eb);
}

body.light-mode .toc-link:hover::before {
    background: var(--color-light-accent, #2563eb);
    opacity: 0.1;
    z-index: -1;
}

body.light-mode .toc-link.active {
    color: var(--color-light-accent, #2563eb);
}

body.light-mode .toc-link.active::before {
    background: var(--color-light-accent, #2563eb);
    opacity: 0.15;
    z-index: -1;
}

.toc-level-2 .toc-link {
    padding-left: 0.5rem;
    font-weight: 500;
}

.toc-level-3 .toc-link {
    padding-left: 1rem;
    font-size: 0.8125rem;
}

.toc-level-4 .toc-link {
    padding-left: 1.5rem;
    font-size: 0.75rem;
}

.post-content {
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 1024px) {
    .post-content-wrapper .post-content {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Mobile Table of Contents */
.toc-mobile-container {
    position: fixed !important;
    top: var(--navbar-height, 80px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    margin-bottom: 2rem;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    will-change: top;
    transition: top 0.3s ease;
    transform: translateZ(0); /* Force hardware acceleration and create new stacking context */
}

/* When navbar is hidden (sticky on up scroll), move TOC to top */
body.navbar-sticky-sticky_on_up .main-navigation.navbar-hidden ~ * .toc-mobile-container,
body.navbar-sticky-sticky_on_up:has(.main-navigation.navbar-hidden) .toc-mobile-container {
    top: 0 !important;
}

/* Fallback for browsers that don't support :has() - use JavaScript to add class */
body.navbar-sticky-sticky_on_up.navbar-hidden .toc-mobile-container {
    top: 0 !important;
}

@media (min-width: 640px) {
    .toc-mobile-container {
        margin-left: calc(-1.5rem);
        margin-right: calc(-1.5rem);
        width: calc(100% + 3rem);
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .toc-mobile-container {
        display: none !important; /* Hide mobile TOC on desktop - desktop sidebar shows instead */
    }
}

body.light-mode .toc-mobile-container {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(226, 232, 240, 1);
}

/* Add padding to content when mobile TOC is present */
@media (max-width: 1023px) {
    .single-post .toc-mobile-container ~ .container {
        padding-top: 60px;
    }
}

@media (min-width: 1024px) {
    .toc-mobile-container {
        display: none;
    }
}

.toc-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toc-mobile-toggle:hover {
    color: #ffffff;
    background: rgba(148, 163, 184, 0.1);
}

body.light-mode .toc-mobile-toggle {
    color: #475569;
}

body.light-mode .toc-mobile-toggle:hover {
    color: #0f172a;
    background: rgba(226, 232, 240, 0.5);
}

.toc-mobile-label {
    flex: 1;
    text-align: left;
}

.toc-mobile-icon {
    transition: transform 0.3s ease;
}

.toc-mobile-toggle.active .toc-mobile-icon {
    transform: rotate(180deg);
}

.toc-mobile-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(15, 23, 42, 0.98);
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    position: relative;
}

.toc-mobile-dropdown.active {
    max-height: 400px;
    overflow-y: auto;
}

body.light-mode .toc-mobile-dropdown {
    background: rgba(255, 255, 255, 0.98);
    border-top-color: rgba(226, 232, 240, 1);
}

.toc-mobile-nav {
    padding: 1rem 1.5rem;
    padding-bottom: 1rem;
    position: relative;
}

.toc-mobile-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-mobile-item {
    margin-bottom: 0.5rem;
}

.toc-mobile-link {
    display: block;
    position: relative;
    color: #94a3b8;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    line-height: 1.4;
}

.toc-mobile-link:hover {
    color: var(--color-dark-accent, #3b82f6);
}

.toc-mobile-link:hover::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: var(--color-dark-accent, #3b82f6);
    opacity: 0.1;
    border-radius: 0.375rem;
    pointer-events: none;
    z-index: -1;
}

.toc-mobile-link.active {
    color: var(--color-dark-accent, #3b82f6);
    font-weight: 500;
}

.toc-mobile-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: var(--color-dark-accent, #3b82f6);
    opacity: 0.15;
    border-radius: 0.375rem;
    pointer-events: none;
    z-index: -1;
}

body.light-mode .toc-mobile-link {
    color: #64748b;
}

body.light-mode .toc-mobile-link:hover {
    color: var(--color-light-accent, #2563eb);
}

body.light-mode .toc-mobile-link:hover::before {
    background: var(--color-light-accent, #2563eb);
    opacity: 0.1;
    z-index: -1;
}

body.light-mode .toc-mobile-link.active {
    color: var(--color-light-accent, #2563eb);
}

body.light-mode .toc-mobile-link.active::before {
    background: var(--color-light-accent, #2563eb);
    opacity: 0.15;
    z-index: -1;
}

.toc-mobile-item.toc-level-2 .toc-mobile-link {
    padding-left: 0.75rem;
    font-weight: 500;
}

.toc-mobile-item.toc-level-3 .toc-mobile-link {
    padding-left: 1.5rem;
    font-size: 0.8125rem;
}

.toc-mobile-item.toc-level-4 .toc-mobile-link {
    padding-left: 2.25rem;
    font-size: 0.75rem;
}

.toc-mobile-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: rgba(148, 163, 184, 0.2);
    z-index: 101;
    overflow: hidden;
    pointer-events: none;
}

body.light-mode .toc-mobile-progress {
    background: rgba(226, 232, 240, 0.5);
}

.toc-mobile-progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.1s ease;
    will-change: transform;
}

.post-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

body.light-mode .post-content p {
    color: #334155;
}

.post-content h1,
.post-content h2,
.post-content h3 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

body.light-mode .post-content h1,
body.light-mode .post-content h2,
body.light-mode .post-content h3 {
    color: #0f172a;
}

.post-content h1 {
    font-size: 1.875rem;
}

.post-content h2 {
    font-size: 1.5rem;
}

.post-content h3 {
    font-size: 1.25rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: #cbd5e1;
}

body.light-mode .post-content ul,
body.light-mode .post-content ol {
    color: #334155;
}

/* Post content blockquote styles are now handled above with .post-content blockquote */

.post-content code {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    background: rgba(30, 41, 59, 0.8);
    color: #60a5fa;
}

body.light-mode .post-content code {
    background: #e2e8f0;
    color: #2563eb;
}

/* Preformatted Block */
.wp-block-preformatted {
    background: rgba(30, 41, 59, 0.6);
    padding: 1.5rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 2rem 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #cbd5e1;
}

body.light-mode .wp-block-preformatted {
    background: #f1f5f9;
    color: #334155;
}

/* ============================================
   Newsletter Section
   ============================================ */
.newsletter-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.newsletter-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(37, 99, 235, 0.1), rgba(139, 92, 246, 0.1), rgba(219, 39, 119, 0.1));
}

.newsletter-content {
    position: relative;
    z-index: 10;
    max-width: 896px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(to bottom right, #3b82f6, #8b5cf6);
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.newsletter-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

@media (min-width: 768px) {
    .newsletter-title {
        font-size: 3rem;
    }
}

body.light-mode .newsletter-title {
    color: #0f172a;
}

.newsletter-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #cbd5e1;
    max-width: 512px;
    margin-left: auto;
    margin-right: auto;
}

body.light-mode .newsletter-description {
    color: #475569;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 576px;
    margin: 0 auto 1rem;
}

@media (min-width: 640px) {
    .newsletter-form {
        flex-direction: row;
    }
}

.newsletter-input-wrapper {
    position: relative;
    flex: 1;
}

.newsletter-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

body.light-mode .newsletter-input-icon {
    color: #64748b;
}

.newsletter-input {
    width: 100%;
    height: 56px;
    padding-left: 3rem;
    padding-right: 1rem;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 0.75rem;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.newsletter-input::placeholder {
    color: #94a3b8;
}

body.light-mode .newsletter-input {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
}

body.light-mode .newsletter-input::placeholder {
    color: #64748b;
}

.newsletter-button {
    height: 56px;
    padding: 0 2rem;
    background: linear-gradient(to right, #2563eb, #7c3aed);
    border: none;
    border-radius: 0.75rem;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.25);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.newsletter-button:hover {
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    transform: scale(1.05);
}

.newsletter-disclaimer {
    font-size: 0.875rem;
    color: #94a3b8;
}

body.light-mode .newsletter-disclaimer {
    color: #64748b;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    border-top: 1px solid rgba(51, 65, 85, 0.5);
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    padding: 4rem 0 2rem;
}

/* Match footer container width with navbar for alignment */
.site-footer .container {
    max-width: 1400px;
}

body.light-mode .site-footer {
    border-top-color: #e2e8f0;
    background: rgba(255, 255, 255, 0.5);
}

.footer-main {
    margin-bottom: 2rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: 30% 20% 20% 30%;
    gap: 3rem;
    align-items: start;
    max-width: 100%;
    width: 100%;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

/* Left Column: Logo + About */
.footer-column-left {
    max-width: 100%;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo a {
    display: inline-block;
    text-decoration: none;
}

.footer-logo-image {
    max-width: 200px;
    height: auto;
    display: block;
    border-radius: 0 !important;
}

.footer-logo-image-dark {
    display: block;
}

body.light-mode .footer-logo-image-dark {
    display: none;
}

.footer-logo-image-light {
    display: none;
}

body.light-mode .footer-logo-image-light {
    display: block;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f1f5f9;
}

body.light-mode .footer-logo-text {
    color: #0f172a;
}

.footer-about {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #cbd5e1;
    max-width: 100%;
}

body.light-mode .footer-about {
    color: #475569;
}

/* Middle Column: Footer Menu */
.footer-column-middle {
    align-items: flex-start;
}

/* Right Column: Empty (social icons moved to copyright section) */
.footer-column-right {
    display: none;
}

.footer-menu-section {
    width: 100%;
}

.footer-menu-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #f1f5f9;
}

body.light-mode .footer-menu-title {
    color: #0f172a;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-menu li {
    margin: 0;
}

.footer-menu a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.footer-menu a:hover {
    color: #60a5fa;
}

body.light-mode .footer-menu a {
    color: #475569;
}

body.light-mode .footer-menu a:hover {
    color: #2563eb;
}

/* Right Column: Footer Menu (social icons moved to copyright section) */

/* Footer Social Icons (now in copyright section) */
.footer-social {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.footer-social.footer-social-horizontal {
    grid-template-columns: repeat(2, 1fr);
}

.footer-social.footer-social-vertical {
    grid-template-columns: repeat(2, 1fr);
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 6px;
    background: rgba(51, 65, 85, 0.5);
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 6px;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
}

.footer-social-link:hover {
    background: rgba(59, 130, 246, 0.2);
    color: var(--color-accent);
    transform: translateY(-2px);
}

body.light-mode .footer-social-link {
    background: rgba(226, 232, 240, 0.5);
    color: #475569;
}

body.light-mode .footer-social-link:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-accent);
}

.footer-social-link svg {
    display: block;
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    fill: currentColor;
    color: inherit;
    flex-shrink: 0;
    visibility: visible;
    opacity: 1;
}

/* Copyright Bar */
.footer-copyright {
    border-top: 1px solid rgba(51, 65, 85, 0.5);
    padding-top: 2rem;
}

.footer-copyright-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    flex-direction: row-reverse;
}

body.light-mode .footer-copyright {
    border-top-color: #e2e8f0;
}

.footer-copyright-text {
    font-size: 0.875rem;
    color: #94a3b8;
    margin: 0;
    flex: 0 0 auto;
}

body.light-mode .footer-copyright-text {
    color: #64748b;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-column-empty {
        display: none;
    }
    
    .footer-column-middle,
    .footer-column-right {
        align-items: center;
        text-align: center;
    }
    
    .footer-menu {
        align-items: center;
    }
    
    .footer-copyright-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-copyright-text {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
        width: 100%;
    }
    
    .footer-logo {
        text-align: center;
    }
    
    .footer-about {
        text-align: center;
    }
}

/* ============================================
   No Results
   ============================================ */
.no-results {
    padding: 5rem 0;
}

.no-results-text {
    font-size: 1.25rem;
    text-align: center;
    color: #94a3b8;
}

body.light-mode .no-results-text {
    color: #64748b;
}

/* ============================================
   Archive & Search Pages
   ============================================ */
.archive-page,
.search-page {
    padding: 5rem 0;
}

.archive-header,
.search-header {
    margin-bottom: 3rem;
}

.archive-title,
.search-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-family: inherit;
}

body.light-mode .archive-title,
body.light-mode .search-title {
    color: #0f172a;
}

.search-query {
    color: var(--color-accent);
}

/* Search result highlights */
mark,
.search-page mark,
.blog-card mark,
.blog-card-title mark,
.blog-card-excerpt mark,
article mark,
.post-content mark,
.entry-content mark,
.site-main mark,
a mark,
.blog-card-link mark,
.trending-item mark,
.trending-content mark,
h1 mark,
h2 mark,
h3 mark,
h4 mark,
h5 mark,
h6 mark,
p mark {
    background-color: transparent !important;
    background: transparent !important;
    color: var(--color-accent) !important;
    font-weight: 500;
}

.archive-description {
    font-size: 1.125rem;
    color: #94a3b8;
    margin-top: 0.5rem;
    max-width: 650px;
}

body.light-mode .archive-description {
    color: #64748b;
}

.archive-latest-heading {
    font-size: 1.875rem;
    font-weight: 600;
    line-height: 1.5;
    margin-top: 2rem;
    margin-bottom: 2rem;
    color: #ffffff;
    font-family: inherit;
}

body.light-mode .archive-latest-heading {
    color: #0f172a;
}

/* Start Here Section */
.start-here-section {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.start-here-heading {
    font-size: 1.875rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 2rem;
    color: #ffffff;
    font-family: inherit;
}

body.light-mode .start-here-heading {
    color: #0f172a;
}

.start-here-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

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

.start-here-card {
    width: 100%;
}

.start-here-card .featured-image {
    aspect-ratio: 16 / 9;
    min-height: 220px;
}

.start-here-card .featured-content {
    padding: 1.5rem;
}

.start-here-card .featured-title {
    font-size: 1.25rem;
    margin: 0;
}

@media (min-width: 768px) {
    .start-here-card .featured-title {
        font-size: 1.5rem;
    }
}

.gradient-line {
    width: 100%;
    height: 2px;
    margin-top: 2rem;
    background: linear-gradient(to right, transparent, rgba(59, 130, 246, 0.5), transparent);
}

body.light-mode .gradient-line {
    background: linear-gradient(to right, transparent, rgba(37, 99, 235, 0.3), transparent);
}

/* ============================================
   404 Error Page
   ============================================ */
.error-404-page {
    padding: 5rem 0;
}

.error-404-header {
    margin-bottom: 3rem;
}

.error-404-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-family: inherit;
}

body.light-mode .error-404-title {
    color: #0f172a;
}

.error-404-content {
    margin-top: 1rem;
}

.error-404-description {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 1rem;
    line-height: 1.6;
}

body.light-mode .error-404-description {
    color: #64748b;
}

.error-404-subtitle {
    font-size: 1.125rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    font-style: italic;
}

body.light-mode .error-404-subtitle {
    color: #475569;
}

.error-404-cta {
    font-size: 1.125rem;
    color: #94a3b8;
    margin-bottom: 0;
}

body.light-mode .error-404-cta {
    color: #64748b;
}

/* ============================================
   Author Page
   ============================================ */
/* Author pages now use archive-page class, inheriting archive styles */
/* Author header styles work within archive-header structure */

/* Author pages now use archive-page class, so they inherit archive container fixes */
/* No separate author-page container fixes needed */

/* ============================================
   Archive Page
   ============================================ */
/* Archive page: Ensure ALL parent containers don't break sticky */
.archive-page .container,
.archive-page #page,
.archive-page .site,
.archive-page #content,
.archive-page .site-content,
.archive-page #main,
.archive-page .site-main {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    position: static !important;
    transform: none !important;
    filter: none !important;
    will-change: auto !important;
    contain: none !important;
}

.author-header {
    margin-bottom: 4rem;
}

/* When author-header is inside archive-header, ensure proper spacing */
.archive-header.author-header {
    margin-bottom: 4rem;
}

.author-header-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
    position: relative;
}

@media (min-width: 768px) {
    .author-header-content {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }
}

.author-avatar-large {
    flex-shrink: 0;
}

.author-avatar-img {
    width: 200px;
    height: 200px;
    border-radius: 16px;
    object-fit: cover;
}

@media (max-width: 767px) {
    .author-avatar-img {
        width: 150px;
        height: 150px;
    }
}

.author-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* By the Numbers Section */
.author-by-the-numbers {
    flex-shrink: 0;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 200px;
    align-self: flex-start;
    text-align: left;
}

body.light-mode .author-by-the-numbers {
    background: #f8f9fa;
    border-color: #e9ecef;
}

.by-the-numbers-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin: 0 0 1rem 0;
    text-align: left;
}

body.light-mode .by-the-numbers-title {
    color: #4b5563;
}

.by-the-numbers-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
}

.stat-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #9ca3af;
}

body.light-mode .stat-icon {
    background: #ffffff;
    border-color: #e5e7eb;
    color: #6b7280;
}

.stat-icon svg {
    width: 20px;
    height: 20px;
}

.stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: left;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    text-align: left;
}

body.light-mode .stat-number {
    color: #0f172a;
}

.stat-label {
    font-size: 0.8125rem;
    color: #9ca3af;
    line-height: 1.4;
    text-align: left;
}

body.light-mode .stat-label {
    color: #6b7280;
}

@media (max-width: 767px) {
    .author-by-the-numbers {
        padding: 1.25rem;
        min-width: auto;
        width: 100%;
        max-width: 100%;
        align-self: stretch;
        margin-top: 0;
        text-align: left;
    }
    
    .by-the-numbers-title {
        margin-bottom: 1.25rem;
        text-align: left;
    }
    
    .by-the-numbers-stats {
        gap: 1.25rem;
    }
    
    .stat-item {
        gap: 1rem;
        text-align: left;
    }
    
    .stat-icon {
        width: 44px;
        height: 44px;
    }
    
    .stat-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .stat-content {
        text-align: left;
    }
    
    .stat-number {
        font-size: 1.5rem;
        text-align: left;
    }
    
    .stat-label {
        font-size: 0.8125rem;
        text-align: left;
    }
}


.author-name-large {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    line-height: 1.2;
}

body.light-mode .author-name-large {
    color: #0f172a;
}

@media (max-width: 767px) {
    .author-name-large {
        font-size: 2rem;
    }
}

.author-position {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-dark-accent, #3b82f6);
    margin: 0;
}

body.light-mode .author-position {
    color: var(--color-light-accent, #2563eb);
}

.author-bio-full {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #cbd5e1;
    margin-top: 0.5rem;
    max-width: 650px;
}

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

.author-bio-full p:last-child {
    margin-bottom: 0;
}

body.light-mode .author-bio-full {
    color: #475569;
}

.author-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .author-social-links {
        justify-content: flex-start;
    }
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.social-link:hover {
    background: rgba(59, 130, 246, 0.2);
    color: var(--color-dark-accent, #3b82f6);
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.4);
}

body.light-mode .social-link {
    background: rgba(37, 99, 235, 0.05);
    color: #64748b;
    border-color: rgba(37, 99, 235, 0.15);
}

body.light-mode .social-link:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-light-accent, #2563eb);
    border-color: rgba(37, 99, 235, 0.3);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Gaming Platform Social Links - inherit same styling as other social links */
/* They will use the same default colors and theme accent color on hover */

.author-posts-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #ffffff;
}

body.light-mode .author-posts-title {
    color: #0f172a;
}

.no-posts {
    padding: 3rem 0;
    text-align: center;
    color: #94a3b8;
    font-size: 1.125rem;
}

body.light-mode .no-posts {
    color: #64748b;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.page-numbers {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #94a3b8;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(100, 116, 139, 0.3);
    transition: all 0.3s ease;
}

body.light-mode .page-numbers {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #64748b;
}

.page-numbers:hover,
.page-numbers.current {
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    color: #ffffff;
    border-color: transparent;
}

body.light-mode .page-numbers:hover,
body.light-mode .page-numbers.current {
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    color: #ffffff;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 1023px) {
    .blog-layout-second {
        margin-top: 4rem;
    }
    
    /* Ensure homepage container flex layout respects width on tablet */
    main.site-main > .container[style*="display: flex"] {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        gap: 2rem !important; /* Reduce gap on tablet to prevent overflow */
    }
    
    /* Ensure flex children respect container width on tablet */
    main.site-main > .container[style*="display: flex"] > div[style*="flex: 2"] {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        min-width: 0; /* Prevent flex item from overflowing */
    }
    
    /* Ensure blog-main inside flex container respects width */
    main.site-main > .container[style*="display: flex"] .blog-main {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        min-width: 0;
    }
    
    /* Ensure blog-section respects width */
    main.site-main > .container[style*="display: flex"] .blog-section {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Desktop: Ensure homepage container flex layout respects width */
@media (min-width: 1024px) {
    /* Ensure homepage container flex layout respects width on desktop */
    main.site-main > .container[style*="display: flex"] {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Ensure flex children respect container width on desktop */
    main.site-main > .container[style*="display: flex"] > div[style*="flex: 2"] {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        min-width: 0; /* Prevent flex item from overflowing */
    }
    
    /* Ensure blog-main inside flex container respects width */
    main.site-main > .container[style*="display: flex"] .blog-main {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        min-width: 0;
    }
    
    /* Ensure blog-section respects width */
    main.site-main > .container[style*="display: flex"] .blog-section {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
}

/* ============================================
   Load More Button
   ============================================ */
.blog-load-more {
    margin-top: 60px;
    margin-bottom: 60px;
    padding-top: 40px;
    padding-bottom: 40px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    text-align: center;
}

.load-more-button {
    background: linear-gradient(135deg, var(--color-accent), var(--color-links));
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 15px 30px color-mix(in srgb, var(--color-accent) 35%, transparent);
}

.load-more-button:hover {
    transform: translateY(-1px);
}

.load-more-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.load-more-button.loading {
    opacity: 0.7;
}

/* ============================================
   Gutenberg Blocks - Canvas Sticky Sidebar Compatibility
   ============================================ */

/* Ensure PickrC blocks don't interfere with Canvas sticky sidebars */
.wp-block-pickrc-featured-grid,
.wp-block-pickrc-post-list,
.wp-block-pickrc-trending,
.wp-block-pickrc-category-tile,
.wp-block-pickrc-any-post-tile,
.wp-block-pickrc-review-listing {
    /* Don't create containing block that prevents sticky */
    overflow: visible !important;
    /* Don't set height that could interfere */
    height: auto !important;
    /* Allow sticky children */
    contain: none !important;
    /* Don't create new stacking context unnecessarily */
    isolation: auto !important;
}

/* Ensure block content doesn't break sticky */
.wp-block-pickrc-featured-grid > *,
.wp-block-pickrc-post-list > *,
.wp-block-pickrc-trending > *,
.wp-block-pickrc-category-tile > *,
.wp-block-pickrc-any-post-tile > *,
.wp-block-pickrc-review-listing > * {
    /* Allow sticky positioning within blocks */
    position: relative;
}

/* Specifically for blocks inside Canvas sidebars */
.sidebar .wp-block-pickrc-featured-grid,
.sidebar .wp-block-pickrc-post-list,
.sidebar .wp-block-pickrc-trending,
.sidebar .wp-block-pickrc-category-tile,
.sidebar .wp-block-pickrc-any-post-tile,
.sidebar .wp-block-pickrc-review-listing,
.sticky-sidebar .wp-block-pickrc-featured-grid,
.sticky-sidebar .wp-block-pickrc-post-list,
.sticky-sidebar .wp-block-pickrc-trending,
.sticky-sidebar .wp-block-pickrc-category-tile,
.sticky-sidebar .wp-block-pickrc-any-post-tile,
.sticky-sidebar .wp-block-pickrc-review-listing {
    overflow: visible !important;
    height: auto !important;
    contain: none !important;
}

/* Ensure Canvas sticky sidebar structure works */
.sidebar-widgets-wrap,
.sticky-sidebar-wrap {
    /* Don't interfere with sticky */
    overflow: visible !important;
}

.sticky-sidebar {
    /* Allow Canvas to handle sticky positioning */
    position: relative;
}

/* Canvas sticky sidebar compatibility */
[data-sticky-sidebar] .wp-block-pickrc-featured-grid,
[data-sticky-sidebar] .wp-block-pickrc-post-list,
[data-sticky-sidebar] .wp-block-pickrc-trending,
[data-sticky-sidebar] .wp-block-pickrc-category-tile,
[data-sticky-sidebar] .wp-block-pickrc-any-post-tile,
[data-sticky-sidebar] .wp-block-pickrc-review-listing {
    overflow: visible !important;
    height: auto !important;
}

/* Ensure Canvas sections containing blocks don't break sticky */
.cnvs-block-section:has(.wp-block-pickrc-featured-grid),
.cnvs-block-section:has(.wp-block-pickrc-post-list),
.cnvs-block-section:has(.wp-block-pickrc-trending),
.cnvs-block-section:has(.wp-block-pickrc-category-tile),
.cnvs-block-section:has(.wp-block-pickrc-any-post-tile),
.cnvs-block-section:has(.wp-block-pickrc-review-listing) {
    /* Don't create containing block for sticky */
    overflow: visible !important;
}

/* Fallback for browsers without :has() support */
.cnvs-block-section .wp-block-pickrc-featured-grid,
.cnvs-block-section .wp-block-pickrc-post-list,
.cnvs-block-section .wp-block-pickrc-trending,
.cnvs-block-section .wp-block-pickrc-category-tile,
.cnvs-block-section .wp-block-pickrc-any-post-tile,
.cnvs-block-section .wp-block-pickrc-review-listing {
    position: relative;
    z-index: 1;
}

/* Ensure Canvas rows don't interfere */
.cnvs-block-row:has(.wp-block-pickrc-featured-grid),
.cnvs-block-row:has(.wp-block-pickrc-post-list),
.cnvs-block-row:has(.wp-block-pickrc-trending),
.cnvs-block-row:has(.wp-block-pickrc-category-tile),
.cnvs-block-row:has(.wp-block-pickrc-any-post-tile),
.cnvs-block-row:has(.wp-block-pickrc-review-listing) {
    overflow: visible !important;
}

/* Critical: Ensure Canvas sidebar containers allow sticky */
/* Only remove overflow barriers, don't force positioning (let Canvas JS handle it) */
.sidebar,
.sidebar-widgets-wrap,
.sticky-sidebar-wrap {
    /* Critical for sticky to work - remove overflow barriers */
    overflow: visible !important;
}

/* Ensure Canvas sections containing sidebars don't break sticky */
.cnvs-block-section .sidebar,
.cnvs-block-section .sidebar-widgets-wrap,
.cnvs-block-section .sticky-sidebar-wrap,
.cnvs-block-section .cnvs-block-section-sidebar,
.cnvs-block-section .cnvs-block-section-sidebar-inner,
.cnvs-block-row .sidebar,
.cnvs-block-row .sidebar-widgets-wrap,
.cnvs-block-row .sticky-sidebar-wrap,
.cnvs-block-row .cnvs-block-section-sidebar,
.cnvs-block-row .cnvs-block-section-sidebar-inner {
    overflow: visible !important;
}

/* Ensure Canvas sections/rows themselves don't create containing blocks for sticky */
/* Only apply if they contain sidebars */
.cnvs-block-section:has(.cnvs-block-section-sidebar),
.cnvs-block-section:has(.cnvs-block-section-sidebar-inner),
.cnvs-block-section:has(.sidebar),
.cnvs-block-row:has(.cnvs-block-section-sidebar),
.cnvs-block-row:has(.cnvs-block-section-sidebar-inner),
.cnvs-block-row:has(.sidebar) {
    /* Don't create containing block - allow sticky to work */
    overflow: visible !important;
    /* Ensure height is not constrained */
    min-height: auto !important;
}

/* ============================================
   CANVAS STICKY SIDEBAR - NO HEIGHT CONSTRAINTS
   Prevent ALL height constraints on containers with sidebars
   ============================================ */

/* CRITICAL: Force ALL Canvas containers with sidebars to use auto height */
/* This prevents Canvas from calculating and setting fixed heights */

/* Target by :has() selector (modern browsers) - ALL containers */
.cnvs-block-section:has(.cnvs-block-section-sidebar),
.cnvs-block-section:has(.cnvs-block-section-sidebar-inner),
.cnvs-block-section:has(.cnvs-block-section-sidebar) > *,
.cnvs-block-section:has(.cnvs-block-section-sidebar-inner) > * {
    height: auto !important;
    max-height: none !important;
    min-height: auto !important;
}

/* Specific Canvas container targets */
.cnvs-block-section-inner:has(.cnvs-block-section-sidebar),
.cnvs-block-section-inner:has(.cnvs-block-section-sidebar-inner),
.cnvs-block-section-outer:has(.cnvs-block-section-sidebar),
.cnvs-block-section-outer:has(.cnvs-block-section-sidebar-inner) {
    height: auto !important;
    max-height: none !important;
    min-height: auto !important;
    overflow: visible !important;
    align-items: flex-start !important;
}

/* Critical: canvas-content wrapper must allow sticky (matches Canvas plugin CSS) */
#canvas-content.canvas-content.entry-content,
.canvas-content.entry-content {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
    position: static !important;
    transform: none !important;
    filter: none !important;
    will-change: auto !important;
    contain: none !important;
}

/* Parent containers that might contain Canvas sections with sidebars */
.canvas-content:has(.cnvs-block-section-sidebar),
.canvas-content:has(.cnvs-block-section-sidebar-inner),
.entry-content:has(.cnvs-block-section-sidebar),
.entry-content:has(.cnvs-block-section-sidebar-inner),
.site-content:has(.cnvs-block-section-sidebar),
.site-content:has(.cnvs-block-section-sidebar-inner),
.site:has(.cnvs-block-section-sidebar),
.site:has(.cnvs-block-section-sidebar-inner) {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
    position: static !important;
    transform: none !important;
    filter: none !important;
    will-change: auto !important;
    contain: none !important;
}

/* Fallback for browsers without :has() - target by class combinations */
.cnvs-block-section-layout-with-sidebar,
.cnvs-block-section-sidebar-sticky-top,
.cnvs-block-section-sidebar-sticky-bottom {
    height: auto !important;
    max-height: none !important;
}

.cnvs-block-section-layout-with-sidebar .cnvs-block-section-inner,
.cnvs-block-section-layout-with-sidebar .cnvs-block-section-outer,
.cnvs-block-section-sidebar-sticky-top .cnvs-block-section-inner,
.cnvs-block-section-sidebar-sticky-top .cnvs-block-section-outer,
.cnvs-block-section-sidebar-sticky-bottom .cnvs-block-section-inner,
.cnvs-block-section-sidebar-sticky-bottom .cnvs-block-section-outer {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    align-items: flex-start !important;
}

/* Ensure Canvas sticky sidebar inner elements get proper sticky positioning and transition */
/* This matches the caards-25 theme implementation */
.cnvs-block-section-sidebar-sticky-top .cnvs-block-section-sidebar-inner,
.cnvs-block-section-sidebar-sticky-bottom .cnvs-block-section-sidebar-inner {
    position: sticky !important;
    -webkit-transition: 0.4s;
    transition: 0.4s;
    /* Ensure these properties are not overridden */
    z-index: 10;
}

/* Sticky Top specific */
.cnvs-block-section-sidebar-sticky-top .cnvs-block-section-sidebar-inner {
    top: calc(var(--navbar-height, 80px) + 30px);
    align-self: flex-start;
    height: fit-content;
    max-height: calc(100vh - var(--navbar-height, 80px) - 30px);
    overflow-y: auto;
    overflow-x: visible;
}

/* Sticky Bottom specific */
.cnvs-block-section-sidebar-sticky-bottom .cnvs-block-section-sidebar-inner {
    bottom: 30px;
    align-self: flex-end;
    margin-top: auto;
    height: fit-content;
    max-height: calc(100vh - var(--navbar-height, 80px) - 30px);
    overflow-y: auto;
    overflow-x: visible;
}

/* Force height auto for elements with our fix class - CSS handles it */
.pickrc-sticky-fix {
    height: auto !important;
    max-height: none !important;
    min-height: auto !important;
}

/* Target ALL Canvas containers when they have our fix class */
.cnvs-block-section-inner.pickrc-sticky-fix,
.cnvs-block-section-outer.pickrc-sticky-fix,
.cnvs-block-section.pickrc-sticky-fix,
.canvas-content.pickrc-sticky-fix,
.entry-content.pickrc-sticky-fix,
.site-content.pickrc-sticky-fix,
.site.pickrc-sticky-fix {
    height: auto !important;
    max-height: none !important;
    min-height: auto !important;
}

/* Fallback for browsers without :has() - target common Canvas sidebar layouts */
.cnvs-block-section-layout-with-sidebar {
    overflow: visible !important;
}

/* Don't force sticky positioning - let Canvas JS handle it */
/* But ensure containers don't prevent it */
.sticky-sidebar-wrap,
.sticky-sidebar {
    /* Remove barriers but don't override Canvas's positioning */
    contain: none !important;
}

/* Canvas Sticky Sidebar - CSS Support */
/* JavaScript handles sticky positioning intelligently - this CSS only sets navbar height variable */
@media (min-width: 1024px) {
    /* Calculate navbar height - approximately 80px but can vary */
    /* Use CSS variable if available, otherwise fallback to 80px */
    :root {
        --navbar-height: 80px;
    }
}

/* ============================================
   Canvas Sticky Template - Container Layout
   Matches header nav-container width for alignment
   ============================================ */
.canvas-sticky-container {
    width: 100%;
    max-width: 1400px;
    padding-right: 1rem;
    padding-left: 1rem;
    margin-right: auto;
    margin-left: auto;
    box-sizing: border-box;
}

/* Match header nav-container padding at same breakpoints */
@media (min-width: 640px) {
    .canvas-sticky-container {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .canvas-sticky-container {
        padding-right: 2rem;
        padding-left: 2rem;
    }
}

/* When header block is present, align left edge with Canvas section padding (20px) */
.header-block-style-wrapper ~ * .canvas-sticky-container,
.header-block-style-wrapper ~ .canvas-sticky-container,
body:has(.header-block-style-wrapper) .canvas-sticky-container {
    padding-left: 20px;
    padding-right: 20px;
}

/* Ensure alignment at all breakpoints when header block is present */
@media (min-width: 640px) {
    .header-block-style-wrapper ~ * .canvas-sticky-container,
    .header-block-style-wrapper ~ .canvas-sticky-container,
    body:has(.header-block-style-wrapper) .canvas-sticky-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (min-width: 1024px) {
    .header-block-style-wrapper ~ * .canvas-sticky-container,
    .header-block-style-wrapper ~ .canvas-sticky-container,
    body:has(.header-block-style-wrapper) .canvas-sticky-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Full Hover header: Align container with canvas-sticky-container for proper content alignment */
/* This ensures the header container matches the content container width and padding */
body.canvas-sticky-page .post-hero-full-hover .container,
body.page-template-template-canvas-fullwidth .post-hero-full-hover .container {
    max-width: 1400px;
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    body.canvas-sticky-page .post-hero-full-hover .container,
    body.page-template-template-canvas-fullwidth .post-hero-full-hover .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    body.canvas-sticky-page .post-hero-full-hover .container,
    body.page-template-template-canvas-fullwidth .post-hero-full-hover .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* When Full Hover header is present on Canvas pages, match the header container padding */
/* This ensures content aligns with the header text */
body.canvas-sticky-page .post-hero-full-hover ~ .canvas-sticky-container,
body.canvas-sticky-page:has(.post-hero-full-hover) .canvas-sticky-container,
body.page-template-template-canvas-fullwidth .post-hero-full-hover ~ .canvas-sticky-container,
body.page-template-template-canvas-fullwidth:has(.post-hero-full-hover) .canvas-sticky-container {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    body.canvas-sticky-page .post-hero-full-hover ~ .canvas-sticky-container,
    body.canvas-sticky-page:has(.post-hero-full-hover) .canvas-sticky-container,
    body.page-template-template-canvas-fullwidth .post-hero-full-hover ~ .canvas-sticky-container,
    body.page-template-template-canvas-fullwidth:has(.post-hero-full-hover) .canvas-sticky-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    body.canvas-sticky-page .post-hero-full-hover ~ .canvas-sticky-container,
    body.canvas-sticky-page:has(.post-hero-full-hover) .canvas-sticky-container,
    body.page-template-template-canvas-fullwidth .post-hero-full-hover ~ .canvas-sticky-container,
    body.page-template-template-canvas-fullwidth:has(.post-hero-full-hover) .canvas-sticky-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Inner flex container for content and sidebar */
.canvas-sticky-inner {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

/* Main content area */
.canvas-sticky-inner .canvas-content-wrapper {
    flex: 1;
    min-width: 0; /* Allow flex item to shrink below content size */
    overflow: visible; /* Don't create containing block */
}

/* Ensure Canvas content inside doesn't create its own width constraint */
.canvas-sticky-inner .canvas-content-wrapper .canvas-content {
    max-width: 100%; /* Use full width of wrapper, not Canvas's default constraints */
    width: 100%;
}

/* Allow Featured Grid to break out of Canvas content constraints */
.canvas-sticky-inner .canvas-content-wrapper .canvas-content .featured-grid-section,
.canvas-sticky-inner .canvas-content-wrapper .entry-content .featured-grid-section,
.canvas-sticky-inner .canvas-content-wrapper .featured-grid-section {
    /* Override any max-width constraints from parent containers */
    max-width: 100vw !important;
    width: 100vw !important;
}

/* Ensure Canvas block sections respect container width and don't overflow */
.canvas-sticky-container .cnvs-block-section,
.canvas-sticky-container .cnvs-block-section-outer,
.canvas-sticky-container .cnvs-block-section-inner,
.canvas-sticky-container .cnvs-block-row {
    max-width: 100%;
    box-sizing: border-box;
}

/* Prevent Canvas sections from breaking out of container */
.canvas-sticky-container .cnvs-block-section > .cnvs-block-section-outer {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Ensure Canvas content and rows stay within container bounds */
.canvas-sticky-container .canvas-content,
.canvas-sticky-container .entry-content {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Sticky sidebar */
.canvas-sticky-sidebar {
    flex: 0 0 340px; /* Fixed width sidebar */
    max-width: 340px;
    position: sticky;
    bottom: 0;
    align-self: flex-end;
    min-height: 200px;
    overflow: visible;
}

@media (min-width: 1120px) {
    .canvas-sticky-sidebar {
        flex: 0 0 360px;
        max-width: 360px;
    }
}

/* Left sidebar variant */
.canvas-sticky-container.sidebar-left .canvas-sticky-inner {
    flex-direction: row-reverse;
}

.canvas-sticky-container.sidebar-left .canvas-sticky-sidebar {
    align-self: flex-start; /* Align to top when on left */
}

/* Canvas Sticky Share Layout: Use article-layout grid instead of flex */
.canvas-sticky-share-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
    width: 100%;
    max-width: 100%; /* Don't add extra max-width, canvas-sticky-container handles it */
    margin: 0; /* Don't add margin, canvas-sticky-container handles it */
    padding: 0; /* Don't add padding, canvas-sticky-container handles it */
}

@media (min-width: 1024px) {
    .canvas-sticky-share-layout,
    .article-layout.canvas-sticky-share-layout {
        grid-template-columns: auto 1fr auto;
        gap: 3rem;
        column-gap: 3rem; /* Specifically target column gap */
        max-width: 100% !important; /* Override article-layout max-width */
        margin: 0 !important; /* Override article-layout margin */
        padding: 0 !important; /* Override article-layout padding */
    }
    
    /* Ensure content wrapper takes up the middle column */
    .canvas-sticky-share-layout .canvas-content-wrapper,
    .canvas-sticky-share-layout .article-content-wrapper {
        grid-column: 2;
        justify-self: start; /* Align to left instead of center */
        flex: none; /* Override flex from default canvas-content-wrapper */
        min-width: 0; /* Allow grid item to shrink */
        margin-left: 0 !important; /* Remove any auto margin from article-content-wrapper */
        margin-right: 0 !important; /* Remove any auto margin */
        padding-left: 0 !important; /* Remove any left padding */
        padding-right: 0 !important; /* Remove any right padding */
        max-width: none !important; /* Remove 720px constraint to allow wider content */
        width: 100%; /* Use full available width */
    }
    
    /* Right sidebar in third column - reduced width */
    .canvas-sticky-share-layout .canvas-sticky-sidebar {
        grid-column: 3;
        flex: none; /* Override flex from default canvas-sticky-sidebar */
        align-self: flex-end;
        flex: 0 0 250px !important; /* Set to 250px width */
        max-width: 250px !important;
        width: 250px !important;
    }
}

/* Override flex display when using article-layout */
.canvas-sticky-inner:has(.canvas-sticky-share-layout) {
    display: block; /* Let the grid handle layout */
}

/* Responsive: stack on mobile */
@media (max-width: 1019px) {
    .canvas-sticky-inner {
        flex-direction: column;
        gap: 2rem;
    }
    
    .canvas-sticky-sidebar {
        flex: 1;
        max-width: 100%;
        position: static; /* Remove sticky on mobile */
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Reset row-reverse on mobile */
    .canvas-sticky-container.sidebar-left .canvas-sticky-inner {
        flex-direction: column;
    }
    
    /* Ensure content doesn't overflow on mobile */
    .canvas-sticky-inner .canvas-content-wrapper {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden; /* Prevent horizontal overflow */
    }
    
    /* Prevent Canvas sections from adding extra padding on mobile */
    .canvas-sticky-inner .canvas-content-wrapper .canvas-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Reduce Canvas section padding on mobile to work with container padding */
    .canvas-sticky-inner .canvas-content-wrapper .cnvs-block-section > .cnvs-block-section-outer {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Canvas Sticky Share: Stack on mobile */
    .canvas-sticky-share-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .canvas-sticky-share-layout .canvas-sticky-sidebar {
        grid-column: 1;
    }
}

/* Canvas Single Share: Uses exact same structure as single.php but wrapped in canvas-sticky-container */
/* Key: Keep the exact single.php design (container > article-layout) but add sticky support */

/* CRITICAL: canvas-sticky-inner must use block display to allow container and article-layout to work */
body.canvas-single-share-page .canvas-sticky-container .canvas-sticky-inner {
    display: block !important; /* Override flex to allow normal flow */
}

/* Ensure container inside canvas-sticky-inner matches single.php container styling */
body.canvas-single-share-page .canvas-sticky-container .canvas-sticky-inner .container {
    /* Keep default container styles from single.php - don't override */
    /* Container has max-width: 1400px, padding, etc. from base styles */
    overflow: visible !important; /* Critical for sticky */
    height: auto !important;
    position: static !important;
    transform: none !important;
    filter: none !important;
    will-change: auto !important;
    contain: none !important;
}

/* Ensure article-layout inside container maintains single.php styling */
body.canvas-single-share-page .canvas-sticky-container .canvas-sticky-inner .article-layout {
    /* Keep default article-layout styles from single.php */
    /* This maintains: grid, max-width: 1400px, gap: 6rem, padding: 0 2rem */
    overflow: visible !important; /* Critical for sticky */
    height: auto !important;
    position: static !important;
    transform: none !important;
    filter: none !important;
    will-change: auto !important;
    contain: none !important;
}

/* Ensure article-content-wrapper keeps 720px max-width (same as single.php) */
body.canvas-single-share-page .canvas-sticky-container .canvas-sticky-inner .article-content-wrapper {
    /* Keep default styles from single.php - max-width: 720px, margin: 0 auto */
    overflow: visible !important; /* Critical for sticky */
    height: auto !important;
    position: static !important;
}

/* CRITICAL: Ensure article-sidebar-left gets sticky positioning - same as single.php */
/* The default .article-sidebar-left already has sticky, but ensure it works in canvas-sticky-container */
body.canvas-single-share-page .canvas-sticky-container .canvas-sticky-inner .article-sidebar-left {
    position: sticky !important;
    top: 120px !important;
    height: fit-content !important;
    align-self: start !important;
    z-index: 5 !important;
}

/* Ensure article-sidebar-right (TOC) gets sticky positioning - same as single.php */
body.canvas-single-share-page .canvas-sticky-container .canvas-sticky-inner .article-sidebar-right {
    position: sticky !important;
    top: 120px !important;
    height: fit-content !important;
    align-self: start !important;
    z-index: 5 !important;
}

/* Canvas Single Share: Sidebars appear underneath content in single column layout */
/* (Handled by flex-direction: column CSS above) */

/* Canvas Single Share: Force single-column layout for Canvas blocks with sidebars */
body.canvas-single-share-page .cnvs-block-section:has(.cnvs-block-section-sidebar) > .cnvs-block-section-outer > .cnvs-block-section-inner {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* Force content and sidebar to full width in single column */
body.canvas-single-share-page .cnvs-block-section:has(.cnvs-block-section-sidebar) .cnvs-block-section-content {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

body.canvas-single-share-page .cnvs-block-section:has(.cnvs-block-section-sidebar) .cnvs-block-section-sidebar {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    margin-top: 2rem !important;
}

/* Fallback for browsers without :has() - target by class */
body.canvas-single-share-page .cnvs-block-section-layout-with-sidebar > .cnvs-block-section-outer > .cnvs-block-section-inner,
body.canvas-single-share-page .cnvs-block-section-sidebar-sticky-top > .cnvs-block-section-outer > .cnvs-block-section-inner,
body.canvas-single-share-page .cnvs-block-section-sidebar-sticky-bottom > .cnvs-block-section-outer > .cnvs-block-section-inner {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

body.canvas-single-share-page .cnvs-block-section-layout-with-sidebar .cnvs-block-section-content,
body.canvas-single-share-page .cnvs-block-section-sidebar-sticky-top .cnvs-block-section-content,
body.canvas-single-share-page .cnvs-block-section-sidebar-sticky-bottom .cnvs-block-section-content {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

body.canvas-single-share-page .cnvs-block-section-layout-with-sidebar .cnvs-block-section-sidebar,
body.canvas-single-share-page .cnvs-block-section-sidebar-sticky-top .cnvs-block-section-sidebar,
body.canvas-single-share-page .cnvs-block-section-sidebar-sticky-bottom .cnvs-block-section-sidebar {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    margin-top: 2rem !important;
}

/* Mobile TOC: Show at top on mobile, hide on desktop */
body.canvas-single-share-page .toc-mobile-container {
    display: block; /* Show on mobile by default */
}

@media (min-width: 1024px) {
    /* Hide mobile TOC on desktop - we use desktop TOC in right sidebar */
    body.canvas-single-share-page .toc-mobile-container {
        display: none !important;
    }
}

/* Mobile Share Icons: Hidden on desktop, shown in header on mobile */
.canvas-single-share-mobile-share {
    display: none;
}

/* Hide template's mobile share if header-block-style mobile share is present */
body.canvas-single-share-page .header-block-style-wrapper ~ * .canvas-single-share-mobile-share,
body.canvas-single-share-page:has(.header-mobile-share-bar) .canvas-single-share-mobile-share {
    display: none !important;
}

@media (max-width: 1023px) {
    .canvas-single-share-mobile-share {
        display: flex;
        justify-content: center;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 1rem;
    }
    
    body.light-mode .canvas-single-share-mobile-share {
        border-bottom-color: rgba(0, 0, 0, 0.1);
    }
    
    .canvas-single-share-mobile-share .post-share-icons-mobile {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
        flex-wrap: wrap;
    }
    
    /* Hide template's mobile share if header-block-style mobile share is present */
    body.canvas-single-share-page:has(.header-mobile-share-bar) .canvas-single-share-mobile-share {
        display: none !important;
    }
}

/* Mobile Share Icons: Inline in header (on right side of same row) */
.header-mobile-share-inline {
    display: none; /* Hidden by default */
}

@media (max-width: 1023px) {
    /* Make last-updated wrapper containers flex to allow right alignment of share icons */
    .last-updated-meta-wrapper,
    .last-updated-text-simple,
    .pickr-25-last-updated,
    .pickr-25-last-updated-bio {
        display: flex !important;
        align-items: center;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.5rem;
    }
    
    /* Keep the paragraph inside as inline/block */
    .last-updated-meta-wrapper .last-updated-meta {
        display: inline;
        margin: 0;
    }
    
    /* For post-stats, make it flex but keep author-name inline */
    .post-stats {
        display: flex !important;
        align-items: center;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.5rem;
    }
    
    /* Keep author-name inline on mobile - don't break the text flow */
    .author-name {
        display: inline !important;
    }
    
    /* Ensure author-details stays as column on mobile */
    .author-details {
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Show mobile share icons inline in header on mobile - positioned on right */
    .header-mobile-share-inline {
        display: inline-flex;
        margin-left: auto;
        align-items: center;
        vertical-align: middle;
    }
    
    /* For author-name context, position share icons on right */
    .author-name .header-mobile-share-inline {
        float: right;
        margin-left: 0.75rem;
        margin-right: 0;
        margin-top: 0;
        margin-bottom: 0;
    }
    
    /* Mobile share icons in header - horizontal layout */
    .header-mobile-share-inline .header-mobile-share-icons {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
        flex-wrap: wrap;
    }
    
    /* 16x16 icons for mobile share in header */
    .header-mobile-share-inline .header-mobile-share-icons .share-icon {
        width: 16px;
        height: 16px;
    }
    
    .header-mobile-share-inline .header-mobile-share-icons .share-icon svg {
        width: 16px;
        height: 16px;
    }
}

/* Mobile: Hide desktop sidebars, show mobile TOC at top */
@media (max-width: 1023px) {
    /* Hide left sidebar on mobile */
    body.canvas-single-share-page .canvas-sticky-container .article-sidebar-left {
        display: none !important;
    }
    
    /* Hide right TOC sidebar on mobile - mobile TOC is shown at top */
    body.canvas-single-share-page .canvas-sticky-container .article-sidebar-right {
        display: none !important;
    }
    
    /* Ensure content wrapper works on mobile */
    body.canvas-single-share-page .canvas-sticky-container .canvas-sticky-inner .article-content-wrapper {
        max-width: 100%;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    /* Ensure Canvas content doesn't overflow on mobile */
    body.canvas-single-share-page .canvas-sticky-container .canvas-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Reduce Canvas section padding on mobile */
    body.canvas-single-share-page .canvas-sticky-container .cnvs-block-section > .cnvs-block-section-outer {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Very small screens - minimal padding */
@media (max-width: 479px) {
    .canvas-sticky-container {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }
    
    .canvas-sticky-inner .canvas-content-wrapper .cnvs-block-section > .cnvs-block-section-outer {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
}

/* Star Rating Styles */
.pickrc-star-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    vertical-align: middle;
}

.pickrc-star-rating .pickrc-star {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    position: relative;
}

.pickrc-star-rating .pickrc-star-filled {
    color: var(--color-accent);
}

.pickrc-star-rating .pickrc-star-empty {
    color: #dee2e6;
    opacity: 0.5;
}

.pickrc-star-rating .pickrc-star-half {
    position: relative;
    display: inline-block;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.pickrc-star-rating .pickrc-star-half-filled,
.pickrc-star-rating .pickrc-star-half-empty {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.pickrc-star-rating .pickrc-star-half-filled {
    color: var(--color-accent);
    clip-path: inset(0 50% 0 0);
    -webkit-clip-path: inset(0 50% 0 0);
}

.pickrc-star-rating .pickrc-star-half-empty {
    color: #dee2e6;
    opacity: 0.5;
    clip-path: inset(0 0 0 50%);
    -webkit-clip-path: inset(0 0 0 50%);
}

.pickrc-star-rating .pickrc-star-half-filled svg,
.pickrc-star-rating .pickrc-star-half-empty svg {
    width: 1rem;
    height: 1rem;
    display: block;
}

.pickrc-star-rating .pickrc-star svg {
    width: 1rem;
    height: 1rem;
    display: block;
}

.review-listing-score .pickrc-star-rating {
    margin-left: 0.25rem;
}

.pickr-review-score .pickrc-star-rating {
    margin-left: 0.5rem;
}

/* Powerkit Scroll to Top Button Custom Styles */
.pk-scroll-to-top {
    border-radius: 0.5rem;
}

.pk-scroll-to-top .pk-icon {
    border-radius: 0.5rem;
    color: var(--color-accent, #3b82f6);
    background-color: transparent;
    transition: all 0.2s ease;
}

.pk-scroll-to-top:hover .pk-icon,
.pk-scroll-to-top:focus .pk-icon {
    color: var(--color-accent, #3b82f6);
    background-color: rgba(59, 130, 246, 0.1);
}

body.light-mode .pk-scroll-to-top:hover .pk-icon,
body.light-mode .pk-scroll-to-top:focus .pk-icon {
    background-color: rgba(37, 99, 235, 0.1);
}

/* Review section */

.score__wrap {
	border-radius: 10px;
}

.lets-review--center .lets-review-block__main-title .lets-review-block__title {
	color: #fff;
}

.boxout{
border: 1px solid;
border-radius: 15px;
padding: 10px;
margin-bottom: 2.5rem;
 /* display: table; */
}

.quickreview-heading {
margin-top: 1rem;
}

.boxout .quickreview-h5,
.article-content .quickreview-h5 {
	margin-top: 0.5rem;
}

.quickreview {
	border: 1px solid #dddddd;
	border-radius: 10px;
	margin: 10px;
}


.column {
  width: 100%;
  padding-bottom: 10px;
}

@media only screen and (min-width: 768px) {
  .column {
    width: 50%;
	float: left;

  }
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;

}

.details {
	font-size:0.9em;
	font-weight:bold;
	text-align: justify;
	line-height: 1.2em;
	margin-bottom: 10px;
}

.rating {
	font-size: 1.5em;
	font-weight: bold;
	text-transform: uppercase;
	line-height: 1em;
	text-align: right;
	top: 50;
	vertical-align: middle;
}

.choice {
	text-align: right;
	vertical-align: top;
}

.revsum {
	font-size: 1.1em;
	font-weight: bold;
	line-height: 1em;
}

.review-list{
	font-size: 0.7em;
}

.pros:before{
	content: '+ ';
}

.cons:before{
	content: '- ';
}

#methodology {
	border: 1px solid; 
	border-radius: 15px;
	padding: 1em;
	font-size: 0.8em;
}

#methodology a {
	text-decoration: underline;
}




/* ============================================
   Header Block Style Wrapper - Navbar Spacing
   ============================================ */

/* Add padding-top to header block styles to account for fixed navbar */
/* Uses CSS variable --navbar-height set by JavaScript, falls back to 80px */
.header-block-style-wrapper {
    padding-top: var(--navbar-height, 80px);
}

/* Account for admin bar when visible */
body.admin-bar .header-block-style-wrapper {
    padding-top: calc(var(--navbar-height, 80px) + 46px); /* Mobile admin bar */
}

@media screen and (min-width: 783px) {
    body.admin-bar .header-block-style-wrapper {
        padding-top: calc(var(--navbar-height, 80px) + 32px); /* Desktop admin bar */
    }
}

/* Update Info Tooltip */
.update-info-icon-wrapper {
    position: relative;
}

.update-info-icon {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    color: inherit;
}

.update-info-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    font-size: 0.875rem;
    line-height: 1.4;
    white-space: nowrap;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
    max-width: 250px;
    white-space: normal;
    word-wrap: break-word;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.update-info-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

/* Show tooltip on hover (desktop) */
@media (hover: hover) {
    .update-info-icon-wrapper:hover .update-info-tooltip {
        opacity: 1;
        visibility: visible;
    }
}

/* Show tooltip when active (mobile click) */
.update-info-icon-wrapper.active .update-info-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Light mode tooltip */
body.light-mode .update-info-tooltip {
    background-color: rgba(255, 255, 255, 0.95);
    color: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

body.light-mode .update-info-tooltip::after {
    border-top-color: rgba(255, 255, 255, 0.95);
}

/* ============================================
   Featured Grid Full Width - Final Override
   Must be at end of file to override Canvas CSS that loads later
   ============================================ */

/* Force Featured Grid to full viewport width on Canvas pages - highest specificity */
/* When there's NO header, ensure it breaks out properly and doesn't inherit container padding */
body.canvas-sticky-page .canvas-sticky-container .canvas-sticky-inner .canvas-content-wrapper .canvas-content .entry-content .featured-grid-section,
body.canvas-sticky-page .canvas-sticky-container .canvas-sticky-inner .canvas-content-wrapper .canvas-content .featured-grid-section,
body.canvas-sticky-page .canvas-sticky-container .canvas-sticky-inner .canvas-content-wrapper .entry-content .featured-grid-section,
body.canvas-sticky-page .canvas-sticky-container .canvas-sticky-inner .canvas-content-wrapper .featured-grid-section,
body.canvas-sticky-page .canvas-sticky-container .featured-grid-section,
body.canvas-sticky-page .featured-grid-section,
body.page-template-template-canvas-fullwidth .canvas-sticky-container .canvas-sticky-inner .canvas-content-wrapper .canvas-content .entry-content .featured-grid-section,
body.page-template-template-canvas-fullwidth .canvas-sticky-container .canvas-sticky-inner .canvas-content-wrapper .canvas-content .featured-grid-section,
body.page-template-template-canvas-fullwidth .canvas-sticky-container .canvas-sticky-inner .canvas-content-wrapper .entry-content .featured-grid-section,
body.page-template-template-canvas-fullwidth .canvas-sticky-container .canvas-sticky-inner .canvas-content-wrapper .featured-grid-section,
body.page-template-template-canvas-fullwidth .canvas-sticky-container .featured-grid-section,
body.page-template-template-canvas-fullwidth .featured-grid-section,
body.cnvs-page .canvas-sticky-container .canvas-sticky-inner .canvas-content-wrapper .canvas-content .entry-content .featured-grid-section,
body.cnvs-page .canvas-sticky-container .canvas-sticky-inner .canvas-content-wrapper .canvas-content .featured-grid-section,
body.cnvs-page .canvas-sticky-container .canvas-sticky-inner .canvas-content-wrapper .entry-content .featured-grid-section,
body.cnvs-page .canvas-sticky-container .canvas-sticky-inner .canvas-content-wrapper .featured-grid-section,
body.cnvs-page .canvas-sticky-container .featured-grid-section,
body.cnvs-page .featured-grid-section {
    width: 100vw !important;
    max-width: 100vw !important;
    /* Break out of all parent containers - account for any container padding */
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    /* Remove any inherited padding from parent containers */
    padding-left: 0 !important;
    padding-right: 0 !important;
    position: relative !important;
    z-index: 1 !important;
    box-sizing: border-box !important;
}

/* Force container inside Featured Grid to be full width */
/* Match canvas-sticky-container padding for proper alignment when NO header */
body.canvas-sticky-page .canvas-sticky-container .canvas-sticky-inner .canvas-content-wrapper .canvas-content .entry-content .featured-grid-section .container,
body.canvas-sticky-page .canvas-sticky-container .canvas-sticky-inner .canvas-content-wrapper .canvas-content .featured-grid-section .container,
body.canvas-sticky-page .canvas-sticky-container .canvas-sticky-inner .canvas-content-wrapper .entry-content .featured-grid-section .container,
body.canvas-sticky-page .canvas-sticky-container .canvas-sticky-inner .canvas-content-wrapper .featured-grid-section .container,
body.canvas-sticky-page .canvas-sticky-container .featured-grid-section .container,
body.canvas-sticky-page .featured-grid-section .container,
body.page-template-template-canvas-fullwidth .canvas-sticky-container .canvas-sticky-inner .canvas-content-wrapper .canvas-content .entry-content .featured-grid-section .container,
body.page-template-template-canvas-fullwidth .canvas-sticky-container .canvas-sticky-inner .canvas-content-wrapper .canvas-content .featured-grid-section .container,
body.page-template-template-canvas-fullwidth .canvas-sticky-container .canvas-sticky-inner .canvas-content-wrapper .entry-content .featured-grid-section .container,
body.page-template-template-canvas-fullwidth .canvas-sticky-container .canvas-sticky-inner .canvas-content-wrapper .featured-grid-section .container,
body.page-template-template-canvas-fullwidth .canvas-sticky-container .featured-grid-section .container,
body.page-template-template-canvas-fullwidth .featured-grid-section .container,
body.cnvs-page .canvas-sticky-container .canvas-sticky-inner .canvas-content-wrapper .canvas-content .entry-content .featured-grid-section .container,
body.cnvs-page .canvas-sticky-container .canvas-sticky-inner .canvas-content-wrapper .canvas-content .featured-grid-section .container,
body.cnvs-page .canvas-sticky-container .canvas-sticky-inner .canvas-content-wrapper .entry-content .featured-grid-section .container,
body.cnvs-page .canvas-sticky-container .canvas-sticky-inner .canvas-content-wrapper .featured-grid-section .container,
body.cnvs-page .canvas-sticky-container .featured-grid-section .container,
body.cnvs-page .featured-grid-section .container {
    max-width: 100% !important;
    width: 100% !important;
    /* Override shorthand padding property - match canvas-sticky-container default padding when NO header */
    padding: 0 1rem !important;
    box-sizing: border-box !important;
}

/* When Full Hover header is present, match its container padding */
body.canvas-sticky-page:has(.post-hero-full-hover) .featured-grid-section .container,
body.canvas-sticky-page .post-hero-full-hover ~ .featured-grid-section .container,
body.page-template-template-canvas-fullwidth:has(.post-hero-full-hover) .featured-grid-section .container,
body.page-template-template-canvas-fullwidth .post-hero-full-hover ~ .featured-grid-section .container {
    padding: 0 1rem !important;
}

@media (min-width: 640px) {
    /* Default padding when NO header - match canvas-sticky-container */
    /* Override shorthand padding property to prevent default .container rules from applying */
    body.canvas-sticky-page .featured-grid-section .container,
    body.page-template-template-canvas-fullwidth .featured-grid-section .container,
    body.cnvs-page .featured-grid-section .container {
        padding: 0 1.5rem !important;
    }
    
    /* When Full Hover header is present, match its container padding */
    body.canvas-sticky-page:has(.post-hero-full-hover) .featured-grid-section .container,
    body.canvas-sticky-page .post-hero-full-hover ~ .featured-grid-section .container,
    body.page-template-template-canvas-fullwidth:has(.post-hero-full-hover) .featured-grid-section .container,
    body.page-template-template-canvas-fullwidth .post-hero-full-hover ~ .featured-grid-section .container {
        padding: 0 1.5rem !important;
    }
}

@media (min-width: 1024px) {
    /* Default padding when NO header - match canvas-sticky-container */
    /* Override shorthand padding property to prevent default .container rules from applying */
    body.canvas-sticky-page .featured-grid-section .container,
    body.page-template-template-canvas-fullwidth .featured-grid-section .container,
    body.cnvs-page .featured-grid-section .container {
        padding: 0 2rem !important;
    }
    
    /* When Full Hover header is present, match its container padding */
    body.canvas-sticky-page:has(.post-hero-full-hover) .featured-grid-section .container,
    body.canvas-sticky-page .post-hero-full-hover ~ .featured-grid-section .container,
    body.page-template-template-canvas-fullwidth:has(.post-hero-full-hover) .featured-grid-section .container,
    body.page-template-template-canvas-fullwidth .post-hero-full-hover ~ .featured-grid-section .container {
        padding: 0 2rem !important;
    }
    
    /* Inner content max-width for proper alignment */
    body.canvas-sticky-page .featured-grid-section .container,
    body.page-template-template-canvas-fullwidth .featured-grid-section .container {
        max-width: 1400px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* ========================================
   Good Better Best Comparison Block
   ======================================== */

.pickrc-good-better-best-block {
    margin: 2rem 0 4rem 0;
}

.gbb-block-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.3;
    color: inherit;
}

.gbb-comparison-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 12px;
}

.gbb-comparison-grid .gbb-block-title {
    grid-column: 1 / -1;
    margin-bottom: 0.5rem;
}

@media (min-width: 800px) {
    .gbb-comparison-grid {
        gap: 1rem;
    }
    
    .gbb-comparison-grid.gbb-columns-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gbb-comparison-grid.gbb-columns-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gbb-comparison-grid .gbb-block-title {
        grid-column: 1 / -1;
    }
}

.gbb-column {
    position: relative;
    display: flex;
    flex-direction: column;
}

.gbb-label {
    display: inline-block;
    padding: 0;
    border-radius: 0;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: left;
    margin-bottom: 0.5rem;
    align-self: flex-start;
}

.gbb-label-good {
    background: transparent;
    /* Color is controlled by Customizer via dynamic CSS */
}

.gbb-label-better {
    background: transparent;
    align-self: flex-start;
    /* Color is controlled by Customizer via dynamic CSS */
}

.gbb-label-best-value {
    background: transparent;
    font-size: 0.75rem;
    padding: 0;
    font-weight: 600;
    /* Color is controlled by Customizer via dynamic CSS */
}

/* Best Value label when inside image container */
.gbb-image .gbb-label-best-value {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 10;
    margin: 0;
    background: rgba(255, 107, 157, 0.9);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.gbb-label-best {
    background: transparent;
    align-self: flex-start;
    /* Color is controlled by Customizer via dynamic CSS */
}

.gbb-card {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gbb-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gbb-card.gbb-highlighted {
    border: 2px solid #dc3545;
}

.gbb-image {
    margin-bottom: 0.75rem;
    text-align: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.gbb-image img {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    display: block;
    object-fit: cover;
}

.gbb-image .gbb-label-best-value {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 10;
    margin: 0;
    background: rgba(255, 107, 157, 0.9);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.gbb-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gbb-product-name {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.gbb-product-name a {
    color: inherit;
    text-decoration: none;
}

.gbb-product-name a:hover {
    text-decoration: underline;
}

.gbb-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.gbb-criteria-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: inherit;
    margin-right: 4px;
}

.gbb-rating-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #666;
}

.gbb-price {
    font-size: 1.375rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.75rem;
}

.gbb-features {
    margin-bottom: 0.75rem;
    padding: 0;
    text-align: left;
}

.gbb-features-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    padding: 0;
    color: #333;
    text-align: left;
}

.gbb-features-list {
    list-style: none;
    padding: 0 !important;
    margin: 0;
    text-align: left;
}

.gbb-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.gbb-features-list li svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
    color: #28a745;
    stroke-width: 3;
}

.gbb-verdict {
    margin-top: auto;
    margin-bottom: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e5e5;
}

.gbb-verdict p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #666;
}

.gbb-read-more {
    margin-top: auto;
}

.gbb-read-more-link {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #dc3545;
    text-decoration: none;
    transition: color 0.2s ease;
}

.gbb-read-more-link:hover {
    color: #c82333;
    text-decoration: underline;
}

/* Dark mode / Night mode styles - Default (when not light-mode) */
body:not(.light-mode) .gbb-comparison-grid {
    background: #2a2a2a;
}

body:not(.light-mode) .gbb-card {
    background: #1a1a1a;
    color: #e5e5e5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body:not(.light-mode) .gbb-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body:not(.light-mode) .gbb-card.gbb-highlighted {
    border-color: #dc3545;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

body:not(.light-mode) .gbb-label-good {
    background: transparent;
    /* Color is controlled by Customizer via dynamic CSS */
}

body:not(.light-mode) .gbb-label-better {
    background: transparent;
    /* Color is controlled by Customizer via dynamic CSS */
}

body:not(.light-mode) .gbb-label-best-value {
    background: transparent;
    /* Color is controlled by Customizer via dynamic CSS */
}

body:not(.light-mode) .gbb-label-best {
    background: transparent;
    /* Color is controlled by Customizer via dynamic CSS */
}

body:not(.light-mode) .gbb-image .gbb-label-best-value {
    /* Background and color are controlled by Customizer via dynamic CSS */
    display: block; /* Prevent empty ruleset */
}

body:not(.light-mode) .gbb-product-name,
body:not(.light-mode) .gbb-product-name a {
    color: #e5e5e5;
}

body:not(.light-mode) .gbb-product-name a:hover {
    color: #fff;
}

body:not(.light-mode) .gbb-rating-text {
    color: #b0b0b0;
}

body:not(.light-mode) .gbb-price {
    color: #e5e5e5;
}

body:not(.light-mode) .gbb-block-title {
    color: #e5e5e5;
}

body:not(.light-mode) .gbb-features-title {
    color: #e5e5e5;
}

body:not(.light-mode) .gbb-features-list li {
    color: #e5e5e5;
}

body:not(.light-mode) .gbb-features-list li svg {
    color: #28a745;
}

body:not(.light-mode) .gbb-verdict {
    border-top-color: #404040;
}

body:not(.light-mode) .gbb-verdict p {
    color: #b0b0b0;
}

body:not(.light-mode) .gbb-read-more-link {
    color: #dc3545;
}

body:not(.light-mode) .gbb-read-more-link:hover {
    color: #ff6b9d;
}

/* Dark mode / Night mode styles - Media query fallback */
@media (prefers-color-scheme: dark) {
    .gbb-comparison-grid {
        background: #2a2a2a;
    }

    .gbb-card {
        background: #1a1a1a;
        color: #e5e5e5;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .gbb-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }

    .gbb-card.gbb-highlighted {
        border-color: #dc3545;
        box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
    }

    .gbb-label-good {
        background: transparent;
        /* Color is controlled by Customizer via dynamic CSS */
    }

    .gbb-label-better {
        background: transparent;
        /* Color is controlled by Customizer via dynamic CSS */
    }

    .gbb-label-best-value {
        background: transparent;
        /* Color is controlled by Customizer via dynamic CSS */
    }

    .gbb-label-best {
        background: transparent;
        /* Color is controlled by Customizer via dynamic CSS */
    }

    .gbb-image .gbb-label-best-value {
        /* Background and color are controlled by Customizer via dynamic CSS */
        display: block; /* Prevent empty ruleset */
    }

    .gbb-product-name,
    .gbb-product-name a {
        color: #e5e5e5;
    }

    .gbb-product-name a:hover {
        color: #fff;
    }

    .gbb-rating-text {
        color: #b0b0b0;
    }

    .gbb-price {
        color: #e5e5e5;
    }

    .gbb-block-title {
        color: #e5e5e5;
    }

    .gbb-features-title {
        color: #e5e5e5;
    }

    .gbb-features-list li {
        color: #e5e5e5;
    }

    .gbb-features-list li svg {
        color: #28a745;
    }

    .gbb-verdict {
        border-top-color: #404040;
    }

    .gbb-verdict p {
        color: #b0b0b0;
    }

    .gbb-read-more-link {
        color: #dc3545;
    }

    .gbb-read-more-link:hover {
        color: #ff6b9d;
    }
}

/* Dark mode class-based (if theme uses body class) */
body.dark-mode .gbb-comparison-grid,
body.dark .gbb-comparison-grid {
    background: #2a2a2a;
}

body.dark-mode .gbb-card,
body.dark .gbb-card {
    background: #1a1a1a;
    color: #e5e5e5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .gbb-card:hover,
body.dark .gbb-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .gbb-card.gbb-highlighted,
body.dark .gbb-card.gbb-highlighted {
    border-color: #dc3545;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

body.dark-mode .gbb-label-good,
body.dark .gbb-label-good {
    background: transparent;
    /* Color is controlled by Customizer via dynamic CSS */
}

body.dark-mode .gbb-label-better,
body.dark .gbb-label-better {
    background: transparent;
    /* Color is controlled by Customizer via dynamic CSS */
}

body.dark-mode .gbb-label-best-value,
body.dark .gbb-label-best-value {
    background: transparent;
    /* Color is controlled by Customizer via dynamic CSS */
}

body.dark-mode .gbb-label-best,
body.dark .gbb-label-best {
    background: transparent;
    /* Color is controlled by Customizer via dynamic CSS */
}

body.dark-mode .gbb-image .gbb-label-best-value,
body.dark .gbb-image .gbb-label-best-value {
    /* Background and color are controlled by Customizer via dynamic CSS */
    display: block; /* Prevent empty ruleset */
}

body.dark-mode .gbb-product-name,
body.dark-mode .gbb-product-name a,
body.dark .gbb-product-name,
body.dark .gbb-product-name a {
    color: #e5e5e5;
}

body.dark-mode .gbb-product-name a:hover,
body.dark .gbb-product-name a:hover {
    color: #fff;
}

body.dark-mode .gbb-rating-text,
body.dark .gbb-rating-text {
    color: #b0b0b0;
}

body.dark-mode .gbb-price,
body.dark .gbb-price {
    color: #e5e5e5;
}

body.dark-mode .gbb-block-title,
body.dark .gbb-block-title {
    color: #e5e5e5;
}

body.dark-mode .gbb-features-title,
body.dark .gbb-features-title {
    color: #e5e5e5;
}

body.dark-mode .gbb-features-list li,
body.dark .gbb-features-list li {
    color: #e5e5e5;
}

body.dark-mode .gbb-features-list li svg,
body.dark .gbb-features-list li svg {
    color: #28a745;
}

body.dark-mode .gbb-verdict,
body.dark .gbb-verdict {
    border-top-color: #404040;
}

body.dark-mode .gbb-verdict p,
body.dark .gbb-verdict p {
    color: #b0b0b0;
}

body.dark-mode .gbb-read-more-link,
body.dark .gbb-read-more-link {
    color: #dc3545;
}

body.dark-mode .gbb-read-more-link:hover,
body.dark .gbb-read-more-link:hover {
    color: #ff6b9d;
}

/* Canvas Accordion Dark Mode Styles */
body:not(.light-mode) .cnvs-block-collapsible-title,
body:not(.light-mode) .cnvs-block-collapsible-heading {
    color: var(--color-text, #ffffff);
}

body:not(.light-mode) .cnvs-block-collapsible-title h6 a,
body:not(.light-mode) .cnvs-block-collapsible-heading a {
    color: var(--color-text, #ffffff);
}

body:not(.light-mode) .cnvs-block-collapsible-title h6 a:hover,
body:not(.light-mode) .cnvs-block-collapsible-heading a:hover {
    color: var(--color-links-hover, #93c5fd);
}

/* Dark mode / Night mode styles - Media query fallback for accordion */
@media (prefers-color-scheme: dark) {
    .cnvs-block-collapsible-title,
    .cnvs-block-collapsible-heading {
        color: #ffffff;
    }

    .cnvs-block-collapsible-title h6 a,
    .cnvs-block-collapsible-heading a {
        color: #ffffff;
    }

    .cnvs-block-collapsible-title h6 a:hover,
    .cnvs-block-collapsible-heading a:hover {
        color: #93c5fd;
    }
}

/* Dark mode class-based (if theme uses body class) for accordion */
body.dark-mode .cnvs-block-collapsible-title,
body.dark .cnvs-block-collapsible-title,
body.dark-mode .cnvs-block-collapsible-heading,
body.dark .cnvs-block-collapsible-heading {
    color: #ffffff;
}

body.dark-mode .cnvs-block-collapsible-title h6 a,
body.dark .cnvs-block-collapsible-title h6 a,
body.dark-mode .cnvs-block-collapsible-heading a,
body.dark .cnvs-block-collapsible-heading a {
    color: #ffffff;
}

body.dark-mode .cnvs-block-collapsible-title h6 a:hover,
body.dark .cnvs-block-collapsible-title h6 a:hover,
body.dark-mode .cnvs-block-collapsible-heading a:hover,
body.dark .cnvs-block-collapsible-heading a:hover {
    color: #93c5fd;
}

/* Responsive adjustments - Stack vertically on screens less than 800px */
@media (max-width: 799px) {
    .gbb-comparison-grid {
        grid-template-columns: 1fr;
        padding: 0.75rem;
        gap: 1rem;
    }

    .gbb-column {
        width: 100%;
    }

    .gbb-card {
        padding: 0.875rem;
    }
    
    .gbb-block-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .gbb-label {
        align-self: flex-start;
    }

    .gbb-label-better {
        align-self: flex-start;
    }

    .gbb-label-best {
        align-self: flex-start;
    }
    
    .gbb-image {
        aspect-ratio: 16 / 9;
    }
}

/* ========================================
   Good Better Best Finder Page
   ======================================== */

.gbb-page-content {
    margin: 2rem 0;
}

.gbb-page-content .page-content-main {
    max-width: 720px;
    margin: 0;
}

.gbb-page-content .page-content-main p,
.gbb-page-content .page-content-main h2,
.gbb-page-content .page-content-main h3,
.gbb-page-content .page-content-main h4,
.gbb-page-content .page-content-main ul,
.gbb-page-content .page-content-main ol {
    margin-bottom: 1.5rem;
}

/* Section with Sidebar: Break out of page-content-main constraints on Good Better Best page */
.page-good-better-best .gbb-page-content .page-content-main .pickrc-section-with-sidebar,
.page-template-page-good-better-best .gbb-page-content .page-content-main .pickrc-section-with-sidebar,
body.page-template-page-good-better-best .gbb-page-content .page-content-main .pickrc-section-with-sidebar {
    max-width: none !important;
    width: calc(100vw - 2rem);
    margin-left: calc(-50vw + 50% + 1rem);
    margin-right: calc(-50vw + 50% - 1rem);
    padding-left: 0;
    padding-right: 0;
}

@media (min-width: 640px) {
    .page-good-better-best .gbb-page-content .page-content-main .pickrc-section-with-sidebar,
    .page-template-page-good-better-best .gbb-page-content .page-content-main .pickrc-section-with-sidebar,
    body.page-template-page-good-better-best .gbb-page-content .page-content-main .pickrc-section-with-sidebar {
        width: calc(100vw - 3rem);
        margin-left: calc(-50vw + 50% + 1.5rem);
        margin-right: calc(-50vw + 50% - 1.5rem);
    }
}

@media (min-width: 1024px) {
    .page-good-better-best .gbb-page-content .page-content-main .pickrc-section-with-sidebar,
    .page-template-page-good-better-best .gbb-page-content .page-content-main .pickrc-section-with-sidebar,
    body.page-template-page-good-better-best .gbb-page-content .page-content-main .pickrc-section-with-sidebar {
        width: calc(100vw - 4rem);
        margin-left: calc(-50vw + 50% + 2rem);
        margin-right: calc(-50vw + 50% - 2rem);
    }
}

/* Wide width: constrain to container max-width but account for container padding */
.page-good-better-best .gbb-page-content .page-content-main .pickrc-section-with-sidebar--wide,
.page-template-page-good-better-best .gbb-page-content .page-content-main .pickrc-section-with-sidebar--wide,
body.page-template-page-good-better-best .gbb-page-content .page-content-main .pickrc-section-with-sidebar--wide {
    max-width: 1280px !important;
    width: calc(100% + 2rem);
    margin-left: -1rem;
    margin-right: -1rem;
}

@media (min-width: 640px) {
    .page-good-better-best .gbb-page-content .page-content-main .pickrc-section-with-sidebar--wide,
    .page-template-page-good-better-best .gbb-page-content .page-content-main .pickrc-section-with-sidebar--wide,
    body.page-template-page-good-better-best .gbb-page-content .page-content-main .pickrc-section-with-sidebar--wide {
        width: calc(100% + 3rem);
        margin-left: -1.5rem;
        margin-right: -1.5rem;
    }
}

@media (min-width: 1024px) {
    .page-good-better-best .gbb-page-content .page-content-main .pickrc-section-with-sidebar--wide,
    .page-template-page-good-better-best .gbb-page-content .page-content-main .pickrc-section-with-sidebar--wide,
    body.page-template-page-good-better-best .gbb-page-content .page-content-main .pickrc-section-with-sidebar--wide {
        width: calc(100% + 4rem);
        margin-left: -2rem;
        margin-right: -2rem;
    }
}

/* Full width: break out completely */
.page-good-better-best .gbb-page-content .page-content-main .pickrc-section-with-sidebar--full,
.page-template-page-good-better-best .gbb-page-content .page-content-main .pickrc-section-with-sidebar--full,
body.page-template-page-good-better-best .gbb-page-content .page-content-main .pickrc-section-with-sidebar--full {
    max-width: none !important;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .page-good-better-best .gbb-page-content .page-content-main .pickrc-section-with-sidebar--full,
    .page-template-page-good-better-best .gbb-page-content .page-content-main .pickrc-section-with-sidebar--full,
    body.page-template-page-good-better-best .gbb-page-content .page-content-main .pickrc-section-with-sidebar--full {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .page-good-better-best .gbb-page-content .page-content-main .pickrc-section-with-sidebar--full,
    .page-template-page-good-better-best .gbb-page-content .page-content-main .pickrc-section-with-sidebar--full,
    body.page-template-page-good-better-best .gbb-page-content .page-content-main .pickrc-section-with-sidebar--full {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.gbb-finder-wrapper {
    max-width: 1200px;
    margin: 2rem auto;
}

.gbb-finder-filters {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.gbb-filter-form {
    width: 100%;
}

.gbb-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-end;
}

.gbb-filter-field {
    flex: 1;
    min-width: 200px;
}

.gbb-filter-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    transition: color 0.3s ease;
}

.gbb-select,
.gbb-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.5;
    background-color: #fff;
    color: #333;
    height: 48px;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.gbb-select {
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px 12px;
    padding-right: 2.5rem;
}

.gbb-select:focus,
.gbb-input:focus {
    outline: none;
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.gbb-input[type="number"] {
    -moz-appearance: textfield;
}

.gbb-input[type="number"]::-webkit-inner-spin-button,
.gbb-input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.gbb-price-range {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gbb-price-range .gbb-input {
    flex: 1;
}

.gbb-price-separator {
    color: #666;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.gbb-filter-submit {
    flex: 0 0 auto;
}

.gbb-submit-button {
    padding: 0.75rem 2rem;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 600;
    line-height: 1.5;
    height: 48px;
    cursor: pointer;
    transition: background 0.2s ease;
    box-sizing: border-box;
    white-space: nowrap;
}

.gbb-submit-button:hover {
    background: #c82333;
}

.gbb-submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.gbb-results {
    min-height: 200px;
}

.gbb-results-placeholder {
    text-align: center;
    padding: 3rem;
    color: #666;
    background: #f5f5f5;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.gbb-loading,
.gbb-error {
    text-align: center;
    padding: 3rem;
    background: #f5f5f5;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.gbb-error {
    color: #dc3545;
}

/* Dark mode for finder - matches theme system preferences */
body:not(.light-mode) .gbb-finder-filters {
    background: #1a1a1a;
    color: var(--color-text, #ffffff);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body:not(.light-mode) .gbb-filter-field label {
    color: var(--color-text, #ffffff);
}

body:not(.light-mode) .gbb-select,
body:not(.light-mode) .gbb-input {
    background-color: #2a2a2a;
    border-color: #404040;
    color: var(--color-text, #ffffff);
}

body:not(.light-mode) .gbb-select {
    background-color: #2a2a2a;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px 12px;
}

body:not(.light-mode) .gbb-select:focus,
body:not(.light-mode) .gbb-input:focus {
    border-color: var(--color-accent, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

body:not(.light-mode) .gbb-price-separator {
    color: #b0b0b0;
}

body:not(.light-mode) .gbb-results-placeholder,
body:not(.light-mode) .gbb-loading {
    background: #2a2a2a;
    color: #b0b0b0;
}

body:not(.light-mode) .gbb-error {
    background: #2a2a2a;
    color: #dc3545;
}

/* Light mode styles */
body.light-mode .gbb-finder-filters {
    background: #fff;
    color: var(--color-text, #0f172a);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.light-mode .gbb-filter-field label {
    color: var(--color-text, #0f172a);
}

body.light-mode .gbb-select,
body.light-mode .gbb-input {
    background-color: #fff;
    border-color: #ddd;
    color: var(--color-text, #0f172a);
}

body.light-mode .gbb-select {
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px 12px;
}

body.light-mode .gbb-select:focus,
body.light-mode .gbb-input:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

body.light-mode .gbb-price-separator {
    color: #666;
}

body.light-mode .gbb-results-placeholder,
body.light-mode .gbb-loading {
    background: #f5f5f5;
    color: #666;
}

body.light-mode .gbb-error {
    background: #f5f5f5;
    color: #dc3545;
}

/* Media query fallback for system preferences (before JS loads) */
@media (prefers-color-scheme: dark) {
    .gbb-finder-filters {
        background: #1a1a1a;
        color: #ffffff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .gbb-filter-field label {
        color: #ffffff;
    }

    .gbb-select,
    .gbb-input {
        background-color: #2a2a2a;
        border-color: #404040;
        color: #ffffff;
    }

    .gbb-select {
        background-color: #2a2a2a;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 0.75rem center;
        background-size: 12px 12px;
    }

    .gbb-select:focus,
    .gbb-input:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

    .gbb-price-separator {
        color: #b0b0b0;
    }

    .gbb-results-placeholder,
    .gbb-loading {
        background: #2a2a2a;
        color: #b0b0b0;
    }

    .gbb-error {
        background: #2a2a2a;
        color: #dc3545;
    }
}

@media (max-width: 767px) {
    .gbb-filter-row {
        flex-direction: column;
    }

    .gbb-filter-field {
        min-width: 100%;
    }

    .gbb-filter-submit {
        width: 100%;
    }

    .gbb-submit-button {
        width: 100%;
    }
}

/* Bookmarks Functionality */
.bookmark-button {
    position: relative;
}

.bookmark-icon {
    transition: all 0.3s ease;
}

.bookmark-button.bookmarked .bookmark-icon-fill {
    color: var(--color-accent) !important;
}

.bookmark-button:hover .bookmark-icon-outline {
    color: var(--color-accent);
}

body.light-mode .bookmark-button:hover .bookmark-icon-outline {
    color: var(--color-accent);
}

/* Bookmarks Nav Link */
.bookmarks-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.bookmarks-nav-link:hover {
    color: var(--color-accent);
    transform: scale(1.1);
}

.bookmarks-nav-link.has-bookmarks {
    color: var(--color-accent);
}

.bookmarks-nav-link.has-bookmarks:hover {
    color: var(--color-accent);
    opacity: 0.8;
}

.bookmark-nav-icon {
    transition: all 0.3s ease;
    color: currentColor;
    width: 17px;
    height: 17px;
}

.bookmark-nav-icon-outline {
    color: currentColor;
}

.bookmark-nav-icon-fill {
    color: var(--color-accent);
}

body.light-mode .bookmarks-nav-link {
    color: #0f172a;
}

body.light-mode .bookmarks-nav-link:hover {
    color: var(--color-accent);
}

body.light-mode .bookmarks-nav-link.has-bookmarks {
    color: var(--color-accent);
}

/* Bookmarks Page */
.bookmarks-page {
    padding: 2rem 0;
}

.bookmarks-header {
    margin-bottom: 3rem;
}

.bookmarks-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

body.light-mode .bookmarks-title {
    color: #0f172a;
}

/* Bookmarks Content Header */
.bookmarks-content-header {
    margin-bottom: 2.5rem;
    margin-top: 2rem;
}

.bookmarks-content-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

body.light-mode .bookmarks-content-title {
    color: #0f172a;
}

.bookmarks-content-description {
    font-size: 1rem;
    color: #94a3b8;
    line-height: 1.6;
    max-width: 700px;
    margin: 0;
}

body.light-mode .bookmarks-content-description {
    color: #64748b;
}

.bookmarks-container {
    min-height: 400px;
}

.bookmarks-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: #94a3b8;
}

body.light-mode .bookmarks-empty {
    color: #64748b;
}

.bookmarks-empty-text {
    font-size: 1.125rem;
    margin: 0;
}

.bookmarks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .bookmarks-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media (min-width: 1024px) {
    .bookmarks-grid {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Ensure bookmark cards use category tile max-width */
.bookmarks-grid .bookmark-card.category-tile-widget {
    max-width: 100%;
}

/* Bookmark cards use category tile styles */
.bookmark-card {
    position: relative;
    opacity: 1;
}

/* Category badges in bookmark cards - no pill outline, just text */
.bookmark-card .category-badge {
    padding: 0;
    border-radius: 0;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bookmark-card .category-badge-purple,
.bookmark-card .category-badge-blue,
.bookmark-card .category-badge-green,
.bookmark-card .category-badge-red,
.bookmark-card .category-badge-yellow,
.bookmark-card .category-badge-indigo,
.bookmark-card .category-badge-gray {
    background: transparent;
    border: none;
}

.bookmark-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Bookmark meta footer */
.bookmark-meta-footer {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Keep white border in light mode too - gradient overlay provides contrast */
body.light-mode .bookmark-meta-footer {
    border-top-color: rgba(255, 255, 255, 0.15);
}

.bookmark-date {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    display: block;
}

/* Keep white text in light mode too - gradient overlay provides contrast */
body.light-mode .bookmark-date {
    color: rgba(255, 255, 255, 0.85);
}

/* Make bookmark date more prominent in featured content */
.featured-content .bookmark-meta-footer {
    margin-top: 1rem;
}

.featured-content .bookmark-date {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Ensure bookmark date stays white in featured content for light mode too */
body.light-mode .featured-content .bookmark-date {
    color: rgba(255, 255, 255, 0.9);
}

/* Post read time inline in featured content */
.post-read-time-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-left: 0.5rem;
}

body.light-mode .post-read-time-inline {
    color: rgba(0, 0, 0, 0.7);
}

.post-read-time-inline svg {
    width: 14px;
    height: 14px;
}

/* No image variant */
.bookmark-card .featured-content.no-image {
    padding: 1.5rem;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 0.75rem;
}

body.light-mode .bookmark-card .featured-content.no-image {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.bookmark-remove {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 0.375rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.bookmark-card:hover .bookmark-remove {
    opacity: 1;
}

.bookmark-remove:hover {
    background: rgba(239, 68, 68, 0.9);
    color: #ffffff;
}

body.light-mode .bookmark-remove {
    background: rgba(255, 255, 255, 0.9);
    color: #64748b;
}

body.light-mode .bookmark-remove:hover {
    background: rgba(239, 68, 68, 0.9);
    color: #ffffff;
}

.bookmarks-loading {
    text-align: center;
    padding: 4rem 2rem;
    color: #94a3b8;
}

body.light-mode .bookmarks-loading {
    color: #64748b;
}

/* WordPress Custom HTML Block - Add padding beneath */
/* Target the WordPress Custom HTML block wrapper class and Datawrapper custom element */
.wp-block-html,
article .wp-block-html,
.entry-content .wp-block-html,
.post-content .wp-block-html,
.article-content .wp-block-html,
datawrapper-visualization,
article datawrapper-visualization,
.entry-content datawrapper-visualization,
.post-content datawrapper-visualization,
.article-content datawrapper-visualization,
.datawrapper-script-embed,
article .datawrapper-script-embed,
.entry-content .datawrapper-script-embed,
.post-content .datawrapper-script-embed,
.article-content .datawrapper-script-embed,
[id^="datawrapper-vis-"],
article [id^="datawrapper-vis-"],
.entry-content [id^="datawrapper-vis-"],
.post-content [id^="datawrapper-vis-"],
.article-content [id^="datawrapper-vis-"] {
    padding-bottom: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

