/* ==========================================================================
   VISIBLYTICS — CONSOLIDATED TOOL TEMPLATE STYLES
   Consolidates Hero, How-To, FAQs, Related Tools, and WP Content sections.
   ========================================================================== */

/* ── TOOL PAGE HERO ── */
.tool-page-hero {
    padding: 30px 5% 30px;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.tool-page-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.tool-page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.tool-page-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.tool-page-breadcrumb a:hover {
    color: var(--blue-primary);
}

.tool-page-breadcrumb span {
    opacity: 0.7;
}

.tool-page-title-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tool-page-icon {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-sm);
}

.tool-page-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 8px;
}

.tool-page-h1 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.8px;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.1;
}

.tool-page-desc {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 580px;
}

.tool-page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.tool-page-meta span {
    font-size: 12px;
    color: var(--text-muted);
    background: white;
    padding: 5px 12px;
    border-radius: 50px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.tool-page-section {
    padding: 30px 5% 30px;
}


/* ── HOW TO / INFO SECTION ── */
.tool-info-section {
    padding: 30px 5%;
    background: var(--off-white);
}

.tool-info-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.tool-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.tool-info-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.tool-info-heading {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-info-icon {
    font-size: 22px;
}

.tool-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tool-steps li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.tool-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--blue-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
    box-shadow: 0 2px 6px rgba(10, 106, 255, 0.2);
}

.tool-steps li strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.tool-steps li p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

kbd {
    background: var(--light-gray);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
    font-family: monospace;
    color: var(--text-secondary);
}

/* ── FAQ RELATED ── */
.tool-faq-section {
    padding: 40px 5%;
    background: var(--white);
    max-width:1000px;
    margin:0 auto;
}

/* ── RELATED TOOLS ── */
.tool-related-section {
    padding: 30px 5%;
    background: var(--off-white);
}

.tool-related-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.tool-related-heading {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.tool-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.tool-related-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.tool-related-card:hover {
    border-color: var(--blue-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tool-related-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    margin-top: 2px;
}

.tool-related-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tool-related-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    transition: color 0.15s ease;
}

.tool-related-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.tool-related-card:hover .tool-related-name {
    color: var(--blue-primary);
}

.tool-related-arrow {
    margin-left: auto;
    opacity: 0.4;
    flex-shrink: 0;
    margin-top: 3px;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.tool-related-card:hover .tool-related-arrow {
    opacity: 1;
    transform: translateX(2px);
    color: var(--blue-primary);
}

/* ── WORDPRESS BLOCK CONTENT ── */
.tool-wp-content,
.tool-wp-content-section {
    padding: 60px 5%;
    background: white;
    border-top: 1px solid var(--border);
}

.tool-wp-content-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.tool-wp-content-inner h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px;
}

.tool-wp-content-inner h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 32px 0 12px;
}

.tool-wp-content-inner p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin: 0 0 16px;
}

.tool-wp-content-inner ul,
.tool-wp-content-inner ol {
    font-size: 15px;
    color: var(--text-secondary);
    padding-left: 24px;
    margin: 0 0 16px;
}

.tool-wp-content-inner li {
    margin-bottom: 8px;
}

.tool-wp-content-inner a {
    color: var(--blue-primary);
    text-decoration: underline;
}

/* ── RESPONSIVE & MOBILE COLLAPSE ── */
@media (max-width: 900px) {
    .tool-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .tool-page-hero {
        padding: 36px 5% 32px;
    }

    .tool-page-title-row {
        flex-direction: column;
        gap: 12px;
    }

    .tool-faq-item summary {
        padding: 15px 18px;
        font-size: 14px;
    }
}

/* ── GLOBAL OPTION A FAQ & STICKY SCROLLING OVERRIDES ── */
.tool-page-wrapper {
    overflow-x: clip !important;
}

.tool-faq-inner {
    display: grid !important;
    grid-template-columns: 320px 1fr !important;
    gap: 48px !important;
    align-items: start !important;
}

.tool-faq-inner .vb-faq-sidebar {
    position: sticky !important;
    top: 100px !important;
    align-self: start !important;
}

@media (max-width: 860px) {
    .tool-faq-inner {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .tool-faq-inner .vb-faq-sidebar {
        position: static !important;
        top: auto !important;
    }
}

/* ── REFERENCE TABLES (wc-reference-table & oc-ref-table) ── */
.wc-reference-table,
.oc-ref-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.wc-ref-row,
.oc-ref-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: var(--radius, 8px);
    background: var(--off-white, #f8f9fc);
    font-size: 13px;
    color: var(--text-secondary, #4a5568);
    gap: 12px;
}

.wc-ref-header,
.oc-ref-hd {
    background: transparent !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .05em !important;
    color: var(--text-muted, #718096) !important;
    padding-top: 0;
    padding-bottom: 4px;
}

.wc-ref-badge,
.oc-ref-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
    white-space: nowrap;
}

/* ── FAMILY TOOLS LIST (jd-family-list) ── */
.jd-family-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.jd-family-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius, 8px);
    background: var(--off-white, #f8f9fc);
    text-decoration: none;
    color: var(--text-primary, #0f1b2d);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.jd-family-item:hover {
    background: #f0f6ff;
    color: var(--blue-primary, #0a6aff);
    border-color: rgba(10, 106, 255, 0.2);
}

.jd-family-item--active {
    background: #e8f0ff !important;
    color: var(--blue-primary, #0a6aff) !important;
    font-weight: 600 !important;
    border-color: rgba(10, 106, 255, 0.3) !important;
}

.jd-family-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.jd-family-name {
    flex: 1;
}

.jd-family-current {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    color: var(--blue-primary, #0a6aff);
}

/* ── FAQ DETAILS & SUMMARY STYLING ── */
.tool-faq-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.tool-faq-item {
    background: white;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--radius, 8px);
    overflow: hidden;
    transition: all 0.2s ease;
}

.tool-faq-item:hover {
    border-color: rgba(10, 106, 255, 0.3);
}

.tool-faq-item summary {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, #0f1b2d);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tool-faq-item summary::-webkit-details-marker {
    display: none;
}

.tool-faq-item summary::after {
    content: '+';
    font-size: 20px;
    font-weight: 400;
    color: var(--blue-primary, #0a6aff);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.tool-faq-item[open] summary::after {
    content: '−';
}

.tool-faq-item p {
    padding: 0 20px 16px;
    font-size: 14px;
    color: var(--text-secondary, #4a5568);
    line-height: 1.65;
    margin: 0;
}

/* ── FAQ OPTION A SIDEBAR STYLES ── */
.vb-faq-sidebar h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary, #0f1b2d);
    margin-bottom: 12px;
    line-height: 1.25;
}

.vb-faq-sidebar p {
    font-size: 14px;
    color: var(--text-secondary, #4a5568);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ==========================================================================
   AI WRITING TOOLS INTERACTIVE MODULES & EDITORIAL STYLES
   ========================================================================== */

/* ── GOOGLE SERP PREVIEW SIMULATOR ── */
.vb-serp-preview-wrap {
    background: #ffffff;
    border: 1.5px solid var(--border, #e8edf3);
    border-radius: var(--radius-md, 12px);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(10,30,60,0.04);
}
.vb-serp-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border, #e8edf3);
    padding-bottom: 10px;
}
.vb-serp-preview-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary, #0f1b2d);
    display: flex;
    align-items: center;
    gap: 6px;
}
.vb-serp-toggle-group {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--off-white, #f8fafc);
    border: 1px solid var(--border, #e8edf3);
    border-radius: 20px;
    padding: 2px 4px;
}
.vb-serp-toggle-btn {
    border: none;
    background: transparent;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 16px;
    cursor: pointer;
    color: var(--text-secondary, #4a5568);
    transition: all 0.2s;
}
.vb-serp-toggle-btn.active {
    background: white;
    color: var(--blue-primary, #0a6aff);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.vb-serp-card {
    font-family: Arial, sans-serif;
    line-height: 1.4;
    transition: max-width 0.2s;
}
.vb-serp-card--desktop {
    max-width: 600px;
}
.vb-serp-card--mobile {
    max-width: 360px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 14px;
}
.vb-serp-url-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.vb-serp-favicon {
    width: 18px;
    height: 18px;
    background: #0a6aff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}
.vb-serp-site-info {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    line-height: 1.2;
}
.vb-serp-sitename {
    font-weight: 600;
    color: #202124;
}
.vb-serp-breadcrumb {
    color: #4d5156;
    font-size: 11px;
}
.vb-serp-title {
    color: #1a0dab;
    font-size: 18px;
    font-weight: 400;
    margin: 4px 0 6px;
    line-height: 1.25;
    cursor: pointer;
    word-break: break-word;
}
.vb-serp-title:hover {
    text-decoration: underline;
}
.vb-serp-snippet {
    color: #4d5156;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}
.vb-serp-overflow-warning {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 8px;
}
.vb-serp-overflow-warning--good {
    background: #f0fdf4;
    color: #166534;
}
.vb-serp-overflow-warning--warn {
    background: #fef2f2;
    color: #991b1b;
}

/* ── CTA BUTTON SANDBOX PREVIEW ── */
.vb-cta-sandbox {
    background: white;
    border: 1.5px solid var(--border, #e8edf3);
    border-radius: var(--radius-md, 12px);
    padding: 20px;
    margin-bottom: 20px;
}
.vb-cta-sandbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border, #e8edf3);
    padding-bottom: 10px;
}
.vb-cta-preview-canvas {
    background: var(--off-white, #f8fafc);
    border: 1.5px dashed var(--border, #e8edf3);
    border-radius: 8px;
    padding: 36px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.vb-cta-demo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: #0a6aff;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(10,106,255,0.25);
    transition: transform 0.15s, box-shadow 0.15s;
    border: none;
}
.vb-cta-demo-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10,106,255,0.35);
}
.vb-cta-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.vb-cta-swatches {
    display: flex;
    align-items: center;
    gap: 8px;
}
.vb-cta-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid white;
    outline: 1.5px solid transparent;
    cursor: pointer;
    transition: transform 0.15s;
}
.vb-cta-swatch:hover, .vb-cta-swatch.active {
    outline-color: var(--blue-primary, #0a6aff);
    transform: scale(1.15);
}

/* ── AD PREVIEW CARD ── */
.vb-ad-preview-card {
    background: white;
    border: 1.5px solid var(--border, #e8edf3);
    border-radius: 10px;
    padding: 18px;
    font-family: Arial, sans-serif;
    margin-bottom: 20px;
}
.vb-ad-sponsored-tag {
    font-size: 11px;
    font-weight: 700;
    color: #202124;
    margin-bottom: 4px;
}
.vb-ad-headline {
    color: #1a0dab;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.3;
    margin: 4px 0 6px;
}
.vb-ad-desc {
    color: #4d5156;
    font-size: 13px;
    line-height: 1.5;
}

/* ── SOCIAL POST MOCKUP & HASHTAG CHIPS ── */
.vb-social-card {
    background: white;
    border: 1.5px solid var(--border, #e8edf3);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 20px;
}
.vb-social-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.vb-social-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a6aff, #8b5cf6);
    color: white;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vb-social-meta {
    line-height: 1.25;
}
.vb-social-username {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary, #0f1b2d);
}
.vb-social-sub {
    font-size: 11px;
    color: var(--text-muted, #8b9bb4);
}
.vb-social-caption {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary, #0f1b2d);
    white-space: pre-line;
    margin-bottom: 14px;
}
.vb-hashtag-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.vb-hashtag-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f0f6ff;
    color: #1e40af;
    border: 1px solid #c5d9ff;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s;
}
.vb-hashtag-chip:hover {
    background: #dbeafe;
}
.vb-hashtag-chip.deselected {
    background: #f1f5f9;
    color: #94a3b8;
    border-color: #e2e8f0;
    text-decoration: line-through;
    opacity: 0.6;
}

/* ── SECTIONED LANDING PAGE CARDS ── */
.vb-sections-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.vb-section-card {
    background: white;
    border: 1.5px solid var(--border, #e8edf3);
    border-radius: 10px;
    overflow: hidden;
}
.vb-section-card-header {
    background: var(--off-white, #f8fafc);
    border-bottom: 1px solid var(--border, #e8edf3);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.vb-section-card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--blue-primary, #0a6aff);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.vb-section-card-body {
    padding: 16px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-primary, #0f1b2d);
    white-space: pre-line;
}

/* ── COMPANION TOOLS POWER-UP SECTION ── */
.vb-companion-section {
    background: #ffffff;
    border-top: 1px solid var(--border, #e8edf3);
    border-bottom: 1px solid var(--border, #e8edf3);
    padding: 40px 5%;
}
.vb-companion-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.vb-companion-header {
    margin-bottom: 24px;
}
.vb-companion-heading {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary, #0f1b2d);
    margin-bottom: 6px;
}
.vb-companion-sub {
    font-size: 14px;
    color: var(--text-secondary, #4a5568);
}
.vb-companion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.vb-companion-card {
    background: var(--off-white, #f8fafc);
    border: 1.5px solid var(--border, #e8edf3);
    border-radius: 12px;
    padding: 18px;
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.2s ease;
}
.vb-companion-card:hover {
    border-color: var(--blue-primary, #0a6aff);
    background: white;
    box-shadow: 0 4px 16px rgba(10,106,255,0.08);
    transform: translateY(-2px);
}
.vb-companion-icon {
    font-size: 24px;
    flex-shrink: 0;
}
.vb-companion-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary, #0f1b2d);
    margin-bottom: 4px;
}
.vb-companion-desc {
    font-size: 12px;
    color: var(--text-secondary, #4a5568);
    line-height: 1.5;
}

/* ── DEEP EDITORIAL MASTERCLASS SECTION ── */
.vb-editorial-section {
    padding: 48px 5%;
    background: #ffffff;
}
.vb-editorial-inner {
    max-width: 1080px;
    margin: 0 auto;
}
.vb-editorial-block {
    margin-bottom: 40px;
}
.vb-editorial-block h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary, #0f1b2d);
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}
.vb-editorial-block p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary, #4a5568);
    margin-bottom: 16px;
}

/* ── TABLES: FORMULAS, GOOD VS BAD, SPECS ── */
.vb-table-wrap {
    overflow-x: auto;
    border: 1.5px solid var(--border, #e8edf3);
    border-radius: 12px;
    margin: 20px 0 28px;
    box-shadow: 0 2px 8px rgba(10,30,60,0.04);
}
.vb-guide-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
    background: white;
}
.vb-guide-table th {
    background: #f1f5f9;
    color: var(--text-primary, #0f1b2d);
    font-weight: 700;
    padding: 12px 16px;
    border-bottom: 1.5px solid var(--border, #e8edf3);
}
.vb-guide-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border, #e8edf3);
    color: var(--text-secondary, #4a5568);
    line-height: 1.6;
    vertical-align: top;
}
.vb-guide-table tr:last-child td {
    border-bottom: none;
}
.vb-bad-sample {
    color: #dc2626;
    background: #fef2f2;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    display: inline-block;
    margin-bottom: 4px;
}
.vb-good-sample {
    color: #166534;
    background: #f0fdf4;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    display: inline-block;
    margin-bottom: 4px;
}

/* ── 2-COLUMN AI TOOL LAYOUT & FORM STYLES ── */
.tool-page-wrapper {
    background-color: var(--bg-page, #f8fafc);
    color: var(--text-primary, #0f172a);
    min-height: 100vh;
    box-sizing: border-box;
    padding-top: 24px;
}

.page-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 24px 60px;
    box-sizing: border-box;
}

.tool-grid-container {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 1024px) {
    .tool-grid-container {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

.tool-left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tsg-switcher-dropdown-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    margin-bottom: 12px;
}

.tsg-dropdown-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.tsg-dropdown-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13.5px;
    color: #1e293b;
    background: #f8fafc;
    outline: none;
    cursor: pointer;
}

.wc-switcher-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.wc-switcher-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.wc-switcher-inner {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.wc-switcher-inner::-webkit-scrollbar {
    height: 5px;
}

.wc-switcher-inner::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.wc-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 50px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    color: #334155;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.wc-switch-btn:hover {
    background: #ffffff;
    border-color: #94a3b8;
    color: #0a6aff;
    transform: translateY(-1px);
}

.wc-switch-btn--active {
    background: #0a6aff !important;
    color: #ffffff !important;
    border-color: #0a6aff !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(10, 106, 255, 0.25);
}

.ai-interactive-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    padding: 28px;
}

@media (max-width: 640px) {
    .ai-interactive-card {
        padding: 18px 14px;
    }
}

.ai-gen-form {
    display: flex;
    flex-direction: column;
}

.ai-gen-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.ai-gen-field--full {
    grid-column: span 2;
}

@media (max-width: 640px) {
    .ai-gen-fields-grid {
        grid-template-columns: 1fr;
    }
    .ai-gen-field--full {
        grid-column: span 1;
    }
}

.ai-gen-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ai-gen-label {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ai-gen-required {
    color: #dc2626;
    font-weight: 700;
}

.ai-gen-input,
.ai-gen-select,
.ai-gen-textarea-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    color: #0f172a;
    background: #ffffff;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ai-gen-input:focus,
.ai-gen-select:focus,
.ai-gen-textarea-input:focus {
    border-color: #0a6aff;
    box-shadow: 0 0 0 3px rgba(10, 106, 255, 0.12);
    outline: none;
}

.ai-gen-input::placeholder,
.ai-gen-textarea-input::placeholder {
    color: #94a3b8;
}

.btn-ai-submit {
    width: 100%;
    margin-top: 14px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #0a6aff 0%, #0052cc 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(10, 106, 255, 0.3);
    transition: all 0.2s;
}

.btn-ai-submit:hover {
    background: linear-gradient(135deg, #0052cc 0%, #003d99 100%);
    box-shadow: 0 6px 20px rgba(10, 106, 255, 0.45);
    transform: translateY(-1px);
}

.btn-ai-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
}

.ai-gen-note {
    text-align: center;
    font-size: 12px;
    color: #64748b;
    margin-top: 10px;
}

.ai-gen-output {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.ai-gen-output-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.ai-gen-output-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.ai-gen-loading {
    padding: 24px;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    color: #0a6aff;
    font-weight: 600;
    font-size: 14px;
}

.ai-gen-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-gen-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.15s;
}

.ai-gen-item:hover {
    background: #ffffff;
    border-color: #93c5fd;
    box-shadow: 0 2px 8px rgba(10, 106, 255, 0.08);
}

.ai-gen-item-text {
    font-size: 14px;
    line-height: 1.5;
    color: #1e293b;
    font-weight: 500;
    flex: 1;
}

.ai-gen-item-side {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ai-gen-charcount {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
}

.ai-gen-charcount--good {
    background: #dcfce7;
    color: #166534;
}

.ai-gen-charcount--bad {
    background: #fee2e2;
    color: #991b1b;
}

.ai-gen-charcount--neutral {
    background: #e2e8f0;
    color: #475569;
}

.ai-gen-item-copy {
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s;
}

.ai-gen-item-copy:hover {
    background: #0a6aff;
    color: #ffffff;
    border-color: #0a6aff;
}

.ai-gen-textarea {
    width: 100%;
    padding: 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
    background: #f8fafc;
    color: #0f172a;
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical;
}

/* ── AI WRITING TOOLS MOBILE OPTIMIZATION (<=768px and <=640px) ── */
@media (max-width: 768px) {
    .tool-grid-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .page-wrap {
        padding: 18px 16px 48px;
    }
    .tool-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .tool-info-card {
        padding: 22px 18px;
    }
    .vb-companion-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .tool-related-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .tool-page-wrapper {
        padding-top: 10px;
    }
    .page-wrap {
        padding: 14px 12px 36px;
    }
    .tool-page-breadcrumb {
        font-size: 12px;
        margin-bottom: 8px;
        gap: 4px;
    }
    .tool-page-title-row {
        gap: 12px;
        align-items: center;
    }
    .tool-page-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 22px;
        border-radius: 12px;
    }
    .tool-page-badge {
        font-size: 10px;
        padding: 2px 8px;
        margin-bottom: 4px;
    }
    .tool-page-h1 {
        font-size: 22px;
        line-height: 1.22;
        letter-spacing: -0.3px;
    }
    .tool-page-desc {
        font-size: 14px;
        line-height: 1.5;
    }
    .tool-page-meta {
        gap: 6px;
        margin-top: 10px;
    }
    .tool-page-meta span {
        font-size: 11px;
        padding: 3px 8px;
    }
    .tsg-switcher-dropdown-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px 14px;
        border-radius: 10px;
    }
    .tsg-dropdown-label {
        font-size: 11px;
    }
    .tsg-dropdown-select {
        width: 100%;
        font-size: 16px !important; /* Prevents iOS Safari auto-zoom */
        padding: 10px 12px;
        min-height: 44px;
        box-sizing: border-box;
    }
    .ai-interactive-card {
        padding: 16px 14px;
        border-radius: 14px;
    }
    .ai-gen-fields-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .ai-gen-field--full {
        grid-column: span 1;
    }
    .ai-gen-label {
        font-size: 12.5px;
    }
    .ai-gen-input,
    .ai-gen-select,
    .ai-gen-textarea-input,
    .ai-gen-textarea {
        font-size: 16px !important; /* Prevents iOS Safari auto-zoom */
        padding: 11px 13px;
        border-radius: 8px;
        min-height: 44px;
    }
    .ai-gen-textarea-input {
        min-height: 80px;
    }
    .btn-ai-submit {
        padding: 14px 16px;
        font-size: 15px;
        min-height: 48px;
        border-radius: 10px;
    }
    .ai-gen-note {
        font-size: 11.5px;
    }
    .ai-gen-output {
        margin-top: 18px;
        padding-top: 18px;
    }
    .ai-gen-output-title {
        font-size: 15px;
    }
    .ai-gen-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px 14px;
    }
    .ai-gen-item-text {
        font-size: 13.5px;
        line-height: 1.5;
        word-break: break-word;
    }
    .ai-gen-item-side {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        border-top: 1px solid #eef2f6;
        padding-top: 8px;
        margin-top: 2px;
    }
    .ai-gen-item-copy {
        padding: 8px 16px;
        font-size: 12.5px;
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .vb-serp-card {
        padding: 14px 12px;
        max-width: 100%;
        box-sizing: border-box;
    }
    .vb-serp-title {
        font-size: 17px;
        line-height: 1.3;
        word-break: break-word;
    }
    .vb-serp-snippet {
        font-size: 13px;
        word-break: break-word;
    }
    .vb-serp-breadcrumb {
        font-size: 11px;
        word-break: break-all;
    }
    .vb-cta-demo-button {
        max-width: 100%;
        font-size: 14px;
        padding: 12px 18px;
        white-space: normal;
        word-break: break-word;
        text-align: center;
    }
    .vb-cta-controls-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .vb-cta-swatches {
        justify-content: center;
    }
    .vb-social-card {
        padding: 14px 12px;
    }
    .vb-hashtag-chip {
        font-size: 11.5px;
        padding: 4px 10px;
    }
    .vb-editorial-inner {
        padding: 24px 12px 36px;
    }
    .vb-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 12px 0 20px;
        border-radius: 8px;
    }
    .vb-guide-table {
        min-width: 540px;
    }
    .vb-guide-table th,
    .vb-guide-table td {
        padding: 10px 12px;
        font-size: 12.5px;
    }
    .tool-faq-inner {
        padding: 24px 12px 36px;
    }
    .tool-faq-item summary {
        font-size: 14px;
        padding: 13px 14px;
    }
    .tool-faq-item p {
        font-size: 13px;
        padding: 0 14px 14px;
        line-height: 1.55;
    }
    .tool-steps li {
        gap: 10px;
    }
    .tool-steps li strong {
        font-size: 14px;
    }
    .tool-steps li p {
        font-size: 12.5px;
    }
}



