:root {
  /* Tailwind teal palette */
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;
  --teal-950: #042f2e;
  --green-400: #4ade80;
  --yellow-400: #facc15;
  --orange-400: #f97316;
  --red-400: #f87171;
  --slate-300: #cbd5e1;
  --slate-800: #1e293b;
  --bg-dark: #0f172a;
}

body {
  font-family: "Bricolage Grotesque", sans-serif;
  margin: 0;
  background: #fff;
  color: #111;
}

.homelink {
  text-decoration: none;
  color: inherit;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 2px solid black;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 2rem;
  font-weight: 600;
}

.logo .highlight {
  color: var(--teal-400);
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  font-size: 1.25rem;
  transition: color 0.2s;
}

.nav-item:hover {
  color: var(--teal-600);
}

/* Responsive */
@media (max-width: 640px) {
  .nav-item span {
    display: none; /* hide text */
  }

  .nav-item{
    font-size: 1.5rem;
  }

  .header {
    padding: 1rem;
  }

  .logo span {
    font-size: 1.2rem;
  }
}

/* Footer Base */
.footer {
  background: #0f172a;
  border-top: 1px solid #334155;
  color: #cbd5e1;
  padding: 3rem 1rem;
  font-family: "Bricolage Grotesque", sans-serif;
}

/* Layout */
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

/* Logo */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.logo-svg {
  width: 1.8rem;
  height: 1.8rem;
  fill: var(--teal-400);
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: white;
}

.logo-text .highlight {
  color: var(--teal-400);
}

/* Description */
.footer-desc {
  font-size: 0.9rem;
  max-width: 260px;
  color: #cbd5e1;
}

/* Section Links */
.footer-section h3 {
  color: white;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section a {
  text-decoration: none;
  color: #cbd5e1;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: var(--teal-400);
}

/* Separator */
.footer-separator {
  border-top: 1px solid #334155;
  margin-top: 2rem;
  padding-top: 2rem;
}

/* Bottom */
.footer-note {
  font-size: 0.8rem;
  color: #94a3b8;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

.footer-bottom-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-bottom-row {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.8rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--teal-400);
}

.footer-links span {
  color: #475569;
}

.footer-copy {
  font-size: 0.8rem;
  color: #94a3b8;
}

.content{
    margin-left: 4vw;
    margin-right: 4vw;
}

.content h1{
    color: var(--teal-950);
}

.content h2{
    color: var(--teal-800);
}

.note{
    border: 3px solid var(--teal-400);
    background-color: var(--teal-50);
    padding: 1rem;
    border-radius: 0.5rem;
}

.note a{
    color: var(--teal-400);
    font-weight: 600;
    text-decoration: none;
}

.note a:hover{
    color: var(--teal-700);
}

.section{
    border-top: 2px dashed black;
    margin-top: 4vh;
}

.math-block {
   background-color: #0f172a; /* slate-900 */
   color: #e2e8f0; /* slate-200 */
   border-radius: 0.5rem;
   padding: 1rem 1.25rem;
   margin: 1.5rem 0;
   text-align: center;
   font-family: 'Inter', sans-serif;
}

/* Make MathJax formulas feel inline and responsive */
.math-block mjx-container {
  font-size: clamp(0.85rem, 1.5vw, 1.15rem);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .math-block {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.9rem;
  }
}

.benchmark-title {
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--slate-800);
}

ul.benchmarks {
  list-style: none;
  padding-left: 0;
  margin-top: 0.5rem;
}

ul.benchmarks li {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  margin-right: 1rem;
  color: white;
  display: inline-block;
}

ul.benchmarks li.excellent {
  color: var(--green-400);
  border: 2px solid var(--green-400);
}

ul.benchmarks li.good {
  color: var(--teal-400);   
  border: 2px solid var(--teal-400);
}

ul.benchmarks li.fair {
  color: var(--yellow-400);
  border: 2px solid var(--yellow-400);
}

ul.benchmarks li.poor {
  color: var(--red-400);
  border: 2px solid var(--red-400);
}

.card {
  background: #f8fafc;
  padding: 12px;
  border-radius: 8px;
  font-family: Arial, sans-serif;
  max-width: 280px;
  font-size: 14px;
  margin-top: 4vh;
  margin-bottom: 4vh;
}

.card h3 {
  margin: 0 0 8px 0;
  font-weight: 600;
  color: #0f766e;
  font-size: 15px;
}

.dist-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-top: 1px solid #e2e8f0;
}

.value {
  font-weight: 600;
  color: #0f766e;
}

.highlight {
  color: #0d9488;
  font-weight: 700;
}