/* --- palette mirrors the report's dark-green look --- */
:root {
  --bg: #0E1A14;
  --panel: #1E5034;
  --field-dk: #16402A;
  --txt: #FFFFFF;
  --sub: #B8C5BE;
  --accent: #4DB8F4;
  --border: #2A4A38;
  --tab-active: #1E5034;
  --tab-hover: #16402A;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: "Cambria", "Calibri", system-ui, -apple-system, "Segoe UI", sans-serif;
  min-height: 100%;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #0E1A14 0%, #16402A 100%);
}

.brand-logo {
  height: 64px;
  width: auto;
  flex-shrink: 0;
  background: #FFFFFF;
  border-radius: 6px;
  padding: 4px 8px;
}

.brand {
  flex: 1 1 auto;
  min-width: 0;
}

.brand-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.brand-sub {
  font-size: 13px;
  color: var(--sub);
  margin-top: 2px;
}

.filters {
  display: flex;
  gap: 18px;
}
.filters label {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--sub);
  font-weight: 700;
}
.filters select {
  margin-top: 4px;
  background: var(--bg);
  color: var(--txt);
  border: 1px solid var(--border);
  padding: 8px 12px;
  font-size: 14px;
  font-family: inherit;
  border-radius: 4px;
  min-width: 180px;
  cursor: pointer;
}
.filters select:hover { border-color: var(--accent); }
.filters select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  background: #0B1610;
  padding: 0 24px;
}
.tab {
  background: transparent;
  color: var(--sub);
  border: none;
  padding: 14px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.tab:hover { color: var(--txt); background: var(--tab-hover); }
.tab.active {
  color: var(--txt);
  border-bottom-color: var(--accent);
  background: var(--tab-active);
}

#content {
  padding: 28px;
  max-width: 1600px;
  margin: 0 auto;
}

.chart-group-title {
  font-size: 22px;
  font-weight: 700;
  margin: 6px 0 14px 0;
  text-align: center;
}
.chart-group-sub {
  font-size: 14px;
  color: var(--sub);
  text-align: center;
  margin-bottom: 22px;
}

.section-heading {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 8px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  color: var(--txt);
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 18px;
}

.chart-row {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.chart-card {
  background: #11231A;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  transition: transform 0.12s, border-color 0.12s;
}
.chart-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.chart-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
  pointer-events: none;   /* clicks pass through to .chart-card */
}

.empty {
  text-align: center;
  color: var(--sub);
  font-style: italic;
  padding: 60px 0;
  font-size: 14px;
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  background: #11231A;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 24px auto;
  max-width: 640px;
}
.empty-state-title {
  font-size: 22px;
  font-weight: 700;
  color: #E0533A;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.empty-state-sub {
  font-size: 14px;
  color: var(--sub);
  line-height: 1.5;
  max-width: 460px;
  margin: 0 auto;
}

.footer {
  padding: 14px 28px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--sub);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.empty-flag {
  color: #E0533A;
  font-weight: 700;
}

/* ----- Lightbox ----- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 14, 11, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 32px;
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--txt);
  font-size: 28px;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 700;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.18); }

@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; gap: 14px; }
  .brand-logo { height: 48px; }
  .filters select { min-width: 140px; }
  #content { padding: 16px; }
}
