/* Tokenomics v13 — uses xgr-theme.css for global page style */

.tokenomics-main {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(44px, 6vw, 74px) 0 88px;
}

.tokenomics-hero {
  display: grid;
  align-items: center;
  min-height: 330px;
  padding: clamp(42px, 5vw, 70px);
}

.tokenomics-hero__copy {
  max-width: 760px;
}

.tokenomics-hero p:last-child {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--xgr-soft);
  font-size: clamp(1.02rem, 1.35vw, 1.14rem);
  line-height: 1.76;
}

.token-section {
  margin-top: 30px;
  padding: clamp(38px, 5vw, 64px);
}

.token-section__head {
  max-width: 760px;
  margin-bottom: 30px;
}

.token-section h2 {
  margin: 0;
  color: var(--xgr-text);
  font-size: clamp(2.35rem, 4.6vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
  font-weight: 950;
}

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

.supply-card {
  min-height: 178px;
  padding: 24px;
}

.supply-card small,
.mechanics-grid small,
.api-source-card small {
  display: block;
  color: var(--xgr-green-700);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.supply-card strong {
  display: block;
  margin-top: 15px;
  color: var(--xgr-text);
  font-size: clamp(1.55rem, 2.4vw, 2.45rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 950;
}

.supply-card span {
  display: block;
  margin-top: 12px;
  color: var(--xgr-muted);
  font-weight: 760;
  line-height: 1.45;
}

.supply-status {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 18px;
  color: #315247;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--xgr-border-soft);
  font-weight: 780;
}

.supply-status[data-mode="ok"] {
  color: #0f5f2f;
  background: rgba(47, 143, 63, 0.08);
}

.supply-status[data-mode="warn"] {
  color: #7a5815;
  background: rgba(201, 154, 46, 0.10);
}

.api-source-card {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  margin-top: 16px;
  padding: 18px 20px;
}

.api-source-card strong {
  display: block;
  margin-top: 4px;
  color: var(--xgr-text);
  font-size: 1.02rem;
  font-weight: 950;
}

.api-source-card ul {
  display: grid;
  gap: 8px;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.api-source-card a {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--xgr-green-800);
  background: rgba(47, 143, 63, 0.08);
  border: 1px solid rgba(47, 143, 63, 0.12);
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.allocation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: stretch;
}

.allocation-bars,
.mechanics-grid {
  display: grid;
  gap: 16px;
}

.allocation-item,
.mechanics-grid article {
  padding: 22px;
}

.allocation-label {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
  margin-bottom: 13px;
}

.allocation-label strong {
  color: var(--xgr-text);
  font-size: 1.05rem;
  font-weight: 950;
}

.allocation-label span {
  color: var(--xgr-green-700);
  font-size: 1rem;
  font-weight: 950;
}

.allocation-bar {
  height: 15px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(6, 36, 28, 0.08);
  border: 1px solid rgba(6, 36, 28, 0.08);
}

.allocation-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0b3a2e, #2f8f3f 72%, #8ddb66);
  box-shadow: 0 0 22px rgba(90, 198, 75, 0.22);
}

.allocation-item small {
  display: block;
  margin-top: 10px;
  color: var(--xgr-muted);
  font-weight: 720;
}

.allocation-summary {
  padding: 26px;
  border-radius: 28px;
}

.allocation-summary h3 {
  margin: 0 0 20px;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 950;
}

.allocation-summary dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.allocation-summary div {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.allocation-summary div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.allocation-summary dt {
  color: #cde4d9;
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.allocation-summary dd {
  margin: 4px 0 0;
  color: #fff;
  font-size: 1.22rem;
  font-weight: 950;
}

.mechanics-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.mechanics-section > div > p {
  max-width: 600px;
  color: var(--xgr-soft);
  font-size: 1.06rem;
  line-height: 1.75;
}

.mechanics-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--xgr-text);
  font-size: 1.4rem;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.mechanics-grid span {
  display: block;
  margin-top: 7px;
  color: var(--xgr-muted);
  font-weight: 720;
  line-height: 1.55;
}

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

  .api-source-card {
    display: grid;
  }

  .api-source-card ul {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .tokenomics-main {
    width: min(100% - 24px, 520px);
    padding-top: 30px;
  }

  .tokenomics-hero,
  .token-section {
    border-radius: 28px;
    padding: 28px;
  }

  .tokenomics-hero h1 {
    font-size: clamp(2.7rem, 14vw, 4.4rem);
  }

  .token-section h2 {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }

  .allocation-label {
    display: grid;
    gap: 4px;
  }
}
