﻿:root {
    --page-bg: #f7f5fa;
    --card-bg: #ffffff;
    --summary-bg: #f4eff8;
    --text: #17234b;
    --heading: #2b174f;
    --muted: #6d557f;
    --accent: #087f89;
    --border: #ddd8e5;
    --ratio-bg: #f0e9f5;
    --shadow: 0 10px 28px rgba(53, 35, 80, 0.09);
    --radius-lg: 22px;
    --radius-md: 14px;
}

.Cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.card {
    padding: 20px 26px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.cardtitle {
    margin-bottom: 8px;
    color: var(--heading);
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.2;
}

.influent-summary {
    margin: 0 0 18px;
    padding: 18px 20px;
    background: var(--summary-bg);
    border-radius: var(--radius-md);
}

    .influent-summary dt,
    .influent-summary dd {
        margin: 0;
    }

    .influent-summary dt {
        margin-bottom: 2px;
        color: var(--muted);
        font-size: 1rem;
        font-weight: 600;
    }

    .influent-summary dd {
        color: var(--heading);
        font-size: clamp(2rem, 4vw, 2.7rem);
        font-weight: 700;
        line-height: 1.2;
    }

.unit {
    font-size: 0.72em;
    font-weight: 600;
    white-space: nowrap;
}

.cardgroup {
    padding: 10px 20px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

    .cardgroup + .cardgroup {
        margin-top: 14px;
    }

.grouptitle {
    color: var(--muted);
    font-size: 1rem;
    font-weight: 700;
}

.groupdetails {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 0;
    margin: 0;
}

.data {
    min-width: 0;
    padding: 0 20px;
}

    .data:first-child {
        padding-left: 0;
    }

    .data:last-child {
        padding-right: 0;
    }

    .data + .data {
        border-left: 1px solid var(--border);
    }

    .data dt,
    .data dd {
        margin: 0;
    }

    .data dt {
        min-height: 2.875em;
        margin-bottom: 8px;
        color: var(--text);
        font-size: 0.94rem;
        font-weight: 600;
        line-height: 1.4;
    }

    .data dd {
        color: var(--text);
        font-size: clamp(1.45rem, 2.5vw, 2rem);
        font-weight: 700;
        line-height: 1.2;
    }

.dataresult dd {
    color: var(--accent);
}

.ratio {
    color: #281a4c;
    font-size: 2rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    background: var(--ratio-bg);
    border-radius: 12px;
}

sub {
    font-size: 0.7em;
    line-height: 0;
}

@media (max-width: 1200px) {
    .cardtitle {
        font-size: 2.25rem;
    }

}

@media (max-width: 1024px) {
    .Cards {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 640px) {
    .card {
        width: min(100% - 28px, 1400px);
        padding: 28px 0;
    }

    .Cards {
        gap: 20px;
    }

    .card,
    .cardgroup {
        padding: 18px;
    }

    .cardtitle {
        font-size: 2rem;
    }

    .groupdetails {
        grid-template-columns: 1fr;
    }

    .data,
    .data:first-child,
    .data:last-child {
        padding: 0;
    }

        .data + .data {
            margin-top: 16px;
            padding-top: 16px;
            border-top: 1px solid var(--border);
            border-left: 0;
        }

        .data dt {
            min-height: auto;
            margin-bottom: 5px;
        }

    .ratio {
        min-width: 108px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
    }
}
