
/* ─── SECTION GLOBALS ─── */
section {
  padding: 96px 80px;
}

.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--teal);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 46px;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 20px;
}

.section-title em {
  color: var(--teal);
  font-style: italic;
}

.section-sub {
  font-size: 17px;
  color: var(--gray-500);
  line-height: 1.7;
  max-width: 560px;
  font-weight: 300;
}

/* ─── ANNOTATIONS (explanation overlays) ─── */
.annotation {
  position: relative;
  cursor: help;
}

.ann-badge {
  position: absolute;
  z-index: 50;
  background: #FF4D4D;
  color: white;
  font-size: 10px;
  font-family: 'DM Mono', monospace;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 2px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(255,77,77,0.35);
}

.ann-badge.top-right {
  top: -12px;
  right: -8px;
}

.ann-badge.top-left {
  top: -12px;
  left: -8px;
}

/* ─── EXPLANATION SIDEBAR ─── */
.explanation-panel {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 340px;
  z-index: 200;
  background: white;
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
  overflow-y: auto;
  padding: 32px;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}

.explanation-panel.open {
  transform: translateX(0);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--navy);
}

.exp-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--navy);
}

.exp-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--gray-500);
}

.exp-section {
  margin-bottom: 28px;
}

.exp-section h4 {
  font-size: 12px;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

.exp-section p {
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.65;
}

.exp-section ul {
  padding-left: 16px;
}

.exp-section li {
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.65;
  margin-bottom: 4px;
}

.exp-kpi {
  background: var(--gray-100);
  border-left: 3px solid var(--teal);
  padding: 10px 14px;
  margin-top: 10px;
  border-radius: 0 3px 3px 0;
}

.exp-kpi p {
  font-size: 12px;
  color: var(--gray-500);
}

.exp-kpi strong {
  color: var(--navy);
  font-size: 13px;
}

/* Toggle button */
.explain-toggle {
  position: fixed;
  right: 24px;
  top: 84px;
  z-index: 201;
  background: var(--navy);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 12px;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s;
}

.explain-toggle:hover {
  background: var(--teal);
}

/* ─── ANIMATIONS ─── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  section {
    padding: 72px 40px;
  }

  .section-title {
    font-size: clamp(28px, 5vw, 40px);
  }

  .section-sub {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 56px 24px;
  }

  .section-label {
    font-size: 10px;
  }

  .section-title {
    margin-bottom: 16px;
  }

  .explanation-panel {
    width: min(100vw, 100%);
    max-width: 100%;
    padding: 24px 20px 32px;
  }

  .explain-toggle {
    right: 12px;
    top: 80px;
    padding: 8px 12px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  section {
    padding: 48px 16px;
  }

  .explain-toggle {
    left: 12px;
    right: auto;
    top: auto;
    bottom: 100px;
  }
}

