:root {
    --openhw-teal: #00A9CE;     /* primary brand teal/cyan */
    --openhw-navy: #0B2D4E;     /* dark navy accent */
    --openhw-teal-dark: #0087A6;
    --openhw-bg: #F4F8FB;
    --openhw-text: #1f2933;
    --trl-green: #1F8A4C;
    --trl-blue:  #1B6CA8;
    --trl-red:   #C0392B;
    }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    color: var(--openhw-text);
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--openhw-bg);
    }

    header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
        margin-bottom: 1rem;
        padding: 0.5rem 0;
        border-bottom: 3px solid var(--openhw-navy);
        }

    .header-left {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }

    .header-left img {
        height: 60px;
    }

    .header-titles {
        text-align: left;
    }

    .header-titles h1 {
        font-size: 1.8rem;
        color: var(--openhw-navy);
        margin: 0;
    }

    .header-titles p {
        font-size: 1rem;
        color: #666666;
        margin: 0;
    }

    .badge {
        padding: 0.5rem 1rem;
        border-radius: 20px;
        font-weight: bold;
        font-size: 1.2rem;
        text-transform: uppercase;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .trl-5 {
        background-color: var(--trl-green);
        color: #fff;
        border: 2px solid #16653A;
    }

    .trl-4 {
        background-color: var(--trl-blue);
        color: #fff;
        border: 2px solid #134E7A;
    }

    .trl-3 {
        background-color: var(--trl-red);
        color: #fff;
        border: 2px solid #8E2A1F;
    }

    .trl-default {
        background-color: #D3D3D3;
        color: #666;
        border: 2px solid #A9A9A9;
    }

    .summary-bar {
        display: flex;
        justify-content: space-around;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .summary-bar .card {
        flex: 1;
        padding: 0.75rem;
    }

    .summary-bar .card h2 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .summary-bar .card .value {
        font-size: 1.8rem;
    }

    .summary-bar .card .status {
        font-size: 0.7rem;
    }


.card {
    background: #FFFFFF;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h2 {
    font-size: 1.2rem;
    color: #666666;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card .value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--openhw-teal);
    margin-bottom: 1rem;
}

.card .status {
    font-size: 0.9rem;
    color: #bdc3c7;
}

.links-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    background-color: var(--openhw-teal);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: var(--openhw-teal-dark);
}

.btn-secondary {
    background-color: transparent;
    color: var(--openhw-teal-dark);
    border: 2px solid var(--openhw-teal);
}

.btn-secondary:hover {
    background-color: var(--openhw-teal);
    color: #fff;
}

footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #666666;
}

footer a {
    color: var(--openhw-teal);
    text-decoration: none;
}

.trl5-grid {
    display: grid;
    /* Five TRL5 metrics on one row instead of wrapping the 5th onto its own line. */
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .trl5-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

.stats-container h2 {
    grid-column: 1 / -1;
    text-align: center;
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.stats-container p {
    grid-column: 1 / -1;
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

.trl5-grid .card h3 {
    font-size: 1.1rem;
    color: var(--openhw-navy);
    margin-bottom: 1rem;
}

.trl5-grid .card .value {
    font-size: 2.5rem;
}
