/* Extracted from pages/void-calculator.html */
.calc-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.calc-header {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
}

.calc-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.calc-header p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.5;
}

.calc-header a {
    color: var(--text-dim);
    text-decoration: underline;
}

/* Score output */
.score-display {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.score-number {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    min-width: 5rem;
    transition: color 0.3s ease;
}

.score-meta {
    flex: 1;
}

.score-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 0.35rem;
}

.phase-badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.3rem 0.85rem;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.phase-i    { background: rgba(100,200,100,0.12); color: #5dce5d; border: 1px solid rgba(100,200,100,0.25); }
.phase-ii   { background: rgba(100,160,255,0.12); color: #6da4ff; border: 1px solid rgba(100,160,255,0.25); }
.phase-iii  { background: rgba(255,180,50,0.12);  color: #ffb832; border: 1px solid rgba(255,180,50,0.25); }
.phase-iv   { background: rgba(255,50,50,0.12);   color: #ff3232; border: 1px solid rgba(255,50,50,0.25); }

.phase-description {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.4;
}

/* Score bar */
.score-bar-wrap {
    margin-bottom: 2.5rem;
}

.score-bar-track {
    height: 6px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    transition: width 0.3s ease, background 0.3s ease;
}

.score-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-faint);
    margin-top: 0.35rem;
}

/* Dimension sliders */
.dimension-group {
    margin-bottom: 2rem;
}

.dimension-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.4rem;
}

.dimension-label {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.dimension-abbrev {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-left: 0.4rem;
}

.dimension-value {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.dimension-desc {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
    line-height: 1.45;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    outline: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--text);
    border: 2px solid var(--bg);
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--text);
    border: 2px solid var(--bg);
    cursor: pointer;
    border-radius: 0;
}

.slider-scale {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-faint);
    margin-top: 0.3rem;
}

/* Anchor labels per dimension */
.anchor-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-faint);
    margin-top: 0.25rem;
    font-style: italic;
}

/* Intervention section */
.intervention-section {
    border-top: 1px solid var(--border);
    padding-top: 1.75rem;
    margin-top: 2rem;
}

.intervention-section h2 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}

.intervention-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--text-dim);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    transition: border-left-color 0.3s ease;
}

.intervention-card h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.intervention-card p {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.45;
}

/* Comparable platforms */
.comparables {
    border-top: 1px solid var(--border);
    padding-top: 1.75rem;
    margin-top: 2rem;
}

.comparables h2 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}

.comparable-list {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* Formula */
.formula-note {
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 1rem 1.25rem;
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin-bottom: 2rem;
}

.formula-note code {
    font-family: var(--font-mono);
    color: var(--text);
}

.formula-note a {
    color: var(--text-dim);
    text-decoration: underline;
}

/* Export button */
.export-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 0.5rem 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    cursor: pointer;
    margin-top: 1.5rem;
    display: inline-block;
}

.export-btn:hover {
    border-color: var(--text-dim);
    color: var(--text);
}

@media (max-width: 560px) {
    .score-display { flex-direction: column; gap: 1rem; }
    .score-number { font-size: 2.75rem; }
}
