/*!
 * CSS Portal — Triangle generator extras
 * Loaded after code-tool.css and generator-tool.css. Everything is scoped to .gt.
 */

.gt .gt-choice input:disabled + span { opacity: .35; }
.gt .gt-choice input:disabled + span:hover { color: var(--ct-muted); border-color: var(--ct-border); }

/* direction pad: 3 × 3 with an empty centre, so each button sits where its triangle points */
.gt [data-control="dir"] .gt-choice label:nth-of-type(5) { grid-column: 3; }

:root {
	--accent: #3498db; 
	--sidebar-bg: #ffffff; 
	--body-bg: #f1f5f9;
	--border: #e2e8f0; 
	--text-main: #1e293b; 
	--text-muted: #64748b;
	--dot-color: rgba(52, 152, 219, 0.15);
}

.method-comparison {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.85rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.method-comparison thead {
    background-color: #1e293b;
    color: #ffffff;
    text-align: left;
}

.method-comparison th, 
.method-comparison td {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
}

.method-comparison th {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.7rem;
}

.method-comparison tbody tr:last-child td {
    border-bottom: none;
}

.method-comparison tbody tr:hover {
    background-color: #f8fafc;
}

.method-tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.75rem;
    background: #eff6ff;
    color: var(--accent);
}
.math-row {
    margin: 15px 0;
    font-family: 'Inter', sans-serif;
}

.formula-box {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #1e293b;
    font-size: 0.95rem;
    gap: 4px;
}

var {
    font-family: "Times New Roman", Times, serif;
    font-style: italic;
    font-weight: 600;
    color: #3498db;
    padding: 0 1px;
}

sup {
    font-size: 0.65rem;
    color: #64748b;
    vertical-align: super;
}

.operator {
    color: #94a3b8;
    font-family: 'Fira Code', monospace;
    font-weight: bold;
    margin: 0 4px;
}