:root{
  /* Azores-inspired palette: light base, Atlantic blues, cryptomeria green, volcanic stone */
  /* adjustable hero height */
  --hero-height: 24vh;
  --bg: #fbfdfd;
  --card: rgba(20,28,26,0.03);
  --glass: rgba(255,255,255,0.7);
  --ocean: #2b8fbf; /* deep Atlantic */
  --ocean-2: #4db6ff;
  --green: #2e8b57; /* cryptomeria-like */
  --stone: #3b3f42; /* volcanic stone */
  --accent: var(--green);
  --muted: #55605f;
  --text: #0b1a1a;
  --btn-bg: #f2f6f5;
}
*{box-sizing:border-box}
html,body{height:100vh;overflow-y:auto;margin:0;font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;background:var(--bg);color:var(--text)}
/* full-page background image for all pages (uses vanilla.png) */
/* Prefer WebP (1x/2x) when available, fall back to PNG */
html, body {
  /* try WebP image-set first (if present), then fall back to PNG 1x/2x */
  background-image: -webkit-image-set(url('vanilla.webp') 1x, url('vanilla@2x.webp') 2x), -webkit-image-set(url('vanilla.png') 1x, url('vanilla@2x.png') 2x);
  background-image: image-set(url('vanilla.webp') 1x, url('vanilla@2x.webp') 2x), image-set(url('vanilla.png') 1x, url('vanilla@2x.png') 2x);
  background-size: cover; background-position: center center; background-attachment: fixed; }

.nav{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;padding:10px 20px;backdrop-filter:blur(6px);background:linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,255,255,0.86));border-bottom:1px solid rgba(11,26,26,0.04);z-index:40}
.logo{font-weight:700}
.nav nav{display:flex;gap:8px;align-items:center;background:transparent}
.menu-toggle{display:none;border:0;background:transparent;font-size:20px;padding:6px 10px;cursor:pointer}
.btn{display:inline-block;padding:8px 12px;border-radius:12px;color:var(--text);text-decoration:none;border:1px solid rgba(15,23,32,0.08);background:linear-gradient(180deg,#ffffff,#fbfcfc);transition:all .12s}
.btn:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(11,26,26,0.06)}
.btn.small{padding:6px 8px;border-radius:8px}

.lang-switch{display:flex;gap:6px;margin-left:8px}
.lang-switch button{border-radius:8px;padding:6px 8px;background:transparent;border:1px solid rgba(11,26,26,0.06);cursor:pointer}
.lang-switch button.active{background:var(--accent);color:#fff;border-color:var(--accent)}

.hero{min-height:var(--hero-height);display:flex;align-items:flex-end;position:relative;overflow:hidden}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg, rgba(255,255,255,0.28), rgba(245,250,248,0.5));pointer-events:none;z-index:1}
.hero-inner{position:relative;padding:4px 20px 8px 20px;max-width:980px;background:transparent;backdrop-filter:none;border-radius:10px;z-index:2}
.hero h1{font-size:2.4rem;margin:0 0 6px;color:var(--stone);text-shadow:0 4px 18px rgba(11,26,26,0.08)}
.lead{opacity:0.95;margin:0 0 12px;color:var(--muted)}
.cta-row{margin-top:14px;display:flex;flex-wrap:wrap;gap:10px}
.cta{display:inline-block;padding:10px 18px;border-radius:14px;text-decoration:none;background:#fff;color:var(--stone);border:1px solid rgba(11,26,26,0.15);box-shadow:0 2px 8px rgba(0,0,0,0.06);transition:all .2s}
.cta.primary{background:#fff;color:var(--stone);border:1px solid rgba(11,26,26,0.15);box-shadow:0 4px 12px rgba(0,0,0,0.08)}
.cta.secondary{background:#fff;color:var(--stone);border:1px solid rgba(11,26,26,0.15)}
.cta:hover{transform:translateY(-2px);box-shadow:0 8px 16px rgba(0,0,0,0.12)}

/* stronger overlay near bottom for better contrast on light hero */
.hero::after{
  content:'';position:absolute;left:0;right:0;bottom:0;height:40%;background:linear-gradient(180deg, rgba(255,255,255,0), rgba(11,26,26,0.06));pointer-events:none}

.container{max-width:1100px;margin:36px auto;padding:18px;display:flex;flex-direction:column;gap:24px}
.card{background:linear-gradient(180deg, rgba(255,255,255,0.95), rgba(250,252,251,0.96));border-radius:14px;padding:22px;box-shadow:0 10px 30px rgba(20,30,40,0.04);border:1px solid rgba(11,26,26,0.03)}

.gallery .grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.media{height:180px;border-radius:10px;background:linear-gradient(180deg, rgba(245,247,249,1), rgba(235,250,240,0.9));display:flex;align-items:center;justify-content:center;color:var(--muted);border:1px solid rgba(11,26,26,0.03)}
.media strong{color:var(--stone)}
.placeholder{font-size:0.95rem}

.footer{margin:40px 0 80px;text-align:center;color:#fff}
.footer p{color:#fff;margin:4px 0}
.footer a{color:#fff;text-decoration:underline}

.map-wrap{width:100%;max-width:100%;aspect-ratio:16/9;border-radius:12px;overflow:hidden;margin:12px 0}
.map-wrap iframe{width:100%;height:100%;border:0;display:block}

/* Statistics table */
.filters{display:flex;gap:12px;align-items:center;margin-bottom:12px}
.filters label{font-weight:600;color:var(--muted)}
input[type=date]{padding:8px;border-radius:8px;border:1px solid rgba(11,26,26,0.06);background:transparent;color:var(--text)}
.table-wrap{overflow:auto}
.table-wrap{border-radius:10px;overflow:auto;border:1px solid rgba(11,26,26,0.03);}
table{width:100%;border-collapse:collapse;color:var(--text)}
th,td{padding:8px 12px;text-align:left;border-bottom:1px solid rgba(11,26,26,0.04)}
th{color:var(--muted);font-weight:600}

/* donate link styling */
.donate{display:inline-block;margin-right:8px;padding:8px 12px;border-radius:10px;background:linear-gradient(90deg,var(--ocean-2),var(--ocean));color:#fff;text-decoration:none}

/* ensure nav elements readable and lang-switch visible */
.nav{z-index:30}
.lang-switch{margin-left:12px}
.lang-switch button{color:var(--text)}
.muted{color:var(--muted);font-size:0.9rem}

code{background:rgba(15,23,32,0.03);padding:4px 8px;border-radius:6px}

/* Crypto donation cards */
.crypto-donations{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin:20px 0}
.crypto-card{background:#fff;border:1px solid rgba(11,26,26,0.1);border-radius:12px;padding:16px;text-align:center;box-shadow:0 2px 8px rgba(0,0,0,0.05)}
.crypto-card h3{margin:0 0 12px;color:var(--stone);font-size:1.1rem}
.crypto-card img{max-width:150px;height:150px;margin:8px 0}
.crypto-card code{display:block;margin:12px 0;font-size:0.75rem;word-break:break-all;padding:8px;background:rgba(11,26,26,0.03)}

/* Social media links */
.social-links{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0}
.social-links a{display:inline-flex;align-items:center;gap:6px;padding:10px 14px;border-radius:10px;background:#fff;color:#333;text-decoration:none;transition:all .2s;border:1px solid #e0e0e0;box-shadow:0 2px 8px rgba(0,0,0,0.08)}
.social-links a i{font-size:1.2em}
.social-links a:hover{transform:translateY(-2px);box-shadow:0 8px 16px rgba(0,0,0,0.15)}
/* Brand colors for social icons */
.social-links a:has(.fa-instagram) i{background:linear-gradient(45deg,#f58529,#dd2a7b,#8134af);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.social-links a:has(.fa-facebook) i{color:#1877f2}
.social-links a:has(.fa-whatsapp) i{color:#25d366}
.social-links a:has(.fa-twitter) i{color:#000}
.social-links a:has(.fa-youtube) i{color:#ff0000}
.social-links a:has(.fa-telegram) i{color:#0088cc}
/* Center align social links on contact page */
main.card .social-links{justify-content:center}

footer .social-links{gap:8px;justify-content:center;margin:4px 0}
footer .social-links a{padding:8px 10px;font-size:0.85rem;background:transparent;border:none;box-shadow:none;color:#fff}
footer .social-links a i{font-size:1.3em}
footer .social-links a:has(.fa-instagram) i{background:linear-gradient(45deg,#f58529,#dd2a7b,#8134af);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
footer .social-links a:has(.fa-facebook) i{color:#1877f2}
footer .social-links a:has(.fa-whatsapp) i{color:#25d366}
footer .social-links a:has(.fa-twitter) i{color:#000}
footer .social-links a:has(.fa-youtube) i{color:#ff0000}
footer .social-links a:has(.fa-telegram) i{color:#0088cc}

/* small screens */
@media (max-width:600px){
  .hero-inner{padding:20px}
  .hero h1{font-size:1.6rem}
  .lead{font-size:0.95rem}
  .cta{padding:9px 14px;font-size:0.9rem}
}

/* extra small phones */
@media (max-width:480px){
  :root{--hero-height:auto}
  .hero{min-height:initial}
  .hero-inner{padding:16px;display:flex;flex-direction:column;gap:12px}
  .hero h1{font-size:1.4rem;margin:0 0 4px}
  .lead{font-size:0.9rem;margin:0 0 8px}
  .cta-row{gap:8px;margin-top:8px}
  .cta{flex:0 1 auto;padding:8px 12px;font-size:0.85rem}
}

/* ultra small phones */
@media (max-width:375px){
  .hero-inner{padding:12px}
  .hero h1{font-size:1.2rem}
  .lead{font-size:0.85rem}
  .cta{padding:7px 10px;font-size:0.8rem}
}

/* Responsive menu: hide nav links behind hamburger on small screens */
@media (max-width:820px){
  .menu-toggle{display:block}
  .nav nav{position:fixed;top:56px;right:0;background:rgba(255,255,255,0.98);backdrop-filter:blur(6px);flex-direction:column;padding:12px;border-left:1px solid rgba(11,26,26,0.04);gap:6px;transform:translateX(100%);transition:transform .18s ease-in-out;z-index:60}
  .nav.open nav{transform:translateX(0)}
  .nav nav a{display:block;padding:10px 14px;border-radius:10px}
}

/* Social links responsive */
@media (max-width:600px){
  .social-links{gap:8px}
  .social-links a{padding:8px 12px;font-size:0.9rem}
  .social-links a i{font-size:1rem}
  .crypto-donations{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
  .crypto-card{padding:12px}
  .crypto-card img{max-width:120px;height:120px}
}

@media (max-width:480px){
  main.card .social-links{flex-direction:column;gap:6px;align-items:center}
  main.card .social-links a{width:100%;justify-content:flex-start;padding:9px 10px;font-size:0.85rem}
  main.card .social-links a i{font-size:0.95rem}
  .crypto-donations{grid-template-columns:1fr;gap:10px}
  .crypto-card{padding:10px}
  .crypto-card h3{font-size:1rem;margin:0 0 8px}
  .crypto-card img{max-width:100px;height:100px}
  .crypto-card code{font-size:0.7rem;padding:6px}
  .card{padding:16px}
  .container{padding:10px}
  .gallery .grid{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px}
  .media{height:120px;font-size:0.8rem}
  .filters{flex-direction:column;gap:8px}
  input[type=date]{width:100%;padding:10px}
  footer .container{padding:10px;margin:20px auto;gap:12px}
  footer p{font-size:0.9rem;margin:3px 0}
  footer .social-links{gap:6px;margin:3px 0}
}

/* Home page: remove opaque frosted panel so background image is visible */
.home .hero-inner{background:transparent;box-shadow:none;padding:24px;z-index:2}
.home .hero h1{color:#fff;text-shadow:-2px -2px 4px rgba(0,0,0,0.8),2px -2px 4px rgba(0,0,0,0.8),-2px 2px 4px rgba(0,0,0,0.8),2px 2px 4px rgba(0,0,0,0.8),0px 0px 20px rgba(0,0,0,0.6)}
.home .lead{color:rgba(255,255,255,0.95);text-shadow:-2px -2px 4px rgba(0,0,0,0.8),2px -2px 4px rgba(0,0,0,0.8),-2px 2px 4px rgba(0,0,0,0.8),2px 2px 4px rgba(0,0,0,0.8),0px 0px 20px rgba(0,0,0,0.6)}
.home .cta{background:rgba(255,255,255,0.95);box-shadow:0 4px 16px rgba(0,0,0,0.2)}
.home .cta:hover{background:#fff;transform:translateY(-2px);box-shadow:0 8px 20px rgba(0,0,0,0.25)}

@media (max-width:480px){
  .home .hero-inner{padding:16px}
  .home .cta-row{flex-direction:column}
  .home .cta{width:100%;text-align:center}
}
.home .cta{background:#fff;color:#333;border:1px solid rgba(255,255,255,0.3);box-shadow:0 4px 12px rgba(0,0,0,0.2)}
.home .cta.primary{background:#fff;color:#333;border:1px solid rgba(255,255,255,0.3)}
.home .cta.secondary{background:#fff;color:#333;border:1px solid rgba(255,255,255,0.3)}
.home .cta:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(0,0,0,0.3)}

/* Home-specific footer: make text light over background image */
.home .footer{color:rgba(255,255,255,0.92)}
.home .footer a{color:rgba(255,255,255,0.95)}
.home .footer p{color:rgba(255,255,255,0.92)}

/* Remove any small opaque panel inside header/nav on desktop */
@media (min-width:821px){
  .nav nav{background:transparent !important;box-shadow:none !important;border:none !important}
  .nav nav > *{background:transparent !important}
  /* remove rounded white button boxes inside header nav */
  .nav nav .btn{background:transparent !important;border:none !important;box-shadow:none !important;color:var(--stone) !important}
}

/* ========== LIVE RESEARCH DASHBOARD STYLES ========== */

/* Intro Section */
.stats-intro {
  text-align: center;
  margin-bottom: 32px;
}
.stats-intro h1 {
  font-size: 2.2rem;
  color: var(--stone);
  margin: 0 0 8px;
}
.stats-intro .subtitle {
  font-size: 1.2rem;
  color: var(--ocean);
  margin: 0 0 24px;
  font-weight: 600;
}
.stats-intro .intro-text p {
  max-width: 820px;
  margin: 0 auto 12px;
  line-height: 1.6;
  color: var(--muted);
}
.stats-intro .intro-text p:first-of-type {
  color: var(--stone);
  font-weight: 600;
  font-size: 1.05rem;
}

/* Live Gauge Cards */
.live-conditions {
  margin-bottom: 32px;
}
.live-conditions h2 {
  text-align: center;
  color: var(--stone);
  margin-bottom: 24px;
  font-size: 1.6rem;
}
.gauge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin: 0;
}
.gauge-card {
  background: linear-gradient(135deg, rgba(43, 143, 191, 0.08), rgba(46, 139, 87, 0.08));
  border: 1px solid rgba(11, 26, 26, 0.1);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}
.gauge-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.gauge-label {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.gauge-value {
  font-size: 2.8rem;
  color: var(--ocean);
  font-weight: 700;
  margin: 12px 0;
  line-height: 1;
}
.gauge-value .unit {
  font-size: 1.2rem;
  color: var(--muted);
  margin-left: 4px;
}
.gauge-status {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 10px 0;
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
  min-width: 100px;
}
.gauge-status.good {
  color: #27ae60;
  background: #eafbf0;
  border: 1px solid #27ae60;
}
.gauge-status.warning {
  color: #f39c12;
  background: #fef5e7;
  border: 1px solid #f39c12;
}
.gauge-status.critical {
  color: #e74c3c;
  background: #fdeaea;
  border: 1px solid #e74c3c;
}
.gauge-range {
  font-size: 0.85rem;
  color: var(--muted);
  background: rgba(11, 26, 26, 0.03);
  padding: 6px 10px;
  border-radius: 6px;
}

/* Plant Status Indicators */
.plant-status {
  margin-bottom: 32px;
}
.plant-status h2 {
  color: var(--stone);
  margin-bottom: 20px;
  font-size: 1.4rem;
  font-weight: 700;
}
.status-display {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.status-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(11, 26, 26, 0.06);
}
.status-icon {
  font-size: 1.3rem;
}
.status-text {
  font-weight: 700;
  color: var(--stone);
  font-size: 0.95rem;
}
.status-good {
  background: #e8f5e9;
  border-color: #4caf50;
}
.status-watch {
  background: #fff3e0;
  border-color: #ff9800;
}
.status-critical {
  background: #ffebee;
  border-color: #f44336;
}
.status-explanation {
  color: var(--muted);
  line-height: 1.6;
  margin: 12px 0;
}
.status-updated {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

/* Comparison Table */
.comparison {
  margin-bottom: 32px;
}
.comparison h2 {
  text-align: center;
  color: var(--stone);
  margin-bottom: 12px;
  font-size: 1.4rem;
}
.comparison-intro {
  text-align: center;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
}
.comparison-table {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(11, 26, 26, 0.06);
  margin-bottom: 16px;
}
.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.2fr;
  border-bottom: 1px solid rgba(11, 26, 26, 0.04);
}
.comparison-row:last-child {
  border-bottom: none;
}
.comparison-row.header {
  background: linear-gradient(90deg, rgba(43, 143, 191, 0.1), rgba(46, 139, 87, 0.08));
  font-weight: 700;
}
.comparison-cell {
  padding: 14px 16px;
  display: flex;
  align-items: center;
}
.comparison-cell.metric {
  color: var(--stone);
  font-weight: 600;
}
.comparison-cell.inside {
  font-weight: 600;
}
.comparison-cell.inside.good {
  color: #27ae60;
  background: #eafbf0;
}
.comparison-cell.inside.warning {
  color: #f39c12;
  background: #fef5e7;
}
.comparison-cell.inside.critical {
  color: #e74c3c;
  background: #fdeaea;
}
.comparison-cell.outside {
  font-weight: 600;
}
.comparison-cell.outside.good {
  color: #27ae60;
  background: #eafbf0;
}
.comparison-cell.outside.warning {
  color: #f39c12;
  background: #fef5e7;
}
.comparison-cell.outside.critical {
  color: #e74c3c;
  background: #fdeaea;
}
.badge {
  margin-left: 6px;
  font-weight: 700;
  display: inline-block;
}
.comparison-cell.good .badge {
  color: #27ae60;
}
.comparison-cell.warning .badge {
  color: #f39c12;
}
.comparison-cell.critical .badge {
  color: #e74c3c;
}
.comparison-cell.cool .badge {
  color: var(--ocean);
}
.comparison-cell.stress .badge {
  color: #e74c3c;
}
.comparison-conclusion {
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
}

/* Trends Chart */
.trends {
  margin-bottom: 32px;
}
.trends h2 {
  color: var(--stone);
  margin-bottom: 12px;
  font-size: 1.4rem;
}
.trend-intro {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.chart-placeholder {
  background: linear-gradient(135deg, rgba(43, 143, 191, 0.05), rgba(46, 139, 87, 0.03));
  border: 1px solid rgba(11, 26, 26, 0.06);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.placeholder-chart {
  width: 100%;
  max-width: 800px;
  height: 300px;
}
.chart-note {
  color: var(--muted);
  font-style: italic;
  margin: 12px 0 0;
  font-size: 0.9rem;
}
.trend-rhythm {
  color: var(--muted);
  line-height: 1.6;
}

/* Metrics Explained Cards */
.metrics-explained {
  margin-bottom: 32px;
}
.metrics-explained h2 {
  text-align: center;
  color: var(--stone);
  margin-bottom: 28px;
  font-size: 1.6rem;
}
.metric-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.metric-card {
  background: #fff;
  border: 1px solid rgba(11, 26, 26, 0.08);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.metric-card h3 {
  font-size: 1.3rem;
  color: var(--stone);
  margin: 0 0 8px;
  border-bottom: 2px solid var(--ocean);
  padding-bottom: 10px;
}
.metric-value {
  font-size: 1.1rem;
  color: var(--ocean);
  font-weight: 700;
  margin: 10px 0;
}
.metric-current {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 16px;
  background: rgba(11, 26, 26, 0.02);
  padding: 8px 10px;
  border-radius: 6px;
}
.metric-card h4 {
  font-size: 1rem;
  color: var(--stone);
  margin: 16px 0 8px;
  font-weight: 700;
}
.metric-card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 12px;
  font-size: 0.95rem;
}
.metric-card ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 12px;
}
.metric-card li {
  color: var(--muted);
  line-height: 1.6;
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 0.95rem;
}
.metric-card li:before {
  content: "•";
  position: absolute;
  left: 8px;
  color: var(--ocean);
  font-weight: bold;
}

/* Data Explorer */
.data-explorer {
  margin-bottom: 32px;
}
.data-explorer h2 {
  color: var(--stone);
  margin-bottom: 12px;
  font-size: 1.4rem;
}
.data-explorer-intro {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.data-tip {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(43, 143, 191, 0.05);
  border-left: 3px solid var(--ocean);
  border-radius: 4px;
}

/* Transparency Section */
.transparency {
  margin-bottom: 40px;
}
.transparency h2 {
  text-align: center;
  color: var(--stone);
  margin-bottom: 20px;
  font-size: 1.5rem;
}
.transparency p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
  font-size: 0.95rem;
}
.transparency a {
  color: var(--ocean);
  text-decoration: underline;
  font-weight: 600;
}
.transparency a:hover {
  color: var(--stone);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gauge-grid {
    grid-template-columns: 1fr;
  }
  .metric-cards-grid {
    grid-template-columns: 1fr;
  }
  .comparison-row {
    grid-template-columns: 1fr;
  }
  .comparison-cell {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
  .gauge-value {
    font-size: 2rem;
  }
  .stats-intro h1 {
    font-size: 1.8rem;
  }
  .stats-intro .subtitle {
    font-size: 1rem;
  }
  .container {
    padding: 12px;
    margin: 20px auto;
  }
}

/* extra small phones */
@media (max-width: 480px) {
  .gauge-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .gauge-card {
    padding: 16px 12px;
  }
  .gauge-value {
    font-size: 1.8rem;
  }
  .gauge-label {
    font-size: 0.8rem;
  }
  .metric-cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .metric-card {
    padding: 14px;
  }
  .metric-card h3 {
    font-size: 0.9rem;
  }
  .metric-card p {
    font-size: 0.85rem;
  }
  .comparison-row {
    grid-template-columns: 1fr;
  }
  .comparison-cell {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
  .comparison-cell h3 {
    font-size: 0.85rem;
  }
  .stats-intro h1 {
    font-size: 1.4rem;
  }
  .stats-intro .subtitle {
    font-size: 0.9rem;
  }
  .stats-intro .intro-text p {
    font-size: 0.9rem;
  }
  .container {
    gap: 16px;
  }
  table {
    font-size: 0.8rem;
  }
  th, td {
    padding: 6px 8px;
  }
}

/* Lightbox styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: opacity 0.3s ease;
}

.lightbox.hidden {
  display: none;
  opacity: 0;
}

.lightbox-image {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s;
}

.lightbox-close:hover {
  transform: scale(1.2);
}

.lightbox-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
}

.lightbox-prev,
.lightbox-next {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: white;
}

.gallery-image {
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
}

.gallery-image:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* end debug styles */

