/* ═══════════════════════════════════════════ */
/* CARBON CLOCK — Hero                        */
/* ═══════════════════════════════════════════ */
#carbon-clock-hero {
  width:100%;
  margin: 0 auto;
  max-width: none;
  text-align: center;
}

.cc-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  position: relative;
}

/* Subtle pulse animation on the border */
.cc-hero-inner::before {
  content: none;
}

@keyframes cc-pulse {
  0%, 100% { opacity: 0.3; transform: translateX(-100%); }
  50% { opacity: 1; transform: translateX(100%); }
}

.cc-label {
  font-family: var(--mono);
  font-size: clamp(10px,1.2vw,12px);
  text-transform: uppercase;
  letter-spacing: clamp(2px,.45vw,4px);
  color: var(--warn);
  margin-bottom: 14px;
  text-shadow: 0 0 18px rgba(196, 92, 74, 0.22);
}

.cc-value-row {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(6px,1vw,12px);
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
}

.cc-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(66px,13vw,168px);
  font-weight: 700;
  color: var(--text);
  line-height: .86;
  margin-bottom: 0;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 0 24px rgba(196, 92, 74, 0.26);
}

/* Light mode should feel restorative rather than alarm-like. Keep the dark
   clock's terracotta urgency, but let the daylight number carry a soft leaf
   shadow drawn from the positive design token. */
html[data-theme="light"] #hero .cc-value {
  text-shadow:
    0 4px 24px rgba(63, 125, 84, 0.16),
    0 0 12px rgba(63, 125, 84, 0.10);
}

.cc-unit {
  transform: translateY(-0.08em);
  color: var(--warn);
  font-family: var(--body);
  font-size: clamp(30px,5.2vw,58px);
  font-weight: 300;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(196, 92, 74, 0.22);
}

.cc-rate {
  display: none;
}

.cc-bar {
  display: none;
}

.cc-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(196, 92, 74, 0.3), var(--warn));
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s linear;
}

.cc-context {
  display: none;
}

.cc-explainer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 640px;
  margin-top: 22px;
  color: var(--text2);
  font-size: clamp(15px,2vw,22px);
  font-weight: 300;
  line-height: 1.48;
}

.cc-explainer strong {
  color: var(--text);
  font-weight: 400;
}

.cc-annual {
  font-family: 'JetBrains Mono', monospace;
  color: var(--warn);
  font-weight: 500;
}

.cc-sep {
  opacity: 0.3;
}

/* ═══════════════════════════════════════════ */
/* CARBON CLOCK — Topbar Mini                 */
/* ═══════════════════════════════════════════ */
.cc-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(196, 92, 74, 0.06);
  border: 1px solid rgba(196, 92, 74, 0.1);
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  white-space: nowrap;
}

.cc-topbar-icon {
  font-size: 12px;
}

.cc-topbar-value {
  color: var(--warn);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  min-width: 50px;
  text-align: right;
}

.cc-topbar-rate {
  color: var(--text3);
  font-size: 9px;
}

/* ═══════════════════════════════════════════ */
/* Responsive                                */
/* ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  #carbon-clock-hero {
    margin: 0;
  }
  .cc-value {
    font-size: clamp(54px,19vw,92px);
    letter-spacing: 0;
  }
  .cc-unit {
    transform: translateY(-0.06em);
  }
  .cc-hero-inner {
    justify-content: center;
  }
  .cc-explainer {
    margin-top: 18px;
    font-size: 15px;
  }
  .cc-topbar {
    font-size: 9px;
    padding: 3px 8px;
  }
  .cc-topbar-value {
    min-width: 40px;
  }
}
