/* Rolagem manual mantém as cotações legíveis e evita movimento obrigatório. */
.market-ticker {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #fff;
  border-block: 1px solid #dbe4f0;
  padding: 12px 24px;
  min-width: 0;
}
.market-ticker > a {
  font-weight: 750;
  color: #174b9b;
  white-space: nowrap;
}
.market-ticker-items {
  display: flex;
  gap: 12px;
  overflow: auto;
  min-width: 0;
  padding-bottom: 8px;
}
.market-ticker-items a {
  min-width: 185px;
  padding: 9px 12px;
  background: #f2f6ff;
  border-radius: 10px;
  color: #17304d;
  text-decoration: none;
}
.market-ticker-items strong,
.market-ticker-items small {
  display: block;
}
.market-ticker-items small {
  font-size: 11px;
  color: #52647b;
}
.market-change {
  white-space: nowrap;
  font-weight: 700;
}
.market-change.positive {
  color: #12613c;
}
.market-change.negative {
  color: #a12433;
}
.market-change.neutral {
  color: #4e5b70;
}
.market-card {
  background: white;
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  padding: 24px;
  margin: 24px 0;
}
.market-card h2 {
  margin-top: 0;
}
.market-card h3 {
  margin-top: 28px;
}
.market-rates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.market-rates article {
  background: #edf4ff;
  padding: 20px;
  border-radius: 12px;
}
.market-rates h3 {
  margin-top: 0;
}
.market-rates strong {
  font-size: 28px;
}
.market-warning {
  border-left: 4px solid #bb7c14;
  background: #fff6e5;
  padding: 12px;
  color: #664509;
}
.market-table-wrap {
  overflow-x: auto;
}
.market-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.market-table-wrap th,
.market-table-wrap td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid #e2e9f2;
}
.market-table-wrap thead {
  background: #f1f5fb;
}
.market-table-wrap small {
  display: block;
  max-width: 220px;
  font-weight: 400;
  color: #52647b;
}
.market-selic-control {
  padding: 12px;
  background: #eef5ff;
  border-radius: 10px;
  grid-column: 1/-1;
}
.market-selic-control p {
  font-size: 14px;
}
.market-page p {
  line-height: 1.6;
}
.market-ticker a:focus-visible {
  outline: 3px solid #245eea;
  outline-offset: 2px;
}
@media (max-width: 640px) {
  .market-ticker {
    padding: 10px;
    gap: 8px;
  }
  .market-rates {
    grid-template-columns: 1fr;
  }
  .market-card {
    padding: 16px;
  }
}
