/* Tool Showcase v4 — single tool page styles
   Extracted from AI_Tools_single_page.php: 33KB inline CSS was
   re-downloaded with every HTML response; as a static file the
   browser + LiteSpeed cache it across all tool pages. */
/* Font-display:swap for Poppins is handled by critical CSS in <head> (ts-critical) — no duplicate here */

/* Tool Showcase v4 - Full Width Hero Design */
.ts-wrap {
    --bg: #fbf6ee;
    --surface: #ffffff;
    --panel: #f6f0e6;
    --text: #101828;
    --muted: #667085;
    --border: #eadfce;
    --shadow: 0 16px 40px rgba(16,24,40,.10);
    --brand: #5a2a82;
    --brand2: #7a3fb0;
    --accent: #f39a4a;
    --brand-soft: rgba(90,42,130,.08);
    --ok: #10b981;
    --warn: #f59e0b;
    --radius: 18px;
    --radius-sm: 16px;
    --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    contain: layout style;
}

.ts-wrap, .ts-wrap *, .ts-wrap *::before, .ts-wrap *::after { box-sizing: border-box; margin: 0; padding: 0; }
.ts-wrap img { max-width: 100%; height: auto; display: block; }
.ts-wrap a { text-decoration: none; color: inherit; }
.ts-wrap ul, .ts-wrap ol { list-style: none; }

.ts-wrap {
    width: 100%;
    font-family: var(--font) !important;
    color: var(--text);
    line-height: 1.42;
    background: var(--bg);
}
.ts-wrap button,
.ts-wrap input,
.ts-wrap textarea,
.ts-wrap select,
.ts-wrap h1,
.ts-wrap h2,
.ts-wrap h3,
.ts-wrap h4,
.ts-wrap h5,
.ts-wrap h6,
.ts-wrap p,
.ts-wrap a,
.ts-wrap span,
.ts-wrap strong,
.ts-wrap b,
.ts-wrap label,
.ts-wrap li {
    font-family: var(--font) !important;
}


/* SEO / editorial context */
.ts-breadcrumbs {
    margin: 0;
    padding: 14px 20px 0;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    color: #667085;
    font-size: 12.5px;
    line-height: 1.4;
}
.ts-breadcrumbs a { color: #5a2a82; font-weight: 650; }
.ts-breadcrumbs a:hover { text-decoration: underline; }
.ts-breadcrumbs [aria-current="page"] { color: #667085; }
.ts-editorial-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    align-items: center;
    margin-top: 7px;
    color: #7a8494;
    font-size: 12px;
    line-height: 1.35;
}
@media (max-width: 767px) {
    .ts-breadcrumbs { padding: 11px 14px 0; font-size: 11.5px; }
    .ts-editorial-meta { font-size: 11.5px; margin-top: 4px; }
}

/* HERO */
.ts-hero {
    background: var(--surface);
    border: 1px solid rgba(234,223,206,.92);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 14px;
    contain: layout style;
}
@media (max-width: 767px) { 
    .ts-hero { 
        margin: 10px; 
        border-radius: 14px;
    } 
}
@media (min-width: 768px) { .ts-hero { margin: 14px 20px; } }
@media (min-width: 1200px) { .ts-hero { margin: 14px auto; max-width: 1230px; } }

.ts-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 980px) {
    .ts-hero-grid {
        grid-template-columns: 1.25fr 0.75fr;
        align-items: stretch;
    }
}

.ts-hero-left {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
@media (min-width: 980px) { .ts-hero-left { padding: 18px; } }

.ts-hero-right {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
@media (min-width: 980px) { .ts-hero-right { padding: 16px; } }

/* Mobile Grid Reordering to bring LCP above fold */
@media (max-width: 979px) {
    .ts-hero-grid {
        display: flex;
        flex-direction: column;
        padding: 14px;
        gap: 12px;
    }
    .ts-hero-left, .ts-hero-right {
        display: contents;
    }
    .ts-title-row { order: 1; }
    .ts-preview { order: 2; margin-top: 4px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.06); border: 1px solid rgba(234,223,206,.92); }
    .ts-rating-row { order: 3; margin-top: 4px; }
    .ts-lead { order: 4; margin-top: 2px; }
    .ts-editorial-meta { order: 5; }
    .ts-hero-action { order: 6; margin-top: 6px; width: 100%; }
    .ts-hero-cta { width: 100%; justify-content: center; }
    .ts-facts { order: 7; margin-top: 12px; }
    .ts-mini-note { order: 8; margin: 0; }
    .ts-traffic-box { order: 9; margin-top: 8px; }
    .ts-founder-card { order: 10; margin-top: 8px; }
}

/* Kicker */
.ts-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(234,223,206,.92);
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    color: rgba(16,24,40,.78);
    width: max-content;
}
.ts-kicker b { color: var(--brand); }

/* Title Row */
.ts-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.ts-title {
    font-size: clamp(30px, 3.1vw, 42px);
    font-weight: 750;
    line-height: 1.06;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0;
}

.ts-age-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid rgba(90,42,130,.18);
    background: rgba(90,42,130,.08);
    color: var(--brand);
    font-weight: 650;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(16,24,40,.06);
}
.ts-age-badge b { color: rgba(16,24,40,.9); }
@media (max-width: 560px) {
    .ts-age-badge { width: 100%; justify-content: flex-start; white-space: normal; }
}

/* Lead */
.ts-lead {
    margin: 10px 0 0;
    width: 100%;
    max-width: 100%;
    font-size: 15.5px;
    color: rgba(16,24,40,.68);
    line-height: 1.55;
}

/* Rating */
/* ── Rating Row ────────────────────────────────────────────── */
.ts-rating-row {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: 0;
    margin: 12px 0;
    background: linear-gradient(135deg, #fdf6ff 0%, #fff7ed 100%);
    border: 1.5px solid rgba(90,42,130,.13);
    border-radius: 16px;
    padding: 10px 16px 10px 12px;
    box-shadow: 0 2px 8px rgba(90,42,130,.07), inset 0 1px 0 rgba(255,255,255,.8);
    position: relative;
    overflow: hidden;
}
.ts-rating-row::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(90,42,130,.04) 0%, transparent 60%);
    pointer-events: none;
}

.ts-score-wrap {
    display: flex;
    flex: 0 0 auto;
    flex-direction: row;
    align-items: baseline;
    gap: 3px;
    padding-right: 14px;
    margin-right: 14px;
    border-right: 1.5px solid rgba(90,42,130,.1);
}

.ts-score {
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    color: var(--brand);
    letter-spacing: -.03em;
}

.ts-score-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0;
    text-transform: none;
    margin-top: 0;
}

.ts-rating-detail {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.ts-stars {
    display: flex;
    gap: 3px;
    align-items: center;
}

.ts-stars svg {
    filter: drop-shadow(0 1px 2px rgba(245,158,11,.25));
}

.ts-rating-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ts-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.4;
    background: rgba(90,42,130,.08);
    color: var(--brand);
}

.ts-rating-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(16,24,40,.25);
    flex-shrink: 0;
}

.ts-rating-price-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.4;
    background: rgba(243,154,74,.12);
    color: #c05a08;
}
@media (max-width: 560px) {
    .ts-rating-row { width: 100%; padding: 9px 12px 9px 10px; }
    .ts-score { font-size: 26px; }
    .ts-score-wrap { padding-right: 10px; margin-right: 10px; }
    .ts-rating-detail { flex: 1 1 auto; }
    .ts-stars svg { width: 18px; height: 18px; }
}
@media (max-width: 390px) {
    .ts-rating-row { align-items: flex-start; }
    .ts-score-wrap { flex-direction: column; align-items: center; gap: 1px; }
    .ts-score-label { font-size: 11px; }
    .ts-rating-meta { gap: 4px; }
}

/* Divider */
.ts-divider {
    height: 1px;
    background: rgba(234,223,206,.95);
    margin: 12px 0 10px;
}

/* Bookmark */
.ts-bookmark-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.ts-bookmark-note {
    font-size: 13px;
    color: rgba(16,24,40,.64);
    font-weight: 500;
}

/* Buttons */
.ts-btn {
    appearance: none !important;
    border: 0 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 14px !important;
    border-radius: 999px !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    line-height: 1 !important;
    transition: transform .08s ease, box-shadow .12s ease !important;
    white-space: nowrap !important;
    min-height: 44px !important; /* Better touch target */
}
@media (max-width: 767px) {
    .ts-btn {
        padding: 14px 18px !important;
        font-size: 15px !important;
    }
}
.ts-btn:active { transform: translateY(1px) !important; }

.ts-btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand2)) !important;
    color: #fff !important;
}
.ts-btn-primary:hover { box-shadow: var(--shadow) !important; }

.ts-btn-ghost {
    background: rgba(255,255,255,.92) !important;
    border: 1px solid #febc56 !important;
    color: #060401 !important;
}
.ts-btn-ghost:hover { box-shadow: var(--shadow) !important; }

.ts-btn-sm { padding: 10px 12px !important; font-size: 13px !important; }

/* Hero CTA — primary action is visible before the long-form review content. */
.ts-hero-action {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}
.ts-hero-cta {
    margin-top: 0 !important;
    width: fit-content;
    text-decoration: none !important;
    box-shadow: 0 8px 18px rgba(118,53,134,.16) !important;
}
.ts-hero-action-note {
    font-size: 11.5px;
    color: rgba(16,24,40,.56);
    line-height: 1.35;
}
@media (max-width: 560px) {
    .ts-hero-action { width: 100%; }
    .ts-hero-cta { width: 100% !important; justify-content: center !important; }
    .ts-hero-action-note { width: 100%; text-align: center; margin-top: -2px; }
}

/* Relocated bookmark section */
.ts-bookmark-section {
    background: var(--bg);
    border-bottom: none;
}

/* Facts Grid */
.ts-facts {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
    margin-top: 12px;
}
@media (min-width: 560px) { .ts-facts { grid-template-columns: repeat(3, 1fr); } }

.ts-fact {
    background: rgba(251,246,238,.78);
    border: 1px solid rgba(234,223,206,.95);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.ts-fact-label {
    font-size: 13px;
    color: rgb(0 0 0 / 98%);
    margin-bottom: 4px;
    font-weight: 650;
}

.ts-fact-value {
    font-weight: 500;
    color: rgba(16,24,40,.9);
    font-size: 15px;
    line-height: 1.35;
}

.ts-fact-additional {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.35;
    color: rgba(16,24,40,.52);
}
.ts-fact-additional > span { font-weight: 600; }
.ts-fact-chip {
    color: var(--brand);
    font-weight: 650;
}

/* Traffic Box */
.ts-traffic-box {
    margin-top: 14px;
    border-radius: var(--radius);
    border: 1px solid rgba(234,223,206,.95);
    background: rgba(255,255,255,.92);
    overflow: hidden;
}

.ts-traffic-header {
    padding: 14px;
    border-bottom: 1px solid rgba(234,223,206,.9);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.ts-traffic-title {
    font-weight: 1000;
    color: rgba(16,24,40,.95);
}

.ts-traffic-sub {
    color: rgba(16,24,40,.62);
    font-weight: 800;
    font-size: 13px;
    margin-top: 2px;
}

.ts-traffic-body {
    padding: 14px;
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}
@media (min-width: 860px) {
    .ts-traffic-body { grid-template-columns: .9fr 1.1fr; align-items: center; }
}

.ts-traffic-value {
    font-weight: 1000;
    color: rgba(16,24,40,.95);
    font-size: 28px;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.ts-traffic-note {
    color: rgba(16,24,40,.62);
    font-weight: 850;
    font-size: 13px;
    margin-top: 6px;
}

.ts-traffic-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: rgba(16,24,40,.62);
    font-weight: 850;
    font-size: 12px;
}

.ts-dot-live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 4px rgba(16,185,129,.18);
    flex-shrink: 0;
}

/* Traffic Chart */
.ts-traffic-chart {
    background: rgba(251,246,238,.78);
    border: 1px solid rgba(234,223,206,.95);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.ts-chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.ts-chart-head b { font-weight: 1000; }
.ts-chart-hint { color: rgba(16,24,40,.62); font-weight: 800; font-size: 12px; }

.ts-weekly-bars {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    align-items: end;
    height: 110px;
    padding: 6px 2px 2px;
}

.ts-bar {
    position: relative;
    border-radius: 12px;
    border: 1px solid rgba(90,42,130,.16);
    background: rgba(90,42,130,.10);
    overflow: hidden;
    height: 100%;
}
.ts-bar > i {
    display: block;
    width: 100%;
    height: 0%;
    background: rgba(90,42,130,.78);
    border-radius: 12px;
    position: absolute;
    bottom: 0;
    transition: height 0.5s ease;
}

.ts-bar-labels {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}
.ts-bar-labels span {
    text-align: center;
    font-size: 11px;
    font-weight: 900;
    color: rgba(16,24,40,.55);
}

/* Preview */
.ts-preview {
    border-radius: var(--radius-sm);
    overflow: hidden !important;
    border: 1px solid rgba(234,223,206,.95);
    background: var(--panel);
    aspect-ratio: 16 / 9;
    position: relative;
    isolation: isolate;
}
.ts-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-sm);
}

/* Video Container */
.ts-video-container {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    aspect-ratio: 16 / 9;
    background: #000 !important;
    overflow: hidden !important;
    touch-action: auto !important;
    isolation: isolate !important;
    border-radius: var(--radius-sm);
}
.ts-video-container iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    border-radius: var(--radius-sm);
}

/* Lazy video loading */
.ts-video-lazy {
    cursor: pointer;
    overflow: hidden !important;
    border-radius: var(--radius-sm);
}
.ts-video-lazy:hover .ts-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}
.ts-video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ts-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease;
    opacity: 0.9;
    pointer-events: none;
}
.ts-play-btn svg {
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}
.ts-video-lazy:focus {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}


.ts-media-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    font-weight: 950;
    font-size: 12px;
    background: rgba(15,18,34,.78);
    color: #fff;
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(8px);
}

/* Mini Note */
.ts-mini-note {
    background: rgba(251,246,238,.78);
    border: 1px solid rgba(234,223,206,.95);
    border-radius: var(--radius-sm);
    padding: 12px;
    font-size: 14px;
    color: rgba(16,24,40,.72);
    font-weight: 500;
}
.ts-mini-note b { color: rgba(16,24,40,.92); }

/* Founder Card */
.ts-founder-card {
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(234,223,206,.95);
    border-radius: var(--radius);
    padding: 14px;
}

.ts-founder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.ts-founder-title {
    font-weight: 1000;
    color: rgba(16,24,40,.95);
}

.ts-founder-sub {
    color: rgba(16,24,40,.62);
    font-weight: 800;
    font-size: 13px;
}

.ts-founder-content {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.ts-founder-avatar {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(234,223,206,.95);
    background: rgba(251,246,238,.78);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 1000;
    color: var(--brand);
    font-size: 22px;
}
.ts-founder-avatar img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    /* Prevent browser over-smoothing when upscaling a small photo */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.ts-founder-name {
    font-weight: 1000;
    color: rgba(16,24,40,.95);
}

.ts-founder-role {
    color: rgba(16,24,40,.62);
    font-weight: 650;
    font-size: 13px;
    margin-top: 2px;
}

.ts-founder-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.ts-link-chip {
    text-decoration: none;
    font-weight: 950;
    font-size: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(90,42,130,.08);
    border: 1px solid rgba(90,42,130,.18);
    color: var(--brand);
    transition: background 0.2s;
}
.ts-link-chip:hover { background: rgba(90,42,130,.16); }

.ts-founder-bio {
    margin-top: 12px;
    background: rgba(251,246,238,.78);
    border: 1px solid rgba(234,223,206,.95);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.ts-founder-bio-text {
    font-weight: 500;
    color: rgba(16,24,40,.78);
    line-height: 1.45;
    font-size: 13px;
}

/* SECTIONS */
.ts-section {
    background: var(--surface);
    padding: 24px 16px;
    border-bottom: 1px solid rgba(234,223,206,.92);
    margin: 0 14px;
}
/* content-visibility for off-screen sections — pure CSS, no JS class toggle (prevents CLS) */
.ts-wrap > section:nth-of-type(n+4) {
    content-visibility: auto;
    contain-intrinsic-size: 0 600px;
}
@media (min-width: 768px) { .ts-section { padding: 32px; margin: 0 20px; } }
@media (min-width: 1200px) { .ts-section { margin: 0 auto; max-width: 1230px; padding: 40px 48px; } }

.ts-section-title {
    font-size: clamp(19px, 2vw, 26px);
    font-weight: 900;
    color: var(--text);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
}
.ts-section-title svg { color: var(--brand); flex-shrink: 0; }

/* Content */
.ts-content {
    color: rgba(16,24,40,.75);
    line-height: 1.8;
    font-size: 16px;
    font-weight: 400;
}
.ts-content p { margin-bottom: 14px; font-weight: 400; color: rgba(16,24,40,.75); line-height: 1.8; }
.ts-content p:last-child { margin-bottom: 0; }
.ts-content h2, .ts-content h3 { margin: 28px 0 14px; font-weight: 900 !important; color: var(--text); font-size: 22px !important; line-height: 1.3 !important; }
.ts-content h2:first-child, .ts-content h3:first-child { margin-top: 0; }
.ts-content ul, .ts-content ol { padding-left: 24px; margin-bottom: 14px; }
.ts-content li { margin: 8px 0; list-style: disc; font-weight: 400; color: rgba(16,24,40,.75); line-height: 1.7; }
.ts-content a { color: var(--brand); text-decoration: underline; font-weight: 500; }
.ts-content a:hover { color: var(--brand2); }
.ts-content img { max-width: 100%; border-radius: var(--radius-sm); margin: 20px 0; }
.ts-content strong, .ts-content b { font-weight: 700; color: var(--text); }

/* Table Styling */
.ts-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: var(--surface);
    border: 1px solid rgba(234,223,206,.95);
    border-radius: var(--radius-sm);
    overflow: hidden;
    font-size: 15px;
}
.ts-content thead {
    background: linear-gradient(135deg, rgba(90,42,130,.08) 0%, rgba(243,154,74,.08) 100%);
    border-bottom: 2px solid rgba(234,223,206,.95);
}
.ts-content thead th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600 !important;
    color: var(--text);
    font-size: 14px;
    letter-spacing: 0.01em;
    border-right: 1px solid rgba(234,223,206,.6);
}
.ts-content thead th:last-child { border-right: none; }
.ts-content tbody tr {
    border-bottom: 1px solid rgba(234,223,206,.8);
    transition: all 0.2s ease;
}
.ts-content tbody tr:last-child { border-bottom: none; }
.ts-content tbody tr:hover {
    background: rgba(90,42,130,.04);
}
.ts-content tbody td {
    padding: 12px 16px;
    color: rgba(16,24,40,.75);
    font-weight: 400;
    line-height: 1.6;
    border-right: 1px solid rgba(234,223,206,.5);
}
.ts-content tbody td:last-child { border-right: none; }
.ts-content tbody td strong, .ts-content tbody td b {
    font-weight: 700;
    color: var(--text);
}

/* Mobile Table Responsiveness */
@media (max-width: 768px) {
    .ts-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 20px -16px;
        width: calc(100% + 32px);
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    .ts-content thead th,
    .ts-content tbody td {
        padding: 12px 14px;
        font-size: 14px;
        white-space: nowrap;
    }
    .ts-content thead th {
        position: sticky;
        top: 0;
        z-index: 10;
        background: linear-gradient(135deg, rgba(90,42,130,.12) 0%, rgba(243,154,74,.12) 100%);
    }
}

/* Alternative Mobile Table Layout (Stacked) */
@media (max-width: 560px) {
    .ts-content table.ts-table-stacked {
        border: none;
    }
    .ts-content table.ts-table-stacked thead {
        display: none;
    }
    .ts-content table.ts-table-stacked tbody,
    .ts-content table.ts-table-stacked tr,
    .ts-content table.ts-table-stacked td {
        display: block;
        width: 100%;
    }
    .ts-content table.ts-table-stacked tr {
        margin-bottom: 16px;
        background: var(--surface);
        border: 1px solid rgba(234,223,206,.95);
        border-radius: var(--radius-sm);
        padding: 12px;
    }
    .ts-content table.ts-table-stacked tr:hover {
        box-shadow: 0 4px 12px rgba(16,24,40,.08);
    }
    .ts-content table.ts-table-stacked td {
        padding: 8px 0;
        border: none;
        border-bottom: 1px solid rgba(234,223,206,.6);
        text-align: left;
        white-space: normal;
    }
    .ts-content table.ts-table-stacked td:last-child {
        border-bottom: none;
    }
    .ts-content table.ts-table-stacked td:before {
        content: attr(data-label);
        display: block;
        font-weight: 900;
        color: var(--text);
        margin-bottom: 4px;
        font-size: 13px;
    }
}

/* Features */
.ts-features-box ul, .ts-features-box ol { list-style: none; padding: 0; }
.ts-features-box li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(234,223,206,.92);
    font-size: 14px;
    color: rgba(16,24,40,.75);
    line-height: 1.6;
    font-weight: 400;
}
.ts-features-box li:last-child { border-bottom: none; }
.ts-features-box li::before {
    content: '';
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 8px;
    background: rgba(17,163,106,.12);
    color: var(--ok);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 1000;
    font-size: 12px;
}
.ts-features-box p { margin: 0; }

/* Pros & Cons */
.ts-pros-cons {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}
@media (min-width: 680px) { .ts-pros-cons { grid-template-columns: 1fr 1fr; } }

.ts-pros, .ts-cons {
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(234,223,206,.95);
    border-radius: var(--radius);
    padding: 14px;
}

.ts-pros-title, .ts-cons-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 1000;
    margin-bottom: 10px;
    font-size: 15px;
}

.ts-dot {
    width: 26px;
    height: 26px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 1000;
    font-size: 12px;
}
.ts-dot-ok { background: rgba(17,163,106,.12); color: var(--ok); }
.ts-dot-warn { background: rgba(245,158,11,.14); color: var(--warn); }

.ts-pros-list ul, .ts-cons-list ul { margin: 0; padding: 0 0 0 18px; }
.ts-pros-list li, .ts-cons-list li {
    margin: 8px 0;
    line-height: 1.6;
    color: rgba(16,24,40,.75);
    font-weight: 400;
    list-style: disc;
}
.ts-pros-list p, .ts-cons-list p { margin: 0; font-weight: 400; }

/* Tags */
.ts-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ts-tag {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
    background: rgba(90,42,130,.08);
    border: 1px solid rgba(90,42,130,.18);
    padding: 8px 10px;
    border-radius: 999px;
    transition: background 0.2s;
}
.ts-tag:hover { background: rgba(90,42,130,.16); }

/* Knowledge Base */
.ts-kb-list {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
}
@media (min-width: 680px) { .ts-kb-list { grid-template-columns: 1fr 1fr; } }

.ts-kb-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    background: rgba(251,246,238,.78);
    border: 1px solid rgba(234,223,206,.95);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    font-weight: 500;
    color: rgba(16,24,40,.78);
    font-size: 14px;
}
.ts-kb-item:hover {
    background: rgba(90,42,130,.08);
    color: var(--brand);
}
.ts-kb-item svg { flex-shrink: 0; transition: transform 0.2s; }
.ts-kb-item:hover svg { transform: translateX(4px); }

/* CTA */
.ts-cta-section {
    background: linear-gradient(135deg, rgba(90,42,130,.08) 0%, rgba(243,154,74,.08) 100%);
    padding: 20px 16px;
    margin: 0 14px;
}
@media (min-width: 768px) { .ts-cta-section { padding: 24px 32px; margin: 0 20px; } }
@media (min-width: 1200px) { .ts-cta-section { margin: 0 auto; max-width: 1230px; padding: 28px 48px; } }

.ts-cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 800px;
    margin: 0 auto;
    padding: 18px 20px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(234,223,206,.95);
    text-align: center;
}
@media (min-width: 768px) {
    .ts-cta-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

.ts-cta-title {
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 1000;
    color: var(--text);
    margin: 0 0 4px;
}

.ts-cta-subtitle {
    font-size: 14px;
    color: rgba(16,24,40,.62);
    margin: 0;
    font-weight: 800;
}

/* Related Tools */
.ts-related-section {
    overflow: visible;
}

.ts-related-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 10px;
}
@media (min-width: 768px) {
    .ts-related-header { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 20px; }
}

.ts-related-title {
    font-size: clamp(17px, 2vw, 22px);
    font-weight: 1000;
    color: var(--text);
    margin: 0 0 6px;
    line-height: 1.3;
}

.ts-related-sub {
    font-size: 14px;
    color: rgba(16,24,40,.62);
    margin: 0;
    font-weight: 500;
    line-height: 1.5;
}

/* Guidance Box */
.ts-reco-guidance {
    margin-top: 12px;
    background: rgba(251,246,238,.78);
    border: 1px solid rgba(234,223,206,.95);
    border-radius: 16px;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(16,24,40,.72);
}

/* Filter Chips */
.ts-reco-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
    align-items: center;
}

.ts-filter-chip {
    appearance: none !important;
    border: 1px solid rgba(234,223,206,.95) !important;
    background: rgba(255,255,255,.92) !important;
    padding: 9px 12px !important;
    border-radius: 999px !important;
    font-weight: 650 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    color: rgba(16,24,40,.78) !important;
    transition: transform .08s ease, box-shadow .12s ease !important;
}
.ts-filter-chip:hover {
    box-shadow: 0 14px 30px rgba(16,24,40,.08) !important;
    transform: translateY(-1px) !important;
}
.ts-filter-chip.ts-chip-active {
    border-color: rgba(90,42,130,.28) !important;
    background: rgba(90,42,130,.08) !important;
    color: var(--brand) !important;
}

/* Recommendation Cards */
.ts-reco-card {
    scroll-snap-align: start;
    min-width: 82%;
    text-decoration: none;
    border: 1px solid #dacba9; /* distinct border */
    border-radius: 18px;
    background: #ffffff;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
    position: relative;
    user-select: none;
    color: inherit;
    box-shadow: 0 4px 12px rgba(234, 223, 206, 0.3);
}
.ts-reco-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

@media (min-width: 860px) {
    .ts-reco-card { min-width: auto; }
}

.ts-reco-top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.ts-reco-logo {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(234,223,206,.95);
    background: rgba(251,246,238,.78);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 1000;
    color: var(--brand);
    flex: 0 0 auto;
    overflow: hidden;
    font-size: 20px;
}
/* Favicon-style icon: contain (not cover) so 32x32 icon stays crisp */
.ts-reco-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
    padding: 0;
}
.ts-reco-logo-letter {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand2) 100%);
    color: white;
}

/* Watch Demo pill button — overlays featured image, lazy-loads YouTube on click */
.ts-watch-demo {
    position: absolute !important;
    bottom: 12px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 16px !important;
    background: rgba(10,10,10,.72) !important;
    background-color: rgba(10,10,10,.72) !important;
    background-image: none !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: background .15s ease, transform .15s ease !important;
    z-index: 4 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    box-shadow: none !important;
    min-height: 0 !important;
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-family: inherit !important;
}
.ts-watch-demo:hover {
    background: rgba(200,0,0,.88) !important;
    background-color: rgba(200,0,0,.88) !important;
    color: #fff !important;
    transform: translateX(-50%) translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(200,0,0,.35) !important;
}

.ts-reco-name {
    font-weight: 700;
    color: rgba(16,24,40,.95);
    line-height: 1.2;
    font-size: 15px;
}

.ts-reco-why {
    color: rgba(16,24,40,.66);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ts-reco-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.ts-badge {
    font-weight: 500;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(251,246,238,.78);
    border: 1px solid rgba(234,223,206,.95);
    color: rgba(16,24,40,.78);
}
.ts-badge-price {
    background: rgba(90,42,130,.08);
    border-color: rgba(90,42,130,.18);
    color: var(--brand);
}
.ts-badge-rank {
    background: rgba(16,185,129,.12);
    border-color: rgba(16,185,129,.18);
    color: #066a4a;
}

/* Mobile CTA intentionally removed: the hero CTA is the only Visit action. */

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .ts-wrap *, .ts-wrap *::before, .ts-wrap *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print */
@media print {
    .ts-hero { box-shadow: none; border: 1px solid #ddd; }
    .ts-section { border: none; }
}

/* ═══════════════════════════════════════════════════════════════
   v8 single-tool cleanup: one alternatives list, rating labels,
   compact resources/bookmark/comments
   ═══════════════════════════════════════════════════════════════ */
.ts-section-subtle {
    margin: -2px 0 12px !important;
    color: rgba(16,24,40,.6);
    font-size: 13px;
    line-height: 1.5;
}

/* One responsive alternatives DOM: horizontal on mobile, grid on desktop. */
.ts-related-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 12px 2px 6px;
    margin-top: 2px;
}
.ts-related-list::-webkit-scrollbar { height: 7px; }
.ts-related-list::-webkit-scrollbar-thumb { background: #d9d2c6; border-radius: 999px; }
.ts-related-list .ts-reco-card { min-width: min(82vw, 360px); }
.ts-reco-copy { min-width: 0; }

@media (min-width: 860px) {
    .ts-related-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: visible;
        scroll-snap-type: none;
    }
    .ts-related-list .ts-reco-card { min-width: 0; }
}
@media (min-width: 1180px) {
    .ts-related-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


/* Compact bookmark handoff before comments. */
.ts-bookmark-section {
    margin-top: 0 !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    min-height: 0 !important;
}
.ts-bookmark-row {
    min-height: 0 !important;
}
.ts-bookmark-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 10px);
    z-index: 100000;
    max-width: min(92vw, 520px);
    padding: 11px 14px;
    border-radius: 12px;
    background: #101828;
    color: #fff;
    font: 600 13px/1.4 ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    box-shadow: 0 12px 32px rgba(16,24,40,.22);
    opacity: 0;
    transition: opacity .18s ease, transform .18s ease;
    pointer-events: none;
}
.ts-bookmark-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}


/* Keep wpDiscuz close to the end of the tool content instead of leaving a
   large empty band between Save This Page and the user-rating/comments UI. */
body.sait-ai-tool-single .comments-area,
body.sait-ai-tool-single #comments,
body.sait-ai-tool-single .comment-respond {
    margin-top: 0 !important;
    padding-top: 18px !important;
    min-height: 0 !important;
}
body.sait-ai-tool-single #wpdcom,
body.sait-ai-tool-single .wpdiscuz_top_clearing,
body.sait-ai-tool-single .wpd-form-wrap,
body.sait-ai-tool-single .wpd-thread-head {
    margin-top: 0 !important;
    min-height: 0 !important;
}
body.sait-ai-tool-single .wpd-rating,
body.sait-ai-tool-single .wpd-post-rating-wrap,
body.sait-ai-tool-single #wpd-post-rating {
    margin-top: 0 !important;
    padding-top: 8px !important;
}



/* ══════════════════════════════════════════════════════════════
   COMPARISON PROMOTION — SINGLE TOOL PAGE
   ══════════════════════════════════════════════════════════════ */
.ts-hero-compare{background:#fff!important;border:1px solid #d8bddf!important;color:#5d2869!important;text-decoration:none!important;box-shadow:none!important}
.ts-hero-compare:hover,.ts-hero-compare:focus{background:#faf5fc!important;border-color:#a86bb7!important;color:#5d2869!important;box-shadow:0 8px 18px rgba(118,53,134,.10)!important;text-decoration:none!important}
.ts-tool-comparisons{background:linear-gradient(180deg,#fff 0%,#fffaf6 100%);border-color:#eadfd4}
.ts-tool-comparisons-head{display:flex;flex-direction:column;gap:12px;margin-bottom:16px}
@media(min-width:760px){.ts-tool-comparisons-head{flex-direction:row;align-items:flex-start;justify-content:space-between;gap:20px}}
.ts-tool-comparison-grid{display:grid;grid-template-columns:1fr;gap:10px}
@media(min-width:760px){.ts-tool-comparison-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.ts-tool-comparison-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px;border:1px solid #e8ded3;border-radius:14px;background:#fff;color:#17131a;text-decoration:none!important;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.ts-tool-comparison-card:hover,.ts-tool-comparison-card:focus{border-color:#cfa8d8;box-shadow:0 10px 24px rgba(74,41,82,.08);transform:translateY(-1px);color:#17131a;text-decoration:none!important}
.ts-tool-comparison-logos{display:flex;align-items:center;gap:5px}
.ts-tool-comparison-logo{width:38px;height:38px;border:1px solid #eadfd6;border-radius:11px;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden;flex:0 0 auto}
.ts-tool-comparison-logo img{width:26px!important;height:26px!important;object-fit:contain!important;display:block!important}
.ts-tool-comparison-logo b{font-size:14px;font-weight:800;color:#663071}
.ts-tool-comparison-vs{font-size:9px;font-weight:900;letter-spacing:.4px;color:#e66a20}
.ts-tool-comparison-copy{min-width:0}
.ts-tool-comparison-label{display:block;font-size:10.5px;font-weight:700;color:#8a6b90;margin-bottom:3px}
.ts-tool-comparison-copy h3{font-size:14px!important;line-height:1.3!important;margin:0 0 4px!important;color:#17131a!important;font-weight:750!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ts-tool-comparison-meta{display:block;font-size:11.5px;color:#6f6872;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ts-tool-comparison-arrow{font-size:20px;color:#7c3b89;line-height:1}
@media(max-width:560px){.ts-hero-action{display:grid!important;grid-template-columns:1fr!important}.ts-hero-action .ts-btn{width:100%!important}.ts-hero-action-note{text-align:center!important}.ts-tool-comparison-card{grid-template-columns:auto minmax(0,1fr) auto;padding:12px;gap:9px}.ts-tool-comparison-logo{width:34px;height:34px}.ts-tool-comparison-logo img{width:23px!important;height:23px!important}.ts-tool-comparison-copy h3{font-size:13px!important}.ts-tool-comparison-meta{font-size:10.5px}}
