/* ghg-context.css — page-specific styles for ghg-context.html */

/* Two-column layout */
#main { flex: 1; display: flex; overflow: hidden; }
#chart-area { flex: 1; overflow-y: auto; padding: 20px 24px; }
#side-panel {
  width: 310px; flex-shrink: 0;
  overflow-y: auto; padding: 20px 16px;
  border-left: 1px solid #243040;
  font-size: 14px;
}

/* Chart sections */
.chart-section { margin-bottom: 24px; }
.chart-section h2 {
  font-size: 14px; font-weight: 700; color: #7a90a8;
  text-transform: uppercase; letter-spacing: 0.4px;
  margin-bottom: 8px; padding-bottom: 6px;
  border-bottom: 1px solid #243040;
}
.chart-section h2 .unit {
  font-weight: 400; color: #5a7890;
  text-transform: none; letter-spacing: 0;
}
.chart-box {
  background: #111820; border: 1px solid #243040;
  border-radius: 6px; padding: 12px 16px 8px;
}
.chart-box svg { display: block; }

/* Forcing panel */
.fp-title {
  font-size: 13px; font-weight: 700; color: #7a90a8;
  text-transform: uppercase; letter-spacing: 0.4px;
  margin-bottom: 10px; padding-bottom: 6px;
  border-bottom: 1px solid #243040;
}
.fp-group { margin-bottom: 16px; }
.fp-group h3 { font-size: 12px; font-weight: 600; color: #5a7890; margin-bottom: 6px; }
.fp-row { display: flex; justify-content: space-between; padding: 3px 0; font-size: 13px; }
.fp-key { color: #8fa4b8; }
.fp-val { color: #e0eaf4; font-variant-numeric: tabular-nums; font-weight: 500; }
.fp-val.warm { color: #e07050; }
.fp-total {
  display: flex; justify-content: space-between;
  padding: 8px 0; margin-top: 4px;
  border-top: 1px solid #243040;
  font-size: 14px; font-weight: 600;
}
.fp-total .fp-key { color: #b0c4d8; }
.fp-total .fp-val { color: #e0eaf4; font-size: 15px; }
.fp-note {
  font-size: 12px; color: #5a7890; line-height: 1.5;
  margin-top: 12px; padding: 10px 12px;
  background: #111820; border-radius: 6px;
  border-left: 3px solid #4a6080;
}
.fp-bridge {
  margin-top: 16px; padding: 12px;
  background: #111820; border-radius: 6px;
  border: 1px solid #243040;
}
.fp-bridge h3 { font-size: 12px; font-weight: 600; color: #5a7890; margin-bottom: 8px; }
.fp-arrow { font-size: 12px; color: #8fa4b8; line-height: 1.8; }
.fp-arrow .val { color: #e0eaf4; font-weight: 600; }
.fp-arrow .op  { color: #5a7890; }

/* Data source note */
.source-note { font-size: 11px; color: #4a6070; margin-top: 16px; line-height: 1.5; }
.source-note a { color: #5a7890; }

/* Info button */
.info-btn {
  font-size: 13px; color: #7a90a8; background: #1a2838;
  border: 1px solid #3a5060; border-radius: 50%;
  width: 26px; height: 26px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.12s; flex-shrink: 0;
}
.info-btn:hover { color: #e0eaf4; border-color: #5090e0; }
.info-btn:focus-visible { outline: 2px solid #5090e0; outline-offset: 2px; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(8,12,18,0.80);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: #111820; border: 1px solid #3a5060; border-radius: 10px;
  max-width: 640px; width: 90%; max-height: 85vh; overflow-y: auto;
  padding: 28px 32px; box-shadow: 0 12px 48px rgba(0,0,0,0.5);
}
.modal h2 { font-size: 18px; font-weight: 700; color: #e0eaf4; margin-bottom: 14px; }
.modal h3 { font-size: 14px; font-weight: 700; color: #7a90a8; margin-top: 18px; margin-bottom: 6px; }
.modal p, .modal li { font-size: 14px; color: #b0c4d8; line-height: 1.7; margin-bottom: 8px; }
.modal ul { padding-left: 20px; margin-bottom: 10px; }
.modal a { color: #5090e0; }
.modal .close-btn {
  position: absolute; top: 16px; right: 18px;
  font-size: 18px; color: #7a90a8; background: none;
  border: none; cursor: pointer; padding: 4px 8px;
}
.modal .close-btn:hover { color: #e0eaf4; }
.modal .close-btn:focus-visible { outline: 2px solid #5090e0; }
.modal-muted { color: #5a7890; font-size: 13px; }
.start-btn {
  font-size: 15px; font-weight: 600; color: #e0eaf4;
  background: #1a3050; border: 1px solid #3a6090;
  border-radius: 6px; padding: 10px 36px; cursor: pointer;
  transition: all 0.15s;
}
.start-btn:hover { background: #244070; border-color: #5090e0; }
.start-btn:focus-visible { outline: 2px solid #5090e0; outline-offset: 2px; }
