:root {
    --bg-color: #ffffff;
    --text-primary: #0b0c0c;
    --text-secondary: #505a5f;
    --border-color: #b1b4b6;
    --link-color: #1d70b8;
    --focus-color: #ffdd00;
    --chart-line: #1d70b8;
    --chart-grid: #b1b4b6;
    --alert-bg: #fffbf0;
    --alert-border: #f38f18;
}

body {
    font-family: "GDS Transport", arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    margin: 0;
    padding: 20px;
    line-height: 1.5;
}

.container {
    max-width: 960px;
    margin: 0 auto;
}

/* Alert Banner */
.alert-banner {
    background: var(--alert-bg);
    border-left: 10px solid var(--alert-border);
    padding: 15px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.alert-banner strong {
    color: var(--link-color);
    text-decoration: underline;
    cursor: pointer;
}

/* Specific Header */
.header h1 {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.meta-nav {
    display: flex;
    gap: 15px;
    font-size: 19px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 30px;
}

.meta-nav a {
    color: var(--link-color);
    text-decoration: underline;
}

/* Stats Row */
.stats-header {
    font-weight: 700;
    font-size: 19px;
    margin-bottom: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-item h3 {
    font-size: 19px;
    color: var(--text-secondary);
    margin: 0 0 5px 0;
    font-weight: 400;
}

.stat-item .value {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.stat-item .sub-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* Chart */
.chart-section {
    margin-bottom: 50px;
}

.chart-section h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.chart-container {
    height: 400px;
    background: #f8f8f8;
    /* Slight grey bg for chart area */
    border: 1px solid #f3f2f1;
    position: relative;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Impact Timeline */
.impact-section h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.impact-list {
    position: relative;
    padding-left: 20px;
    margin-left: 10px;
    border-left: 4px solid #b1b4b6;
    /* grey vertical line */
}

.impact-item {
    position: relative;
    margin-bottom: 25px;
    padding-left: 20px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

/* Tick Mark */
.impact-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 10px;
    width: 12px;
    height: 4px;
    background: #b1b4b6;
}

/* Specific highlight for 'Latest level' */
.impact-item.latest {
    /* No border - just bold text */
}

.impact-item.latest::before {
    background: #1d70b8;
    width: 16px;
}

.impact-value {
    font-weight: 700;
    font-size: 24px;
    min-width: 90px;
    flex-shrink: 0;
}

.impact-desc {
    font-size: 19px;
    line-height: 1.4;
    flex: 1;
}

.impact-icon {
    float: right;
    color: #1d70b8;
    font-weight: bold;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .header h1 {
        font-size: 32px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .impact-value {
        display: block;
        margin-bottom: 5px;
    }
}

/* Info Icon */
.info-icon {
    font-size: 0.6em;
    vertical-align: super;
    cursor: help;
    margin-left: 2px;
    color: var(--text-secondary);
}

/* Custom Tooltip */
.info-icon {
    position: relative;
    cursor: help;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    width: 250px;
    background-color: #0b0c0c;
    color: #fff;
    text-align: left;
    border-radius: 4px;
    padding: 10px;
    position: absolute;
    z-index: 10;
    bottom: 125%;
    /* Position above */
    left: 50%;
    transform: translateX(-50%);

    /* Font */
    font-size: 16px;
    line-height: 1.4;
    font-weight: 400;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);

    /* Animation */
    opacity: 0;
    transition: opacity 0.1s;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    /* At bottom of tooltip */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #0b0c0c transparent transparent transparent;
}

.info-icon:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Custom Tooltip Styles */
.info-icon {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip-text {
    visibility: hidden;
    width: 300px;
    background-color: #0b0c0c;
    color: #fff;
    text-align: left;
    border-radius: 4px;
    padding: 10px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -150px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #0b0c0c transparent transparent transparent;
}

.info-icon:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Skeleton Loader Styles */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 20px;
    margin: 10px 0;
}

.skeleton-title {
    height: 32px;
    width: 60%;
    margin: 15px 0;
}

.skeleton-chart {
    height: 400px;
    margin: 20px 0;
}

.skeleton-box {
    height: 100px;
    margin: 15px 0;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}