/* ═══════════════════════════════════════════
   WattMatch Map — Styles
   ═══════════════════════════════════════════ */

* { box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: #1C1917; margin: 0; padding: 0; background: #FAFAF9; }
h1, h2, h3, h4, h5, h6 { font-family: 'Suisse Screen', sans-serif; margin: 0; }

/* ── Layout ─────────────────────────────── */
.map-layout {
  display: flex;
  height: calc(100vh - 80px);
  overflow: hidden;
}

.map-sidebar {
  width: 380px;
  flex-shrink: 0;
  background: white;
  border-left: 1px solid #E5E5E5;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
}

.map-container {
  flex: 1;
  position: relative;
}

/* Hide mobile chevron on desktop */
.mobile-chevron { display: none; }

#map {
  width: 100%;
  height: 100%;
}

/* ── Sidebar sections ───────────────────── */
.sidebar-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #F5F5F4;
  flex-shrink: 0;
}

.sidebar-header .logo {
  font-family: 'Suisse Screen WM', 'Suisse Screen', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #1C1917;
  text-decoration: none;
}
.sidebar-header .logo span { color: #15803D; }

.sidebar-search {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid #F5F5F4;
  flex-shrink: 0;
}

.search-input-wrap {
  position: relative;
}

.search-input {
  width: 100%;
  border: 2px solid #E5E5E5;
  border-radius: 0.75rem;
  padding: 0.625rem 0.75rem 0.625rem 2.5rem;
  font-size: 0.875rem;
  transition: border-color 0.2s;
  background: #FAFAF9;
}
.search-input:focus {
  outline: none;
  border-color: #15803D;
  background: white;
}
.search-input-wrap svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #78716C;
  width: 1rem;
  height: 1rem;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #E5E5E5;
  border-radius: 0.75rem;
  max-height: 250px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.search-suggestions.hidden { display: none; }

.search-suggestion-item {
  /* WCAG 2.5.5 AA — 0.5rem + 0.8rem text rendered ~28 px tall:
     borderline pass. Bump vertical padding to 0.625rem (10 px) so
     each option clears 30 px comfortably. */
  padding: 0.625rem 0.75rem;
  cursor: pointer;
  font-size: 0.8rem;
  border-bottom: 1px solid #F5F5F4;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 32px;
}
.search-suggestion-item:hover { background: #F0FDF4; }
.search-suggestion-header { background: #FAFAF9; font-weight: 600; }
.search-suggestion-sub { padding-left: 1.25rem; font-size: 0.75rem; }
.search-suggestion-item:last-child { border-bottom: none; }
.search-suggestion-item .badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.125rem 0.375rem;
  border-radius: 999px;
  flex-shrink: 0;
}
.badge-npa { background: #DBEAFE; color: #1E40AF; }
.badge-commune { background: #FEF3C7; color: #92400E; }
.badge-cel { background: #D1FAE5; color: #065F46; }

/* ── Sidebar filters ────────────────────── */
.sidebar-filters {
  padding: 0.5rem 1.25rem;
  border-bottom: 1px solid #F5F5F4;
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.filter-chip {
  font-size: 0.7rem;
  font-weight: 600;
  /* WCAG 2.5.5 AA — 0.25rem (4px) vertical padding plus a 0.7rem
     glyph rendered ~14px gave only 14px of touch area, well below
     the 24px minimum. Bump vertical padding so the chip is at
     least 24px tall (0.5rem * 2 + 14px = 30px); also tighten
     colour to stone-600 for AAA contrast on white. */
  padding: 0.5rem 0.75rem;
  min-height: 24px;
  border-radius: 999px;
  border: 1.5px solid #E5E5E5;
  background: white;
  cursor: pointer;
  transition: all 0.15s;
  color: #57534E;
}
.filter-chip:hover { border-color: #15803D; color: #15803D; }
.filter-chip.active {
  border-color: #15803D;
  background: #F0FDF4;
  color: #15803D;
}

/* ── Rebate filter row ─────────────────── */
.rebate-filters {
  align-items: center;
}
.filter-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #78716C;
  flex-shrink: 0;
}
.rebate-chip.active[data-rebate="20"] {
  border-color: #F59E0B;
  background: #FFFBEB;
  color: #B45309;
}
.rebate-chip.active[data-rebate="40"] {
  border-color: #3B82F6;
  background: #EFF6FF;
  color: #1D4ED8;
}

/* ── Color legend ──────────────────────── */
.color-legend {
  display: flex;
  gap: 0.625rem;
  margin-left: auto;
  font-size: 0.65rem;
  color: #78716C;
  align-items: center;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.legend-dot-20 {
  background: transparent;
  border: 2.5px solid #F59E0B;
}
.legend-dot-40 {
  background: #3B82F6;
  border: 1px solid #3B82F6;
}

/* ── Rebate tags in CEL card ───────────── */
.rebate-tag {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 0.0625rem 0.375rem;
  border-radius: 999px;
  margin-left: 0.25rem;
  vertical-align: middle;
}
.rebate-tag-20 {
  background: #FFFBEB;
  color: #B45309;
  border: 1px solid #FDE68A;
}
.rebate-tag-40 {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

/* ── Role-aware saving tag in CEL card ───── */
.saving-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-right: 0.25rem;
  vertical-align: middle;
}
.saving-tag.consumer {
  background: #F0FDF4;
  color: #15803D;
  border: 1px solid #BBF7D0;
}
.saving-tag.producer {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}
.saving-tag .saving-amount {
  font-size: 0.8rem;
  font-weight: 800;
}
.saving-tag .saving-unit {
  font-size: 0.6rem;
  font-weight: 600;
  opacity: 0.8;
}
.saving-tag.tier-small { opacity: 0.75; }

/* ── Role toggle row ───────────────────── */
.role-toggle-row { gap: 0.5rem; }
.role-chip.active {
  border-color: #15803D;
  background: #F0FDF4;
  color: #15803D;
}
.role-chip[data-role="producer"].active {
  border-color: #F59E0B;
  background: #FFFBEB;
  color: #B45309;
}

/* ── Tooltip (CSS-only, hover + focus) ──── */
.wm-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: help;
  color: #78716C;
  vertical-align: middle;
}
.wm-tooltip:hover,
.wm-tooltip:focus { outline: none; color: #15803D; }
.wm-tooltip-icon { flex-shrink: 0; }
.wm-tooltip-content {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  max-width: 280px;
  background: #1C1917;
  color: white;
  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1.45;
  padding: 0.5rem 0.625rem;
  border-radius: 0.5rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s, visibility 0.15s;
  z-index: 1100;
  text-align: left;
  pointer-events: none;
}
.wm-tooltip-content::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1C1917;
}
.wm-tooltip-content strong {
  display: block;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #FACC15;
}
.wm-tooltip-content b { color: #A7F3D0; font-weight: 600; }
.wm-tooltip:hover .wm-tooltip-content,
.wm-tooltip:focus .wm-tooltip-content,
.wm-tooltip:focus-within .wm-tooltip-content { opacity: 1; visibility: visible; }

/* Keep tooltip inside sidebar on narrow contexts */
@media (max-width: 768px) {
  .wm-tooltip-content {
    left: 0;
    transform: none;
    min-width: 200px;
  }
  .wm-tooltip-content::after { left: 14px; transform: none; }
}

/* ── Economic estimate block (detail panel) ── */
.economic-estimate {
  background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
  border: 1px solid #BBF7D0;
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  margin-bottom: 0.75rem;
}
.economic-estimate.producer {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border-color: #FDE68A;
}
.economic-estimate-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: #15803D;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.economic-estimate.producer .economic-estimate-label { color: #B45309; }
.economic-estimate-amount {
  font-family: 'Suisse Screen', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #15803D;
  line-height: 1.1;
}
.economic-estimate.producer .economic-estimate-amount { color: #B45309; }
.economic-estimate-unit {
  font-size: 0.8rem;
  font-weight: 600;
  color: #78716C;
  margin-left: 0.25rem;
}
.economic-estimate-detail {
  font-size: 0.7rem;
  color: #57534E;
  margin-top: 0.375rem;
  line-height: 1.4;
}
.economic-estimate-na {
  font-size: 0.8rem;
  color: #78716C;
  font-style: italic;
}

/* ── Popup CEL badges ──────────────────── */
.popup-badge-20 {
  background: #FEF3C7 !important;
  color: #92400E !important;
}
.popup-badge-40 {
  background: #DBEAFE !important;
  color: #1E40AF !important;
}

/* ── Popup CEL blocks (separate links per rebate) ── */
.popup-cel-block {
  margin-top: 0.375rem;
  padding: 0.375rem 0;
  border-bottom: 1px solid #F5F5F4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}
.popup-cel-block:last-child { border-bottom: none; }
.popup-cta-20 { color: #B45309 !important; }
.popup-cta-40 { color: #1D4ED8 !important; }

/* ── Sidebar content / CEL list ─────────── */
.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1.25rem;
}

.cel-card {
  background: #FAFAF9;
  border: 1px solid #E5E5E5;
  border-radius: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.15s;
}
.cel-card:hover {
  border-color: #15803D;
  box-shadow: 0 2px 8px rgba(34,197,94,0.1);
}
.cel-card.active {
  border-color: #15803D;
  background: #F0FDF4;
}

.cel-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.375rem;
}
.cel-card-title {
  font-weight: 700;
  font-size: 0.8rem;
  color: #1C1917;
}
.cel-card-id {
  font-size: 0.65rem;
  font-family: monospace;
  color: #78716C;
}
.cel-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
}
.cel-stat {
  text-align: center;
  font-size: 0.65rem;
  color: #78716C;
}
.cel-stat-value {
  font-weight: 700;
  font-size: 0.8rem;
  color: #1C1917;
  display: block;
}

.eligible-badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
}
.eligible-yes { background: #D1FAE5; color: #065F46; }
.eligible-no { background: #FEE2E2; color: #991B1B; }

/* ── CEL Detail Panel ───────────────────── */
.cel-detail-panel {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}
.cel-detail-panel.open {
  display: flex;
}
.sidebar-content.list-hidden {
  display: none;
}

.cel-detail-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #F5F5F4;
  flex-shrink: 0;
}
.cel-detail-back {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  color: #78716C;
  cursor: pointer;
  margin-bottom: 0.75rem;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}
.cel-detail-back:hover { color: #15803D; }

.cel-detail-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}

.detail-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.detail-stat-card {
  background: #F5F5F4;
  border-radius: 0.5rem;
  padding: 0.625rem;
  text-align: center;
}
.detail-stat-label {
  font-size: 0.65rem;
  color: #78716C;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.025em;
}
.detail-stat-value {
  font-size: 1.125rem;
  font-weight: 800;
  color: #1C1917;
  font-family: 'Suisse Screen', sans-serif;
}
.detail-stat-value.text-primary { color: #15803D; }

.detail-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, #15803D 0%, #166534 100%);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.detail-cta:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(34,197,94,0.3);
}

/* ── Rebate badge in detail header ──────── */
.detail-rebate-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.detail-rebate-badge.rebate-20 {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #F59E0B;
}
.detail-rebate-badge.rebate-40 {
  background: #DBEAFE;
  color: #1E40AF;
  border: 1px solid #3B82F6;
}

/* ── User site banner ─────────────────────── */
.user-site-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #EFF6FF;
  border-bottom: 1px solid #BFDBFE;
  font-size: 0.75rem;
}
.user-site-banner.hidden { display: none; }
.site-deselect-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: #6B7280;
  padding: 0 0.15rem;
  flex-shrink: 0;
  transition: color 0.15s;
}
.site-deselect-btn:hover { color: #EF4444; }
.site-cycle-btn {
  background: none;
  border: 1px solid #BFDBFE;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  color: #3B82F6;
  padding: 0.1rem 0.35rem;
  transition: background 0.15s;
}
.site-cycle-btn:hover { background: #DBEAFE; }
.user-site-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.user-site-name {
  font-weight: 700;
  color: #1E40AF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-site-addr {
  color: #3B82F6;
  font-size: 0.65rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── User site marker on map ─────────────── */
.user-site-marker {
  background: #3B82F6;
  border: 3px solid white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  box-shadow: 0 0 0 2px #3B82F6, 0 2px 8px rgba(59,130,246,0.4);
}
.user-site-marker-pulse {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(59,130,246,0.2);
  animation: sitePulse 2s ease-out infinite;
}
@keyframes sitePulse {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

/* ── Join success toast ────────────────────── */
.join-success-msg {
  background: #D1FAE5;
  color: #065F46;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  line-height: 1.4;
}
.join-success-msg strong { font-weight: 700; }
.join-success-msg p { margin: 0.25rem 0; }

/* ── Map overlays ───────────────────────── */
.map-overlay-info {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: white;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  z-index: 900;
  font-size: 0.8rem;
  color: #78716C;
  display: flex;
  gap: 1rem;
}
.map-overlay-info strong { color: #1C1917; }

/* ── Leaflet popup customization ────────── */
.leaflet-popup-content-wrapper {
  border-radius: 0.75rem !important;
  padding: 0 !important;
  overflow: hidden;
}
.leaflet-popup-content {
  margin: 0 !important;
  min-width: 220px;
}
.popup-content {
  padding: 0.75rem 1rem;
}
.popup-content h4 {
  font-family: 'Suisse Screen', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1C1917;
  margin-bottom: 0.25rem;
}
.popup-content p {
  font-size: 0.75rem;
  color: #78716C;
  margin: 0.125rem 0;
}
.popup-content .popup-cel-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: #D1FAE5;
  color: #065F46;
  margin-top: 0.25rem;
}
.popup-content .popup-cta {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #15803D;
  cursor: pointer;
  text-decoration: none;
}
.popup-content .popup-cta:hover { text-decoration: underline; }

/* ── Cluster marker colors ──────────────── */
.marker-cluster-small {
  background-color: rgba(34, 197, 94, 0.2) !important;
}
.marker-cluster-small div {
  background-color: rgba(34, 197, 94, 0.6) !important;
  color: white !important;
  font-weight: 700;
}
.marker-cluster-medium {
  background-color: rgba(250, 204, 21, 0.2) !important;
}
.marker-cluster-medium div {
  background-color: rgba(250, 204, 21, 0.7) !important;
  color: #1C1917 !important;
  font-weight: 700;
}
.marker-cluster-large {
  background-color: rgba(59, 130, 246, 0.2) !important;
}
.marker-cluster-large div {
  background-color: rgba(59, 130, 246, 0.6) !important;
  color: white !important;
  font-weight: 700;
}

/* ── Mobile bottom sheet ────────────────── */
.mobile-toggle {
  display: none;
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1001;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: white;
  border: 1px solid #E5E5E5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: #1C1917;
}

/* ── Loading spinner ────────────────────── */
.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.loading-overlay.hidden { display: none; }

@keyframes spin {
  to { transform: rotate(360deg); }
}
.spinner-lg {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(34,197,94,0.15);
  border-top-color: #15803D;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ── No results ─────────────────────────── */
.no-results {
  text-align: center;
  padding: 2rem 1rem;
  color: #78716C;
  font-size: 0.85rem;
}

/* ── Responsive ─────────────────────────── */
@media (max-width: 768px) {
  .map-layout {
    flex-direction: column;
  }

  .map-container {
    flex: 1;
    min-height: 40vh;
  }

  .map-sidebar {
    width: 100%;
    flex: 0 0 auto;
    height: 50vh;
    border-left: none;
    border-top: 1px solid #E5E5E5;
    transition: height 0.3s ease;
  }

  .map-sidebar.collapsed {
    height: 3.25rem;
    overflow: hidden;
  }

  .mobile-toggle {
    display: flex;
  }

  .map-overlay-info {
    bottom: auto;
    top: 0.75rem;
    right: 0.75rem;
    left: auto;
    font-size: 0.7rem;
    padding: 0.5rem 0.75rem;
  }

  .sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 0.75rem 1rem;
  }

  .sidebar-header .mobile-chevron {
    display: block !important;
    transition: transform 0.3s;
    color: #78716C;
  }
  .map-sidebar.collapsed .mobile-chevron {
    transform: rotate(180deg);
  }

  /* Horizontal scroll for filter chips on mobile */
  .sidebar-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
  }
  .sidebar-filters::-webkit-scrollbar { display: none; }

  .filter-chip {
    flex-shrink: 0;
    font-size: 0.75rem;
    /* Mobile: bump vertical padding so the 0.75rem glyph plus padding
       reaches the 24px minimum touch target (WCAG 2.5.5 AA). */
    padding: 0.5rem 0.875rem;
    min-height: 32px;
  }

  /* Rebate filters on mobile */
  .rebate-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .color-legend {
    flex-shrink: 0;
  }

  /* Search input slightly larger tap target */
  .sidebar-search {
    padding: 0.5rem 1rem;
  }
  .search-input {
    font-size: 1rem;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
  }

  /* Search suggestions on mobile: full width overlay */
  .search-suggestions {
    position: fixed;
    left: 0;
    right: 0;
    top: auto;
    border-radius: 0;
    max-height: 40vh;
    z-index: 2000;
  }

  .search-suggestion-item {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  /* Sidebar content scroll */
  .sidebar-content {
    padding: 0.5rem 1rem;
  }

  /* Detail panel responsive */
  .cel-detail-header {
    padding: 0.75rem 1rem;
  }
  .cel-detail-body {
    padding: 0.75rem 1rem;
  }
  .detail-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.375rem;
  }

  /* CEL cards on mobile */
  .cel-card {
    padding: 0.625rem;
  }
  .cel-card-title {
    font-size: 0.85rem;
  }
}
