/* ============================================
   FIX: Banner Slider CLS - DESKTOP ONLY
   ============================================ */
   @media (min-width: 1024px) {
    /* Hide mobile-only header chrome on desktop */
    #menu-item-303359,
    .mobile-search-icon,
    .mobile-search-form,
    .vht-share-post {
        display: none !important;
    }
    
    /* Set EXACT heights to match final JavaScript state - prevents CLS from delayed JS */
    .prime-mag-pro-navigation-outer-wrapper {
        height: 63px !important;
    }
    
    .prime-mag-pro-bottom-header {
        height: 63px !important;
    }
    
    .prime-mag-pro-bottom-header-wrapper {
        height: 32px !important;
    }
    
    .navigation {
        height: 32px !important;
    }
    
    .bottom-header-right-part {
        height: 32px !important;
    }
    
    /* FIX: Prevent banner slider from stacking before JS loads */
    .banner-slider:not(.slick-initialized) {
        overflow: hidden !important;
        max-height: 678.8px !important;
    }
    
    .banner-slider:not(.slick-initialized) > *:not(:first-child) {
        display: none !important;
    }
    
    .banner-slider:not(.slick-initialized) > *:first-child {
        display: block !important;
    }
}

/* Theme Switcher Button Styling */
.color-mode-switch {
    border-inline-start: none !important;
}

.color-mode-switch #switch .mode {
    margin-top: 0;
    overflow: visible;
}

/* ============================================
   FIX: Post Thumbnail CLS on Lazy Load
   Prevents layout shift when images load on scroll
   Applies to ALL screen sizes
   ============================================ */

/* Override lazy-loaded image dimensions - targets images with inline width/height */
article img[class*="wp-post-image"]:not(.vht-topic-continue__img),
article img[class*="attachment-"]:not(.vht-topic-continue__img),
.entry-content .post-thumbnail img,
img.wp-post-image:not(.vht-topic-continue__img),
img[width][height].wp-post-image:not(.vht-topic-continue__img),
img[width][height][class*="attachment-"]:not(.vht-topic-continue__img) {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}

/* Ensure parent containers constrain images properly */
.post-thumbnail,
article .post-thumbnail,
.entry-content .post-thumbnail {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

/* Fix for long URLs breaking mobile layout
   Prefer wrapping at spaces; only break mid-word if a
   single unbroken string would overflow the container.
   Avoid break-all â€” it was splitting normal words like "adding". */
.entry-content a,
.post-content a,
article a,
.comment-content a {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: normal;
  max-width: 100%;
  display: inline;  /* Changed from inline-block */
}

/* Ensure body doesn't allow horizontal scroll.
   Prefer 100% over 100vw — vw includes scrollbar/gutter and can
   make mobile sticky headers sit slightly off-screen to the right. */
html {
  overflow-x: clip;
}
body {
  overflow-x: clip;
  max-width: 100%;
}


/* Hide Random Posts Button on ALL devices */
.header-random-post {
    display: none !important;
}

/* MediaVine Sidebar Ad Support */
.widget-area .mvp-sidebar-ad-target,
.widget-area .mv-ad-box,
.widget-area [data-mv-ad],
.widget-area .adthrive-ad,
.widget-area .sidebar-placeholder {
    width: 100% !important;
    max-width: 100% !important;
    margin: 15px 0 !important;
    position: relative !important;
    overflow: visible !important;
}

#secondary.widget-area {
    height: fit-content !important;
    overflow: visible !important;
}

@media (max-width: 990px) {
    #secondary.widget-area {
        position: static !important;
    }
}

/* Code and Inline Code Styling */
:root {
  --code-font: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --code-radius: 6px;
  --code-pad-y: 10px;
  --code-pad-x: 12px;
  --code-bg: #f8f8f8;
  --code-fg: #111111;
  --code-border: #e1e1e1;
  --code-inline-bg: #f0f0f0;
  --code-inline-fg: #111111;
}

/* Dark mode overrides
   NOTE: set vars on html/body itself — `:root` as a descendant never matches */
html[data-theme="dark"],
html.dark-mode,
html.dark,
body[data-theme="dark"],
body.dark-mode,
body.dark,
html:not([data-theme="light"]) {
  --code-bg: #1e1e1e;
  --code-fg: #d4d4d4;
  --code-border: #3e3e3e;
  --code-inline-bg: #2d2d2d;
  --code-inline-fg: #ce9178;
}

html[data-theme="light"],
body[data-theme="light"] {
  --code-bg: #f8f8f8;
  --code-fg: #111111;
  --code-border: #e1e1e1;
  --code-inline-bg: #f0f0f0;
  --code-inline-fg: #111111;
}

/* Block code styling - Visual only, preserve formatting */
figure.wp-block-code,
.wp-block-code,
.entry-content pre,
.post-content pre,
.page-content pre,
pre,
pre[class*="language-"],
figure.wp-block-code pre {
  background-color: var(--code-bg) !important;
  color: var(--code-fg) !important;
  border: 1px solid var(--code-border) !important;
  border-radius: var(--code-radius) !important;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
  font-family: var(--code-font) !important;
  /* Removed padding, overflow, font-size, line-height to preserve original formatting */
}

/* Nested code elements */
pre code,
pre[class*="language-"] code,
figure.wp-block-code pre code {
  background: transparent !important;
  color: inherit !important;
  font-family: var(--code-font) !important;
}

/* Inline code - Visual only, preserve formatting */
.entry-content code,
.post-content code,
.page-content code,
code:not(pre code) {
  background-color: var(--code-inline-bg) !important;
  color: var(--code-inline-fg, var(--code-fg)) !important;
  border: 1px solid var(--code-border) !important;
  border-radius: 4px !important;
  font-family: var(--code-font) !important;
  /* Removed padding, font-size, white-space to preserve original formatting */
}

/* Scrollbar styling */
.wp-block-code::-webkit-scrollbar,
pre::-webkit-scrollbar,
pre[class*="language-"]::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.wp-block-code::-webkit-scrollbar-track,
pre::-webkit-scrollbar-track,
pre[class*="language-"]::-webkit-scrollbar-track {
  background: var(--code-inline-bg);
  border-radius: 4px;
}
.wp-block-code::-webkit-scrollbar-thumb,
pre::-webkit-scrollbar-thumb,
pre[class*="language-"]::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 4px;
}
.wp-block-code::-webkit-scrollbar-thumb:hover,
pre::-webkit-scrollbar-thumb:hover,
pre[class*="language-"]::-webkit-scrollbar-thumb:hover {
  background: #777;
}

/* WPForo Full-Width */
body.page-id-293183 #secondary {
    display: none !important;
}

body.page-id-293183 #primary {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

body.page-id-293183 .prime-mag-pro-main-wrapper .prime-mag-pro-container-wrapper {
    display: block !important;
}

body.page-id-293183 .post-thumbnail,
body.page-id-293183 .entry-header .wp-post-image {
    display: none !important;
}

/* Social icon brand colors (glyphs come from SVG ::after rules later) */
.widget_prime_mag_pro_social_icons ul.social-links li.menu-item > a[href*="github.com"] {
    background-color: #333333;
}

.widget_prime_mag_pro_social_icons ul.social-links li.menu-item > a[href*="discord.com"],
.widget_prime_mag_pro_social_icons ul.social-links li.menu-item > a[href*="discord.gg"] {
    background-color: #5865f2;
}

.widget_prime_mag_pro_social_icons ul.social-links li.menu-item > a[href*="profile.google.com"] {
    background-color: #4285f4;
}

/* Post Author Box */
.wp-post-author-wrap {
    border: 1px solid var(--border-clr) !important;
    padding: 20px !important;
    border-radius: 5px !important;
    margin: 20px 0 !important;
    background-color: var(--bg-clr) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.dark-mode .wp-post-author-wrap {
    border: 1px solid var(--border-clr) !important;
    background-color: var(--bg-clr-light) !important;
}

.wp-post-author { margin: 0 !important; }
.wp-post-author .awpa-author-block { padding: 10px !important; }

.wp-post-author-wrap:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
    transition: box-shadow 0.3s ease !important;
}

/* Hide Site Title and Tagline */
.site-branding .site-identity .site-title,
.site-branding .site-identity .site-description,
.site-branding .site-identity,
.site-title,
.site-description,
.site-title a,
h1.site-title,
p.site-description {
    display: none !important;
}

/* Mobile Header */
@media (max-width: 768px) {
    .site-header .prime-mag-pro-middle-header .prime-mag-pro-middle-header-wrapper {
        justify-content: center !important;
        padding-block: 30px !important;
        position: relative !important;
    }
    
    .site-header .prime-mag-pro-middle-header .prime-mag-pro-middle-header-wrapper .site-branding {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }
}

/* Mobile Menu Styling */
@media (max-width: 991px) {
    .navigation .main-navigation li a {
        font-size: 20px;
        font-weight: 700;
        letter-spacing: 0.5px;
        line-height: 1.3;
        font-family: 'JetBrains Mono', 'Fira Code', 'Space Grotesk', 'SF Mono', 'Monaco', 'Consolas', monospace;
        transition: all 0.2s ease;
    }
    
    .navigation .main-navigation li a:hover,
    .navigation .main-navigation li a:focus-within {
        color: var(--primary-color);
        transform: translateX(2px);
    }
}

/* Newsletter Menu Item */
@media (max-width: 991px) {
    .navigation .main-navigation li:last-child a {
        color: #8b5cf6 !important;
        font-weight: 800 !important;
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.05)) !important;
        border-left: 3px solid #8b5cf6 !important;
        padding-left: 17px !important;
        margin-left: 5px !important;
        border-radius: 0 4px 4px 0 !important;
        position: relative !important;
    }
    
    .navigation .main-navigation li:last-child a:hover,
    .navigation .main-navigation li:last-child a:focus-within {
        color: #a855f7 !important;
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.08)) !important;
        transform: translateX(4px) !important;
        box-shadow: 2px 2px 8px rgba(139, 92, 246, 0.2) !important;
    }
}

@media (max-width: 600px) {
    .offcanvas { display: none !important; }
    .offcanvas button#nav-offcanvas { display: none !important; }
}

/* Mobile Search - full-width bar under the header (mobile only).
   Replaces the old absolute popup near the magnifying glass.
   Uses real theme tokens (--bg-clr / --border-clr); old --bg-color
   vars were undefined and made the panel look translucent. */
@media (max-width: 991px) {
    .mobile-search-icon {
        display: block !important;
        position: relative;
    }

    .mobile-search-icon .search-link {
        text-decoration: none;
        color: #ffffff;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        line-height: 1;
        padding: 0;
        margin: 0;
        background: none;
        border: none;
        transition: color 0.3s ease;
    }

    .mobile-search-icon .search-link svg {
        width: 24px;
        height: 24px;
        display: block;
        flex-shrink: 0;
        stroke: #ffffff !important;
        fill: none !important;
        color: #ffffff !important;
    }

    .mobile-search-icon .search-link svg circle,
    .mobile-search-icon .search-link svg path {
        stroke: #ffffff !important;
        fill: none !important;
    }

    .mobile-search-icon .search-link img {
        width: 24px !important;
        height: 24px !important;
        display: block !important;
        filter: brightness(0) invert(1) !important;
    }

    .mobile-search-icon .search-link:hover,
    .mobile-search-icon .search-link[aria-expanded="true"] {
        color: var(--primary-color);
    }

    /* Share current post — fills the old forum-icon slot on singles.
       Extra start margin balances the color-mode toggle's built-in
       48px hit-area padding so gaps look even on both sides. */
    .vht-share-post {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 24px;
        margin-inline-start: 14px;
        margin-inline-end: 2px;
    }

    .vht-share-post__btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        padding: 0;
        margin: 0;
        border: none;
        background: none;
        color: #ffffff;
        cursor: pointer;
        line-height: 1;
        transition: color 0.3s ease;
    }

    .vht-share-post__btn svg {
        width: 24px;
        height: 24px;
        display: block;
        flex-shrink: 0;
        stroke: currentColor;
        fill: none;
    }

    .vht-share-post__btn:hover,
    .vht-share-post__btn:focus-visible,
    .vht-share-post__btn.is-copied {
        color: var(--primary-color);
    }

    .mobile-search-form {
        display: none;
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 10px 12px;
        border: none !important;
        border-block-end: 1px solid color-mix(in srgb, var(--border-clr) 55%, transparent);
        border-radius: 0 !important;
        background: var(--bg-clr) !important;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
        z-index: 10050 !important;
        box-sizing: border-box;
    }

    .mobile-search-form.is-open {
        display: block !important;
    }

    .mobile-search-form .search-form {
        display: flex;
        gap: 8px;
        align-items: center;
        width: 100%;
        margin: 0;
    }

    .mobile-search-form label {
        flex: 1 1 auto;
        display: block;
        width: 100%;
        margin: 0;
    }

    .mobile-search-form .search-field {
        width: 100%;
        min-height: 44px;
        padding: 12px 14px;
        border: 1px solid var(--border-clr);
        border-radius: 8px;
        font-size: 16px; /* avoid iOS input zoom */
        line-height: 1.3;
        background: var(--bg-clr-light, #3d3d3d) !important;
        color: var(--clr-text) !important;
        box-sizing: border-box;
    }

    .mobile-search-form .search-field::placeholder {
        color: color-mix(in srgb, var(--clr-text) 55%, transparent);
    }

    .mobile-search-form .search-submit {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 0 !important;
        border: none !important;
        border-radius: 8px;
        background: var(--primary-color) !important;
        color: #fff !important;
        cursor: pointer;
    }

    .mobile-search-form .search-submit svg {
        width: 20px;
        height: 20px;
        stroke: #fff !important;
        fill: none !important;
        color: #fff !important;
    }

    .mobile-search-form .search-submit svg circle,
    .mobile-search-form .search-submit svg path {
        stroke: #fff !important;
        fill: none !important;
    }

    /* Hide desktop header search on mobile */
    .site-header .prime-mag-pro-middle-header .prime-mag-pro-middle-header-wrapper .middle-header-right .prime-mag-pro-header-search,
    .prime-mag-pro-header-search,
    .header-search-wrap {
        display: none !important;
    }
}

@supports not (border-color: color-mix(in srgb, #000 50%, transparent)) {
    @media (max-width: 991px) {
        .mobile-search-form {
            border-block-end-color: var(--border-clr);
        }

        .mobile-search-form .search-field::placeholder {
            color: var(--clr-text);
            opacity: 0.55;
        }
    }
}

@media (min-width: 992px) {
    .mobile-search-icon,
    .mobile-search-form,
    .vht-share-post {
        display: none !important;
    }
}

/* ============================================
   wpForo Login Page - Social + Local Account
   ============================================ */

/* Show local login */
.wpforo-login-content {
    display: block !important;
}

/* Hide Welcome heading */
.wpforo-login-content h3 {
    display: none !important;
}

/* Strip default styling from inner wrap */
.wpforo-login-wrap {
    background: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    order: 2 !important;
    border-top: 1px solid #e0e0e0 !important;
    padding-top: 20px !important;
}

/* Form is the grey box and flex container */
form[name="wpflogin"] {
    display: flex !important;
    flex-direction: column !important;
    background-color: #f0f0f0 !important;
    border-radius: 8px !important;
    padding: 30px 20px !important;
    max-width: 440px !important;
    margin: 0 auto !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10) !important;
    border: 1px solid #d8d8d8 !important;
}

/* "Sign in with Social" heading */
form[name="wpflogin"]::before {
    content: "Sign in with Social";
    display: block;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a !important;
    margin-bottom: 24px;
    order: 0;
}

/* Social buttons first */
#nsl-custom-login-form-1 {
    order: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* "New user" footer note */
#nsl-custom-login-form-1::after {
    content: "New user? Choose a sign-in method above to create your account";
    display: block;
    text-align: center;
    margin-top: 14px;
    color: #666;
    font-size: 13px;
}

/* "Sign in with Local Account" heading - matches social heading style */
.wpforo-login-content::before {
    content: "Sign in with Local Account";
    display: block;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    letter-spacing: 0;
    text-transform: none;
}

/* Remove fake register text - real link handled below */
.wpforo-login-content::after {
    content: none;
}

/* Override ALL wpForo light theme backgrounds inside dark card */
.wpforo-login-content,
.wpforo-login-content .wpforo-table,
.wpforo-login-content .wpforo-login-table,
.wpforo-login-content .wpf-tr,
.wpforo-login-content .wpf-td,
.wpforo-login-content .wpf-field,
.wpforo-login-content .wpf-field-wrap,
.wpforo-login-content .wpf-field-cl,
.wpforo-login-content .wpf-cl,
.wpforo-login-content .wpf-extra-field-end,
form[name="wpflogin"] .wpfbg-9,
form[name="wpflogin"] > div {
    background: transparent !important;
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

/* reCAPTCHA dark styling */
.wpforo-login-content .wpforo_recaptcha_widget,
.wpforo-login-content .wpforo_recaptcha_widget > div,
.wpforo-login-content .g-recaptcha,
.wpforo-login-content .g-recaptcha > div {
    background: transparent !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}

/* Hide empty padding at bottom of form */
form[name="wpflogin"] .wpf-cl,
form[name="wpflogin"] p {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}
form[name="wpflogin"] p:empty {
    display: none !important;
}

/* Input fields - white on grey card */
.wpforo-login-content input[type="text"],
.wpforo-login-content input[type="password"],
.wpforo-login-content input[type="email"] {
    width: 100% !important;
    background-color: #ffffff !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 6px !important;
    color: #1a1a1a !important;
    padding: 12px 14px !important;
    font-size: 15px !important;
    box-sizing: border-box !important;
    margin-bottom: 10px !important;
    transition: border-color 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
}

.wpforo-login-content input[type="text"]:focus,
.wpforo-login-content input[type="password"]:focus,
.wpforo-login-content input[type="email"]:focus {
    border-color: #8b5cf6 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.15) !important;
    background-color: #ffffff !important;
}

/* Labels */
.wpforo-login-content label {
    color: #555 !important;
    font-size: 13px !important;
    display: block !important;
    margin-bottom: 4px !important;
}

/* Remember me & extra text */
.wpforo-login-content .wpf-extra,
.wpforo-login-content .wpfcl-1 {
    color: #666 !important;
    font-size: 13px !important;
}

/* Submit button */
.wpforo-login-content input[type="submit"],
.wpforo-login-content button[type="submit"] {
    width: 100% !important;
    background-color: #8b5cf6 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 14px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    margin-top: 6px !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

.wpforo-login-content input[type="submit"]:hover,
.wpforo-login-content button[type="submit"]:hover {
    background-color: #7c3aed !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3) !important;
}

/* Links */
.wpforo-login-content a {
    color: #8b5cf6 !important;
    text-decoration: none !important;
}

.wpforo-login-content a:hover {
    color: #a855f7 !important;
    text-decoration: underline !important;
}

/* Checkbox */
.wpforo-login-content input[type="checkbox"] {
    accent-color: #8b5cf6 !important;
}

/* Field icon color */
.wpforo-login-content .wpf-field-icon {
    color: #999 !important;
}

/* Field wrap background */
.wpforo-login-content .wpf-field-wrap {
    background: transparent !important;
}

/* Social buttons container */
div.nsl-container.nsl-container-block .nsl-container-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
}

/* Individual social button */
div.nsl-container .nsl-button-default {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 14px 24px !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    width: 100% !important;
    color: #fff !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15) !important;
    box-sizing: border-box !important;
}

div.nsl-container .nsl-button-default:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2) !important;
}

/* Google Button */
div.nsl-container .nsl-button-google[data-skin="dark"] {
    background-color: #4285f4 !important;
}

div.nsl-container .nsl-button-google[data-skin="dark"]:hover {
    background-color: #357ae8 !important;
}

/* Discord Button */
div.nsl-container .nsl-button-discord {
    background-color: #5865F2 !important;
}

div.nsl-container .nsl-button-discord:hover {
    background-color: #4752c4 !important;
}

/* Button label */
div.nsl-container .nsl-button-default div.nsl-button-label-container {
    font-size: 16px !important;
    color: #fff !important;
    font-weight: 600 !important;
    text-align: center !important;
    flex: 1 1 auto !important;
}

/* SVG icon container */
div.nsl-container .nsl-button-svg-container {
    padding: 6px !important;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
}

/* Hide the actual checkbox for NSL */
.wpd_label input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Hide register tab in wpForo nav menu only */
#wpf-menu .wpforo-register,
#wpf-menu a[href*="sign-up"],
#wpf-menu a[href*="register"],
[class*="signup"] {
    display: none !important;
}

/* Show ALL register-related elements inside login form */
.wpforo-login-content .wpf-field-reg,
.wpforo-login-content .wpf-reg-link,
.wpforo-login-content .wpf-reg-link-wrap,
.wpforo-login-content .wpf-register-link {
    display: block !important;
    text-align: center !important;
    margin-top: 14px !important;
}

/* Register link styled as a full button */
.wpforo-login-content .wpf-field-reg a,
.wpforo-login-content .wpf-reg-link a,
.wpforo-login-content a[href*="sign-up"],
.wpforo-login-content a[href*="register"] {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background-color: transparent !important;
    color: #8b5cf6 !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-align: center !important;
    padding: 12px 14px !important;
    border: 2px solid #8b5cf6 !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    margin-top: 4px !important;
}

.wpforo-login-content .wpf-field-reg a:hover,
.wpforo-login-content .wpf-reg-link a:hover,
.wpforo-login-content a[href*="sign-up"]:hover,
.wpforo-login-content a[href*="register"]:hover {
    background-color: #8b5cf6 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3) !important;
}

#wpd-bubble-wrapper {
    bottom: 170px !important;
}

/* Dark Mode - wpDiscuz Bubble Styling with Green Accent */
.dark-mode #wpd-bubble-all-comments-count,
.dark #wpd-bubble-all-comments-count,
html[data-theme="dark"] #wpd-bubble-all-comments-count,
body[data-theme="dark"] #wpd-bubble-all-comments-count {
    color: #00B38F !important;
}

.dark-mode #wpd-bubble-count svg .wpd-bubble-count-first,
.dark #wpd-bubble-count svg .wpd-bubble-count-first,
html[data-theme="dark"] #wpd-bubble-count svg .wpd-bubble-count-first,
body[data-theme="dark"] #wpd-bubble-count svg .wpd-bubble-count-first {
    fill: #00B38F !important;
}

.dark-mode #wpd-bubble-count .wpd-new-comments-count,
.dark #wpd-bubble-count .wpd-new-comments-count,
html[data-theme="dark"] #wpd-bubble-count .wpd-new-comments-count,
body[data-theme="dark"] #wpd-bubble-count .wpd-new-comments-count {
    color: #00B38F !important;
}

/* ============================================
   DARK MODE - WordPress Striped Tables Fix
   ============================================ */

.dark-mode .wp-block-table.is-style-stripes tbody tr:nth-child(odd),
.dark .wp-block-table.is-style-stripes tbody tr:nth-child(odd),
html[data-theme="dark"] .wp-block-table.is-style-stripes tbody tr:nth-child(odd),
body[data-theme="dark"] .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
    background-color: #2d2d2d !important;
}

.dark-mode .wp-block-table.is-style-stripes tbody tr:nth-child(even),
.dark .wp-block-table.is-style-stripes tbody tr:nth-child(even),
html[data-theme="dark"] .wp-block-table.is-style-stripes tbody tr:nth-child(even),
body[data-theme="dark"] .wp-block-table.is-style-stripes tbody tr:nth-child(even) {
    background-color: #1e1e1e !important;
}

.dark-mode .wp-block-table.is-style-stripes thead tr,
.dark .wp-block-table.is-style-stripes thead tr,
html[data-theme="dark"] .wp-block-table.is-style-stripes thead tr,
body[data-theme="dark"] .wp-block-table.is-style-stripes thead tr {
    background-color: #1a1a1a !important;
    border-bottom: 2px solid #404040 !important;
}

.dark-mode .wp-block-table.is-style-stripes,
.dark .wp-block-table.is-style-stripes,
html[data-theme="dark"] .wp-block-table.is-style-stripes,
body[data-theme="dark"] .wp-block-table.is-style-stripes {
    color: #d4d4d4 !important;
}

.dark-mode .wp-block-table.is-style-stripes td,
.dark-mode .wp-block-table.is-style-stripes th,
.dark .wp-block-table.is-style-stripes td,
.dark .wp-block-table.is-style-stripes th,
html[data-theme="dark"] .wp-block-table.is-style-stripes td,
html[data-theme="dark"] .wp-block-table.is-style-stripes th,
body[data-theme="dark"] .wp-block-table.is-style-stripes td,
body[data-theme="dark"] .wp-block-table.is-style-stripes th {
    color: #d4d4d4 !important;
    border-color: #404040 !important;
}

.dark-mode .wp-block-table.is-style-stripes code,
.dark .wp-block-table.is-style-stripes code,
html[data-theme="dark"] .wp-block-table.is-style-stripes code,
body[data-theme="dark"] .wp-block-table.is-style-stripes code {
    background-color: #1a1a1a !important;
    color: #ce9178 !important;
    border-color: #404040 !important;
}

.dark-mode .wp-block-table.is-style-stripes strong,
.dark .wp-block-table.is-style-stripes strong,
html[data-theme="dark"] .wp-block-table.is-style-stripes strong,
body[data-theme="dark"] .wp-block-table.is-style-stripes strong {
    color: #ffffff !important;
}

.dark-mode .wp-block-table.is-style-stripes tbody tr:hover,
.dark .wp-block-table.is-style-stripes tbody tr:hover,
html[data-theme="dark"] .wp-block-table.is-style-stripes tbody tr:hover,
body[data-theme="dark"] .wp-block-table.is-style-stripes tbody tr:hover {
    background-color: #383838 !important;
    transition: background-color 0.2s ease;
}

/* ============================================
   wpDiscuz Notification Bell Button Styling
   ============================================ */

.wpd_label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 16px !important;
    background-color: #f5f5f5 !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #333 !important;
    user-select: none !important;
}

.wpd_label:hover {
    background-color: #e8e8e8 !important;
    border-color: #ccc !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.wpd_label__check i.wpdicon {
    font-size: 16px !important;
    color: #666 !important;
    transition: color 0.3s ease !important;
}

.wpd_label input[type="checkbox"]:checked ~ span.wpd_label__text .wpd_label__check i.wpdicon {
    color: #00B38F !important;
}

@media (max-width: 768px) {
    .wpd_label {
        padding: 8px 12px !important;
        font-size: 13px !important;
        gap: 6px !important;
    }
    
    .wpd_label__check i.wpdicon {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .wpd_label {
        padding: 6px 10px !important;
        font-size: 12px !important;
        width: 100% !important;
        justify-content: center !important;
    }
}

/* ============================================
   DARK MODE - wpDiscuz Notification Bell
   ============================================ */

.dark-mode .wpd_label,
.dark .wpd_label,
html[data-theme="dark"] .wpd_label,
body[data-theme="dark"] .wpd_label,
body.wpf-dark .wpd_label,
.wpd-dark .wpd_label {
    background-color: #2d2d2d !important;
    border-color: #404040 !important;
    color: #d4d4d4 !important;
}

.dark-mode .wpd_label:hover,
.dark .wpd_label:hover,
html[data-theme="dark"] .wpd_label:hover,
body[data-theme="dark"] .wpd_label:hover,
body.wpf-dark .wpd_label:hover,
.wpd-dark .wpd_label:hover {
    background-color: #383838 !important;
    border-color: #555 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

.dark-mode .wpd_label__check i.wpdicon,
.dark .wpd_label__check i.wpdicon,
html[data-theme="dark"] .wpd_label__check i.wpdicon,
body[data-theme="dark"] .wpd_label__check i.wpdicon,
body.wpf-dark .wpd_label__check i.wpdicon,
.wpd-dark .wpd_label__check i.wpdicon {
    color: #999 !important;
}

.dark-mode .wpd_label input[type="checkbox"]:checked ~ span.wpd_label__text .wpd_label__check i.wpdicon,
.dark .wpd_label input[type="checkbox"]:checked ~ span.wpd_label__text .wpd_label__check i.wpdicon,
html[data-theme="dark"] .wpd_label input[type="checkbox"]:checked ~ span.wpd_label__text .wpd_label__check i.wpdicon,
body[data-theme="dark"] .wpd_label input[type="checkbox"]:checked ~ span.wpd_label__text .wpd_label__check i.wpdicon,
body.wpf-dark .wpd_label input[type="checkbox"]:checked ~ span.wpd_label__text .wpd_label__check i.wpdicon,
.wpd-dark .wpd_label input[type="checkbox"]:checked ~ span.wpd_label__text .wpd_label__check i.wpdicon {
    color: #00B38F !important;
}

.wpd_label__text {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

@media (max-width: 768px) {
    .wpd_label__text {
        gap: 6px !important;
    }
}

/* ============================================
   wpDiscuz Comment Textarea - Prevent CLS
   ============================================ */

textarea#wc-textarea-0_0.wc_comment.wpd-field,
textarea.wc_comment.wpd-field {
    min-height: 120px !important;
    height: 120px !important;
    resize: vertical !important;
    transition: height 0.2s ease !important;
}

.wpdiscuz-textarea-wrap.wpd-txt,
.wpd-textarea-wrap {
    min-height: 120px !important;
}

@media (max-width: 991px) {
    textarea#wc-textarea-0_0.wc_comment.wpd-field,
    textarea.wc_comment.wpd-field {
        min-height: 110px !important;
        height: 110px !important;
    }
    
    .wpdiscuz-textarea-wrap.wpd-txt,
    .wpd-textarea-wrap {
        min-height: 110px !important;
    }
}

@media (max-width: 768px) {
    textarea#wc-textarea-0_0.wc_comment.wpd-field,
    textarea.wc_comment.wpd-field {
        min-height: 100px !important;
        height: 100px !important;
        font-size: 15px !important;
    }
    
    .wpdiscuz-textarea-wrap.wpd-txt,
    .wpd-textarea-wrap {
        min-height: 100px !important;
    }
}

@media (max-width: 480px) {
    textarea#wc-textarea-0_0.wc_comment.wpd-field,
    textarea.wc_comment.wpd-field {
        min-height: 90px !important;
        height: 90px !important;
        font-size: 16px !important;
    }
    
    .wpdiscuz-textarea-wrap.wpd-txt,
    .wpd-textarea-wrap {
        min-height: 90px !important;
    }
}

@media (max-width: 768px) {
  .site-header .prime-mag-pro-middle-header .prime-mag-pro-middle-header-wrapper {
    padding-block: 5px !important;
    gap: 5px !important;
  }
}

/* Make links in wpForo posts blue and visible */
#wpforo #wpforo-wrap .wpforo-post-content a {
    color: #4da6ff !important;
    text-decoration: underline;
}

#wpforo #wpforo-wrap .wpforo-post-content a:hover {
    color: #66b3ff !important;
    text-decoration: underline;
}

#wpforo #wpforo-wrap .wpforo-post-content a:visited {
    color: #9d7be8 !important;
}

/* Fix TinyMCE code editor text */
.mce-textbox,
.mce-textbox textarea,
textarea[id^="mceu_"],
div[id^="mceu_"] textarea {
    color: #000000 !important;
    background: #ffffff !important;
}

.mce-content-body {
    color: #000000 !important;
}

.mce-panel textarea,
.mce-textbox textarea {
    color: #000000 !important;
    background: #ffffff !important;
}

.mce-container textarea {
    color: #000000 !important;
    background: #ffffff !important;
}

/* ============================================
   FIX: Post Thumbnail CLS - Mobile & Desktop
   ============================================ */

.entry-content .post-thumbnail img,
article .post-thumbnail img,
.wp-post-image:not(.vht-topic-continue__img) {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    display: block;
}

.post-thumbnail,
.entry-content .post-thumbnail {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

@media (max-width: 768px) {
    .entry-content .post-thumbnail img,
    article .post-thumbnail img,
    .wp-post-image {
        aspect-ratio: 16 / 9;
        max-width: 100%;
    }
}

.dark-mode .post-thumbnail img,
.dark .post-thumbnail img,
html[data-theme="dark"] .post-thumbnail img,
body[data-theme="dark"] .post-thumbnail img {
    background-color: transparent;
}

/* ============================================
   Iconify Social Icons - Replace Font Awesome
   ============================================ */

.header-custom-button img[src*="bell"] {
    filter: brightness(0) invert(1) !important;
}

.header-custom-button a img[src*="bell"] {
    filter: brightness(0) invert(1) !important;
}

.social-links a::before {
    display: none !important;
}

.social-links a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.social-links a[href*="youtube.com"]::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814M9.545 15.568V8.432L15.818 12z'/%3E%3C/svg%3E");
}

.social-links a[href*="twitter.com"]::after,
.social-links a[href*="x.com"]::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M18.244 2.25h3.308l-7.227 8.26l8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E");
}

.social-links a[href*="linkedin.com"]::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037c-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85c3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 0 1-2.063-2.065a2.064 2.064 0 1 1 2.063 2.065m1.782 13.019H3.555V9h3.564zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0z'/%3E%3C/svg%3E");
}

.social-links a[href*="github.com"]::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 0c-6.626 0-12 5.373-12 12c0 5.302 3.438 9.8 8.207 11.387c.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416c-.546-1.387-1.333-1.756-1.333-1.756c-1.089-.745.083-.729.083-.729c1.205.084 1.839 1.237 1.839 1.237c1.07 1.834 2.807 1.304 3.492.997c.107-.775.418-1.305.762-1.604c-2.665-.305-5.467-1.334-5.467-5.931c0-1.311.469-2.381 1.236-3.221c-.124-.303-.535-1.524.117-3.176c0 0 1.008-.322 3.301 1.23A11.509 11.509 0 0 1 12 5.803c1.02.005 2.047.138 3.006.404c2.291-1.552 3.297-1.23 3.297-1.23c.653 1.653.242 2.874.118 3.176c.77.84 1.235 1.911 1.235 3.221c0 4.609-2.807 5.624-5.479 5.921c.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576C20.566 21.797 24 17.3 24 12c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E");
}

.social-links a[href*="facebook.com"]::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9.101 23.691v-7.98H6.627v-3.667h2.474v-1.58c0-4.085 1.848-5.978 5.858-5.978c.401 0 .955.042 1.468.103a8.68 8.68 0 0 1 1.141.195v3.325a8.623 8.623 0 0 0-.653-.036a26.805 26.805 0 0 0-.733-.009c-.707 0-1.259.096-1.675.309a1.686 1.686 0 0 0-.679.622c-.258.42-.374.995-.374 1.752v1.297h3.919l-.386 3.667h-3.533v7.98z'/%3E%3C/svg%3E");
}

.social-links a[href*="discord.com"]::after,
.social-links a[href*="discord.gg"]::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515a.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0a12.64 12.64 0 0 0-.617-1.25a.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057a19.9 19.9 0 0 0 5.993 3.03a.078.078 0 0 0 .084-.028a14.09 14.09 0 0 0 1.226-1.994a.076.076 0 0 0-.041-.106a13.107 13.107 0 0 1-1.872-.892a.077.077 0 0 1-.008-.128a10.2 10.2 0 0 0 .372-.292a.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127a12.299 12.299 0 0 1-1.873.892a.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028a19.839 19.839 0 0 0 6.002-3.03a.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03M8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419c0-1.333.956-2.419 2.157-2.419c1.21 0 2.176 1.096 2.157 2.42c0 1.333-.956 2.418-2.157 2.418m7.975 0c-1.183 0-2.157-1.085-2.157-2.419c0-1.333.955-2.419 2.157-2.419c1.21 0 2.176 1.096 2.157 2.42c0 1.333-.946 2.418-2.157 2.418'/%3E%3C/svg%3E");
}

.social-links a[href*="pinterest.com"]::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12.017 0C5.396 0 .029 5.367.029 11.987c0 5.079 3.158 9.417 7.618 11.162c-.105-.949-.199-2.403.041-3.439c.219-.937 1.406-5.957 1.406-5.957s-.359-.72-.359-1.781c0-1.663.967-2.911 2.168-2.911c1.024 0 1.518.769 1.518 1.688c0 1.029-.653 2.567-.992 3.992c-.285 1.193.6 2.165 1.775 2.165c2.128 0 3.768-2.245 3.768-5.487c0-2.861-2.063-4.869-5.008-4.869c-3.41 0-5.409 2.562-5.409 5.199c0 1.033.394 2.143.889 2.741a.36.36 0 0 1 .083.343c-.091.378-.293 1.194-.334 1.361c-.053.225-.172.271-.401.165c-1.495-.69-2.433-2.878-2.433-4.646c0-3.776 2.748-7.252 7.92-7.252c4.158 0 7.392 2.967 7.392 6.923c0 4.135-2.607 7.462-6.233 7.462c-1.214 0-2.354-.629-2.758-1.379l-.749 2.848c-.269 1.045-1.004 2.352-1.498 3.146c1.123.345 2.306.535 3.55.535c6.607 0 11.985-5.365 11.985-11.987C23.97 5.39 18.592.026 11.985.026z'/%3E%3C/svg%3E");
}

/* Google Profile — same monochrome SVG treatment as other socials */
.social-links a[href*="profile.google.com"]::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z'/%3E%3Cpath fill='white' d='M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z'/%3E%3Cpath fill='white' d='M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z'/%3E%3Cpath fill='white' d='M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

/* ============================================
   Body Text Typography - Match Gizmodo Style
   ============================================ */

.entry-content p,
.post-content p,
.entry-content li,
.post-content li,
.entry-content blockquote,
.post-content blockquote {
    font-size: 20px !important;
    line-height: 36px !important;
}

/* Exclude wpForo from typography changes */
#wpforo p,
#wpforo li,
#wpforo blockquote,
#wpforo-wrap p,
#wpforo-wrap li,
#wpforo-wrap blockquote,
.wpforo-post-content p,
.wpforo-post-content li,
.wpforo-topic-wrap p,
.wpforo-topic-wrap li,
.wpforo-forums-wrap p,
.wpforo-forums-wrap li {
    font-size: unset !important;
    line-height: unset !important;
}

/* ============================================
   Link Underline Style - Body Text Only
   Matches Gizmodo's underline approach
   ============================================ */

.entry-content a,
.post-content a {
    color: inherit !important;
    text-decoration: underline !important;
    text-decoration-color: #8b5cf6 !important;
    text-underline-offset: 5px !important;
    text-decoration-thickness: 3px !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    transition: color 0.2s ease !important;
}

/* LVHA order: visited must come before hover, or visited links
   keep color:inherit and hover only flashes briefly */
.entry-content a:visited,
.post-content a:visited {
    color: inherit !important;
    text-decoration-color: #8b5cf6 !important;
}

.entry-content a:hover,
.post-content a:hover,
.entry-content a:focus,
.post-content a:focus,
.entry-content a:visited:hover,
.post-content a:visited:hover {
    color: #8b5cf6 !important;
    text-decoration-color: #8b5cf6 !important;
}

/* Exclude image links */
.entry-content a:has(img),
.post-content a:has(img),
.entry-content figure a,
.post-content figure a,
.entry-content .wp-block-image a,
.post-content .wp-block-image a {
    text-decoration: none !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

/* Exclude end-of-post chrome + injected boxes (not body prose links) */
.entry-content .vht-discuss a,
.post-content .vht-discuss a,
.entry-content .vht-topic-continue a,
.post-content .vht-topic-continue a,
.entry-content .custom-author-box a,
.post-content .custom-author-box a,
.entry-content .custom-author-compact a,
.post-content .custom-author-compact a,
.entry-content .vht-preferred-source-badge a,
.post-content .vht-preferred-source-badge a {
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-color: transparent !important;
    text-decoration-thickness: 0 !important;
    text-underline-offset: 0 !important;
    border-bottom: none !important;
}

.entry-content .custom-author-box a:hover,
.post-content .custom-author-box a:hover,
.entry-content .custom-author-box a:focus,
.post-content .custom-author-box a:focus,
.entry-content .custom-author-compact a:hover,
.post-content .custom-author-compact a:hover,
.entry-content .custom-author-compact a:focus,
.post-content .custom-author-compact a:focus {
    text-decoration: none !important;
    text-decoration-line: none !important;
}

/* Author box CTA — match site button polish */
.custom-author-box .author-box-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.25rem;
}

.custom-author-box a.author-posts-link,
.entry-content .custom-author-box a.author-posts-link,
.post-content .custom-author-box a.author-posts-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.35em;
    padding: 0.65rem 1.15rem !important;
    border-radius: 8px !important;
    border: 1px solid transparent !important;
    background-color: var(--primary-color, #6d1def) !important;
    color: #fff !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.01em;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease !important;
}

.custom-author-box a.author-posts-link:hover,
.custom-author-box a.author-posts-link:focus-visible,
.entry-content .custom-author-box a.author-posts-link:hover,
.entry-content .custom-author-box a.author-posts-link:focus-visible,
.post-content .custom-author-box a.author-posts-link:hover,
.post-content .custom-author-box a.author-posts-link:focus-visible {
    background-color: color-mix(in srgb, var(--primary-color, #6d1def) 86%, #000) !important;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 6px 16px rgba(109, 29, 239, 0.28);
    transform: translateY(-1px);
    outline: none;
}

.custom-author-box a.author-posts-link:focus-visible,
.entry-content .custom-author-box a.author-posts-link:focus-visible {
    outline: 2px solid var(--primary-color, #6d1def);
    outline-offset: 3px;
}

/* Author website chip: hide site self-link; show Google Profile as social-style icon */
.custom-author-box .author-website-link:not([href*="profile.google.com"]) {
    display: none !important;
}

.custom-author-box a.author-website-link[href*="profile.google.com"],
.entry-content .custom-author-box a.author-website-link[href*="profile.google.com"],
.post-content .custom-author-box a.author-website-link[href*="profile.google.com"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    border: none !important;
    background-color: #4285f4 !important;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease !important;
}

.custom-author-box a.author-website-link[href*="profile.google.com"]:hover,
.custom-author-box a.author-website-link[href*="profile.google.com"]:focus-visible,
.entry-content .custom-author-box a.author-website-link[href*="profile.google.com"]:hover,
.entry-content .custom-author-box a.author-website-link[href*="profile.google.com"]:focus-visible {
    background-color: #3367d6 !important;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.35);
    transform: translateY(-1px);
    outline: none;
}

.custom-author-box a.author-website-link[href*="profile.google.com"]:focus-visible {
    outline: 2px solid #4285f4;
    outline-offset: 3px;
}

/* Hide plugin's generic link SVG; use the same white G glyph as socials */
.custom-author-box a.author-website-link[href*="profile.google.com"] svg {
    display: none !important;
}

.custom-author-box a.author-website-link[href*="profile.google.com"]::after {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z'/%3E%3Cpath fill='white' d='M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z'/%3E%3Cpath fill='white' d='M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z'/%3E%3Cpath fill='white' d='M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

@media (prefers-reduced-motion: reduce) {
    .custom-author-box a.author-posts-link,
    .custom-author-box a.author-posts-link:hover,
    .custom-author-box a.author-posts-link:focus-visible,
    .custom-author-box a.author-website-link[href*="profile.google.com"],
    .custom-author-box a.author-website-link[href*="profile.google.com"]:hover,
    .custom-author-box a.author-website-link[href*="profile.google.com"]:focus-visible {
        transition: none !important;
        transform: none !important;
    }
}

/* Exclude standalone URL embeds */
.entry-content .wp-block-embed a,
.post-content .wp-block-embed a {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Exclude all wpForo elements */
#wpforo a,
#wpforo-wrap a,
.wpforo-post-content a,
.wpforo-topic-wrap a,
.wpforo-forums-wrap a,
.wpforo-list-wrap a,
.wpf-form a,
#wpforo .wpforo-tabs a,
#wpforo .wpf-btn,
#wpforo .wpforo-pager a,
#wpforo .wpforo-breadcrumb a {
    text-decoration: none !important;
    border-bottom: none !important;
    color: unset !important;
}

#wpforo a:hover,
#wpforo-wrap a:hover,
#wpforo a:visited,
#wpforo-wrap a:visited {
    color: unset !important;
}

/* ============================================
   Image Caption Styling
   ============================================ */

/* Light mode captions */
html[data-theme="light"] .wp-caption-text,
html[data-theme="light"] figcaption,
html[data-theme="light"] .wp-element-caption,
html[data-theme="light"] .wp-block-image figcaption,
html[data-theme="light"] .wp-block-gallery figcaption,
body:not(.dark-mode) .wp-caption-text,
body:not(.dark-mode) figcaption,
body:not(.dark-mode) .wp-element-caption,
body:not(.dark-mode) .wp-block-image figcaption,
body:not(.dark-mode) .wp-block-gallery figcaption {
    color: #444444 !important;
    font-size: 14px !important;
    text-align: center !important;
    font-style: italic !important;
    margin-top: 6px !important;
}

/* Dark mode captions */
html[data-theme="dark"] .wp-caption-text,
html[data-theme="dark"] figcaption,
html[data-theme="dark"] .wp-element-caption,
html[data-theme="dark"] .wp-block-image figcaption,
html[data-theme="dark"] .wp-block-gallery figcaption,
body.dark-mode .wp-caption-text,
body.dark-mode figcaption,
body.dark-mode .wp-element-caption,
body.dark-mode .wp-block-image figcaption,
body.dark-mode .wp-block-gallery figcaption {
    color: #cccccc !important;
    font-size: 14px !important;
    text-align: center !important;
    font-style: italic !important;
    margin-top: 6px !important;
}

/* ============================================
   Mobile List Indentation Fix
   ============================================ */
@media (max-width: 768px) {
    .entry-content ul,
    .entry-content ol,
    .post-content ul,
    .post-content ol {
        margin-left: 1.5em !important;
        padding-left: 0 !important;
    }

    .entry-content ul li,
    .entry-content ol li,
    .post-content ul li,
    .post-content ol li {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
}

/* ============================================
   Posts / Post Navigation Icons - Replace FA
   Fixes "Older posts" / "Newer posts" tofu glyphs
   ============================================ */

.posts-navigation .nav-links .nav-previous a::before,
.posts-navigation .nav-links .nav-next a::after,
.post-navigation .nav-links .nav-previous a span::before,
.post-navigation .nav-links .nav-next a span::after,
body.rtl .post-navigation .nav-links .nav-previous a span::before,
body.rtl .post-navigation .nav-links .nav-next a span::after {
    content: '' !important;
    font-family: inherit !important;
    display: inline-block;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask-image: none;
    mask-image: none;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.posts-navigation .nav-links .nav-previous a::before,
.post-navigation .nav-links .nav-previous a span::before,
body.rtl .post-navigation .nav-links .nav-next a span::after {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z'/%3E%3C/svg%3E");
}

.posts-navigation .nav-links .nav-next a::after,
.post-navigation .nav-links .nav-next a span::after,
body.rtl .post-navigation .nav-links .nav-previous a span::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6z'/%3E%3C/svg%3E");
}

/* ============================================
   View All Link Icon - Replace Font Awesome
   ============================================ */

.title-heading a.view-all::after {
    content: '' !important;
    font-family: inherit !important;
    display: inline-block;
    width: 12px;
    height: 12px;
    padding-inline-start: 0 !important;
    margin-inline-start: 4px;
    vertical-align: middle;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

/* ============================================
   Visual Polish Pass - Corners / Spacing / Hover
   ============================================ */

/* 1) Softer corners on thumbnails + category chips */
.blog-post-container .blog-post-inner .blog-post-image,
.post-thumbnail,
.entry-content .post-thumbnail,
.entry-content .wp-block-image img,
.entry-content figure.wp-block-image img {
    border-radius: 10px;
    overflow: hidden;
}

.blog-post-container .blog-post-inner .blog-post-image img {
    border-radius: 10px;
}

.blog-post-container .blog-post-inner .blog-post-detail .post-categories a {
    padding: 5px 8px 4px;
    border-radius: 8px;
}

.blog-post-container .blog-post-inner .blog-post-detail .post-categories a::before {
    border-radius: 8px;
}

/* 2) Replace hard hairlines with spacing */
.title-heading {
    border-top: none !important;
    padding-top: 4px;
    margin-top: 1.25rem;
    margin-bottom: 1.1rem;
}

.blog-post-container .blog-post-inner .blog-post-detail .post-meta {
    border-top: none !important;
    margin-top: 0.55rem;
    padding-block: 0.35rem 0;
}

/* 3) Card hover: subtle image zoom + lift */
.blog-post-container .blog-post-inner .blog-post-image {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.blog-post-container .blog-post-inner .blog-post-image img {
    transition: transform 0.35s ease;
}

.blog-post-container:hover .blog-post-inner .blog-post-image,
.blog-post-container:focus-within .blog-post-inner .blog-post-image {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.blog-post-container:hover .blog-post-inner .blog-post-image img,
.blog-post-container:focus-within .blog-post-inner .blog-post-image img {
    transform: scale(1.03);
    will-change: transform;
}

.blog-post-container:not(:hover):not(:focus-within) .blog-post-inner .blog-post-image img {
    will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
    .blog-post-container .blog-post-inner .blog-post-image,
    .blog-post-container .blog-post-inner .blog-post-image img {
        transition: none;
    }

    .blog-post-container:hover .blog-post-inner .blog-post-image,
    .blog-post-container:focus-within .blog-post-inner .blog-post-image,
    .blog-post-container:hover .blog-post-inner .blog-post-image img,
    .blog-post-container:focus-within .blog-post-inner .blog-post-image img {
        transform: none;
        box-shadow: none;
    }
}

/* ============================================
   Visual Polish Pass 2 - Chips / Headings /
   Figures / Code
   ============================================ */

/* 4) Normalized category chips */
.blog-post-container .blog-post-inner .blog-post-detail .post-categories a {
    padding: 5px 10px 4px !important;
    border-radius: 8px !important;
    line-height: 1.25 !important;
    letter-spacing: 0.02em;
    font-weight: 600;
    color: var(--cat-clr) !important;
}

.blog-post-container .blog-post-inner .blog-post-detail .post-categories a::before {
    opacity: 0.18 !important;
    border-radius: 8px !important;
    background: var(--cat-clr) !important;
}

.blog-post-container .blog-post-inner .blog-post-detail .post-categories a:hover,
.blog-post-container .blog-post-inner .blog-post-detail .post-categories a:focus-within {
    opacity: 1 !important;
}

.blog-post-container .blog-post-inner .blog-post-detail .post-categories a:hover::before,
.blog-post-container .blog-post-inner .blog-post-detail .post-categories a:focus-within::before {
    opacity: 0.28 !important;
}

/* 6) H2 / H3 breathing room */
.entry-content h2,
.post-content h2 {
    margin-top: 2.15em !important;
    margin-bottom: 0.5em !important;
    line-height: 1.25 !important;
    letter-spacing: -0.01em;
}

.entry-content h3,
.post-content h3 {
    margin-top: 1.7em !important;
    margin-bottom: 0.4em !important;
    line-height: 1.3 !important;
}

.entry-content h2:first-child,
.entry-content > h2:first-of-type,
.post-content h2:first-child,
.post-content > h2:first-of-type {
    margin-top: 0.6em !important;
}

/* 7) Figure / screenshot frame + captions */
.entry-content .wp-block-image,
.entry-content figure.wp-block-image,
.entry-content .wp-caption,
.post-content .wp-block-image,
.post-content figure.wp-block-image,
.post-content .wp-caption {
    margin-block: 1.4em 1.1em;
}

.entry-content .wp-block-image img,
.entry-content .wp-caption img,
.entry-content figure:not(.wp-block-code) img,
.post-content .wp-block-image img,
.post-content .wp-caption img,
.post-content figure:not(.wp-block-code) img {
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--border-clr) 65%, transparent);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.entry-content .wp-caption-text,
.entry-content figcaption,
.entry-content .wp-element-caption,
.post-content .wp-caption-text,
.post-content figcaption,
.post-content .wp-element-caption {
    margin-top: 0.55em !important;
    padding-inline: 0.25em;
    opacity: 0.9;
}

/* Fallback for browsers without color-mix */
@supports not (border-color: color-mix(in srgb, #000 50%, transparent)) {
    .entry-content .wp-block-image img,
    .entry-content .wp-caption img,
    .entry-content figure:not(.wp-block-code) img,
    .post-content .wp-block-image img,
    .post-content .wp-caption img,
    .post-content figure:not(.wp-block-code) img {
        border-color: var(--border-clr);
        opacity: 1;
    }
}

/* 8) Code blocks - docs-modern inset + scroll */
.entry-content pre,
.post-content pre,
.entry-content .wp-block-code,
.post-content .wp-block-code,
.entry-content figure.wp-block-code,
.post-content figure.wp-block-code,
.entry-content pre[class*="language-"],
.post-content pre[class*="language-"] {
    padding: 14px 16px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    border-radius: 10px !important;
    border: 1px solid var(--code-border) !important;
    border-left: 3px solid var(--primary-color) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04),
                inset 0 0 24px rgba(0, 0, 0, 0.12) !important;
    font-size: 0.92em !important;
    line-height: 1.55 !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #666 var(--code-inline-bg);
}

.entry-content figure.wp-block-code,
.post-content figure.wp-block-code {
    padding: 0 !important;
    overflow: hidden !important;
    border-left: 3px solid var(--primary-color) !important;
}

.entry-content figure.wp-block-code pre,
.post-content figure.wp-block-code pre {
    border: none !important;
    border-left: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    background: transparent !important;
    color: inherit !important;
}

/* Force a single solid code pane (no light-gray box inside dark frame) */
html[data-theme="dark"] .entry-content pre,
html[data-theme="dark"] .entry-content .wp-block-code,
html[data-theme="dark"] .entry-content figure.wp-block-code,
html[data-theme="dark"] .post-content pre,
html[data-theme="dark"] .post-content .wp-block-code,
html[data-theme="dark"] .post-content figure.wp-block-code,
html.dark-mode .entry-content pre,
html.dark-mode .entry-content .wp-block-code,
html.dark-mode .entry-content figure.wp-block-code,
html:not([data-theme="light"]) .entry-content pre,
html:not([data-theme="light"]) .entry-content .wp-block-code,
html:not([data-theme="light"]) .entry-content figure.wp-block-code,
html:not([data-theme="light"]) .post-content pre,
html:not([data-theme="light"]) .post-content .wp-block-code,
html:not([data-theme="light"]) .post-content figure.wp-block-code {
    background-color: #1e1e1e !important;
    color: #d4d4d4 !important;
    border-top-color: #3e3e3e !important;
    border-right-color: #3e3e3e !important;
    border-bottom-color: #3e3e3e !important;
    border-left-color: var(--primary-color, #6d1def) !important;
}

html[data-theme="light"] .entry-content pre,
html[data-theme="light"] .entry-content .wp-block-code,
html[data-theme="light"] .entry-content figure.wp-block-code,
html[data-theme="light"] .post-content pre,
html[data-theme="light"] .post-content .wp-block-code,
html[data-theme="light"] .post-content figure.wp-block-code {
    background-color: #f8f8f8 !important;
    color: #111111 !important;
    border-top-color: #e1e1e1 !important;
    border-right-color: #e1e1e1 !important;
    border-bottom-color: #e1e1e1 !important;
    border-left-color: var(--primary-color, #6d1def) !important;
}

html[data-theme="dark"] .entry-content figure.wp-block-code pre,
html[data-theme="dark"] .post-content figure.wp-block-code pre,
html:not([data-theme="light"]) .entry-content figure.wp-block-code pre,
html:not([data-theme="light"]) .post-content figure.wp-block-code pre,
html[data-theme="light"] .entry-content figure.wp-block-code pre,
html[data-theme="light"] .post-content figure.wp-block-code pre {
    background: transparent !important;
}

.entry-content .wp-block-code::-webkit-scrollbar,
.entry-content pre::-webkit-scrollbar,
.post-content .wp-block-code::-webkit-scrollbar,
.post-content pre::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

.entry-content .wp-block-code::-webkit-scrollbar-thumb,
.entry-content pre::-webkit-scrollbar-thumb,
.post-content .wp-block-code::-webkit-scrollbar-thumb,
.post-content pre::-webkit-scrollbar-thumb {
    background: #6a6a6a;
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

/* ============================================
   Visual Polish Pass 3 - View All / Meta /
   Sticky Nav / Footer Hierarchy
   ============================================ */

/* 9) View All as a real control */
.title-heading a.view-all {
    display: inline-flex !important;
    align-items: center;
    gap: 2px;
    padding: 6px 10px;
    border-radius: 8px !important;
    font-size: calc(var(--font-xsmall) + 0px) !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    color: var(--clr-text) !important;
    text-decoration: none !important;
    opacity: 0.78;
    transition: opacity 0.2s ease, color 0.2s ease, background-color 0.2s ease !important;
}

.title-heading a.view-all:hover,
.title-heading a.view-all:focus-within {
    opacity: 1;
    color: var(--primary-color) !important;
    text-decoration: none !important;
    background-color: color-mix(in srgb, var(--primary-color) 12%, transparent);
}

.site-footer .title-heading a.view-all {
    color: #fff !important;
    opacity: 0.72;
}

.site-footer .title-heading a.view-all:hover,
.site-footer .title-heading a.view-all:focus-within {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

/* 10) Quieter meta rows so titles stay primary.
   Soften via color (not row opacity) — opacity stacked with
   dark purple made comment counts nearly invisible on dark bg.
   FA comment glyphs are disabled; restore a small CSS icon. */
.blog-post-container .blog-post-inner .blog-post-detail .post-meta {
    opacity: 1;
}

.blog-post-container .blog-post-inner .blog-post-detail .post-meta .post-author a,
.blog-post-container .blog-post-inner .blog-post-detail .post-meta .post-date a {
    font-weight: 500 !important;
    color: color-mix(in srgb, var(--clr-text) 72%, transparent) !important;
}

.blog-post-container .blog-post-inner .blog-post-detail .post-meta .post-comment {
    color: color-mix(in srgb, var(--clr-text) 66%, transparent) !important;
    opacity: 1 !important;
    font-size: var(--font-xsmall);
    font-weight: 500;
    line-height: 1 !important;
    gap: 0.35em;
}

.blog-post-container .blog-post-inner .blog-post-detail .post-meta .post-comment i {
    display: none !important;
}

.blog-post-container .blog-post-inner .blog-post-detail .post-meta .post-comment::before {
    content: "";
    display: inline-block;
    width: 0.95em;
    height: 0.95em;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H5.17L4 17.17V4h16v12z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H5.17L4 17.17V4h16v12z'/%3E%3C/svg%3E") center / contain no-repeat;
}

@supports not (color: color-mix(in srgb, #000 50%, transparent)) {
    .blog-post-container .blog-post-inner .blog-post-detail .post-meta .post-author a,
    .blog-post-container .blog-post-inner .blog-post-detail .post-meta .post-date a,
    .blog-post-container .blog-post-inner .blog-post-detail .post-meta .post-comment {
        color: var(--clr-text) !important;
        opacity: 0.72 !important;
    }
}

.blog-post-container .blog-post-inner .blog-post-detail .post-meta .post-author a:hover,
.blog-post-container .blog-post-inner .blog-post-detail .post-meta .post-date a:hover,
.blog-post-container .blog-post-inner .blog-post-detail .post-meta .post-author a:focus-within,
.blog-post-container .blog-post-inner .blog-post-detail .post-meta .post-date a:focus-within {
    color: var(--primary-color) !important;
}

/* 11) Sticky nav: keep the dark bar (menu text is light).
   Translucent --bg-clr broke light-mode contrast when sticky. */
body.sticky-nav .site-header .prime-mag-pro-bottom-header.sticky-header {
    background-color: rgba(12, 12, 12, 0.94) !important;
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    backdrop-filter: saturate(140%) blur(12px);
    border-top: none !important;
    border-block-end: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    /* Pin to the visual viewport — without left/right, fixed + page
       overflow can shift the bar right and clip the account button. */
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

/* Fallback when backdrop-filter unsupported */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    body.sticky-nav .site-header .prime-mag-pro-bottom-header.sticky-header {
        background-color: #0c0c0c !important;
    }
}

/* Soften the normal (non-sticky) nav top rule a bit to match */
.site-header .prime-mag-pro-bottom-header {
    border-top-width: 1px !important;
    border-top-color: rgba(255, 255, 255, 0.18) !important;
}

/* 12) Footer hierarchy â€” more air, quieter links */
footer.site-footer .prime-mag-pro-top-footer {
    padding-block: 36px 28px !important;
}

footer.site-footer .prime-mag-pro-top-footer .top-footer-wrapper .footer-container-wrapper .footer-content-inside {
    padding-inline: 16px;
}

footer.site-footer .prime-mag-pro-top-footer .top-footer-wrapper .footer-container-wrapper .footer-content-inside .widget-title,
footer.site-footer .title-heading .widget-title,
footer.site-footer .title-heading .section-title {
    margin-bottom: 14px !important;
    opacity: 0.95;
    letter-spacing: 0.02em;
}

footer.site-footer .prime-mag-pro-top-footer .top-footer-wrapper .footer-container-wrapper .footer-content-inside .widget ol li,
footer.site-footer .prime-mag-pro-top-footer .top-footer-wrapper .footer-container-wrapper .footer-content-inside .widget ul li {
    padding-block: 5px;
}

footer.site-footer .prime-mag-pro-top-footer .top-footer-wrapper .footer-container-wrapper .footer-content-inside .widget ol li a,
footer.site-footer .prime-mag-pro-top-footer .top-footer-wrapper .footer-container-wrapper .footer-content-inside .widget ul li a {
    opacity: 0.68;
    font-size: calc(var(--font-small) + 1px) !important;
    transition: opacity 0.2s ease, color 0.2s ease !important;
}

footer.site-footer .prime-mag-pro-top-footer .top-footer-wrapper .footer-container-wrapper .footer-content-inside .widget ol li a:hover,
footer.site-footer .prime-mag-pro-top-footer .top-footer-wrapper .footer-container-wrapper .footer-content-inside .widget ul li a:hover,
footer.site-footer .prime-mag-pro-top-footer .top-footer-wrapper .footer-container-wrapper .footer-content-inside .widget ol li a:focus-within,
footer.site-footer .prime-mag-pro-top-footer .top-footer-wrapper .footer-container-wrapper .footer-content-inside .widget ul li a:focus-within {
    opacity: 1;
    color: var(--primary-color) !important;
}

footer.site-footer .prime-mag-pro-middle-footer .middle-footer-wrapper {
    padding-block: 18px !important;
    gap: 12px;
}

footer.site-footer .prime-mag-pro-middle-footer .middle-footer-wrapper .footer-menu .menu li a {
    opacity: 0.7;
    transition: opacity 0.2s ease, color 0.2s ease;
}

footer.site-footer .prime-mag-pro-middle-footer .middle-footer-wrapper .footer-menu .menu li a:hover,
footer.site-footer .prime-mag-pro-middle-footer .middle-footer-wrapper .footer-menu .menu li a:focus-within {
    opacity: 1;
}

footer.site-footer .prime-mag-pro-bottom-footer {
    padding-block: 16px 20px !important;
}

footer.site-footer .prime-mag-pro-bottom-footer .bottom-footer-content p,
footer.site-footer .prime-mag-pro-bottom-footer .bottom-footer-content a {
    opacity: 0.62;
    font-size: calc(var(--font-xsmall) + 1px);
}

footer.site-footer .prime-mag-pro-bottom-footer .bottom-footer-content a:hover,
footer.site-footer .prime-mag-pro-bottom-footer .bottom-footer-content a:focus-within {
    opacity: 1;
    color: var(--primary-color);
}

@supports not (background-color: color-mix(in srgb, #000 50%, transparent)) {
    .title-heading a.view-all:hover,
    .title-heading a.view-all:focus-within {
        background-color: rgba(109, 29, 239, 0.12);
    }

    body.sticky-nav .site-header .prime-mag-pro-bottom-header.sticky-header {
        background-color: #0c0c0c !important;
        border-block-end: 1px solid rgba(255, 255, 255, 0.12) !important;
    }

    .site-header .prime-mag-pro-bottom-header {
        border-top-color: rgba(255, 255, 255, 0.18) !important;
    }
}

/* ============================================
   Code block Copy button (pairs with code-copy.js)
   Icon-only clipboard, upper-right, lightweight SVG
   ============================================ */

.vht-code-wrap {
    position: relative !important;
}

.entry-content .vht-code-copy,
.post-content .vht-code-copy,
.page-content .vht-code-copy,
.vht-code-copy {
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 5 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 6px !important;
    background: rgba(24, 24, 24, 0.82) !important;
    color: #e8e8e8 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
    font-size: 0 !important;
    line-height: 0 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    cursor: pointer !important;
    opacity: 0.55;
    transition: opacity 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease !important;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.vht-code-wrap:hover .vht-code-copy,
.vht-code-copy:focus-visible {
    opacity: 1;
}

.entry-content .vht-code-copy:hover,
.post-content .vht-code-copy:hover,
.entry-content .vht-code-copy:focus-visible,
.post-content .vht-code-copy:focus-visible,
.vht-code-copy:hover,
.vht-code-copy:focus-visible {
    background: rgba(36, 36, 36, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.entry-content .vht-code-copy.is-copied,
.post-content .vht-code-copy.is-copied,
.vht-code-copy.is-copied {
    opacity: 1 !important;
    background: var(--primary-color, #6d1def) !important;
    border-color: var(--primary-color, #6d1def) !important;
    color: #fff !important;
}

.vht-code-copy__icon {
    display: block;
    width: 14px;
    height: 14px;
    pointer-events: none;
}

html[data-theme="light"] .vht-code-copy,
body:not(.dark-mode):not([data-theme="dark"]) .vht-code-copy {
    background: rgba(255, 255, 255, 0.88) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #333 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .vht-code-copy:hover,
html[data-theme="light"] .vht-code-copy:focus-visible,
body:not(.dark-mode):not([data-theme="dark"]) .vht-code-copy:hover,
body:not(.dark-mode):not([data-theme="dark"]) .vht-code-copy:focus-visible {
    background: #fff !important;
    color: #111 !important;
}

html[data-theme="light"] .vht-code-copy.is-copied,
html[data-theme="light"] .entry-content .vht-code-copy.is-copied,
html[data-theme="light"] .post-content .vht-code-copy.is-copied,
body:not(.dark-mode):not([data-theme="dark"]) .vht-code-copy.is-copied,
body:not(.dark-mode):not([data-theme="dark"]) .entry-content .vht-code-copy.is-copied,
body:not(.dark-mode):not([data-theme="dark"]) .post-content .vht-code-copy.is-copied {
    opacity: 1 !important;
    background: var(--primary-color, #6d1def) !important;
    border-color: var(--primary-color, #6d1def) !important;
    color: #fff !important;
}

/* Overlay the copy control — do not reserve a blank toolbar row above the code.
   Only pad the <pre>, never the wrapping <figure>, or you get a double empty band. */
.entry-content .vht-code-wrap > pre,
.post-content .vht-code-wrap > pre,
.entry-content pre.vht-code-wrap,
.post-content pre.vht-code-wrap {
    padding-top: 12px !important;
    padding-right: 40px !important;
}

.entry-content figure.vht-code-wrap.wp-block-code,
.post-content figure.vht-code-wrap.wp-block-code {
    padding-top: 0 !important;
}

/* ============================================
   Visual Polish Pass 4 - Cards / TOC / Tables /
   End-of-post spacing / Button affordances
   ============================================ */

/* Homepage card titles + excerpts
   NOTE: do not use text-wrap:balance on titles. Firefox balances into
   short first lines with large empty gaps in narrow columns (featured
   sidebar). Chromium tolerated it better, which caused the FF/Edge mismatch. */
.blog-post-container .blog-post-detail .entry-title,
.blog-post-container .blog-post-detail .entry-title a {
    text-wrap: wrap;
}

/* Featured sidebar / small-list: full-width 2-line clamp (match Chromium look) */
.magazine-banner .featured-posts .blog-post-container .blog-post-detail .entry-title,
.blog-post-container.small-list-layout .blog-post-detail .entry-title {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    text-overflow: ellipsis;
    text-wrap: wrap;
    max-width: 100%;
}

.magazine-banner .featured-posts .blog-post-container .blog-post-detail .entry-title a,
.blog-post-container.small-list-layout .blog-post-detail .entry-title a {
    text-wrap: wrap;
}

.blog-post-container .blog-post-detail .post-excerpt,
.blog-post-container .blog-post-detail .post-excerpt p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    margin-bottom: 0;
    text-wrap: wrap;
}

/* Grid card image aspect — reduce CLS while images load */
.blog-post-container.grid-layout .blog-post-image,
.blog-post-container.tile-layout .blog-post-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.blog-post-container.grid-layout .blog-post-image img,
.blog-post-container.tile-layout .blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* View All Posts CTA (homepage footer of sections) */
a.view-all-button,
.view-all-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.35em;
    padding: 11px 22px !important;
    border-radius: 8px !important;
    border: 1px solid transparent !important;
    background-color: var(--primary-color, #6d1def) !important;
    color: #fff !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, border-color 0.2s ease !important;
}

a.view-all-button:hover,
a.view-all-button:focus-visible,
.view-all-button:hover,
.view-all-button:focus-visible {
    background-color: color-mix(in srgb, var(--primary-color, #6d1def) 86%, #000) !important;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 6px 16px rgba(109, 29, 239, 0.28);
    transform: translateY(-1px);
    outline: none;
}

a.view-all-button:focus-visible,
.view-all-button:focus-visible,
.title-heading a.view-all:focus-visible {
    outline: 2px solid var(--primary-color, #6d1def);
    outline-offset: 3px;
}

.title-heading a.view-all:focus-visible {
    opacity: 1;
    color: var(--primary-color) !important;
    background-color: color-mix(in srgb, var(--primary-color) 12%, transparent);
}

/* Older / Newer posts pagination */
.posts-navigation .nav-links a,
.post-navigation .nav-links a {
    display: inline-flex !important;
    align-items: center;
    gap: 0.45em;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    border: 1px solid color-mix(in srgb, var(--border-clr) 80%, transparent) !important;
    background: color-mix(in srgb, var(--bg-clr) 92%, var(--primary-color) 8%) !important;
    color: var(--clr-text) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease !important;
}

.posts-navigation .nav-links a:hover,
.posts-navigation .nav-links a:focus-visible,
.post-navigation .nav-links a:hover,
.post-navigation .nav-links a:focus-visible {
    border-color: var(--primary-color, #6d1def) !important;
    color: var(--primary-color, #6d1def) !important;
    background: color-mix(in srgb, var(--primary-color) 12%, transparent) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    outline: none;
}

/* Figure / caption polish (screenshots) */
.entry-content .wp-block-image img,
.entry-content .wp-caption img,
.entry-content figure:not(.wp-block-code) img,
.post-content .wp-block-image img,
.post-content .wp-caption img,
.post-content figure:not(.wp-block-code) img {
    border-radius: 12px !important;
    border: 1px solid color-mix(in srgb, var(--border-clr) 70%, transparent);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
}

.entry-content figcaption,
.entry-content .wp-caption-text,
.entry-content .wp-element-caption,
.post-content figcaption,
.post-content .wp-caption-text,
.post-content .wp-element-caption {
    font-size: 0.92em !important;
    line-height: 1.45 !important;
    opacity: 0.82 !important;
    color: color-mix(in srgb, var(--clr-text) 78%, transparent) !important;
    margin-top: 0.65em !important;
}

/* End-of-post breathing room */
.single .entry-footer,
body.single-post .entry-footer {
    margin-top: 2.25rem !important;
    padding-top: 1.25rem !important;
    border-top: 1px solid color-mix(in srgb, var(--border-clr) 75%, transparent);
}

.single .wp-post-author-wrap,
body.single-post .wp-post-author-wrap {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
}

.single .post-navigation,
body.single-post .post-navigation,
.single .posts-navigation,
body.single-post .posts-navigation {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
    padding-bottom: 0.25rem;
}

/* Keep wpDiscuz Article Rating clear of prev/next post nav.
   Preserve plugin flex centering (do not force display:block). */
.single .post-navigation + .wpdiscuz_top_clearing,
body.single-post .post-navigation + .wpdiscuz_top_clearing {
    clear: both;
    height: 0;
    margin: 0;
    padding: 0;
}

.single #wpd-post-rating,
body.single-post #wpd-post-rating,
.single .comments-area > #wpd-post-rating,
body.single-post .comments-area > #wpd-post-rating {
    clear: both !important;
    display: flex !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: 1.75rem !important;
    margin-bottom: 1.5rem !important;
    padding-top: 1.25rem !important;
    border-top: 1px solid color-mix(in srgb, var(--border-clr) 75%, transparent);
}

.single #wpd-post-rating .wpd-rating-wrap,
body.single-post #wpd-post-rating .wpd-rating-wrap {
    margin-top: 0.25rem;
    margin-left: auto;
    margin-right: auto;
}

.single #comments,
.single .comments-area,
.single .wpd-form-wrap,
body.single-post #comments,
body.single-post .comments-area {
    margin-top: 2.5rem !important;
}

/* Tables — fit the content column on mobile; scroll only if truly wider.
   Avoid min-width floors (e.g. 520px) that force sideways scrolling. */
.entry-content .wp-block-table,
.post-content .wp-block-table,
.entry-content figure.wp-block-table,
.post-content figure.wp-block-table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--border-clr) 70%, transparent);
    scrollbar-width: thin;
}

.entry-content .wp-block-table table,
.post-content .wp-block-table table {
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.entry-content .wp-block-table th,
.entry-content .wp-block-table td,
.post-content .wp-block-table th,
.post-content .wp-block-table td {
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.entry-content .wp-block-embed,
.entry-content .wp-block-video,
.post-content .wp-block-embed,
.post-content .wp-block-video {
    max-width: 100%;
    overflow-x: auto;
}

/* More in this topic — compact related list (PoC) */
.vht-topic-continue {
    margin: 2rem 0 1.75rem;
    padding: 1.15rem 1.2rem 1rem;
    border: 1px solid color-mix(in srgb, var(--border-clr) 80%, transparent);
    border-radius: 12px;
    background: color-mix(in srgb, var(--bg-clr) 94%, var(--primary-color) 6%);
}

.vht-topic-continue__title {
    margin: 0 0 0.85rem !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--clr-text) 72%, transparent) !important;
    line-height: 1.2 !important;
}

/* Beat theme/entry-content list indent so rows align with the title */
.vht-topic-continue .vht-topic-continue__list,
.entry-content ul.vht-topic-continue__list,
.entry-content .vht-topic-continue ul {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    margin-block: 0 !important;
    margin-inline: 0 !important;
    padding: 0 !important;
    padding-block: 0 !important;
    padding-inline: 0 !important;
    padding-inline-start: 0 !important;
    padding-left: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.vht-topic-continue .vht-topic-continue__item,
.entry-content .vht-topic-continue li {
    margin: 0 !important;
    padding: 0 !important;
    padding-inline-start: 0 !important;
    padding-left: 0 !important;
    list-style: none !important;
}

.vht-topic-continue .vht-topic-continue__item::before,
.vht-topic-continue .vht-topic-continue__item::marker,
.entry-content .vht-topic-continue li::before,
.entry-content .vht-topic-continue li::marker {
    content: none !important;
    display: none !important;
}

.vht-topic-continue__link {
    display: flex !important;
    align-items: center;
    gap: 0.85rem;
    /* Vertical tap padding only — no horizontal indent vs title */
    padding: 0.4rem 0 !important;
    margin: 0 !important;
    border-radius: 10px;
    text-decoration: none !important;
    border-bottom: none !important;
    color: inherit !important;
    transition: background-color 0.15s ease;
}

.vht-topic-continue__link:hover,
.vht-topic-continue__link:focus-visible {
    background: color-mix(in srgb, var(--primary-color) 12%, transparent);
    color: inherit !important;
    text-decoration: none !important;
    outline: none;
}

@media (max-width: 600px) {
    .vht-topic-continue {
        padding: 1rem 0.9rem 0.85rem;
    }

    .vht-topic-continue__link {
        gap: 0.7rem;
    }
}

.vht-topic-continue__thumb {
    display: block !important;
    position: relative !important;
    flex: 0 0 72px;
    width: 72px !important;
    height: 72px !important;
    min-width: 72px;
    min-height: 72px;
    border-radius: 10px;
    overflow: hidden;
    background: color-mix(in srgb, var(--border-clr) 55%, transparent);
}

@media (min-width: 768px) {
    .vht-topic-continue__thumb {
        flex-basis: 84px;
        width: 84px !important;
        height: 84px !important;
        min-width: 84px;
        min-height: 84px;
    }
}

/* Beat CLS rules that force .wp-post-image to 16:9 / height:auto */
.vht-topic-continue img.vht-topic-continue__img.wp-post-image,
.vht-topic-continue__img,
.vht-topic-continue__thumb-fallback {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    object-position: center !important;
}

.vht-topic-continue__thumb-fallback {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--primary-color) 35%, transparent),
        color-mix(in srgb, var(--border-clr) 70%, transparent)
    );
}

.vht-topic-continue__text {
    min-width: 0;
    flex: 1;
}

.vht-topic-continue__name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    text-wrap: wrap;
}

.vht-topic-continue__link:hover .vht-topic-continue__name,
.vht-topic-continue__link:focus-visible .vht-topic-continue__name {
    color: var(--primary-color, #6d1def);
}

/* On this page TOC */
.vht-otp {
    margin: 0 0 1.75rem;
    padding: 1rem 1.15rem 1.05rem;
    border: 1px solid color-mix(in srgb, var(--border-clr) 80%, transparent);
    border-left: 3px solid var(--primary-color, #6d1def);
    border-radius: 10px;
    background: color-mix(in srgb, var(--bg-clr) 92%, var(--primary-color) 8%);
}

.vht-otp__title {
    margin: 0 0 0.65rem !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--clr-text) 72%, transparent) !important;
    line-height: 1.2 !important;
}

.vht-otp__list {
    margin: 0 !important;
    padding: 0 0 0 1.15rem !important;
    list-style: decimal;
}

.vht-otp__list li {
    margin: 0.2rem 0 !important;
    padding: 0 !important;
    font-size: 0.98rem !important;
    line-height: 1.45 !important;
}

.vht-otp__list a {
    color: inherit !important;
    text-decoration: none !important;
    border-bottom: none !important;
    text-underline-offset: 0 !important;
    text-decoration-thickness: 0 !important;
}

.vht-otp__list a:hover,
.vht-otp__list a:focus-visible {
    color: var(--primary-color, #6d1def) !important;
    text-decoration: underline !important;
    text-decoration-color: var(--primary-color, #6d1def) !important;
    text-underline-offset: 3px !important;
    text-decoration-thickness: 2px !important;
}

/* Sticky-nav clearance for TOC / hash jumps (functional with On this page) */
body.sticky-nav .entry-content :is(h2, h3, h4)[id],
body.sticky-nav .post-content :is(h2, h3, h4)[id] {
    scroll-margin-top: 80px;
}

/* H2 copy-link control */
.entry-content h2.vht-heading,
.post-content h2.vht-heading {
    position: relative;
    padding-right: 2rem;
}

.vht-h-link {
    position: absolute;
    top: 0.2em;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    margin: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: color-mix(in srgb, var(--clr-text) 45%, transparent);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease, color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.entry-content h2.vht-heading:hover .vht-h-link,
.entry-content h2.vht-heading:focus-within .vht-h-link,
.vht-h-link:focus-visible {
    opacity: 1;
}

.vht-h-link:hover,
.vht-h-link:focus-visible {
    color: var(--primary-color, #6d1def);
    background: color-mix(in srgb, var(--primary-color) 12%, transparent);
    border-color: color-mix(in srgb, var(--primary-color) 28%, transparent);
    outline: none;
}

.vht-h-link.is-copied {
    opacity: 1 !important;
    color: #fff !important;
    background: var(--primary-color, #6d1def) !important;
    border-color: var(--primary-color, #6d1def) !important;
}

.vht-h-link svg {
    display: block;
}

/* Reading progress — thin top bar */
.vht-read-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 100000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    background: transparent;
}

.vht-read-progress.is-active {
    opacity: 1;
}

.vht-read-progress__fill {
    width: 100%;
    height: 100%;
    transform-origin: left center;
    transform: scaleX(0);
    background: linear-gradient(90deg, var(--primary-color, #6d1def), #a78bfa);
    will-change: transform;
}

@media (max-width: 991px) {
    body.sticky-nav .entry-content :is(h2, h3, h4)[id],
    body.sticky-nav .post-content :is(h2, h3, h4)[id] {
        scroll-margin-top: 72px;
    }

    .blog-post-container .blog-post-detail .post-excerpt,
    .blog-post-container .blog-post-detail .post-excerpt p {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    /* Always show copy control on touch / narrow viewports */
    .vht-h-link {
        opacity: 0.55;
    }
}

@media (prefers-reduced-motion: reduce) {
    a.view-all-button,
    .view-all-button,
    .posts-navigation .nav-links a,
    .post-navigation .nav-links a,
    .vht-h-link,
    .vht-read-progress {
        transition: none !important;
    }

    a.view-all-button,
    .view-all-button {
        transform: none !important;
    }
}

/* ============================================
   Discuss this — end-of-post community CTA
   ============================================ */

.vht-discuss {
    margin: 1.5rem 0 1.75rem;
    padding: 1.15rem 1.2rem 1.05rem;
    border: 1px solid color-mix(in srgb, var(--border-clr) 80%, transparent);
    border-left: 3px solid var(--primary-color, #6d1def);
    border-radius: 12px;
    background: color-mix(in srgb, var(--bg-clr) 92%, var(--primary-color) 8%);
}

.vht-discuss__title {
    margin: 0 0 0.85rem !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--clr-text) 72%, transparent) !important;
    line-height: 1.2 !important;
}

/* Topic list — simple bullets, no card outlines */
.vht-discuss__list {
    list-style: none !important;
    margin: 0 0 1rem !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.vht-discuss__item {
    margin: 0 !important;
    padding: 0 !important;
}

.vht-discuss__link {
    display: flex !important;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.35rem 0 !important;
    border: none !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: inherit !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-thickness: 0 !important;
    text-decoration-color: transparent !important;
    transition: color 0.15s ease;
}

.vht-discuss__link::before {
    content: "";
    flex: 0 0 0.45rem;
    width: 0.45rem;
    height: 0.45rem;
    margin-top: 0.45em;
    border-radius: 50%;
    background: var(--primary-color, #6d1def);
    opacity: 0.9;
}

.vht-discuss__link:hover,
.vht-discuss__link:focus-visible {
    background: transparent !important;
    box-shadow: none !important;
    color: var(--primary-color, #6d1def) !important;
    text-decoration: none !important;
    outline: none;
}

.vht-discuss__empty {
    margin: 0 0 1rem !important;
    padding: 0;
    border: none;
    border-radius: 0;
    font-size: 0.95rem;
    line-height: 1.45;
    color: color-mix(in srgb, var(--clr-text) 78%, transparent);
}

/* CTAs — match See author's posts solid button */
.vht-discuss__actions {
    margin: 0 !important;
    padding-top: 0.85rem !important;
    border-top: 1px solid color-mix(in srgb, var(--border-clr) 65%, transparent);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.vht-discuss__cta,
.entry-content .vht-discuss a.vht-discuss__cta,
.post-content .vht-discuss a.vht-discuss__cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.35em;
    padding: 0.65rem 1.15rem !important;
    border-radius: 8px !important;
    border: 1px solid transparent !important;
    background-color: var(--primary-color, #6d1def) !important;
    color: #fff !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.01em;
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-thickness: 0 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease !important;
}

.vht-discuss__cta:hover,
.vht-discuss__cta:focus-visible,
.entry-content .vht-discuss a.vht-discuss__cta:hover,
.entry-content .vht-discuss a.vht-discuss__cta:focus-visible,
.post-content .vht-discuss a.vht-discuss__cta:hover,
.post-content .vht-discuss a.vht-discuss__cta:focus-visible {
    background-color: color-mix(in srgb, var(--primary-color, #6d1def) 86%, #000) !important;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 6px 16px rgba(109, 29, 239, 0.28);
    transform: translateY(-1px);
    outline: none;
}

.vht-discuss__cta:focus-visible,
.entry-content .vht-discuss a.vht-discuss__cta:focus-visible {
    outline: 2px solid var(--primary-color, #6d1def);
    outline-offset: 3px;
}

.vht-discuss__cta::before,
.vht-discuss__all::before {
    content: none !important;
    display: none !important;
}

.vht-discuss__sep {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .vht-discuss__cta,
    .vht-discuss__cta:hover,
    .vht-discuss__cta:focus-visible {
        transition: none !important;
        transform: none !important;
    }
}

@media (max-width: 600px) {
    .vht-discuss {
        padding: 1rem 0.9rem 0.9rem;
    }

    .vht-discuss__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .vht-discuss__cta {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   Mobile reading air — headings / lists / code
   Extra space so Mediavine in-content ads breathe
   ============================================ */
@media (max-width: 991px) {
    .entry-content h2:not(.vht-topic-continue__title):not(.vht-discuss__title),
    .post-content h2:not(.vht-topic-continue__title):not(.vht-discuss__title) {
        margin-top: 2.65em !important;
        margin-bottom: 0.75em !important;
    }

    .entry-content h3,
    .post-content h3 {
        margin-top: 2.05em !important;
        margin-bottom: 0.55em !important;
    }

    .entry-content h2:first-child,
    .entry-content > h2:first-of-type,
    .post-content h2:first-child,
    .post-content > h2:first-of-type {
        margin-top: 0.85em !important;
    }

    .entry-content ul:not(.vht-topic-continue__list):not(.vht-discuss__list),
    .entry-content ol,
    .post-content ul:not(.vht-topic-continue__list):not(.vht-discuss__list),
    .post-content ol {
        margin-top: 1.15em !important;
        margin-bottom: 1.35em !important;
    }

    .entry-content ul:not(.vht-topic-continue__list):not(.vht-discuss__list) li,
    .entry-content ol li,
    .post-content ul:not(.vht-topic-continue__list):not(.vht-discuss__list) li,
    .post-content ol li {
        margin-block: 0.4em !important;
        padding-block: 0.1em;
    }

    .entry-content pre,
    .entry-content .wp-block-code,
    .entry-content figure.wp-block-code,
    .entry-content .vht-code-wrap,
    .post-content pre,
    .post-content .wp-block-code,
    .post-content figure.wp-block-code,
    .post-content .vht-code-wrap {
        margin-top: 1.5em !important;
        margin-bottom: 1.45em !important;
    }

    .entry-content p + pre,
    .entry-content p + .wp-block-code,
    .entry-content p + .vht-code-wrap,
    .post-content p + pre,
    .post-content p + .wp-block-code,
    .post-content p + .vht-code-wrap {
        margin-top: 1.25em !important;
    }
}

/* ============================================
   Keep exploring — home / archive depth strip
   ============================================ */
.vht-keep-exploring {
    margin: 2rem 0 1.25rem;
    padding: 1.15rem 1.1rem 1rem;
    border: 1px solid color-mix(in srgb, var(--border-clr) 55%, transparent);
    border-radius: 12px;
    background: color-mix(in srgb, var(--bg-clr-light, #2a2a2a) 55%, transparent);
}

.vht-keep-exploring__title {
    margin: 0 0 0.85rem !important;
    padding: 0 !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.01em;
    color: var(--clr-text) !important;
    border: none !important;
}

.vht-keep-exploring__list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid;
    gap: 0.65rem;
}

.vht-keep-exploring__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none !important;
    color: inherit !important;
    padding: 0.35rem 0.25rem;
    border-radius: 8px;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.vht-keep-exploring__link:hover,
.vht-keep-exploring__link:focus-visible {
    background: color-mix(in srgb, var(--primary-color, #6d1def) 12%, transparent);
    outline: none;
}

.vht-keep-exploring__thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-clr-light, #333);
}

.vht-keep-exploring__img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

.vht-keep-exploring__thumb-fallback {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(109, 29, 239, 0.35), rgba(66, 133, 244, 0.25));
}

.vht-keep-exploring__name {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--clr-text);
}

/* Clearer archive pagination for Direct returners */
.posts-navigation {
    margin-top: 1.75rem !important;
    margin-bottom: 0.5rem !important;
}

.posts-navigation .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: space-between;
    align-items: center;
}

.posts-navigation .nav-links a {
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1rem !important;
    border-radius: 8px !important;
    border: 1px solid color-mix(in srgb, var(--border-clr) 60%, transparent) !important;
    background: color-mix(in srgb, var(--bg-clr-light, #2a2a2a) 70%, transparent) !important;
    color: var(--clr-text) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
}

.posts-navigation .nav-links a:hover,
.posts-navigation .nav-links a:focus-visible {
    border-color: var(--primary-color, #6d1def) !important;
    color: var(--primary-color, #6d1def) !important;
    background: color-mix(in srgb, var(--primary-color, #6d1def) 12%, transparent) !important;
}

@media (max-width: 991px) {
    .vht-keep-exploring {
        margin: 1.5rem 0 1rem;
        padding: 1rem 0.9rem 0.85rem;
    }

    .blog-archive-layout .post-excerpt {
        margin-top: 0.35rem;
        opacity: 0.88;
        font-size: 0.95rem;
        line-height: 1.45;
    }

    .posts-navigation .nav-links a {
        flex: 1 1 auto;
        justify-content: center;
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vht-keep-exploring__link,
    .posts-navigation .nav-links a {
        transition: none !important;
    }
}