:root {
  --mtbg-chart-line: #1e3f66;
  --mtbg-chart-fill: rgba(30, 63, 102, 0.18);
}

.mtbg-gpx-elevation-wrapper {
    width: 100%;
    max-width: 100%;
    height: 260px;
    background: #ffffff;
    padding: 10px 0;
}
/* Horizontal stats table */
.mtbg-gpx-stats {
    margin: 16px 0 32px;
}

/* Make the table look like a single card */
.mtbg-gpx-stats-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    text-align: center;
    font-size: 0.95rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    border-radius: 4px;
    overflow: hidden;
}

/* Header row */
.mtbg-gpx-stats-table thead th {
    background: #4e6c89;          /* your blue */
    color: #ffffff;
    padding: 8px 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.8rem;
}

/* Data row */
.mtbg-gpx-stats-table tbody td {
    background: rgba(255,255,255,0.96);
    padding: 10px 12px;
    border-top: 1px solid #d5dde5;
    font-size: 0.9rem;
    white-space: normal;          /* allow line break metric/imperial */
}

/* Metric line (top) */
.mtbg-unit-metric {
    display: block;
    font-weight: 600;
    color: #222;
    line-height: 1.2;
}

/* Imperial line (bottom) */
.mtbg-unit-imperial {
    display: block;
    font-size: 0.8rem;
    color: #555;
    line-height: 1.2;
}
/* Vertical borders between columns */
.mtbg-gpx-stats-table thead th + th,
.mtbg-gpx-stats-table tbody td + td {
    border-left: 1px solid #d5dde5;
}

/* Tiny-screen handling: allow horizontal scroll instead of squashing */
@media (max-width: 600px) {
    .mtbg-gpx-stats-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
