/* Very Good Dice Roller - Randomness Test Modal
   Reuses the statistics panel's look (stats-content, stat-card, stats-table); only test-specific bits live here. */

.methodology-section {
    min-height: 0;
    margin-bottom: var(--spacing-md);
}

.methodology-section p,
.rt-section p,
.rt-verdict p {
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.methodology-section h4,
.rt-section h4,
.rt-panel h4 {
    margin: var(--spacing-md) 0 var(--spacing-sm);
}

.methodology-section p:last-child { margin-bottom: 0; }

.config-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-sm);
    margin: var(--spacing-md) 0 var(--spacing-xs);
}


.config-row select {
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--bg-tertiary);
    border-radius: var(--border-radius);
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    max-width: 100%;
}

.run-test-btn { margin-top: var(--spacing-md); }

.test-status {
    display: none;
    background-color: var(--bg-tertiary);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    text-align: center;
    color: var(--text-secondary);
}

.test-results { display: none; }

/* Verdict: plain banner, the words carry the result */
.rt-verdict {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-align: center;
}

.rt-verdict h4 { font-size: var(--font-size-lg); margin-bottom: var(--spacing-xs); }
.rt-verdict p { color: var(--text-secondary); font-size: var(--font-size-sm); }
.rt-list { padding-left: var(--spacing-lg); margin-bottom: var(--spacing-sm); line-height: 1.6; text-align: left; }
.rt-list li { margin-bottom: var(--spacing-xs); }

.rt-code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background-color: var(--bg-secondary);
    padding: 1px 5px;
    border-radius: 4px;
}

.rt-section .stats-table-container,
.rt-panel .stats-table-container { overflow-x: auto; }
.rt-section .stats-table td { white-space: nowrap; }

/* Long tables in the numbers panel scroll inside a fixed height */
.rt-scroll {
    max-height: 320px;
    overflow-y: auto;
    margin-bottom: var(--spacing-md);
}

.rt-scroll .stats-table { margin-bottom: 0; }
.rt-scroll th { position: sticky; top: 0; }

.rt-panel-toggle { width: 100%; }
.rt-panel { padding-top: var(--spacing-sm); }
.rt-section { margin-bottom: var(--spacing-lg); }

.test-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-top: var(--spacing-lg);
}

.rt-copy-msg {
    text-align: center;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-sm);
    min-height: 1.2em;
}

/* Three summary boxes: one row when they fit, otherwise stacked (statistics forces 2 columns on tablets) */
.stats-overview.rt-cards { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
