/* /tools/crypto/bitcoin-halving-countdown/bitcoin-halving.css */

.bitcoin-halving-page {
  background:
    linear-gradient(180deg, #ffffff 0, #f7f8fb 520px),
    #f7f8fb;
}

.halving-shell {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

.halving-hero {
  padding: clamp(38px, 5.2vw, 70px) 0 clamp(18px, 3vw, 28px);
}

.halving-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.48fr);
  gap: clamp(22px, 4vw, 40px);
  align-items: center;
}

.halving-hero-copy {
  max-width: 780px;
}

.halving-hero-summary {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.04), rgba(255, 255, 255, 0) 46%),
    #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.halving-hero-summary::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.72), rgba(15, 159, 110, 0.34), rgba(180, 83, 9, 0.22));
}

.halving-hero-summary-head h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 1.25rem;
  line-height: 1.18;
  font-weight: 900;
}

.halving-hero-summary-list {
  display: grid;
  gap: 9px;
}

.halving-hero-summary-list > div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 8px;
  background: #fbfdff;
}

.halving-hero-summary-list > div > span:first-child {
  display: block;
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.28;
  font-weight: 850;
}

.halving-hero-summary-list strong {
  display: block;
  margin-top: 5px;
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.26;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.halving-hero-summary-list strong span:not(.halving-status-pill) {
  display: inline;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
}

.halving-hero-reward-card {
  margin-top: 9px;
  padding: 13px;
  border: 1px solid rgba(180, 83, 9, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(180, 83, 9, 0.05), rgba(255, 255, 255, 0) 62%),
    #ffffff;
}

.halving-hero-reward-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #475569;
  font-size: 0.76rem;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.halving-hero-reward-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff7ed;
  color: #b45309;
  font-size: 0.88rem;
  font-weight: 950;
}

.halving-hero-reward-stack {
  display: grid;
  gap: 8px;
}

.halving-hero-reward-stack > div:not(.halving-hero-reward-cut) {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 8px;
  background: #fbfdff;
}

.halving-hero-reward-stack span {
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.25;
  font-weight: 850;
}

.halving-hero-reward-stack strong {
  color: #0f172a;
  font-size: 0.98rem;
  line-height: 1.18;
  font-weight: 950;
  text-align: right;
}

.halving-hero-reward-cut {
  display: grid;
  justify-content: center;
  align-items: center;
  justify-items: center;
  gap: 5px;
  color: #b45309;
  font-size: 0.82rem;
  font-weight: 950;
}

.halving-hero-reward-cut small {
  display: block;
  color: #92400e;
  font-size: 0.68rem;
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.halving-hero-reward-cut span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff7ed;
  color: #b45309;
}

.halving-hero-summary-note,
.halving-estimate-note,
.halving-helper-note,
.halving-supply-method-note,
.halving-supply-meta-line {
  margin: 14px 0 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.6;
}

.halving-supply-meta-line {
  margin-top: 8px;
  font-size: 0.82rem;
}

.halving-supply-meta-line span {
  color: #475569;
  font-weight: 850;
}

.halving-estimate-note {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.halving-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-bottom: 16px;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 750;
}

.halving-breadcrumbs a {
  color: #334155;
}

.halving-breadcrumbs a:hover {
  color: var(--accent);
}

.halving-hero-copy h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.25rem, 5vw, 4.55rem);
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
}

.halving-hero-copy .lead {
  max-width: 690px;
  margin-top: 18px;
}

.halving-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: clamp(28px, 4.5vw, 36px);
}

.halving-language {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 800;
}

.halving-language select {
  min-height: 38px;
  padding: 7px 32px 7px 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 800;
}

.halving-countdown-card,
.halving-card,
.halving-stat-card {
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.halving-countdown-section {
  padding: 0 0 clamp(22px, 4vw, 36px);
}

.halving-countdown-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: clamp(22px, 4vw, 36px);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.045), rgba(255, 255, 255, 0) 46%),
    #ffffff;
}

.halving-countdown-card::before,
.halving-stat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.72), rgba(15, 159, 110, 0.34), rgba(180, 83, 9, 0.24));
}

.halving-countdown-card .halving-card-heading {
  max-width: 780px;
  margin: 0 auto clamp(20px, 3vw, 28px);
  text-align: center;
}

.halving-countdown-card .halving-kicker {
  margin-inline: auto;
}

.halving-card,
.halving-stat-card {
  padding: clamp(20px, 3.2vw, 30px);
}

.halving-card-accent::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.74), rgba(15, 159, 110, 0.38), rgba(180, 83, 9, 0.24));
}

.halving-panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.halving-panel-heading h2,
.halving-card-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.42rem, 2.15vw, 1.95rem);
  line-height: 1.18;
  font-weight: 900;
}

.halving-panel-heading p,
.halving-card-heading p {
  margin: clamp(10px, 2vw, 14px) 0 0;
  color: #516074;
  line-height: 1.68;
}

.halving-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  margin: 0 0 clamp(12px, 2.5vw, 18px);
  padding: 6px 10px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  background: #eef5ff;
  color: #1e40af;
  font-size: 0.75rem;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.halving-status-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 850;
}

.halving-status-pill.is-live {
  background: #ecfdf5;
  color: #047857;
}

.halving-status-pill.is-estimated {
  background: #fff7ed;
  color: #b45309;
}

.halving-summary-card strong .halving-status-pill {
  width: fit-content;
  max-width: 100%;
  margin-top: 0;
  white-space: normal;
}

.halving-timer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 18px);
  margin-top: 0;
}

.halving-time-unit {
  min-width: 0;
  min-height: 148px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 24px 14px;
  border: 1px solid rgba(15, 23, 42, 0.075);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.028), rgba(255, 255, 255, 0) 58%),
    #fbfdff;
  text-align: center;
}

.halving-time-unit strong {
  display: block;
  color: #0f172a;
  font-size: clamp(2.45rem, 6vw, 4.35rem);
  line-height: 1;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.halving-time-unit span {
  display: block;
  margin-top: 7px;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.halving-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.halving-summary-card,
.halving-stat-row,
.halving-supply-stat,
.halving-fact-card,
.halving-related-card {
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.075);
  border-radius: 8px;
  background: #fbfdff;
}

.halving-summary-card {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15px;
  background: #ffffff;
}

.halving-summary-card span,
.halving-stat-row span,
.halving-supply-stat span {
  display: block;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.28;
  font-weight: 850;
}

.halving-summary-card strong,
.halving-stat-row strong,
.halving-supply-stat strong {
  display: block;
  margin-top: 7px;
  color: #0f172a;
  font-size: clamp(1.12rem, 1.55vw, 1.34rem);
  line-height: 1.2;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.halving-summary-card.is-wide {
  grid-column: 1 / -1;
}

.halving-stat-card-overview .halving-summary-card:last-child {
  grid-column: 1 / -1;
}

.halving-summary-card.is-wide strong {
  font-size: clamp(1.16rem, 1.7vw, 1.42rem);
}

strong[data-current-reward],
strong[data-next-reward],
strong[data-supply-total],
strong[data-supply-mined],
strong[data-supply-remaining] {
  white-space: nowrap;
}

.halving-mini-progress {
  height: 10px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.halving-stats-section {
  padding: 0 0 clamp(30px, 5vw, 48px);
}

.halving-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 24px);
  align-items: stretch;
}

.halving-stat-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.026), rgba(255, 255, 255, 0) 54%),
    #ffffff;
}

.halving-stat-card .halving-summary-grid,
.halving-stat-card .halving-stat-list {
  flex: 1;
}

.halving-stat-card:nth-child(2)::before {
  background: linear-gradient(90deg, rgba(15, 159, 110, 0.7), rgba(37, 99, 235, 0.28));
}

.halving-stat-card-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  margin-bottom: 18px;
}

.halving-stat-card-head .halving-kicker {
  margin-bottom: 8px;
}

.halving-stat-card-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.18rem, 1.7vw, 1.42rem);
  line-height: 1.2;
  font-weight: 900;
}

.halving-stat-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #eef5ff;
  color: #1d4ed8;
  font-size: 0.92rem;
  font-weight: 950;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.08);
}

.halving-stat-icon.green {
  background: #ecfdf5;
  color: #047857;
  box-shadow: 0 10px 20px rgba(15, 159, 110, 0.08);
}

.halving-stat-icon.gold {
  background: #fff7ed;
  color: #b45309;
  box-shadow: 0 10px 20px rgba(180, 83, 9, 0.08);
}

.halving-mini-progress > span {
  display: block;
  width: var(--progress, 94%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #0f9f6e);
}

.halving-block-card {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(15, 159, 110, 0.045), rgba(255, 255, 255, 0) 52%),
    #ffffff;
}

.halving-block-card h3 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 1.08rem;
  line-height: 1.24;
  font-weight: 900;
}

.halving-stat-list {
  display: grid;
  gap: 8px;
  align-content: stretch;
}

.halving-stat-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 12px 13px;
  background: #ffffff;
}

.halving-stat-row strong {
  margin-top: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.halving-api-note {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.55;
}

.halving-section {
  padding: clamp(30px, 5vw, 46px) 0;
}

.halving-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.018), rgba(255, 255, 255, 0) 46%),
    #ffffff;
}

.halving-card-heading {
  max-width: 780px;
  margin-bottom: clamp(20px, 3vw, 28px);
}

.halving-section-heading-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: clamp(20px, 3vw, 28px);
}

.halving-section-heading-row .halving-card-heading {
  margin-bottom: 0;
}

.halving-meta-label {
  flex: 0 0 auto;
  min-width: min(240px, 100%);
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.075);
  border-radius: 8px;
  background: #fbfdff;
  color: #64748b;
  text-align: right;
}

.halving-meta-label span {
  display: block;
  font-size: 0.72rem;
  line-height: 1.25;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.halving-meta-label strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 900;
}

.halving-supply-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 52px);
  align-items: center;
}

.halving-supply-visual {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.halving-circle {
  --percent: 94;
  display: grid;
  place-items: center;
  width: min(245px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ffffff 0 57%, transparent 58%),
    conic-gradient(#2563eb calc(var(--percent) * 1%), #e2e8f0 0);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}



.halving-circle strong {
  display: block;
  color: #0f172a;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  font-weight: 950;
  text-align: center;
}

.halving-circle span {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.halving-supply-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.halving-supply-stat {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 120px;
  padding: clamp(18px, 2.5vw, 22px) 16px 16px;
  background: #ffffff;
}

.halving-supply-stat span {
  display: block;
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.3;
  font-weight: 850;
  margin-bottom: 6px;
  min-height: 32px;
}

.halving-supply-stat strong {
  display: block;
  color: #0f172a;
  font-size: clamp(1.15rem, 1.6vw, 1.42rem);
  line-height: 1.2;
  font-weight: 900;
  white-space: nowrap;
}

.halving-stat-exact,
.halving-stat-helper {
  display: block;
  margin-top: auto;
  padding-top: 5px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.halving-stat-exact {
  white-space: nowrap;
}

.halving-supply-bar {
  grid-column: 1 / -1;
  margin-top: 10px;
  padding: 0;
  border: none;
  background: transparent;
}

.halving-supply-bar-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 850;
}

.halving-progress-track {
  height: 14px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}

.halving-progress-fill {
  width: var(--progress, 94%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #0f9f6e);
}

.halving-supply-method-note {
  margin-top: 24px;
  padding: 12px 14px;
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 8px;
  background: #f8fbff;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.6;
}

.halving-supply-meta-line {
  margin-top: 10px;
  font-size: 0.82rem;
  color: #94a3b8;
}

.halving-supply-meta-line span {
  color: #64748b;
  font-weight: 800;
}

.halving-reward-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.halving-reward-step {
  position: relative;
  min-width: 0;
  min-height: 126px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px 12px;
  border: 1px solid rgba(15, 23, 42, 0.075);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(180, 83, 9, 0.035), rgba(255, 255, 255, 0) 56%),
    #ffffff;
  text-align: center;
}

.halving-reward-step:not(:last-child)::after {
  content: ">";
  position: absolute;
  top: 50%;
  right: -17px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid #dbe4ef;
  border-radius: 50%;
  background: #ffffff;
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 950;
  line-height: 1;
  transform: translateY(-50%);
  z-index: 1;
}

.halving-reward-step.is-current {
  border-color: rgba(37, 99, 235, 0.18);
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.045), rgba(255, 255, 255, 0) 58%),
    #ffffff;
}

.halving-reward-step.is-next {
  border-color: rgba(180, 83, 9, 0.26);
  background:
    linear-gradient(180deg, rgba(180, 83, 9, 0.095), rgba(255, 255, 255, 0) 58%),
    #ffffff;
  box-shadow: 0 16px 34px rgba(180, 83, 9, 0.1);
}

.halving-reward-step.is-next span::after {
  content: "Next";
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #fff7ed;
  color: #b45309;
  font-size: 0.68rem;
  font-weight: 950;
}

.halving-reward-step strong {
  color: #0f172a;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.12;
  font-weight: 950;
}

.halving-reward-step span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 850;
}

.halving-chart-wrap {
  padding: 20px 20px 16px;
  overflow-x: auto;
  border: 1px solid rgba(15, 23, 42, 0.075);
  border-radius: 8px;
  background: #fbfdff;
}

.halving-emission-chart {
  display: block;
  min-width: 720px;
  width: 100%;
  height: auto;
}

.halving-emission-chart .axis {
  stroke: #cbd5e1;
  stroke-width: 1;
}

.halving-emission-chart .grid-line {
  stroke: #e2e8f0;
  stroke-width: 1;
}

.halving-emission-chart .supply-line {
  fill: none;
  stroke: #2563eb;
  stroke-width: 4.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.halving-emission-chart .cap-line {
  stroke: #0f766e;
  stroke-width: 4.5;
  stroke-dasharray: 6 4;
}

.halving-emission-chart text {
  fill: #475569;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
}

.halving-emission-chart .phase-annotation-badge rect {
  fill: #eff6ff;
  stroke: #bfdbfe;
  stroke-width: 1;
}

.halving-emission-chart .phase-annotation-badge text {
  fill: #1d4ed8;
  font-size: 10px;
  font-weight: 850;
}

.halving-emission-chart .cap-line-label {
  fill: #0f766e;
  font-size: 11px;
  font-weight: 900;
}

.halving-emission-chart .point {
  fill: #ffffff;
  stroke: #2563eb;
  stroke-width: 3;
}

.halving-emission-chart .phase-marker {
  fill: #ffffff;
  stroke: #2563eb;
  stroke-width: 3;
}

.halving-emission-chart .next-marker {
  fill: #ffffff;
  stroke: #ea580c;
  stroke-width: 4;
}

.halving-emission-chart .phase-line,
.halving-emission-chart .next-line {
  stroke-width: 2;
  stroke-dasharray: 4 5;
}

.halving-emission-chart .phase-line {
  stroke: #2563eb;
}

.halving-emission-chart .next-line {
  stroke: #ea580c;
  stroke-width: 2.5;
  stroke-dasharray: 4 4;
}

.halving-emission-chart .phase-label {
  fill: #1d4ed8;
}

.halving-emission-chart .next-label,
.halving-emission-chart .cap-label {
  fill: #b45309;
}

.halving-emission-chart .cap-label {
  fill: #0f766e;
  font-size: 13.5px;
}

.halving-emission-chart .axis-label,
.halving-emission-chart .y-label {
  fill: #64748b;
  font-size: 12px;
}

.halving-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 12px;
  color: #475569;
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 800;
}

.halving-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 999px;
  background: #ffffff;
}

.halving-chart-legend i {
  display: inline-block;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: #2563eb;
}

.halving-chart-legend .legend-orange {
  background: #ea580c;
}

.halving-chart-legend .legend-green {
  border-top: 3px dashed #0f766e;
  background: transparent;
}

.halving-chart-takeaway {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: #f8fafc;
}

.halving-chart-takeaway .takeaway-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #fef3c7;
  color: #d97706;
}

.halving-chart-takeaway .takeaway-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.halving-chart-takeaway .takeaway-title {
  font-size: 0.95rem;
  font-weight: 850;
  color: #0f172a;
}

.halving-chart-takeaway p {
  margin: 0;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.5;
  font-weight: 550;
}

.halving-chart-note,
.halving-future-note {
  margin: 14px 0 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.6;
}

.halving-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding-top: 52px;
  align-items: start;
  margin-inline: -10px;
}

@media (max-width: 1080px) {
  .halving-timeline {
    margin-inline: 0;
  }
}

.halving-timeline::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 16px;
  right: 16px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.35), rgba(37, 99, 235, 0.35) 68%, rgba(249, 115, 22, 0.4));
}

.halving-timeline-item {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 12px 10px 10px;
  border: 1px solid rgba(15, 23, 42, 0.075);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.halving-timeline-item::before {
  content: "";
  position: absolute;
  top: -39px;
  left: 50%;
  width: 16px;
  height: 16px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 2px #bfdbfe;
  transform: translateX(-50%);
  z-index: 2;
}

.halving-timeline-item::after {
  content: "";
  position: absolute;
  top: -17px;
  left: 50%;
  width: 1px;
  height: 17px;
  background: rgba(148, 163, 184, 0.12);
  transform: translateX(-50%);
  z-index: 0;
}

.halving-timeline-item > * {
  position: relative;
  z-index: 2;
}

/* Past Milestones - Historical but Informative (Medium Emphasis) */
.halving-timeline-item.is-completed {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #f8fafc;
  box-shadow: none;
}

.halving-timeline-item.is-completed::before {
  background: #64748b;
  box-shadow: none;
  border-color: #f1f5f9;
}

.halving-timeline-item.is-completed .halving-timeline-topline span {
  background: #f1f5f9;
  color: #475569;
}

.halving-timeline-item.is-completed h3 {
  color: #475569;
}

.halving-timeline-item.is-completed .halving-timeline-reward {
  border-color: rgba(15, 23, 42, 0.08);
  background: #ffffff;
}

.halving-timeline-item.is-completed .halving-timeline-reward span {
  color: #64748b;
}

.halving-timeline-item.is-completed .halving-timeline-reward strong {
  color: #475569;
}

/* Current Era Milestone - Softened Highlight (High Emphasis) */
.halving-timeline-item.is-current {
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-top: 3px solid #2563eb;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.04);
}

.halving-timeline-item.is-current::before {
  background: #2563eb;
  box-shadow: 0 0 0 2px #bfdbfe;
  border-color: #ffffff;
}

.halving-timeline-item.is-current .halving-timeline-topline span {
  background: #eef5ff;
  color: #1d4ed8;
}

.halving-timeline-item.is-current h3 {
  color: #1e293b;
}

.halving-timeline-item.is-current .halving-timeline-reward {
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.15);
}

.halving-timeline-item.is-current .halving-timeline-reward strong {
  color: #1d4ed8;
  font-weight: 850;
}

/* Upcoming Milestone - Strongest Emphasis (Highest Emphasis) */
.halving-timeline-item.is-estimated {
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-top: 4px solid #ea580c;
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.06), rgba(255, 255, 255, 0) 70%), #ffffff;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.12);
  transform: scale(1.025);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.halving-timeline-item.is-estimated:hover {
  transform: scale(1.045);
}

.halving-timeline-item.is-estimated::before {
  background: #ea580c;
  box-shadow: 0 0 0 2px #fed7aa;
  top: -35px;
}

.halving-timeline-item.is-estimated::after {
  background: rgba(249, 115, 22, 0.2);
  top: -13px;
  height: 13px;
}

.halving-timeline-item.is-estimated h3 {
  color: #0f172a;
}

.halving-timeline-topline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 8px;
}

@media (max-width: 640px) {
  .halving-timeline-topline {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.halving-timeline-topline span,
.halving-timeline-topline strong,
.halving-timeline-topline .badge-current {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 850;
  white-space: nowrap;
}

.halving-timeline-topline span {
  background: #eef5ff;
  color: #1d4ed8;
}

.halving-timeline-topline strong {
  background: #fff7ed;
  color: #b45309;
  border: 1px solid rgba(249, 115, 22, 0.25);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.halving-timeline-topline .badge-current {
  background: #eef5ff;
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.15);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.halving-timeline-item h3 {
  margin: 10px 0 4px;
  color: #0f172a;
  font-size: 0.95rem;
  line-height: 1.24;
  font-weight: 900;
}

.halving-timeline-reward {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: auto;
  margin: 6px 0;
  padding: 3px 6px;
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 5px;
  background: #ffffff;
  color: #0f172a;
  text-align: center;
}

.halving-timeline-reward span {
  color: #64748b;
  font-size: 0.62rem;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.halving-timeline-reward strong {
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.halving-timeline-item.is-completed .halving-timeline-reward {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.04);
}

.halving-timeline-item.is-current .halving-timeline-reward {
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.15);
}

.halving-timeline-item.is-current .halving-timeline-reward strong {
  color: #1d4ed8;
}

.halving-timeline-item.is-estimated .halving-timeline-reward {
  background: #fff7ed;
  border-color: rgba(249, 115, 22, 0.15);
}

.halving-timeline-item.is-estimated .halving-timeline-reward strong {
  color: #ea580c;
}

.halving-timeline-days {
  margin: 6px 0;
  padding: 4px 6px;
  border-radius: 4px;
  background: #fffbf7;
  border: 1px solid rgba(249, 115, 22, 0.1);
  color: #9a3412;
  font-size: 0.75rem;
  line-height: 1.25;
  font-weight: 700;
  text-align: center;
}

.halving-timeline-days strong {
  color: #ea580c;
  font-weight: 850;
}

.halving-timeline-item em {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 850;
}

.halving-timeline-item.is-estimated em {
  color: #94a3b8;
  font-size: 0.74rem;
  font-weight: 700;
}

.halving-timeline-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
  padding: 0 clamp(16px, 3vw, 24px);
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.6;
  font-weight: 550;
  text-align: center;
  opacity: 0.85;
}

.halving-timeline-note .info-icon {
  flex: 0 0 auto;
  color: #94a3b8;
}

.halving-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(15, 23, 42, 0.075);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
}

.halving-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.halving-table th,
.halving-table td {
  padding: 15px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

.halving-table th {
  background: #f8fafc;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.halving-table td {
  color: #0f172a;
  font-weight: 760;
  background: #ffffff;
}

.halving-table tbody tr:nth-child(even) td {
  background: #fbfdff;
}

.halving-table tr:last-child td {
  border-bottom: 0;
}

.halving-fact-grid,
.halving-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.halving-fact-card {
  position: relative;
  min-height: 126px;
  display: flex;
  align-items: center;
  padding: 18px 18px 18px 22px;
  background: #ffffff;
  color: #475569;
  line-height: 1.65;
  font-weight: 750;
}

.halving-fact-card::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: var(--fact-accent, #2563eb);
}

.halving-fact-card:nth-child(2n) {
  --fact-accent: #0f9f6e;
}

.halving-fact-card:nth-child(3n) {
  --fact-accent: #b45309;
}

.halving-education-stack {
  display: grid;
  gap: 20px;
}

.halving-copy-card p {
  max-width: 880px;
  margin: 0;
  color: #516074;
  line-height: 1.75;
}

.halving-copy-card p + p {
  margin-top: 14px;
}

.halving-bullets {
  max-width: 880px;
  margin: 14px 0;
  padding-left: 20px;
  color: #516074;
  line-height: 1.75;
  list-style-type: disc;
}

.halving-bullets li {
  margin-bottom: 8px;
}

.halving-bullets li::marker {
  color: var(--accent, #2563eb);
}

.halving-related-card {
  min-height: 212px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.03), rgba(255, 255, 255, 0) 54%),
    #ffffff;
}

.halving-related-card span {
  width: fit-content;
  min-height: 26px;
  margin-bottom: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: #b45309;
  font-size: 0.76rem;
  font-weight: 900;
}

.halving-related-card strong {
  margin-bottom: 10px;
  color: #0f172a;
  font-size: 1.08rem;
  line-height: 1.22;
  font-weight: 900;
}

.halving-related-card p {
  margin: 0;
  color: #516074;
  line-height: 1.64;
}

.halving-related-card em {
  margin-top: auto;
  padding-top: 18px;
  color: #1d4ed8;
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 900;
}

.halving-faq {
  display: grid;
  gap: 12px;
}

.halving-faq-item {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
}

.halving-faq-item summary {
  cursor: pointer;
  padding: 18px 18px;
  color: #0f172a;
  font-weight: 900;
  line-height: 1.35;
}

.halving-faq-item p {
  margin: 0;
  padding: 0 18px 18px;
  color: #516074;
  line-height: 1.7;
}

@media (max-width: 1080px) {
  .halving-reward-flow,
  .halving-timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .halving-timeline::before {
    display: none;
  }

  .halving-reward-step:not(:last-child)::after {
    display: none;
  }

  .halving-timeline {
    padding-top: 0;
  }

  .halving-timeline-item::before,
  .halving-timeline-item::after {
    display: none;
  }
}

@media (max-width: 980px) {
  .halving-hero-grid,
  .halving-supply-layout {
    grid-template-columns: 1fr;
  }

  .halving-stats-grid,
  .halving-section-heading-row {
    grid-template-columns: 1fr;
  }

  .halving-section-heading-row {
    display: grid;
  }

  .halving-meta-label {
    width: 100%;
    text-align: left;
  }

  .halving-supply-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .halving-hero-summary {
    max-width: 620px;
  }

  .halving-fact-grid,
  .halving-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .halving-hero {
    padding-top: 34px;
  }

  .halving-hero-copy h1 {
    font-size: clamp(2.05rem, 12vw, 3.1rem);
  }

  .halving-actions,
  .halving-panel-heading,
  .halving-supply-bar-header {
    flex-direction: column;
    align-items: stretch;
  }

  .halving-summary-grid,
  .halving-supply-grid,
  .halving-supply-visual-stats,
  .halving-compact-supply,
  .halving-reward-flow,
  .halving-timeline,
  .halving-fact-grid,
  .halving-related-grid {
    grid-template-columns: 1fr;
  }

  .halving-timer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .halving-time-unit {
    min-height: 118px;
    display: grid;
    place-items: center;
    align-content: center;
    padding: 18px 12px;
    text-align: center;
  }

  .halving-time-unit strong {
    font-size: 2.25rem;
  }

  .halving-time-unit span {
    margin-top: 7px;
  }

  .halving-stat-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .halving-stat-row strong {
    text-align: left;
  }

  .halving-supply-stat strong,
  .halving-supply-visual-stats strong {
    font-size: 1rem;
  }

  .halving-chart-legend span {
    width: 100%;
  }

  .halving-timeline-reward {
    white-space: normal;
  }

  .halving-circle {
    width: min(225px, 100%);
  }
}

@media (max-width: 430px) {
  .halving-timer {
    grid-template-columns: 1fr;
  }

  .halving-stat-card-head {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
  }

  .halving-stat-icon {
    width: 38px;
    height: 38px;
  }
}

/* Next Halving Impact Section */
.halving-impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 0;
}

.halving-impact-card {
  display: flex;
  flex-direction: column;
  padding: clamp(16px, 2.5vw, 20px) 16px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.025);
}

.halving-impact-card.highlight-orange {
  border-color: rgba(249, 115, 22, 0.18);
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.02), rgba(255, 255, 255, 0)), #ffffff;
}

.halving-impact-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 850;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.halving-impact-val {
  display: block;
  font-size: 1.45rem;
  font-weight: 900;
  color: #0f172a;
  margin: 10px 0 6px;
  line-height: 1.2;
}

.halving-impact-card.highlight-orange .halving-impact-val {
  color: #ea580c;
}

.halving-impact-desc {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.3;
}

.halving-comparison-block {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 10px;
  background: #f8fafc;
  margin-top: 24px;
}

.comparison-panel {
  flex: 1;
  padding: 16px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.015);
}

.comparison-current {
  border-left: 4px solid #2563eb;
}

.comparison-next {
  border-left: 4px solid #ea580c;
}

.comparison-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 850;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.comparison-val {
  display: block;
  font-size: 1.3rem;
  font-weight: 900;
  color: #0f172a;
  margin-top: 8px;
  line-height: 1.2;
}

.comparison-next .comparison-val {
  color: #ea580c;
}

.comparison-arrow-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.comparison-arrow-svg {
  width: 28px;
  height: 28px;
  color: #94a3b8;
  transform: rotate(-90deg); /* points right on desktop */
  transition: transform 0.3s ease;
}

.comparison-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 900;
  color: #c2410c;
  background: #ffedd5;
  border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

/* Responsive styles */
@media (max-width: 980px) {
  .halving-impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .halving-impact-grid {
    grid-template-columns: 1fr;
  }
  
  .halving-comparison-block {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  
  .comparison-arrow-wrap {
    flex-direction: row;
    justify-content: center;
    gap: 12px;
  }
  
  .comparison-arrow-svg {
    transform: rotate(0deg); /* points down on mobile */
  }
}

/* Smooth scroll margin offsets for sticky header compatibility */
#halving-countdown,
#halving-reward-history {
  scroll-margin-top: 90px;
}

/* Hindi Typography & Spacing overrides to prevent stacked glyphs and badges from touching */
html[lang="hi"] .halving-hero-copy h1 {
  letter-spacing: -0.02em;
  line-height: 1.25;
}

html[lang="hi"] h2,
html[lang="hi"] .halving-panel-heading h2,
html[lang="hi"] .halving-card-heading h2 {
  line-height: 1.35;
}

html[lang="hi"] h3,
html[lang="hi"] .halving-faq-item summary {
  line-height: 1.4;
}

html[lang="hi"] .halving-kicker {
  margin-bottom: clamp(14px, 2.5vw, 20px);
}

html[lang="hi"] .halving-stat-card-head .halving-kicker {
  margin-bottom: 12px;
}

