/* Scientific theme (fixed) — shared variables for light/dark */
:root{
  --bg: #f7fafc;
  --text: #0f172a;
  --muted: rgba(15,23,42,.68);
  --card: #ffffff;
  --card-2: #f1f5f9;
  --border: rgba(15,23,42,.12);
  --brand: #0f766e;
  --brand-2: #0ea5a4;
  --link: #0ea5e9;
}

body{
  background: var(--bg);
  color: var(--text);
}

/* Dark mode */
body.dark{
  --bg: #07121b;
  --text: #e8eef6;
  --muted: rgba(232,238,246,.72);
  --card: #0b1a26;
  --card-2: #0d2030;
  --border: rgba(232,238,246,.14);
  --brand: #35d1c4;
  --brand-2: #39c6ff;
  --link: #7dd3fc;
  background: var(--bg);
  color: var(--text);
}

/* Navbar */
.navbar{background: rgba(0,0,0,.03); border-bottom:1px solid var(--border); backdrop-filter: blur(10px);}
body.dark .navbar{background: rgba(0,0,0,.28);}

/* Links */
a{color: var(--link);}
a:hover{opacity:.92;}

/* Tables — readable in both themes */
table{border-collapse: collapse;}
.nice-table{
  width:100%;
  background: var(--card);
  color: var(--text);
  border:1px solid var(--border);
  border-radius: 14px;
  overflow:hidden;
}
.nice-table th, .nice-table td{
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.nice-table th{
  background: var(--card-2);
  color: var(--text);
  font-weight: 700;
}
.nice-table tr:last-child td{border-bottom:none;}
.nice-table .muted{color: var(--muted);}
