/* ==========================================================================
   Test to Table — Test SEO page
   Used by /tests/[slug]/ (test.php) and /tests/ (tests-hub.php)
   Layered on top of gt-marker.css for shared structure.
   ========================================================================== */

/* ----- Chip variant for "upload supported" ----- */
.tt-marker__chip--ok {
    background: var(--swatch-matcha-300);
    color: var(--swatch-matcha-800);
}

/* ----- Stat strip ----- */
.tt-test__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1px;
    background: var(--color-border);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-base);
    overflow: hidden;
}
.tt-test__stat {
    background: var(--color-surface);
    padding: var(--space-md) var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}
.tt-test__stat-label {
    font-family: var(--font-body);
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}
.tt-test__stat-value {
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    color: var(--color-text);
    line-height: 1.45;
}

/* ----- Pros / cons two-column ----- */
.tt-test__pros-cons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}
.tt-test__pros,
.tt-test__cons {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-base);
    padding: var(--space-lg);
}
.tt-test__pros {
    border-top: 4px solid var(--swatch-matcha-600);
}
.tt-test__cons {
    border-top: 4px solid var(--swatch-pomegranate-400);
}
.tt-test__pros-title,
.tt-test__cons-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    color: var(--color-text);
    margin: 0 0 var(--space-md) 0;
}
.tt-test__pros-list,
.tt-test__cons-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.tt-test__pros-list li,
.tt-test__cons-list li {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: 1.55;
    color: var(--color-warm-charcoal);
    padding-left: var(--space-lg);
    position: relative;
}
.tt-test__pros-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--swatch-matcha-600);
    font-weight: 600;
}
.tt-test__cons-list li::before {
    content: "–";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--swatch-pomegranate-400);
    font-weight: 700;
}

/* ----- Marker panel (the "what's on this test" list) ----- */
.tt-test__panel {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}
.tt-test__panel-row {
    display: inline-block;
}
.tt-test__panel-link,
.tt-test__panel-text {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    color: var(--color-text);
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}
.tt-test__panel-link:hover {
    border-color: var(--color-text);
    background: var(--color-oat-light);
}
.tt-test__panel-text {
    color: var(--color-text-secondary);
    border-style: dashed;
}

/* ----- Conversion CTA inside the test page ----- */
.tt-test__cta {
    background: var(--color-text);
    color: var(--color-text-light);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
}
.tt-test__cta-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-2xl);
    color: var(--color-text-light);
    margin: 0 0 var(--space-sm) 0;
}
.tt-test__cta-body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text-light);
    opacity: 0.92;
    margin: 0 auto var(--space-lg);
    max-width: 540px;
}

/* ----- Hub page grid ----- */
.tt-test__hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-md);
}
.tt-test__hub-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-base);
    text-decoration: none;
    transition: border-color 0.15s, transform 0.15s;
}
.tt-test__hub-card:hover {
    border-color: var(--color-text);
    transform: translateY(-2px);
}
.tt-test__hub-card--ok {
    border-top: 3px solid var(--swatch-matcha-600);
}
.tt-test__hub-status {
    font-family: var(--font-body);
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}
.tt-test__hub-card--ok .tt-test__hub-status {
    color: var(--swatch-matcha-800);
}
.tt-test__hub-name {
    font-family: var(--font-body);
    font-size: var(--font-size-lg);
    color: var(--color-text);
    font-weight: 500;
    line-height: 1.3;
}

/* ----- Mobile ----- */
@media (max-width: 640px) {
    .tt-test__stats {
        grid-template-columns: 1fr;
    }
    .tt-test__cta {
        padding: var(--space-lg);
    }
}
