/* Public exchange-rate board: lives between the calculator and the crypto
   ticker on the homepage. A real table, but capped to a sensible reading
   width instead of stretching the full hero width — a table that wide
   leaves currency names and numbers stranded at opposite edges with a
   dead gap between them, which is hard to scan and looks unfinished. */
.rates-board { padding-top: 56px; }
.rates-board-inner { width: 100%; max-width: 760px; margin-inline: auto; }
.rates-board .rates-board-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 24px; flex-wrap: wrap; max-width: none; }
.rates-board-head .eyebrow { margin: 0 0 12px; font-size: 11px; letter-spacing: 1.8px; }
.rates-board-head h2 { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -1px; line-height: 1.15; margin: 0; }
.rates-subheading { margin: 10px 0 0; color: #98a28d; font-size: 13px; line-height: 1.7; max-width: 440px; }
.rates-updated { margin: 0 0 3px; font-size: 12px; color: #a2ab97; line-height: 1.6; }
.rates-date { margin: 0 0 12px; font-size: 15px; font-weight: 700; line-height: 1.5; color: var(--yellow); }

.rates-table { width: 100%; border: 1px solid #c9d2af24; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #151914, #0e120e); box-shadow: 0 20px 60px -30px #000c; }

.rates-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(90px, 1fr) minmax(90px, 1fr); align-items: center; gap: 16px; padding: 14px 22px; position: relative; }
.rates-row:not(.rates-head) + .rates-row { border-top: 1px solid #ffffff08; }
.rates-row:nth-of-type(even):not(.rates-head) { background: #ffffff02; }
.rates-row:not(.rates-head):hover { background: #f4ce210a; }
.rates-row:not(.rates-head):hover:before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--yellow); }

.rates-head { background: #f4ce21; color: #171709; font-size: 11px; letter-spacing: 1px; font-weight: 700; text-transform: uppercase; padding-block: 15px; }
.rates-head span:not(:first-child) { text-align: right; }

.rates-currency { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rates-currency img { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 1px #ffffff14; }
.rates-currency strong { font-size: 14px; font-weight: 700; letter-spacing: .2px; }
.rates-currency small { display: block; color: #98a28d; font-size: 11px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rates-currency > span { min-width: 0; }

.rates-buy, .rates-sell { text-align: right; font-variant-numeric: tabular-nums; font-size: 14.5px; font-weight: 700; color: #e9ebe1; white-space: nowrap; }
.rates-sell { color: #ead782; }
.rates-row.is-pending .rates-buy, .rates-row.is-pending .rates-sell { color: #5f635c; font-weight: 500; font-size: 12px; }

@media (max-width: 700px) {
  .rates-board { padding-top: 40px; }
  .rates-board .rates-board-head { gap: 12px; margin-bottom: 18px; }
  .rates-updated { font-size: 11px; }
  .rates-table { max-width: none; }
  .rates-row { grid-template-columns: minmax(0, 1.2fr) minmax(68px, 1fr) minmax(68px, 1fr); gap: 8px; padding: 13px 14px; }
  .rates-currency img { width: 26px; height: 26px; }
  .rates-currency strong { font-size: 13px; }
  .rates-currency small { display: none; }
  .rates-buy, .rates-sell { font-size: 13px; }
  .rates-head { font-size: 10px; }
}
