/* ============================================================
   PowerElec - Feuille de style principale
   Thème : Industriel sombre / Électronique de puissance
   Police titres : Orbitron (futuriste/technique)
   Police corps  : IBM Plex Sans
   Police données : IBM Plex Mono
   ============================================================ */

/* ── Importation des polices Google ── */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Variables CSS (palette complète) ── */
:root {
  /* Couleurs de fond */
  --bg-base:        #0a1628;   /* fond principal marine sombre */
  --bg-surface:     #0d1f38;   /* cartes et panneaux */
  --bg-elevated:    #122040;   /* éléments surlevés (hover, actif) */
  --bg-overlay:     #152a50;   /* overlays modals */

  /* Bordures */
  --border-subtle:  #162438;
  --border-default: #1e3554;
  --border-strong:  #265090;

  /* Accent primaire – Bleu électrique */
  --cyan:           #1e90ff;
  --cyan-dim:       #1272cc;
  --cyan-glow:      rgba(30, 144, 255, 0.15);
  --cyan-glow-soft: rgba(30, 144, 255, 0.06);

  /* Accent secondaire – Orange électrique */
  --orange:         #ff6b35;
  --orange-dim:     #cc4f1e;
  --orange-glow:    rgba(255, 107, 53, 0.15);

  /* État – Vert LED */
  --green:          #00ff88;
  --green-dim:      #00cc6a;
  --green-glow:     rgba(0, 255, 136, 0.15);

  /* État – Rouge alerte */
  --red:            #ff3d57;
  --red-dim:        #cc1f35;

  /* État – Jaune attention */
  --yellow:         #ffcc00;

  /* Texte */
  --text-primary:   #e2eaf6;
  --text-secondary: #8da4c0;
  --text-muted:     #4a6380;
  --text-accent:    var(--cyan);

  /* Polices */
  --font-display:   'Exo 2', sans-serif;
  --font-body:      'Exo 2', sans-serif;
  --font-mono:      'JetBrains Mono', monospace;
  --font-label:     'Exo 2', sans-serif;

  /* Effets */
  --shadow-card:    0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow:    0 0 20px var(--cyan-glow);
  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      16px;

  /* Transitions */
  --transition:     0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

/* ── Fond animé : grille circuit imprimé ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 144, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 144, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ── Scrollbar custom ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan-dim); }

/* ============================================================
   NAVIGATION PRINCIPALE
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  background: rgba(8, 12, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  gap: 0;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dim));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 0 12px var(--cyan-glow);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.nav-logo-text span {
  color: var(--cyan);
}

/* Liens de navigation */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 32px;
  list-style: none;
  flex: 1;
  flex-wrap: wrap;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  text-decoration: none;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
  background: var(--cyan-glow-soft);
}

.nav-links a .nav-icon {
  font-size: 1rem;
  opacity: 0.8;
}

/* Bouton menu burger (mobile) */
.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   CONTENU PRINCIPAL
   ============================================================ */
.main-content {
  position: relative;
  z-index: 1;
  padding-top: 64px; /* compense la navbar fixe */
  min-height: 100vh;
}

/* ── En-tête de page ── */
.page-header {
  padding: 48px 40px 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.page-header-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.page-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--cyan-glow-soft);
  border: 1px solid var(--border-default);
  border-radius: 20px;
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
  padding: 5px 12px 5px 9px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.back-link:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: var(--cyan-glow-soft);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 600px;
}

/* ── Container de contenu ── */
.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 40px;
}

/* ============================================================
   CARDS / PANNEAUX
   ============================================================ */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: var(--border-default);
  box-shadow: var(--shadow-card);
}

.card-accent {
  border-color: var(--border-default);
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.08);
}

.card-title {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title::before {
  content: '';
  display: block;
  width: 3px;
  height: 14px;
  background: var(--cyan);
  border-radius: 2px;
}

/* ============================================================
   FORMULAIRES & INPUTS
   ============================================================ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: var(--font-label);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-label .unit {
  color: var(--text-muted);
  font-weight: 400;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}

.form-input::placeholder {
  color: var(--text-muted);
}

select.form-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238da4c0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* ── Boutons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-label);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--cyan);
  color: var(--bg-base);
}

.btn-primary:hover {
  background: #4aa8ff;
  box-shadow: 0 0 16px var(--cyan-glow), 0 4px 12px rgba(30, 144, 255, 0.3);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--border-default);
}

.btn-secondary:hover {
  background: var(--cyan-glow-soft);
  border-color: var(--cyan);
}

.btn-orange {
  background: var(--orange);
  color: #fff;
}

.btn-orange:hover {
  background: #ff8555;
  box-shadow: 0 0 16px var(--orange-glow);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.78rem;
}

.btn-lg {
  padding: 13px 28px;
  font-size: 0.95rem;
}

.btn-full { width: 100%; }

/* ── Bouton toggle (ex: résistance ↔ inductance) ── */
.toggle-group {
  display: flex;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
  width: fit-content;
  margin-bottom: 28px;
}

.toggle-btn {
  padding: 8px 20px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition);
}

.toggle-btn.active {
  background: var(--cyan);
  color: var(--bg-base);
  box-shadow: 0 2px 8px var(--cyan-glow);
}

/* ============================================================
   AFFICHAGE DE RÉSULTATS
   ============================================================ */
.result-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.result-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1.2;
  text-shadow: 0 0 20px var(--cyan-glow);
}

.result-unit {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.result-label {
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* ── Grilles de résultats multiples ── */
.results-grid {
  display: grid;
  gap: 12px;
}

.results-grid-2 { grid-template-columns: repeat(2, 1fr); }
.results-grid-3 { grid-template-columns: repeat(3, 1fr); }
.results-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   CODES COULEUR RÉSISTANCES
   ============================================================ */
.color-band-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 24px 0;
}

.color-band {
  width: 24px;
  height: 60px;
  border-radius: 3px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
}

.color-band:hover { transform: scaleY(1.08); }
.color-band.selected { border-color: var(--cyan); box-shadow: 0 0 8px var(--cyan-glow); }

.resistor-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: linear-gradient(90deg, #c8b89a, #e8d5b0, #c8b89a);
  border-radius: 24px;
  padding: 0 16px;
  height: 50px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  position: relative;
}

/* ── Fils de la résistance ── */
.resistor-wire {
  height: 3px;
  width: 40px;
  background: #b8bfc7;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ============================================================
   SCHÉMA ÉLECTRIQUE (SVG dynamique)
   ============================================================ */
.schematic-canvas {
  width: 100%;
  background: #050a10;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   TABLEAU DE DONNÉES
   ============================================================ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.data-table th {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  font-weight: 600;
}

.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-elevated); }

/* ── Badges statut ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 12px;
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.badge-cyan    { background: var(--cyan-glow);    color: var(--cyan);  }
.badge-orange  { background: var(--orange-glow);  color: var(--orange);}
.badge-green   { background: var(--green-glow);   color: var(--green); }
.badge-red     { background: rgba(255,61,87,0.15); color: var(--red);  }

/* ============================================================
   BARRE DE NOTIFICATION / TOOLTIP
   ============================================================ */
.tooltip {
  position: relative;
  display: inline-flex;
}

.tooltip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-overlay);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 100;
}

.tooltip:hover::after { opacity: 1; }

/* ── Toast message ── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-card);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 0.88rem;
}

.toast.show { transform: translateY(0); opacity: 1; }

/* ============================================================
   LAYOUT UTILITAIRES
   ============================================================ */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4  { gap: 4px;  }
.gap-8  { gap: 8px;  }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }

.mt-8  { margin-top: 8px;  }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

.text-cyan   { color: var(--cyan);   }
.text-orange { color: var(--orange); }
.text-green  { color: var(--green);  }
.text-muted  { color: var(--text-muted); }
.text-mono   { font-family: var(--font-mono); }
.text-sm     { font-size: 0.85rem; }
.text-xs     { font-size: 0.75rem; }
.text-center { text-align: center; }

.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 24px 0;
}

/* ── En-tête de section à l'intérieur des pages ── */
.section-header {
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.section-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ============================================================
   INDICATEUR DE STATUT (LEDs visuels)
   ============================================================ */
.led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.led-green  { background: var(--green);  box-shadow: 0 0 6px var(--green-glow); }
.led-cyan   { background: var(--cyan);   box-shadow: 0 0 6px var(--cyan-glow); }
.led-orange { background: var(--orange); box-shadow: 0 0 6px var(--orange-glow); }

/* Animation clignotante */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.led-blink { animation: blink 1.2s ease-in-out infinite; }

/* ============================================================
   PANNEAU D'INFORMATION (notice, avertissement)
   ============================================================ */
.info-panel {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  border-left: 3px solid;
}

.info-panel-cyan   { background: var(--cyan-glow-soft);    border-color: var(--cyan);   color: var(--text-secondary); }
.info-panel-orange { background: var(--orange-glow);       border-color: var(--orange); color: var(--text-secondary); }
.info-panel-green  { background: var(--green-glow);        border-color: var(--green);  color: var(--text-secondary); }

/* ============================================================
   ANIMATIONS D'ENTRÉE
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.anim-fade-up  { animation: fadeInUp  0.5s ease forwards; }
.anim-fade     { animation: fadeIn    0.4s ease forwards; }
.anim-slide-in { animation: slideInLeft 0.4s ease forwards; }

/* Délais pour animations en cascade */
.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.10s; }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.20s; }
.delay-5 { animation-delay: 0.25s; }

/* ============================================================
   RESPONSIVE – MOBILE (< 768px)
   ============================================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px;
    gap: 4px;
    z-index: 999;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .nav-burger { display: flex; }

  .content-container { padding: 20px 16px; }
  .page-header        { padding: 24px 16px 20px; }
  .grid-2, .grid-3    { grid-template-columns: 1fr; }
  .results-grid-3, .results-grid-4 { grid-template-columns: repeat(2, 1fr); }

  .page-title { font-size: 1.3rem; }

  /* Tables: horizontal scroll */
  .comp-table, .data-table, .decode-table { font-size: 0.78rem; }
  .comp-table th, .comp-table td,
  .data-table th, .data-table td { padding: 8px 10px; }

  /* Résistance visual */
  .resistor-body, .inductor-body { width: 180px; height: 46px; }
  .comp-wire { width: 35px; }
  .component-visual { padding: 20px; }

  /* Card padding */
  .card { padding: 18px; }
  
  /* Formulaires plus grands pour le tactile */
  .form-input { padding: 12px 14px; font-size: 1rem; }
  
  /* Schematic responsive */
  .schematic { min-height: 140px; padding: 12px; }
}

@media (max-width: 480px) {
  html { font-size: 15px; }

  .results-grid-2, .results-grid-3, .results-grid-4 { grid-template-columns: 1fr; }
  .toggle-group { width: 100%; }
  .toggle-btn   { flex: 1; font-size: 0.8rem; padding: 8px 10px; }

  .content-container { padding: 14px 10px; }
  .page-header { padding: 18px 10px 14px; }

  /* Bandes de résistance plus petites */
  .band { width: 18px; height: 38px; }
  .resistor-body, .inductor-body { width: 160px; height: 42px; padding: 0 10px; }
  .comp-wire { width: 25px; }
  .band-labels { padding: 0 25px; }
  .band-label { font-size: 0.58rem; }

  /* Résultat principal */
  .main-result .value { font-size: 2.2rem; }
  .main-result { padding: 20px; }

  /* Color picker plus grand pour le tactile */
  .color-picker-panel { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .color-swatch { min-height: 36px; }
  
  /* Form groups */
  .form-group { margin-bottom: 14px; }
}

/* ============================================================
   CALC TABS MOBILE — Scrollable horizontally
   ============================================================ */
@media (max-width: 900px) {
  .calc-tabs {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .calc-tabs::-webkit-scrollbar { display: none; }
}

/* ============================================================
   TABLE WRAPPER — Horizontal scroll on mobile
   ============================================================ */
.table-scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ============================================================
   IMPROVED READABILITY — Larger text in results, better contrast
   ============================================================ */
.inline-result-value {
  font-size: 1.15rem;
}

.card-title {
  font-size: 0.78rem;
  letter-spacing: 0.09em;
}

.info-panel {
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Better focus ring for accessibility */
*:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
