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

/* ---------- Fechamento: dateline ---------- */

.t-hero { padding-top: 22px; }

.t-dateline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  margin-bottom: 14px;
  color: var(--ink-2);
  font-size: 0.9rem;
}
.t-dateline__date { color: var(--ink); font-weight: 600; }
.t-dateline__meta { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; }
.t-dateline__next { color: var(--ink-3); }
.t-dateline__next:not(:empty)::before { content: "·"; margin: 0 6px 0 4px; }
.t-live {
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 2px;
  background: var(--up);
  border-radius: 1px;
  transform: translateY(-1px);
  animation: t-live 2.4s ease-in-out infinite;
}
@keyframes t-live { 50% { opacity: 0.35; } }

/* ---------- A cédula do dia ---------- */

.t-cedula {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  padding: 26px 22px 18px;
}
.t-cedula > * { position: relative; z-index: 1; }

.t-cedula__story { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.t-summary { margin: 0; color: var(--ink-2); font-size: 1.04rem; line-height: 1.6; max-width: 60ch; text-wrap: pretty; }
.t-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

.t-cedula__value {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  overflow: hidden;
  min-width: 0;
}
.t-rosette { width: 260px; height: 260px; right: -70px; top: -60px; }
.t-ibov { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; color: var(--ink); }
.t-ibov .mp-denom { font-size: clamp(2.6rem, 1.7rem + 3.2vw, 4.6rem); }
.t-ibov__unit { font-size: 0.9rem; font-weight: 600; color: var(--ink-2); }

.t-periods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin: 4px 0 0;
  padding-top: 12px;
  border-top: 1px solid color-mix(in oklab, var(--cls) 30%, var(--rule));
}
.t-periods dt { font-size: 0.78rem; color: var(--ink-2); font-weight: 600; }
.t-periods dd { margin: 2px 0 0; font-size: 1rem; }

.t-note { margin: 0; font-size: 0.82rem; color: var(--ink-3); line-height: 1.45; }
.t-note a { color: var(--ink-2); }

.t-band { grid-column: 1 / -1; margin: 0; padding-top: 14px; border-top: 1px solid var(--rule-2); }
.t-band__plate { height: 88px; --gc: var(--c-bolsa); --gc2: var(--c-stable); }
.t-band__plate svg { width: 100%; height: 100%; }
.t-band__cap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--ink-3);
}
.t-band__cap span:first-child, .t-band__cap span:last-child { font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.t-band__title { text-align: center; }

@media (max-width: 559px) {
  .t-band__title { display: none; }
}

@media (min-width: 900px) {
  .t-cedula {
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
    gap: 28px 32px;
    padding: 34px 34px 22px;
  }
  .t-cedula__value { padding: 24px; }
  .t-band__plate { height: 118px; }
}

/* ---------- Denominações ---------- */

.t-denoms {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
}
@media (min-width: 640px) { .t-denoms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1140px) { .t-denoms { grid-template-columns: 1.1fr 1fr 1.1fr 1fr; } }

.t-denom { display: flex; flex-direction: column; gap: 12px; padding: 18px; min-width: 0; }

.t-pair { display: flex; flex-direction: column; gap: 4px; }
.t-pair__name { font-size: 0.84rem; color: var(--ink-2); font-weight: 600; }
.t-pair .mp-denom { color: var(--ink); }
.t-pair--minor {
  flex-direction: row;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding-top: 10px;
  border-top: 1px dashed color-mix(in oklab, var(--cls) 35%, var(--rule));
}
.t-pair__val { font-weight: 700; font-size: 1.05rem; }

.t-rates { display: grid; gap: 10px; margin: 0; }
.t-rates > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.t-rates dt { font-size: 0.86rem; color: var(--ink-2); font-weight: 600; }
.t-rates dd { margin: 0; font-weight: 800; font-variation-settings: "wdth" 115; font-size: 1.35rem; letter-spacing: -0.02em; }
.t-rates dd.t-rates__empty { display: block; font-weight: 400; font-variation-settings: "wdth" 100; letter-spacing: 0; font-size: 0.9rem; color: var(--ink-2); line-height: 1.5; }

.t-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin: 0; }
.t-mini dt { font-size: 0.78rem; color: var(--ink-2); font-weight: 600; }
.t-mini dd { margin: 2px 0 0; font-weight: 700; }

/* Sentimento */
.t-fg__title { font-size: 0.8rem; font-weight: 700; color: var(--ink-2); }
.t-fg__score { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; }
.t-fg__of { color: var(--ink-3); font-weight: 600; }
.t-fg__label { font-weight: 700; color: var(--ink); width: 100%; }

.t-gauge { position: relative; height: 14px; margin-top: 4px; }
.t-gauge__ticks {
  position: absolute;
  inset: 3px 0;
  background:
    repeating-linear-gradient(90deg, var(--sheet) 0 1px, transparent 1px 5px),
    linear-gradient(90deg, var(--down), color-mix(in oklab, var(--down) 50%, var(--flat)) 30%, var(--flat) 50%, color-mix(in oklab, var(--up) 50%, var(--flat)) 70%, var(--up));
  border-radius: 1px;
  opacity: 0.85;
}
.t-gauge__cursor {
  position: absolute;
  top: -3px; bottom: -3px;
  width: 3px;
  margin-left: -1.5px;
  background: var(--ink);
  box-shadow: 0 0 0 2px var(--sheet);
  transition: left 900ms var(--ease);
}
.t-gauge__scale { display: flex; justify-content: space-between; gap: 6px; font-size: 0.72rem; color: var(--ink-3); }

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

.t-reading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 28px;
}
@media (min-width: 1000px) { .t-reading { grid-template-columns: minmax(0, 1.55fr) minmax(340px, 1fr); align-items: start; } }

.t-gestor { padding: 26px 22px; }
@media (min-width: 700px) { .t-gestor { padding: 32px 36px; } }
.t-gestor__head p { margin: 4px 0 0; color: var(--ink-2); }
.t-gestor__body { margin-top: 18px; }
.t-gestor__body p { margin: 0 0 14px; font-size: 1.06rem; line-height: 1.72; max-width: 68ch; text-wrap: pretty; }
.t-gestor__foot { margin-top: 18px; }

.t-news { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--rule); }
.t-news__title { margin: 0 0 6px; font-size: 0.86rem; font-weight: 700; color: var(--ink-2); }
.analyst-news-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-2);
  text-decoration: none;
}
.analyst-news-item:last-child { border-bottom: 0; }
.analyst-news-source { font-size: 0.76rem; font-weight: 700; color: var(--c-bolsa); }
.analyst-news-title { font-weight: 600; line-height: 1.4; }
.analyst-news-item:hover .analyst-news-title { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 700px) {
  .analyst-news-item { grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: baseline; }
}

/* Dólar digital */
.t-usdc { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.t-usdc__head { display: flex; flex-direction: column; gap: 6px; }
.t-usdc__main { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }

.t-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;
}
.t-seal:empty { display: none; }
.t-seal::before { content: ""; width: 8px; height: 8px; background: currentColor; border-radius: 1px; }

.t-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);
}
.t-peg__mid { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: var(--cls); }
.t-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);
}
.t-peg__scale { display: flex; justify-content: space-between; margin-top: 6px; font-size: 0.72rem; color: var(--ink-2); }

.t-usdc__rows { display: grid; gap: 0; margin: 0; }
.t-usdc__rows > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  padding: 8px 0;
  border-bottom: 1px dotted color-mix(in oklab, var(--cls) 35%, var(--rule));
}
.t-usdc__rows dt { font-size: 0.84rem; color: var(--ink-2); flex: 1 1 auto; }
.t-usdc__rows dd { margin: 0; font-weight: 700; text-align: right; margin-left: auto; font-feature-settings: "tnum" 1; }

.t-score__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-weight: 700; }
.t-score__head strong { font-variation-settings: "wdth" 115; font-size: 1.25rem; }
.t-score__bars { display: grid; gap: 6px; margin-top: 8px; }
.t-sub { display: grid; grid-template-columns: 76px minmax(0, 1fr) 30px; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--ink-2); }
.t-sub__bar { height: 6px; background: color-mix(in oklab, var(--cls) 14%, var(--sheet)); border-radius: 1px; overflow: hidden; }
.t-sub__bar i { display: block; height: 100%; width: 100%; background: var(--cls); transform-origin: left center; transform: scaleX(var(--v, 0)); transition: transform 900ms var(--ease); }
.t-sub b { text-align: right; color: var(--ink); }
.t-usdc__reading { margin: 0; font-size: 0.92rem; color: var(--ink-2); line-height: 1.55; }
.t-usdc__reading:empty { display: none; }

/* ---------- Seções ---------- */

.t-section { margin-top: 64px; }
.t-section__head { margin-bottom: 18px; }
.t-section__head p { margin: 6px 0 0; color: var(--ink-2); max-width: 62ch; }
.t-section__head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }

/* Mercados */
.t-markets { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 1000px) { .t-markets { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); align-items: stretch; } }

.t-world { padding: 18px; }
.t-world__list { margin-top: 10px; }
.world-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule-2);
}
.world-chip:last-child { border-bottom: 0; }
.world-chip__info { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.world-chip__name { font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.world-chip[data-asset="commod"] .world-chip__name { color: var(--c-commod); }
.world-chip__name::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 1px; background: var(--c-bolsa); transform: translateY(-1px); }
.world-chip[data-asset="commod"] .world-chip__name::before { background: var(--c-commod); }
.world-chip__value { font-weight: 700; font-feature-settings: "tnum" 1; white-space: nowrap; }
.world-chip__change { font-weight: 700; min-width: 64px; text-align: right; white-space: nowrap; }

.t-chart { display: flex; flex-direction: column; padding: 18px; min-width: 0; }
.t-chart + .t-chart { margin-top: 12px; }
.t-chart__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; margin-bottom: 12px; }
.t-chart__tv { flex: 1 1 auto; height: 300px; min-height: 300px; }
.t-chart__canvas { position: relative; height: 260px; }
.t-chart__canvas--short { height: 150px; }
@media (max-width: 600px) { .t-chart__tv { height: 240px; } .t-chart__canvas { height: 230px; } }

/* Mapa de calor */
.t-heat { margin-top: 16px; padding: 18px; }
.t-heat__legend { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; }
.t-heat__legend i { font-style: normal; font-weight: 600; }
.t-heat__ramp { width: 80px; height: 8px; border-radius: 1px; background: linear-gradient(90deg, var(--down), var(--sheet-2) 50%, var(--up)); border: 1px solid var(--rule); }
.t-heat__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
.heatmap-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 10px 12px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in oklab, var(--tile) 35%, var(--rule));
  background: color-mix(in oklab, var(--tile) calc(var(--k, 0.2) * 100%), var(--sheet));
  overflow: hidden;
}
.heatmap-tile.pos { --tile: var(--up); }
.heatmap-tile.neg { --tile: var(--down); }
.tile-ticker { font-weight: 800; font-variation-settings: "wdth" 112; letter-spacing: -0.01em; color: var(--ink); }
.tile-change { font-weight: 700; font-size: 0.9rem; color: color-mix(in oklab, var(--tile) 75%, var(--ink)); }
.heatmap-tile::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 3px;
  width: calc(var(--m, 0.2) * 100%);
  background: var(--tile);
}

/* Destaques */
.t-hl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 32px; margin-top: 16px; padding: 18px; }
@media (min-width: 800px) { .t-hl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.t-hl__col h3 { margin-bottom: 6px; }
.hl-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto 64px;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule-2);
  font-size: 0.92rem;
}
.hl-row:last-child { border-bottom: 0; }
.hl-ticker { font-weight: 800; font-variation-settings: "wdth" 110; }
.hl-label { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-price { font-feature-settings: "tnum" 1; white-space: nowrap; }
.hl-change { text-align: right; font-weight: 700; white-space: nowrap; }
.hl-empty { color: var(--ink-3); font-size: 0.9rem; padding: 8px 0; }
@media (max-width: 420px) { .hl-row { grid-template-columns: 58px minmax(0, 1fr) 62px; } .hl-label { display: none; } }

/* ---------- Radar ---------- */

.t-radar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 1000px) { .t-radar { grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.65fr); } }

.t-search { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.t-search__field { position: relative; }
.t-search__field svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.t-search__field input {
  width: 100%;
  min-height: 48px;
  padding: 0 44px 0 40px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--ground);
  color: var(--ink);
  font-size: 1rem;
}
.t-search__field input::placeholder { color: var(--ink-3); }
.t-search__field input::-webkit-search-cancel-button { display: none; }
.t-search__field[data-busy="true"]::after {
  content: "";
  position: absolute; right: 48px; top: 50%;
  width: 14px; height: 14px; margin-top: -7px;
  border: 2px solid var(--rule); border-top-color: var(--ink);
  border-radius: 50%;
  animation: t-spin 700ms linear infinite;
}
@keyframes t-spin { to { transform: rotate(360deg); } }
.t-search__clear {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; border-radius: var(--radius);
}
.t-search__clear:hover { background: var(--sheet-2); }
.t-search__feedback { margin: 0; font-size: 0.84rem; color: var(--ink-2); }
.t-search__feedback[data-tone="positive"] { color: var(--ink-2); }
.t-search__results { display: grid; gap: 0; max-height: 420px; overflow: auto; overscroll-behavior: contain; border-top: 1px solid var(--rule-2); }
.stock-search-placeholder { padding: 14px 0; color: var(--ink-3); font-size: 0.9rem; }
.stock-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 8px 4px;
  border: 0;
  border-bottom: 1px solid var(--rule-2);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.stock-search-item:hover { background: var(--sheet-2); }
.stock-search-item__title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.stock-search-item__title > div { display: flex; flex-direction: column; min-width: 0; }
.stock-search-item__title strong { font-weight: 800; font-variation-settings: "wdth" 110; }
.stock-search-item__title span { color: var(--ink-2); font-size: 0.86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stock-search-item__cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: 0.82rem; font-weight: 650; color: var(--ink-2); white-space: nowrap;
}
.stock-search-item__cta.is-active { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.stock-search-item__cta strong { font-weight: 400; }

.sticker, .icon-box { display: none; }

.t-watch__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; }
.t-watch__reset { min-height: 38px; font-size: 0.88rem; }
.t-watch__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.watch-empty { padding: 18px; border: 1px dashed var(--rule); border-radius: var(--radius); color: var(--ink-2); grid-column: 1 / -1; }

.watch-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}
.watch-card__title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.watch-card__title > div { display: flex; flex-direction: column; min-width: 0; }
.watch-card__title strong { font-weight: 800; font-size: 1.12rem; font-variation-settings: "wdth" 114; letter-spacing: -0.01em; }
.watch-card__title span { color: var(--ink-2); font-size: 0.84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.watch-fav-btn {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; flex: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: transparent;
  color: var(--c-commod);
  font-size: 1rem;
  cursor: pointer;
}
.watch-fav-btn:hover { background: var(--sheet-2); }
.watch-card__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.watch-stat { display: flex; flex-direction: column; gap: 2px; }
.watch-stat span { font-size: 0.76rem; color: var(--ink-2); font-weight: 600; }
.watch-stat strong { font-weight: 800; font-variation-settings: "wdth" 110; font-size: 1.1rem; white-space: nowrap; }
.watch-card__chart { display: flex; flex-direction: column; gap: 4px; }
.watch-card__chart-head { display: flex; justify-content: space-between; gap: 8px; font-size: 0.74rem; color: var(--ink-3); }
.watch-card__chart-head [data-tone] { font-weight: 700; }
.watch-sparkline { width: 100%; height: 56px; }
.watch-sparkline__grid { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.watch-sparkline__area { opacity: 0.1; }
.watch-sparkline__line { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.watch-card__note { font-size: 0.74rem; color: var(--ink-3); }

/* ---------- Arquivo ---------- */

.t-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.t-range { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; margin-top: 6px; }
.t-range .mp-input { width: auto; min-height: 40px; }
.t-range .mp-btn { min-height: 40px; }

.t-period {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-bottom: 18px;
  padding: 12px 16px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink-2);
}
.t-period strong { color: var(--ink); }
.t-period__count { margin-left: auto; font-weight: 600; color: var(--ink-3); white-space: nowrap; }

.t-archive { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 1000px) {
  .t-archive { grid-template-columns: 250px minmax(0, 1fr); }
  .t-archive__nav { position: sticky; top: 84px; }
}
.t-archive__nav { display: flex; flex-direction: column; gap: 4px; }
.t-fold { border-bottom: 1px solid var(--rule); }
.t-fold summary {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 44px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.t-fold summary::-webkit-details-marker { display: none; }
.t-fold summary::after { content: "+"; font-weight: 400; color: var(--ink-3); font-size: 1.2rem; }
.t-fold[open] summary::after { content: "–"; }
.t-chips { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 14px; }
.t-archive__nav .t-note { padding-top: 10px; }

.chip {
  display: inline-flex; align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--sheet);
  color: var(--ink-2);
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.chip:hover { color: var(--ink); border-color: var(--ink-3); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--sheet); }

.t-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 12px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.t-rail__cell { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; min-width: 0; }
.t-rail__cell + .t-rail__cell { border-top: 1px solid var(--rule-2); }
.t-rail__cell .mp-denom { white-space: normal; }
@media (min-width: 700px) {
  .t-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .t-rail__cell + .t-rail__cell { border-top: 0; border-left: 1px solid var(--rule-2); }
}

.t-days, .t-months { display: grid; gap: 12px; margin-top: 16px; }

.day-card, .month-card {
  padding: 20px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}
@media (min-width: 700px) { .day-card, .month-card { padding: 24px 26px; } }

.day-card__top, .month-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.headline-row { display: block; min-width: 0; }
.day-card .meta, .month-card .meta {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-variation-settings: "wdth" 112;
  color: var(--ink-2);
}
.day-card h3, .month-card h3 {
  margin: 6px 0 0;
  font-size: clamp(1.12rem, 1rem + 0.5vw, 1.4rem);
  line-height: 1.18;
  font-weight: 700;
  font-variation-settings: "wdth" 88;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.pill {
  flex: none;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px 3px;
  border: 1.5px solid currentColor;
  border-radius: var(--radius);
  font-weight: 800;
  font-variation-settings: "wdth" 110;
  white-space: nowrap;
}
.pill[data-tone="positive"]::before { content: "▲"; font-size: 0.7em; }
.pill[data-tone="negative"]::before { content: "▼"; font-size: 0.7em; }

.day-card__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 14px; }
@media (min-width: 900px) { .day-card__body { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; } }
.day-card__summary, .month-card__summary { margin: 0; color: var(--ink-2); line-height: 1.65; max-width: 68ch; }
.drivers-section { margin-top: 14px; }
.drivers-section h4 { margin: 0 0 6px; font-size: 0.86rem; font-weight: 700; }
.drivers-list { margin: 0; padding-left: 1.1em; color: var(--ink-2); font-size: 0.92rem; }
.drivers-list li { margin: 3px 0; }
.drivers-list li::marker { color: var(--ink-3); }

.metric-grid, .month-card__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
}
.metric-cell { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; min-width: 0; }
.metric-cell:nth-child(odd) { border-right: 1px solid var(--rule-2); }
.metric-cell:nth-child(n + 3) { border-top: 1px solid var(--rule-2); }
.metric-cell span { font-size: 0.74rem; color: var(--ink-2); font-weight: 600; }
.metric-cell strong { font-weight: 700; font-feature-settings: "tnum" 1; overflow-wrap: anywhere; }

.stocks-strip { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.stock-pill {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  font-size: 0.8rem;
  white-space: nowrap;
}
.stock-pill > span:not(.sticker) { font-weight: 800; font-variation-settings: "wdth" 108; }
.stock-pill strong { display: none; }
.stock-pill em { font-style: normal; font-weight: 700; }

.month-sep { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-weight: 700; color: var(--ink-2); }
.month-sep::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.month-card__summary { margin-top: 12px; }
.month-card__stats { margin-top: 14px; }
.month-card__footer { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 14px; }
.month-card__footer > div { display: flex; flex-direction: column; gap: 2px; }
.month-card__footer .meta { letter-spacing: 0.08em; }
.month-card__footer strong { font-weight: 700; }
.takeaways { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.takeaways span { padding: 5px 9px; background: var(--sheet-2); border: 1px solid var(--rule-2); border-radius: var(--radius); font-size: 0.84rem; color: var(--ink-2); }

/* ---------- Publicidade ---------- */

.ad-shell:not(.is-ready) { display: none; }
.ad-shell.is-ready { margin-top: 28px; min-height: 90px; }

/* ---------- Coreografia de entrada ---------- */

.t-cedula__story > *, .t-cedula__value, .t-denoms > * { animation: mp-settle 700ms var(--ease) both; }
.t-cedula__story > :nth-child(2) { animation-delay: 60ms; }
.t-cedula__story > :nth-child(3) { animation-delay: 120ms; }
.t-cedula__value { animation-delay: 140ms; }
.t-denoms > :nth-child(1) { animation-delay: 220ms; }
.t-denoms > :nth-child(2) { animation-delay: 270ms; }
.t-denoms > :nth-child(3) { animation-delay: 320ms; }
.t-denoms > :nth-child(4) { animation-delay: 370ms; }

@media (max-width: 559px) {
  .t-dateline { gap: 2px 12px; }
  .t-dateline__meta { width: 100%; }
  .t-dateline__next { width: 100%; }
  .t-dateline__next:not(:empty)::before { content: none; }
}
.t-section, .t-hero { scroll-margin-top: 76px; }
