/* Masthead */
.masthead {
  padding: 20px 32px;
  border-bottom: 1px solid;
}

.lens-title {
  margin-top: 4px;
}

/* Context row */
.context {
  padding: 10px 32px;
  border-bottom: 1px solid;
}

/* Main content */
.content {
  max-width: 960px;
  padding: 32px;
}

/* Figures */
.figure {
  margin-bottom: 40px;
}

.figure.secondary {
  margin-top: 20px;
}

/* Placeholder (temporary, safe to delete later) */
.placeholder {
  height: 280px;
  border: 1px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #999;
}

/* Meta */
.meta {
  padding-top: 12px;
  border-top: 1px solid;
}
/* ========== Footer ========== */

/* Login footer (inside card) */
.login-footer {
  margin-top: 14px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 10px;
  color: #b5b5b5;
  letter-spacing: 0.08em;
}

/* ========== Top Bar ========== */

.topbar {
  background: #000;
  color: #fff;
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-brand {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
}

.topbar-nav a {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
}

.topbar-nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Hamburger button — hidden on desktop */
.topbar-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.topbar-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: transform 0.2s, opacity 0.2s;
  transform-origin: center;
}

/* Animate to X when open */
.topbar-hamburger--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.topbar-hamburger--open span:nth-child(2) {
  opacity: 0;
}
.topbar-hamburger--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== Mobile header (≤ 768px) ========== */
@media (max-width: 768px) {
  .topbar-inner {
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 0;
  }

  .topbar-brand {
    flex: 1;
  }

  .ticker {
    display: none;
  }

  .topbar-hamburger {
    display: flex;
  }

  /* Nav hidden by default on mobile */
  .topbar-nav {
    display: none;
    width: 100%;
    order: 3;
    margin-top: 8px;
  }

  .topbar-nav--open {
    display: block;
  }

  .topbar-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .topbar-nav ul li a {
    display: block;
    padding: 11px 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
  }
}


/* ========== Page Footer ========== */

.page-footer {
  max-width: 960px;
  margin: 60px auto 30px;
  padding: 0 32px;
}

.page-footer hr {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 12px;
}

.footer-text {
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 10px;
  color: #b5b5b5;
  letter-spacing: 0.08em;
}

.app-container {
    max-width: 1200px;      /* or 1280px if you want wider */
    margin: 0 auto;         /* centers horizontally */
    padding: 40px 24px;     /* breathing space on sides */
}

.filter-bar {
    display: flex;
    gap: 24px;
    align-items: flex-end;
    margin: 24px 0 32px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-size: 12px;
    color: #666;
}

.filter-group select {
    padding: 6px 8px;
    font-size: 14px;
}
.data-table-section {
    margin-top: 32px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #111;
}

.table-wrapper {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid #ddd;
    color: #333;
}

.data-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    color: #444;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background-color: #f9f9f9;
}
.data-table td:nth-child(4) {
    font-variant-numeric: tabular-nums;
}
/* MoM Color Coding */
.mom-positive {
    color: #0a8a2a;
    font-weight: 600;
}

.mom-negative {
    color: #c00000;
    font-weight: 600;
}

.mom-neutral {
    color: #000000;
    font-weight: 500;
}

.mom-na {
    color: #888888;
}
/* MoM Color Coding (specific enough to override table styles) */
.data-table tbody td.mom-positive {
    color: #0a8a2a;
    font-weight: 600;
}

.data-table tbody td.mom-negative {
    color: #c00000;
    font-weight: 600;
}

.data-table tbody td.mom-neutral {
    color: #000000;
    font-weight: 500;
}

.data-table tbody td.mom-na {
    color: #888888;
}

.cell-high {
    background-color: #eaf6ee;
}

.cell-low {
    background-color: #fdecec;
}
.chart-row{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:40px;
    margin-top:30px;
}

.chart-box{
    width:32%;
    text-align:center;
}

.chart-box canvas{
    max-width:260px;
    max-height:260px;
    margin:auto;
}

.custom-legend {
    margin-top:12px;
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:14px;
    font-size:14px;
}

.legend-item {
    display:flex;
    align-items:center;
    gap:6px;
}

.legend-color {
    width:14px;
    height:14px;
    display:inline-block;
}




