/* ============================================================
   Alpha Finance v2: Crypto Airdrop Tracker (/crypto-airdrop-tracker/)
   Loaded after funding.css, lsr.css and rwaperps.css, whose hero, stat
   tiles, cards, side lists, table and pager it reuses. Only what is
   particular to this page lives here: the launch odds bars, the odds bar in
   a row, the row tags, and the row that opens to the ladders and history.
   ============================================================ */

.drp-topv { display: flex; align-items: center; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drp-topv .rp-logo, .drp-topv .rp-chip { flex: none; }
.drp-ini { font-family: var(--mono); font-size: 8.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--text-2); --c: #6b727c; }
body.air .rp-logo[hidden], body.air .rp-chip[hidden] { display: none; }
.drp-none { display: block; padding: 10px 0; font-size: 12.5px; color: var(--muted); }

/* ---------- the launch odds chart ---------- */
.drp-oddscard .lsr-card-head .pick { margin-left: auto; }
.lsr-card-body.drp-odds { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }
.drp-scale, .drp-bar { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr) 92px; align-items: center; column-gap: 14px; }
.drp-scale { height: 18px; padding: 0 6px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.04em; color: var(--muted); }
.drp-scale-t { position: relative; height: 100%; }
.drp-scale-t em { position: absolute; top: 3px; font-style: normal; transform: translateX(-50%); }
.drp-scale-t em:first-child { transform: none; }
.drp-scale-t em:last-child { transform: translateX(-100%); }
.drp-bar {
  width: 100%; height: 34px; padding: 0 6px; border: 0; border-radius: 5px; background: none;
  color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background 0.12s;
}
.drp-bar:hover { background: var(--panel-2); }
.drp-bar.is-sel { background: color-mix(in srgb, var(--lime) 8%, transparent); }
.drp-bar-n { display: flex; align-items: center; min-width: 0; }
.drp-bar-n b { min-width: 0; font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drp-bar-n .rp-logo, .drp-bar-n .rp-chip { flex: none; width: 18px; height: 18px; margin-right: 8px; }
/* quarter lines behind the bars, so a bar's length reads against the scale */
.drp-bar-t {
  --q: color-mix(in srgb, var(--line) 80%, transparent);
  position: relative; height: 12px; border-radius: 3px;
  background:
    linear-gradient(var(--q), var(--q)) 25% 0 / 1px 100% no-repeat,
    linear-gradient(var(--q), var(--q)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(var(--q), var(--q)) 75% 0 / 1px 100% no-repeat,
    color-mix(in srgb, var(--line) 35%, transparent);
}
.drp-bar-t i { position: absolute; top: 0; bottom: 0; left: 0; display: block; }
.drp-b1 { border-radius: 3px 0 0 3px; background: var(--lime); }
.drp-b2 { background: color-mix(in srgb, var(--lime) 26%, transparent); border-radius: 0 3px 3px 0; }
.drp-bar-v { display: flex; justify-content: flex-end; align-items: baseline; gap: 10px; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.drp-bar-v b { font-size: 12.5px; font-weight: 600; color: var(--text); }
.drp-bar-v em { min-width: 34px; font-size: 11px; font-style: normal; color: var(--muted); text-align: right; }
.drp-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.drp-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.drp-sw { display: inline-block; width: 14px; height: 8px; border-radius: 2px; }
.drp-sw-1 { background: var(--lime); }
.drp-sw-2 { background: color-mix(in srgb, var(--lime) 26%, transparent); }
.drp-legend-n { margin-left: auto; }
body.air .rp-side .lsr-card-body { padding: 6px 16px 8px; }

/* ---------- the table ---------- */
.drp-chips { flex: 1; }
.drp-chips button { height: 30px; padding: 0 11px; font-size: 12px; white-space: nowrap; }
body.air .frates td.co { max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.air .frates td.co b { font-weight: 600; }
body.air .frates td.ct { text-align: left; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
body.air .frates tbody tr[data-id] { cursor: pointer; }
.drp-tag {
  display: inline-block; margin-left: 8px; padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 3px; vertical-align: 1px;
  font-family: var(--mono); font-size: 9px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.drp-tag.is-hot { border-color: color-mix(in srgb, var(--lime) 50%, transparent); color: var(--lime); }
.drp-ob { display: flex; align-items: center; gap: 9px; min-width: 140px; }
.drp-ob i { flex: 1; height: 6px; border-radius: 2px; background: color-mix(in srgb, var(--line) 55%, transparent); overflow: hidden; }
.drp-ob i u { display: block; height: 100%; min-width: 2px; border-radius: 2px; background: var(--lime); text-decoration: none; }
.drp-ob span { flex: none; width: 40px; font-family: var(--mono); font-size: 11.5px; font-variant-numeric: tabular-nums; text-align: right; color: var(--text); }
.drp-o-none { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--muted); }
.frates th.drp-x, .frates td.drp-x { width: 30px; padding-left: 0; text-align: center; color: var(--muted); }
.frates td.drp-x svg { width: 13px; height: 13px; vertical-align: middle; transition: transform 0.15s; }
.frates tr.is-open td.drp-x svg { transform: rotate(180deg); color: var(--lime); }
body.air .frates tbody tr.is-open td { background: color-mix(in srgb, var(--lime) 6%, transparent); }
body.air .frates tbody tr.is-open td:first-child { box-shadow: inset 2px 0 0 var(--lime); }

/* ---------- the opened row ---------- */
.frates tr.drp-def td { padding: 0; text-align: left; background: color-mix(in srgb, var(--lime) 3%, transparent); white-space: normal; }
.frates tr.drp-def:hover td { background: color-mix(in srgb, var(--lime) 3%, transparent); }
/* as wide as the visible part of the table, so it reads whole while the table scrolls sideways */
.drp-defin {
  position: sticky; left: 0; box-sizing: border-box; width: var(--drp-w, 100%);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 28px;
  padding: 16px 18px 18px 46px; box-shadow: inset 2px 0 0 var(--lime); font-family: var(--sans);
}
.drp-dcol { min-width: 0; }
.drp-dabout { grid-column: span 2; max-width: 620px; }
.drp-dk { margin: 0 0 8px; font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.drp-dabout > p:not(.drp-dk):not(.drp-links):not(.drp-use):not(.drp-usen) { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text-2); }
.drp-dabout dl { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 12px 0 0; font-size: 12px; }
.drp-dabout dl div { display: flex; gap: 8px; }
.drp-dabout dt { color: var(--muted); }
.drp-dabout dd { margin: 0; font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--text); }
.drp-usek { margin-top: 14px; }
.drp-use { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text); }
.drp-usen { margin: 3px 0 0; font-size: 11.5px; color: var(--muted); }
.drp-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.drp-links a {
  display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: 6px;
  font-size: 12px; font-weight: 500; color: var(--text); text-decoration: none; transition: border-color 0.12s, color 0.12s;
}
.drp-links a::after { content: "\2197"; margin-left: 6px; font-size: 11px; color: var(--muted); }
.drp-links a:hover { border-color: color-mix(in srgb, var(--lime) 55%, var(--line-2)); color: var(--lime); }
.drp-rungs { list-style: none; margin: 0; padding: 0; }
.drp-rungs li { display: grid; grid-template-columns: 92px minmax(0, 1fr) 40px; align-items: center; column-gap: 10px; height: 24px; }
.drp-rk { font-family: var(--mono); font-size: 11px; color: var(--text-2); white-space: nowrap; }
.drp-rt { height: 6px; border-radius: 2px; background: color-mix(in srgb, var(--line) 55%, transparent); overflow: hidden; }
.drp-rt i { display: block; height: 100%; min-width: 2px; border-radius: 2px; background: var(--lime); }
.drp-rv { font-family: var(--mono); font-size: 11.5px; font-variant-numeric: tabular-nums; text-align: right; color: var(--text); }
.drp-dnote { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.drp-dnote b { font-family: var(--mono); font-weight: 600; color: var(--text); }
.drp-spark { position: relative; height: 128px; }
.drp-spark svg { display: block; width: 100%; height: 110px; overflow: visible; }
.drp-sa { fill: color-mix(in srgb, var(--lime) 14%, transparent); stroke: none; }
.drp-sl { fill: none; stroke: var(--lime); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.drp-sx { display: flex; justify-content: space-between; margin-top: 4px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.drp-sx span:last-child { color: var(--text); }
.drp-sx em { font-style: normal; }
body.air .drp-sx .up { color: var(--pos-text); }
body.air .drp-sx .down { color: var(--neg-text); }

@media (max-width: 900px) {
  .drp-chips { flex-basis: 100%; overflow-x: auto; scrollbar-width: none; }
  .drp-defin { padding-left: 18px; }
  .drp-dabout { grid-column: auto; }
}
/* phones: the category is on the filter buttons and in the opened row, so its column gives way */
@media (max-width: 640px) {
  #drp-table th:nth-child(3), #drp-table td.ct { display: none; }
  .drp-scale, .drp-bar { grid-template-columns: minmax(96px, 120px) minmax(0, 1fr) 40px; column-gap: 10px; }
  .drp-bar-v em { display: none; }
  .drp-ob { min-width: 104px; }
  .drp-legend-n { display: none; }
}
@media (max-width: 640px) {
  .drp-scale-t em:nth-child(2), .drp-scale-t em:nth-child(4) { display: none; }
}
