body, html {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f6f6f6;
    color: #222;
}

.content-wrapper {
    max-width: 1008px;
    margin: 0 auto;
    padding: 0 16px;
}

.site-header {
    background-color: #0f172a;
    color: white;
    padding: 12px 0;
    border-bottom: 4px solid #3b82f6;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f8fafc;
}

.header-title {
    font-size: 20px;
    font-weight: 300;
    border-left: 1px solid rgba(255,255,255,0.3);
    padding-left: 16px;
}

.main-layout {
    margin-top: 24px;
}

.headline {
    font-size: 32px;
    line-height: 36px;
    font-weight: bold;
    color: #222;
    margin: 0 0 8px 0;
}

.updated-time {
    font-size: 14px;
    color: #555;
    margin-bottom: 24px;
}

.key-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.metric-card {
    background: white;
    border-left: 4px solid #222;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.metric-card h2 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px 0;
    color: #555;
}

.metric-card .value {
    font-size: 28px;
    font-weight: bold;
    color: #222;
}

.theme-brand { border-color: #3b82f6; }
.theme-generation { border-color: #10b981; }
.theme-emissions { border-color: #64748b; }
.theme-price { border-color: #f59e0b; }

.grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

@media (max-width: 768px) {
    .grid-layout { grid-template-columns: 1fr; }
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.bars-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.tab-button {
    border: none;
    background: transparent;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    color: #64748b;
}

.tab-button.active {
    color: #3b82f6;
    border-bottom: 2px solid #3b82f6;
}

.tab-button:hover {
    color: #1e293b;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    padding: 8px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.bar-label {
    width: 100px;
    font-weight: bold;
    font-size: 14px;
}

.bar-track {
    flex-grow: 1;
    background: #e6e6e6;
    height: 24px;
    position: relative;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: #222;
}

.bar-value {
    width: 100px;
    text-align: right;
    font-size: 14px;
    font-weight: bold;
}

.about-box {
    background: white;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 15px;
    line-height: 1.5;
}

.site-footer {
    background: #222;
    color: #ccc;
    padding: 24px 0;
    font-size: 13px;
    text-align: center;
}

.site-footer a { color: white; text-decoration: underline; }

.tooltip-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #cbd5e1;
    color: #475569;
    font-size: 10px;
    font-weight: bold;
    margin-left: 4px;
    cursor: help;
    position: relative;
}

.tooltip-icon:hover {
    background-color: #3b82f6;
    color: white;
}

.tooltip-icon .tooltip-text {
    visibility: hidden;
    width: max-content;
    max-width: 250px;
    background-color: #1e293b;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 100;
    bottom: 125%;
    left: 0;
    margin-left: -20px;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.4;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    pointer-events: none;
}

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

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

@media (max-width: 768px) {
    .tooltip-icon .tooltip-text {
        max-width: 220px;
    }
}
