.statistics td {
    vertical-align: top;
}

.entry-label {
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.links {
    font-size: small;
}

.winds ul li {
    list-style-type: none;
}

ul.links li {
    list-style-type: none;
    display: inline-block;
    margin-right: 10px;
    font-size: 0.9rem;
}

.statistics-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 32px;
    max-width: 1600px;
    margin: 0 auto;
    background: transparent;
    grid-auto-flow: row;
}

.statistics {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 28px;
    transition: all 0.3s ease;
    border: 1px solid #e8eef3;
}

.statistics:hover {
    box-shadow: 0 8px 16px rgba(0, 110, 173, 0.12);
    transform: translateY(-1px);
}

.statistics_col_1 {
    width: 100%;
}

.statistics_col_2 {
    /* width: 100%; */
    grid-column: span 2;
}

.statistics_col_3 {
    /* width: 100%; */
    grid-column: 1 / -1;
}

.statistics-wrapper .inner-statistics {
    margin-top: 1.2em;
    padding: 0;
    width: 100%;
    background-color: transparent;
    border-radius: 0;
    border: none;
    table-layout: fixed;
}

.statistics-wrapper .inner-statistics td.entry-label {
    width: 40%;
}

.statistics-wrapper .inner-statistics td.right:nth-last-child(2) {
    width: 35%;
}

.statistics-wrapper .inner-statistics td.right:last-child {
    width: 25%;
}

.statistics-wrapper .inner-statistics tr {
    border-bottom: 1px solid #f0f4f7;
    transition: background-color 0.15s ease;
}

.statistics-wrapper .inner-statistics tr:hover {
    background-color: rgba(0, 110, 173, 0.03);
}

.statistics-wrapper .inner-statistics tr:last-child {
    border-bottom: none;
}

.statistics-wrapper .inner-statistics td {
    padding: 12px 12px;
    font-size: 0.95em;
}

.statistics-wrapper .inner-statistics td:first-child {
    padding-left: 0;
}

.statistics-wrapper .inner-statistics td:last-child {
    padding-right: 0;
}

.pieTitleText {
    font-size: 1em !important;
    font-style: italic;
    color: var(--text-dark);
}

.code-base {
    padding: 0;
    margin: 0;
}

.external-links {
    margin-top: 2em;
    width: 100%;
    max-width: 640px;
}

.statistics-chart {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 28px;
    transition: all 0.3s ease;
    border: 1px solid #e8eef3;
}

.statistics-chart:hover {
    box-shadow: 0 8px 16px rgba(0, 110, 173, 0.12);
    transform: translateY(-2px);
}

.statistics-chart-plot {
    min-width: 10em;
    min-height: 10em;
}

.statistics-chart img {
    width: 100%;
    height: auto;
    max-width: 100%;
}

#shields-wrapper {
    grid-column: span 3;
    margin-top: 0;
}

#shields-table {
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    padding: 20px;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border: 1px solid var(--ecmwf-light-blue);
}

#shields-table tr {
    transition: background-color 0.15s ease;
}

#shields-table tr:hover {
    background-color: rgba(0, 110, 173, 0.03);
}

#shields-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #e9ecef;
}

#shields-table tr:last-child td {
    border-bottom: none;
}

#shields-table img {
    transition: transform 0.15s ease;
}

#shields-table img:hover {
    transform: scale(1.03);
}

/* Center sections */
center {
    width: 100%;
}

center p {
    font-weight: 600;
    color: var(--ecmwf-blue);
    font-size: 1.1em;
    margin-bottom: 12px;
}

/* Section titles */
.statistics-title {
    color: var(--text-dark);
    font-size: 1.35em;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    letter-spacing: -0.02em;
}

#shields-title {
    text-align: center;
    color: var(--ecmwf-blue);
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ecmwf-blue);
}

/* Responsive design */
@media (max-width: 1400px) {
    .statistics-wrapper {
        grid-template-columns: repeat(2, 1fr);
        padding: 24px;
    }

    .statistics_col_2 {
        grid-column: span 2;
    }

    .statistics_col_3 {
        grid-column: span 2;
    }

    #shields-wrapper {
        grid-column: span 2;
    }
}

@media (max-width: 1024px) {
    .statistics-wrapper {
        grid-template-columns: 1fr !important;
        gap: 16px;
        padding: 16px;
    }

    .statistics-wrapper > * {
        grid-area: auto !important;
        grid-column: 1 / -1 !important;
    }

    .statistics,
    .statistics-chart {
        width: 100% !important;
    }

    .statistics_col_1,
    .statistics_col_2,
    .statistics_col_3 {
        grid-column: 1 / -1 !important;
        width: 100% !important;
    }

    #shields-wrapper {
        grid-column: 1 / -1 !important;
    }
}

@media (max-width: 768px) {
    .statistics-wrapper {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }

    .statistics,
    .statistics-chart {
        padding: 16px;
    }

    .statistics-title {
        font-size: 1.15em;
        margin-bottom: 16px;
    }

    .statistics-wrapper .inner-statistics td {
        font-size: 0.9em;
        padding: 10px 8px;
    }

    .statistics-wrapper .inner-statistics td.entry-label {
        width: 45%;
    }

    .statistics-wrapper .inner-statistics td.right:nth-last-child(2) {
        width: 30%;
    }

    .statistics-wrapper .inner-statistics td.right:last-child {
        width: 25%;
    }

    .quota-stats {
        font-size: 0.85em;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .quota-label {
        font-size: 0.75em;
    }

    .runtime-tags {
        gap: 8px;
    }

    .runtime-tag {
        padding: 6px 10px;
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .statistics-wrapper {
        padding: 8px;
        gap: 10px;
    }

    .statistics,
    .statistics-chart {
        padding: 12px;
    }

    .statistics-title {
        font-size: 1em;
        margin-bottom: 12px;
    }

    .statistics-wrapper .inner-statistics {
        margin-top: 1em;
    }

    .statistics-wrapper .inner-statistics td {
        font-size: 0.85em;
        padding: 8px 4px;
    }

    .statistics-wrapper .inner-statistics td.entry-label {
        width: 50%;
    }

    .statistics-wrapper .inner-statistics td.right:nth-last-child(2) {
        width: 25%;
    }

    .statistics-wrapper .inner-statistics td.right:last-child {
        width: 25%;
    }

    .quota-stats {
        font-size: 0.8em;
    }

    .runtime-tag {
        padding: 5px 8px;
    }

    .runtime-name {
        font-size: 0.85em;
    }

    .runtime-count {
        font-size: 0.8em;
    }

    #shields-table {
        font-size: 0.85em;
        padding: 12px;
    }

    #shields-table td {
        padding: 6px 4px;
    }
}
