/* Macro Pulse — home (/). Depende de cedula.css. */

.h-topcta { min-height: 38px; padding: 0 14px; font-size: 0.9rem; }
@media (max-width: 560px) { .h-topcta { display: none; } }

/* ---------- Abertura ---------- */

.h-hero { padding-top: 36px; }
.h-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.h-intro .mp-h1 { font-size: clamp(2.4rem, 1.4rem + 4.2vw, 5rem); }
.h-dateline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0; color: var(--ink-2); font-size: 0.92rem; }
@media (min-width: 900px) {
  .h-intro { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; column-gap: 48px; }
  .h-intro .mp-h1 { grid-row: span 2; }
}

/* ---------- A cédula ---------- */

.h-note { padding: 40px 18px 18px; overflow: hidden; }
.h-note > *:not(.mp-rosette):not(.h-note__corner) { position: relative; z-index: 1; }
.h-note__rosette { width: 320px; height: 320px; right: -90px; top: -110px; z-index: 0; color: var(--c-bolsa); opacity: 0.13; }
.h-note__corner { position: absolute; top: 14px; font-size: 0.66rem; color: var(--ink-3); }
.h-note__corner--tl { left: 18px; }
.h-note__corner--tr { right: 18px; }
@media (min-width: 900px) {
  .h-note { padding: 48px 34px 24px; }
  .h-note__corner { top: 18px; }
  .h-note__corner--tl { left: 34px; }
  .h-note__corner--tr { right: 34px; }
}

.h-denoms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 1000px) { .h-denoms { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; } }

.h-denom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 16px 14px 14px;
  background: color-mix(in oklab, var(--cls) 9%, var(--sheet));
  border: 1px solid color-mix(in oklab, var(--cls) 30%, var(--rule));
  border-radius: var(--radius);
}
.h-denom .mp-denom { font-size: clamp(1.9rem, 1rem + 1.9vw, 2.6rem); font-variation-settings: "wdth" 112; color: var(--ink); }
@media (max-width: 639px) {
  .h-denoms { grid-template-columns: minmax(0, 1fr); }
  .h-denom { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 12px; padding: 14px; }
  .h-denom .mp-field__tag { grid-column: 1 / -1; }
  .h-denom .mp-denom { font-size: 1.9rem; }
  .h-denom > :last-child { text-align: right; }
}
.h-denom .mp-field__tag { font-size: 0.78rem; }
.h-denom__sub { font-size: 0.86rem; font-weight: 600; color: var(--ink-2); }
.h-denom__sub[data-tone="positive"] { color: var(--up); }
.h-denom__sub[data-tone="negative"] { color: var(--down); }
@media (min-width: 1000px) { .h-denom { padding: 20px 18px 18px; gap: 10px; } }

.h-band { margin: 16px 0 0; }
.h-band__plate { height: 76px; --gc: var(--c-bolsa); --gc2: var(--c-stable); }
.h-band__plate svg { width: 100%; height: 100%; }
.h-band figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 0.78rem; color: var(--ink-3); }
.h-band figcaption span:first-child, .h-band figcaption span:last-child { color: var(--ink-2); font-weight: 600; white-space: nowrap; }
@media (max-width: 559px) { .h-band__title { display: none; } }
@media (min-width: 900px) { .h-band__plate { height: 104px; } }

/* ---------- Leitura ---------- */

.h-read {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  margin-top: 64px;
}
@media (min-width: 1000px) { .h-read { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 56px; } }

.h-kicker { margin: 0 0 8px; font-size: 0.86rem; font-weight: 700; color: var(--c-bolsa); }
.h-read .mp-h2 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.5rem); max-width: 22ch; }
.h-read__body { margin-top: 18px; }
.h-read__body p { margin: 0 0 14px; font-size: 1.08rem; line-height: 1.72; max-width: 66ch; text-wrap: pretty; }

.h-read__news { padding-top: 4px; }
@media (min-width: 1000px) { .h-read__news { padding-top: 34px; border-left: 1px solid var(--rule); padding-left: 28px; } }
.h-news { margin-top: 8px; }
.h-news__item { display: flex; flex-direction: column; gap: 3px; padding: 12px 0; border-bottom: 1px solid var(--rule-2); text-decoration: none; }
.h-news__item:last-child { border-bottom: 0; }
.h-news__src { font-size: 0.76rem; font-weight: 700; color: var(--c-bolsa); }
.h-news__title { font-weight: 600; line-height: 1.4; }
.h-news__item:hover .h-news__title { text-decoration: underline; text-underline-offset: 3px; }
.h-news__empty { color: var(--ink-3); }

/* ---------- Dólar digital ---------- */

.h-usdc { margin-top: 64px; }
.h-usdc__card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 22px; }
@media (min-width: 1000px) {
  .h-usdc__card { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; padding: 30px; align-items: start; }
}
.h-usdc__lead { display: flex; flex-direction: column; gap: 10px; }
.h-usdc__lead p { margin: 0; color: var(--ink-2); }
.h-usdc__gauge { display: flex; flex-direction: column; gap: 12px; }
.h-usdc__price { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.h-seal {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border: 1.5px solid currentColor;
  border-radius: var(--radius);
  font-weight: 700; font-size: 0.85rem;
}
.h-seal:empty { display: none; }
.h-seal::before { content: ""; width: 8px; height: 8px; background: currentColor; border-radius: 1px; }
.h-peg__track {
  position: relative; height: 12px;
  border: 1px solid color-mix(in oklab, var(--cls) 40%, var(--rule));
  border-radius: 1px;
  background: repeating-linear-gradient(90deg, color-mix(in oklab, var(--cls) 22%, transparent) 0 1px, transparent 1px 6px);
}
.h-peg__mid { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: var(--cls); }
.h-peg__cursor { position: absolute; top: -5px; bottom: -5px; left: 50%; width: 4px; margin-left: -2px; background: var(--ink); box-shadow: 0 0 0 2px var(--sheet); transition: left 900ms var(--ease); }
.h-peg__scale { display: flex; justify-content: space-between; margin-top: 6px; font-size: 0.72rem; color: var(--ink-2); }
.h-usdc__peg { margin: 0; font-size: 0.9rem; color: var(--ink-2); }
.h-usdc__rows { margin: 0; }
.h-usdc__rows > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; padding: 10px 0; border-bottom: 1px dotted color-mix(in oklab, var(--cls) 35%, var(--rule)); }
.h-usdc__rows > div:first-child { padding-top: 0; }
.h-usdc__rows dt { color: var(--ink-2); font-size: 0.9rem; }
.h-usdc__rows dd { margin: 0; font-weight: 700; margin-left: auto; text-align: right; }

/* ---------- Indicadores ---------- */

.h-ind { margin-top: 64px; }
.h-section-head { margin-bottom: 18px; }
.h-section-head p { margin: 6px 0 0; color: var(--ink-2); }
.h-ind__table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (min-width: 900px) { .h-ind__table { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.h-ind__table > div { display: flex; flex-direction: column; gap: 6px; padding: 16px; min-width: 0; border-bottom: 1px solid var(--rule-2); }
.h-ind__table > div:nth-child(odd) { border-right: 1px solid var(--rule-2); }
@media (min-width: 900px) {
  .h-ind__table > div { border-right: 1px solid var(--rule-2); }
  .h-ind__table > div:nth-child(4n) { border-right: 0; }
  .h-ind__table > div:nth-last-child(-n + 4) { border-bottom: 0; }
}
@media (max-width: 899px) { .h-ind__table > div:nth-last-child(-n + 2) { border-bottom: 0; } }
.h-ind__table dt { display: inline-flex; align-items: center; gap: 8px; font-size: 0.84rem; font-weight: 600; color: var(--ink-2); }
.h-ind__table dt::before { content: ""; width: 8px; height: 8px; border-radius: 1px; background: var(--cls); flex: none; }
.h-ind__table dd { margin: 0; font-weight: 800; font-variation-settings: "wdth" 115; font-size: 1.3rem; letter-spacing: -0.02em; white-space: nowrap; }
.h-ind__note { margin: 10px 0 0; font-size: 0.86rem; color: var(--ink-2); }

/* ---------- Fecho ---------- */

.h-close { margin-top: 64px; }
.h-close__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: 28px 24px; }
.h-close__inner > * { position: relative; z-index: 1; }
.h-close__inner p { margin: 6px 0 0; color: var(--ink-2); max-width: 56ch; }
@media (min-width: 900px) { .h-close__inner { padding: 34px 38px; } }

/* ---------- Coreografia ---------- */

.h-intro > *, .h-denom, .h-band { animation: mp-settle 700ms var(--ease) both; }
.h-intro > :nth-child(2) { animation-delay: 60ms; }
.h-intro > :nth-child(3) { animation-delay: 100ms; }
.h-denom:nth-child(1) { animation-delay: 160ms; }
.h-denom:nth-child(2) { animation-delay: 220ms; }
.h-denom:nth-child(3) { animation-delay: 280ms; }
.h-denom:nth-child(4) { animation-delay: 340ms; }
.h-band { animation-delay: 380ms; }
