/* hero.css: the two-sides hero (renderHero -> #hero-mount). Tokens only. */

.hero-two-sides {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* symmetric split, vertical center rule */
.hero-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 1.6rem;
}

.hero-side-label {
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}
.hero-side--majority .hero-side-label { color: var(--gold); }
.hero-side--enforcing .hero-side-label { color: var(--frost); }

.hero-side-sublabel {
  font-family: var(--body);
  font-size: 0.76rem;
  color: var(--faint);
  margin: -0.25rem 0 0.4rem;
}

.hero-tip {
  font-family: var(--mono);
  font-weight: 300;
  font-size: clamp(2.3rem, 6.5vw, 4rem);
  line-height: 1.02;
  margin: 0.1rem 0 0.5rem;
}
.hero-side--majority .hero-tip { color: var(--gold); }
.hero-side--enforcing .hero-tip { color: var(--frost); }

.hero-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.hero-meta div + div { margin-top: 0.2rem; }
.hero-meta dt {
  display: inline;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.66rem;
  color: var(--faint);
  margin-right: 0.4rem;
}
.hero-meta dd {
  display: inline;
  margin: 0;
  font-family: var(--mono);
  color: var(--text);
  font-size: 0.85rem;
}
.hero-dot { color: var(--faint); margin: 0 0.05rem; }

.hero-descriptor {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted);
  max-width: 28em;
}

/* Each side is a node from the explainer palette: dark fill, bright stroke.
   Majority = the Block node; enforcing = the Lightning node. */
.hero-side {
  padding: 0.9rem 1.1rem 1rem;
  border-radius: var(--radius);
}
.hero-side--majority {
  text-align: left;
  background: var(--gold-wash);
  border: 1px solid var(--gold);
}
.hero-side--enforcing {
  text-align: right;
  background: var(--frost-wash);
  border: 1px solid var(--frost);
}
.hero-side--enforcing .hero-descriptor { margin-left: auto; }

/* center gutter: the vertical rule + the derived stat */
.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  min-width: 10rem;
  padding: 0 1.1rem;
  border-left: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
}
.hero-center-top {
  font-family: var(--body);
  font-size: 0.8rem;
  color: var(--muted);
}
.hero-center-top .mono { font-family: var(--mono); color: var(--text); }
.hero-gap-value {
  font-family: var(--mono);
  font-weight: 300;
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  color: var(--text);
  line-height: 1.05;
}
.hero-gap-label {
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.66rem;
  color: var(--faint);
}
.hero-center-sub {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 20em;
}

/* projected time of the next milestone (window.json projection).
   Local time reads first, UTC underneath as the shared reference. */
.hero-projection {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  margin-top: 0.7rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
  width: 100%;
}
.hero-projection-label {
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.64rem;
  color: var(--faint);
}
.hero-projection-time {
  font-family: var(--mono);
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.2;
}
.hero-projection-utc {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--faint);
}
.hero-projection-note {
  margin: 0.3rem 0 0;
  font-family: var(--body);
  font-size: 0.72rem;
  font-style: italic;
  color: var(--faint);
  max-width: 20em;
}
.hero-projection-note .mono { font-family: var(--mono); font-style: normal; }

/* pending state: never an invented numeral */
.hero-pending {
  font-family: var(--body);
  font-style: italic;
  font-size: 0.85em;
  color: var(--faint);
}

@media (max-width: 720px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
  .hero-center {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
    padding: 0.9rem 0;
  }
  .hero-side--enforcing {
    text-align: left;
  }
  .hero-side--enforcing .hero-descriptor {
    margin-left: 0;
  }
}

/* Compact pre-window hero: one centered block until the split earns its
   layout at 961,632. */
.hero-pre {
  text-align: center;
  padding: 0.4rem 0 0.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.hero-pre .hero-center-sub,
.hero-pre .hero-descriptor {
  max-width: 44rem;
  margin: 0.35rem auto 0;
}
