/**
 * Voltage Component Overrides
 * Loaded after style.css to handle Blocksy-specific selectors
 * and Gutenberg block plugin (Stackable, Essential Blocks, CF7) styling.
 */

/* ============================================================
   v1.10.1 — MOBILE OVERFLOW HARD GUARD (2026-05-09)
   --------------------------------------------------------------
   Bulletproof defensive guard against ANY element that could
   cause horizontal page scroll on mobile. The single root cause
   of "page renders at 60% width on iPhone" is some descendant
   leaking past viewport — usually the desktop nav, a wide
   image, or a marquee not properly clipped.
   overflow-x: clip is chosen over hidden so no scrollbar
   artifacts appear; falls back to hidden for older browsers.
   ============================================================ */
html, body {
    overflow-x: hidden;       /* Fallback for older WebKit */
    overflow-x: clip;         /* Modern, prevents containing-block escape */
    max-width: 100%;
    width: 100%;
}
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
.wp-site-blocks {
    overflow-x: clip;
    max-width: 100%;
    width: 100%;
}
/* Universal width cap for the most common offenders below 900px.
   Marquee track is exempt because it MUST overflow its parent
   (which has its own overflow:hidden mask). */
@media (max-width: 900px) {
    img,
    video,
    iframe,
    embed,
    object,
    table {
        max-width: 100% !important;
        height: auto;
    }
    .wp-site-blocks > *,
    .wp-block-template-part,
    .wp-block-group,
    .wp-block-cover,
    .wp-block-columns,
    .wp-block-column,
    section, header, footer, main, nav, article {
        max-width: 100vw;
    }
    /* Belt-and-braces: re-assert nav/hamburger states in case
       another rule somehow overrides them. */
    .voltage-nav:not(.is-open) {
        display: none !important;
    }
    .voltage-nav.is-open {
        display: flex !important;
    }
    .voltage-nav-toggle {
        display: inline-flex !important;
    }
    /* Hero must NEVER overflow, even with bg image + orbs. */
    .voltage-hero {
        overflow: hidden !important;
        max-width: 100vw !important;
    }
    /* Prevent very long words / URLs from blowing out narrow cards. */
    body, p, h1, h2, h3, h4, h5, h6, li, a, span, div {
        overflow-wrap: anywhere;
        word-wrap: break-word;
    }
    /* Marquee inner stays clipped even if a child gets weird. */
    .voltage-marquee,
    .voltage-marquee__inner {
        overflow: hidden !important;
        max-width: 100vw;
    }
}

/* ============================================================
   AEO DEFINITION BLOCK (v1.8.0)
   --------------------------------------------------------------
   Featured-Snippet-shaped 50-word block placed directly under H1
   on key pages. Designed for AI engines (ChatGPT, Claude, Perplexity,
   Gemini) and Google Featured Snippets to lift verbatim.
   Visually subtle: thin lime left border, slightly larger type, no
   decoration that competes with the editorial layout.
   ============================================================ */
.voltage-aeo-definition {
    border-left: 3px solid var(--lime) !important;
    padding: 18px 22px !important;
    margin: 24px auto 32px !important; /* v1.8.2: auto centers horizontally */
    max-width: 760px !important;
    background: rgba(217, 249, 157, 0.04) !important;
    border-radius: 0 12px 12px 0 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 17px !important;
    line-height: 1.6 !important;
    color: var(--text) !important;
    font-weight: 500 !important;
    letter-spacing: -0.1px !important;
}
.voltage-aeo-definition strong {
    color: var(--lime) !important;
    font-weight: 700 !important;
}
@media (max-width: 640px) {
    .voltage-aeo-definition {
        font-size: 15.5px !important;
        padding: 16px 18px !important;
    }
}

/* ============================================================
   AEO Q&A SECTIONS (v1.8.0)
   --------------------------------------------------------------
   Question-shaped H2 + 40-60 word answer pairs. Targets Google
   People-Also-Ask boxes and AI engine question parsing.
   Subtle styling — looks editorial, not clunky-FAQ.
   ============================================================ */
.voltage-aeo-qa {
    margin: 48px auto !important; /* v1.8.2: auto centers horizontally */
    max-width: 760px !important;
}
.voltage-aeo-qa > h2 {
    font-family: 'Archivo', sans-serif !important;
    font-weight: 700 !important;
    font-size: clamp(22px, 3vw, 28px) !important;
    text-transform: none !important; /* keep questions readable */
    letter-spacing: -0.5px !important;
    line-height: 1.25 !important;
    color: var(--text) !important;
    margin: 32px 0 12px !important;
}
.voltage-aeo-qa > h2:first-child {
    margin-top: 0 !important;
}
.voltage-aeo-qa p {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
    color: var(--text-dim) !important;
    margin: 0 0 12px !important;
}

/* ============================================================
   STACKABLE BLOCKS — paint Voltage tokens through their selectors
   ============================================================ */
.ugb-button,
.stk-button {
    border-radius: var(--radius-full) !important;
    background: var(--lime) !important;
    color: var(--bg) !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase;
}

.ugb-card,
.stk-card {
    background: var(--bg-card) !important;
    border: 2px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
}

/* ============================================================
   ESSENTIAL BLOCKS — same treatment
   ============================================================ */
.eb-button-wrapper .eb-button {
    border-radius: var(--radius-full) !important;
    background: var(--lime) !important;
    color: var(--bg) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
}

/* ============================================================
   CONTACT FORM 7 — Voltage styling
   ============================================================ */
.wpcf7-form {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.wpcf7-form label {
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.wpcf7-form input,
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    margin-bottom: 20px;
}

.wpcf7-submit {
    width: auto !important;
    margin-top: 8px;
}

.wpcf7-not-valid-tip,
.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
    color: var(--pink-bright) !important;
    font-size: 12px;
}

.wpcf7-mail-sent-ok {
    background: rgba(217, 249, 157, 0.1) !important;
    border: 2px solid var(--lime) !important;
    color: var(--lime) !important;
    border-radius: var(--radius-md) !important;
    padding: 16px 20px !important;
}

/* ============================================================
   BLOCKSY-SPECIFIC OVERRIDES
   ============================================================ */
/* Override Blocksy header/nav defaults */
[data-id="header"] [data-row="middle"],
[data-id="footer"] {
    background: transparent !important;
}

/* Blocksy buttons inside hero etc. */
.ct-button,
.ct-button-ghost {
    border-radius: var(--radius-full) !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px;
    border-width: 2px !important;
}

/* Blocksy search modal */
.ct-search-form {
    background: var(--bg-card) !important;
}
.ct-search-form input {
    background: var(--bg) !important;
    color: var(--text) !important;
    border: 2px solid var(--border) !important;
    border-radius: var(--radius-full) !important;
}

/* Blocksy mobile menu overlay */
.ct-mobile-menu,
[data-device="mobile"] .ct-header-mobile {
    background: var(--bg) !important;
}

/* Blocksy widgets */
.widget {
    background: transparent;
    color: var(--text-dim);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.wp-block-query-pagination {
    gap: 12px;
}

.wp-block-query-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 100px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    color: var(--text-dim);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.wp-block-query-pagination .page-numbers:hover {
    border-color: var(--lime);
    color: var(--lime);
}

.wp-block-query-pagination .page-numbers.current {
    background: var(--lime);
    color: var(--bg);
    border-color: var(--lime);
}

/* ============================================================
   COMMENTS SECTION
   ============================================================ */
.wp-block-comments,
.voltage-comments {
    margin-top: 80px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

.wp-block-post-comments-form input,
.wp-block-post-comments-form textarea {
    margin-bottom: 16px;
}

.comment-list .comment {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 16px;
}

.comment-meta a {
    color: var(--lime);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.comment-content {
    color: var(--text-dim);
    line-height: 1.65;
    margin-top: 12px;
}

/* ============================================================
   POST META — date, category, tags
   ============================================================ */
.wp-block-post-date,
.entry-meta {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.wp-block-post-terms a {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(236, 72, 153, 0.12);
    color: var(--pink) !important;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-right: 6px;
    text-decoration: none !important;
}
.wp-block-post-terms a:hover {
    background: var(--pink);
    color: var(--text) !important;
}

/* ============================================================
   READ MORE LINK
   ============================================================ */
.voltage-read-more {
    color: var(--lime);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}
.voltage-read-more:hover {
    color: var(--lime-bright);
}

/* ============================================================
   KIT FORM STYLING (FormKit / ConvertKit embed)
   --------------------------------------------------------------
   v1.7.1 fix: Kit's external CSS injects `padding:12px 20px !important`
   and `box-sizing:content-box !important` which inflates a 50px-tall
   pill input into 78px and breaks vertical alignment with the
   Subscribe button. Higher-specificity selectors below override Kit
   without needing JS or the fragile inline-style hack.
   ============================================================ */

/* Restructure the form as a flex row with vertical centering. */
.voltage-newsletter-form .formkit-form,
form.formkit-form,
form.seva-form.formkit-form {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

/* Kit's wrapper for inputs */
form.formkit-form .formkit-fields {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 720px !important;
    justify-content: center !important;
    margin: 0 !important;
}

form.formkit-form .formkit-field {
    flex: 1 1 280px !important;
    min-width: 0 !important;
    margin: 0 !important;
}

/* The pill input — force border-box so 50px height stays 50px regardless
   of any padding Kit injects. Higher selector specificity (input + class
   + attr) beats plain .formkit-input on Kit's stylesheet. */
input.formkit-input,
input[type="email"].formkit-input,
form.formkit-form input.formkit-input {
    box-sizing: border-box !important;
    height: 50px !important;
    line-height: 46px !important;
    padding: 0 20px !important;
    margin: 0 !important;
    width: 100% !important;
    background: var(--bg) !important;
    border: 2px solid var(--border) !important;
    border-radius: var(--radius-full) !important;
    color: var(--text) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    outline: none !important;
    vertical-align: middle !important;
}
input.formkit-input:focus,
input[type="email"].formkit-input:focus {
    border-color: var(--lime) !important;
    box-shadow: var(--shadow-lime) !important;
}

/* The Subscribe button — same height & box-sizing so it lines up. */
button.formkit-submit,
form.formkit-form button.formkit-submit,
form.formkit-form input[type="submit"].formkit-submit {
    box-sizing: border-box !important;
    height: 50px !important;
    line-height: 46px !important;
    padding: 0 28px !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
    background: var(--lime) !important;
    color: var(--bg) !important;
    border: 2px solid var(--lime) !important;
    border-radius: var(--radius-full) !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s !important;
    vertical-align: middle !important;
}
button.formkit-submit:hover,
form.formkit-form button.formkit-submit:hover {
    background: var(--lime-bright) !important;
    border-color: var(--lime-bright) !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: var(--shadow-lime) !important;
}

/* Inner span Kit wraps button label in */
form.formkit-form .formkit-submit > span,
form.formkit-form .formkit-submit .formkit-submit-label {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    line-height: 1 !important;
}

.formkit-disclaimer {
    color: var(--text-muted) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    text-align: center !important;
    width: 100% !important;
    margin-top: 12px !important;
}

/* Tiny screens — stack input above button cleanly */
@media (max-width: 540px) {
    form.formkit-form .formkit-fields {
        flex-direction: column !important;
    }
    form.formkit-form .formkit-field,
    form.formkit-form button.formkit-submit {
        width: 100% !important;
        flex: 1 1 100% !important;
    }
}

/* ============================================================
   RESPONSIVE OVERRIDES — page templates
   ============================================================ */
@media (max-width: 1024px) {
    main .wp-block-columns {
        flex-wrap: wrap !important;
    }
    main .wp-block-columns > .wp-block-column {
        flex-basis: calc(50% - 10px) !important;
    }
}

@media (max-width: 768px) {
    main .wp-block-columns {
        flex-direction: column !important;
    }
    main .wp-block-columns > .wp-block-column {
        flex-basis: 100% !important;
    }
    /* All 2-col / 3-col grids inside main collapse to single column.
       Catches both repeat(N,1fr) and explicit 1fr 1fr / 1fr 1fr 1fr patterns. */
    main [style*="grid-template-columns:repeat(3,1fr)"],
    main [style*="grid-template-columns:repeat(2,1fr)"],
    main [style*="grid-template-columns:1fr 1fr 1fr"],
    main [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    /* Featured/podcast/episode horizontal split layouts collapse to column */
    main [style*="grid-template-columns:280px 1fr"],
    main [style*="grid-template-columns:240px 1fr"],
    main [style*="grid-template-columns:1fr 240px"],
    main [style*="grid-template-columns:140px 1fr"],
    main [style*="grid-template-columns:120px 1fr auto"],
    main [style*="grid-template-columns:80px 1fr"] {
        grid-template-columns: 1fr !important;
        text-align: left !important;
    }
    /* Past speaking engagements row layout collapses */
    main [style*="grid-template-columns:120px 1fr auto"] {
        gap: 12px !important;
    }
    /* AWC active hero card: limit cover art width when stacked */
    .voltage-section-tag + section [style*="grid-template-columns:280px 1fr"] > a:first-child,
    main [style*="grid-template-columns:280px 1fr"] > a:first-child {
        max-width: 280px;
        margin: 0 auto 24px;
    }
    /* Section padding tightens on mobile to give content more room */
    main > section[style*="padding-top:120px"],
    main > section[style*="padding-top:140px"] {
        padding-top: 64px !important;
        padding-bottom: 64px !important;
    }
    /* Fixed-px containers should never overflow */
    main [style*="max-width:980px"],
    main [style*="max-width:1100px"],
    main [style*="max-width:1200px"] {
        max-width: 100% !important;
    }
    /* Inner padding tightens on mobile cards */
    main [style*="padding:48px"] {
        padding: 24px !important;
    }
    main [style*="padding:36px"] {
        padding: 20px !important;
    }
    main [style*="padding:32px"] {
        padding: 20px !important;
    }
    main [style*="padding:28px"] {
        padding: 18px !important;
    }
    /* Episode number block shrinks when stacked */
    main [style*="font-size:56px"][style*="font-weight:800"] {
        font-size: 36px !important;
    }
    main [style*="font-size:32px"][style*="font-weight:800"] {
        font-size: 28px !important;
    }
}

@media (max-width: 480px) {
    /* Very small phones: even tighter padding + smaller hero typography */
    main > section[style*="padding-top:140px"] {
        padding-top: 48px !important;
    }
    /* H1 hero ceiling for very small screens */
    .voltage-hero h1 {
        font-size: clamp(38px, 11vw, 64px) !important;
        letter-spacing: -1.5px !important;
    }
}

/* ============================================================
   PODCAST COVER LINKS — wraps album art in clickable tile with
   hover lift. Used on /, /podcast/, /are-we-cooked/.
   ============================================================ */

.voltage-cover-link {
    transition: transform .35s ease, box-shadow .35s ease;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.15);
    position: relative;
}

.voltage-cover-link img {
    transition: transform .5s ease;
}

.voltage-cover-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(217, 249, 157, 0.25);
}

.voltage-cover-link:hover img {
    transform: scale(1.05);
}

/* ============================================================
   HEADER NAV — 7 items, gracefully collapse + mobile hamburger
   ============================================================ */

.voltage-nav a {
    transition: color .2s ease;
}

.voltage-nav a:hover {
    color: var(--wp--preset--color--voltage-lime) !important;
}

/* Tablet: tighter spacing + smaller font */
@media (max-width: 1100px) {
    .voltage-nav {
        gap: 18px !important;
        font-size: 13px !important;
    }
}

/* Below 900px: hamburger menu */
@media (max-width: 900px) {
    .voltage-nav-cta {
        display: none !important;
    }

    .voltage-site-header > .wp-block-group > .wp-block-group {
        position: relative;
    }

    .voltage-nav {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        background: var(--wp--preset--color--voltage-bg);
        border: 1px solid var(--wp--preset--color--voltage-purple);
        border-top: none;
        padding: 16px 0;
        z-index: 100;
        font-size: 16px !important;
    }

    .voltage-nav.is-open {
        display: flex !important;
    }

    .voltage-nav a {
        padding: 14px 24px;
        border-bottom: 1px solid rgba(168, 85, 247, 0.15);
    }

    .voltage-nav a:last-child {
        border-bottom: none;
    }

    /* Show toggle button */
    .voltage-nav-toggle {
        display: inline-flex !important;
    }
}

/* Hamburger toggle button (hidden on desktop, JS shows it on mobile) */
.voltage-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 1.5px solid var(--wp--preset--color--voltage-purple);
    border-radius: 100px;
    color: var(--wp--preset--color--voltage-text);
    cursor: pointer;
    font-size: 20px;
    margin-left: 8px;
}

.voltage-nav-toggle:hover {
    border-color: var(--wp--preset--color--voltage-lime);
    color: var(--wp--preset--color--voltage-lime);
}

/* ============================================================
   BLOG POST CARDS — index.html, page-blog.html, home.html
   Constrains the post-title block so big Archivo uppercase text
   doesn't break inside narrow 3-column cards. Sentence case +
   tighter letter spacing + line-clamp for visual rhythm.
   ============================================================ */

.voltage-post-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color .25s ease, transform .25s ease;
}

.voltage-post-card:hover {
    border-color: var(--wp--preset--color--voltage-lime) !important;
    transform: translateY(-2px);
}

.voltage-post-card .wp-block-post-featured-image {
    margin: 0 0 4px;
    overflow: hidden;
    border-radius: 12px;
}

.voltage-post-card .wp-block-post-featured-image img {
    border-radius: 12px;
    transition: transform .35s ease;
}

.voltage-post-card:hover .wp-block-post-featured-image img {
    transform: scale(1.03);
}

/* Category pill */
.voltage-post-card__cat,
.voltage-post-card .wp-block-post-terms {
    display: inline-flex !important;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 !important;
    font-family: 'Archivo', sans-serif;
    font-size: 11px !important;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.voltage-post-card__cat a,
.voltage-post-card .wp-block-post-terms a {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(236, 72, 153, 0.12);
    border-radius: 100px;
    text-decoration: none;
    color: var(--wp--preset--color--voltage-pink-bright) !important;
    font-size: 11px;
    line-height: 1.4;
}

.voltage-post-card__cat a:hover,
.voltage-post-card .wp-block-post-terms a:hover {
    background: rgba(236, 72, 153, 0.22);
}

/* Post title — constrained to fit 3-col card width cleanly */
.voltage-post-card__title,
.voltage-post-card .wp-block-post-title {
    margin: 4px 0 2px !important;
    font-family: 'Archivo', sans-serif;
    font-size: 19px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.4px !important;
    text-transform: none !important;
    /* clamp to 3 lines to keep card heights even */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.voltage-post-card__title a,
.voltage-post-card .wp-block-post-title a {
    color: var(--wp--preset--color--voltage-text) !important;
    text-decoration: none;
    text-transform: none !important;
    background-image: none !important;
}

.voltage-post-card__title a:hover,
.voltage-post-card .wp-block-post-title a:hover {
    color: var(--wp--preset--color--voltage-lime) !important;
}

/* Post excerpt — tight, 3-line clamp */
.voltage-post-card__excerpt,
.voltage-post-card .wp-block-post-excerpt {
    margin: 0 !important;
}

.voltage-post-card__excerpt p,
.voltage-post-card .wp-block-post-excerpt__excerpt {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    color: var(--wp--preset--color--voltage-text-dim) !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.voltage-post-card__excerpt .wp-block-post-excerpt__more-link {
    display: none !important;
}

/* Post date — small caps style */
.voltage-post-card__date,
.voltage-post-card .wp-block-post-date {
    margin: 4px 0 0 !important;
    font-family: 'Archivo', sans-serif;
    font-size: 11px !important;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--wp--preset--color--voltage-text-muted) !important;
}

.voltage-post-card__date a,
.voltage-post-card .wp-block-post-date a {
    color: var(--wp--preset--color--voltage-text-muted) !important;
    text-decoration: none;
}

/* Pagination — pill style */
.voltage-pagination {
    gap: 8px;
    align-items: center;
    margin-top: 16px;
    font-family: 'Inter', sans-serif;
}

.voltage-pagination .page-numbers,
.voltage-pagination .wp-block-query-pagination-previous,
.voltage-pagination .wp-block-query-pagination-next {
    padding: 8px 14px;
    border: 1.5px solid var(--wp--preset--color--voltage-purple);
    border-radius: 100px;
    background: transparent;
    color: var(--wp--preset--color--voltage-text-dim) !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}

.voltage-pagination .page-numbers.current {
    background: var(--wp--preset--color--voltage-lime);
    color: var(--wp--preset--color--voltage-bg) !important;
    border-color: var(--wp--preset--color--voltage-lime);
}

.voltage-pagination a:hover {
    border-color: var(--wp--preset--color--voltage-lime);
    color: var(--wp--preset--color--voltage-lime) !important;
}

/* Responsive: collapse 3-col to 2 then 1 */
@media (max-width: 1024px) {
    .voltage-blog-query .wp-block-post-template.is-layout-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .voltage-blog-query .wp-block-post-template.is-layout-grid {
        grid-template-columns: 1fr !important;
    }

    .voltage-post-card__title,
    .voltage-post-card .wp-block-post-title {
        font-size: 22px !important;
    }
}

/* ============================================================
   SINGLE POST PAGE — readable body typography + cap title size
   ============================================================ */

/* Cap title size — never let theme.json or h1 inheritance push past 56px */
body.single .wp-block-post-title,
.voltage-single-title {
    font-size: clamp(34px, 4.5vw, 52px) !important;
    line-height: 1.08 !important;
    letter-spacing: -1.5px !important;
}

/* Body content: long-form readable scale */
body.single .wp-block-post-content {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.75;
    color: var(--wp--preset--color--voltage-text-dim);
}

body.single .wp-block-post-content > p,
body.single .wp-block-post-content > ul,
body.single .wp-block-post-content > ol,
body.single .wp-block-post-content > blockquote {
    margin: 0 0 24px;
}

body.single .wp-block-post-content h2,
body.single .wp-block-post-content h3,
body.single .wp-block-post-content h4 {
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.8px;
    color: var(--wp--preset--color--voltage-text);
    margin-top: 56px;
    margin-bottom: 16px;
    line-height: 1.15;
}

body.single .wp-block-post-content h2 { font-size: 30px; }
body.single .wp-block-post-content h3 { font-size: 24px; }
body.single .wp-block-post-content h4 { font-size: 19px; letter-spacing: -0.4px; }

/* Inline links inside post body */
body.single .wp-block-post-content a:not(.wp-element-button) {
    color: var(--wp--preset--color--voltage-lime);
    text-decoration: underline;
    text-decoration-color: rgba(217, 249, 157, 0.4);
    text-underline-offset: 3px;
    transition: text-decoration-color .2s ease;
}

body.single .wp-block-post-content a:not(.wp-element-button):hover {
    text-decoration-color: var(--wp--preset--color--voltage-lime);
}

/* Blockquote — voltage lime accent */
body.single .wp-block-post-content blockquote {
    border-left: 3px solid var(--wp--preset--color--voltage-lime);
    padding: 8px 0 8px 24px;
    margin: 32px 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 22px;
    line-height: 1.5;
    color: var(--wp--preset--color--voltage-text);
}

/* Inline code + pre */
body.single .wp-block-post-content code {
    background: var(--wp--preset--color--voltage-bg-card);
    border: 1px solid var(--wp--preset--color--voltage-purple);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 0.92em;
    color: var(--wp--preset--color--voltage-lime);
}

body.single .wp-block-post-content pre {
    background: var(--wp--preset--color--voltage-bg-card);
    border: 1px solid var(--wp--preset--color--voltage-purple);
    border-radius: 12px;
    padding: 20px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.5;
}

/* Featured image breathing room */
body.single .wp-block-post-featured-image img {
    border-radius: 16px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Category pill at top of single post */
body.single > .wp-site-blocks main .wp-block-post-terms a {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(236, 72, 153, 0.12);
    border-radius: 100px;
    color: var(--wp--preset--color--voltage-pink-bright) !important;
    text-decoration: none;
    font-family: 'Archivo', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

/* Comments — voltage card style */
body.single .voltage-comments {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--wp--preset--color--voltage-purple);
}

body.single .wp-block-comments-title {
    font-family: 'Archivo', sans-serif;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    color: var(--wp--preset--color--voltage-text);
    margin: 0 0 32px;
}

body.single .wp-block-comment-author-name {
    font-weight: 600;
    color: var(--wp--preset--color--voltage-text);
}

body.single .wp-block-comment-date {
    font-size: 12px;
    color: var(--wp--preset--color--voltage-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.single .wp-block-post-comments-form {
    margin-top: 40px;
}

body.single .wp-block-post-comments-form input,
body.single .wp-block-post-comments-form textarea {
    background: var(--wp--preset--color--voltage-bg-card) !important;
    border: 1.5px solid var(--wp--preset--color--voltage-purple) !important;
    color: var(--wp--preset--color--voltage-text) !important;
    border-radius: 12px;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
}

body.single .wp-block-post-comments-form input[type="submit"],
body.single .wp-block-post-comments-form .submit {
    background: var(--wp--preset--color--voltage-lime) !important;
    color: var(--wp--preset--color--voltage-bg) !important;
    border: 2px solid var(--wp--preset--color--voltage-lime) !important;
    border-radius: 100px !important;
    padding: 12px 28px !important;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
}

/* Mobile: reduce single title size + body */
@media (max-width: 640px) {
    body.single .wp-block-post-title,
    .voltage-single-title {
        font-size: 30px !important;
        letter-spacing: -1px !important;
    }

    body.single .wp-block-post-content {
        font-size: 17px;
    }

    body.single .wp-block-post-content h2 { font-size: 24px; }
    body.single .wp-block-post-content h3 { font-size: 20px; }
}
