/* uhpc.css — page-specific styling for the UHPC scaler.
   General element styles live in styles.css and are reused. */

/* Stronger optical separation between the page's main steps
   (1. Rezept wählen, 2. Ihr Volumen, 3. Ihre Mischung, 4. Schritt für Schritt).
   Each section gets generous breathing room above; the heading is pulled
   close to its own content so it reads as a single block. */
#calculator > .form-section {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

#calculator > .form-section:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

#calculator > .form-section > h2 {
    margin-bottom: 10px;
}

.uhpc-note {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--secondary-color);
    border-radius: 6px;
    padding: 12px 16px;
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

.uhpc-note strong {
    color: var(--text-primary);
    font-weight: 600;
}

.source-panel {
    margin-top: 14px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.9rem;
}

.source-panel > summary {
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 600;
}

.source-panel[open] > summary {
    margin-bottom: 10px;
}

.source-panel a {
    color: var(--primary-color);
    word-break: break-all;
}

.source-panel dl {
    display: grid;
    grid-template-columns: 9rem 1fr;
    row-gap: 4px;
    column-gap: 14px;
    margin: 0;
}

.source-panel dt {
    color: var(--text-secondary);
}

.plausibility-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.plausibility-chip {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid;
    font-size: 0.85rem;
    line-height: 1.3;
    min-width: 220px;
}

.plausibility-chip .chip-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    font-weight: 600;
}

.plausibility-chip .chip-msg {
    font-weight: 400;
    color: inherit;
    opacity: 0.9;
}

.plausibility-chip.level-ok {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}

.plausibility-chip.level-warn {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
}

.plausibility-chip.level-error {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

.step-list {
    padding-left: 1.4em;
    line-height: 1.7;
}

.step-list li {
    margin-bottom: 6px;
}

#uhpcResultTable td:nth-child(2),
#uhpcResultTable td:nth-child(3) {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
