/* ─────────────────────────────────────────────────────────────
   Reports page — "Top 5 Most Profitable Advisories" section
   Scoped to the public reports page only (registered in
   application/config/pages.php → reports → css).
   Uses the reports theme: dark navy panels + #c4a747 gold.
   ───────────────────────────────────────────────────────────── */

/* Rank medallions — gold / silver / bronze for the podium */
.tp-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  color: #eaf0ff;
  background: #17202f;
  border: 1px solid #2a3547;
}

.tp-rank--1 {
  color: #10141f;
  background: linear-gradient(135deg, #f7e08a, #c4a747);
  border-color: #f5d76e;
  box-shadow: 0 0 10px rgba(196, 167, 71, 0.4);
}

.tp-rank--2 {
  color: #10141f;
  background: linear-gradient(135deg, #eef2f7, #98a4b8);
  border-color: #dfe6ef;
}

.tp-rank--3 {
  color: #10141f;
  background: linear-gradient(135deg, #f0b98a, #b5703c);
  border-color: #e6a877;
}

/* Direction chip (mirrors .badge-dir tokens) */
.tp-dir {
  display: inline-block;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tp-dir--long {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.tp-dir--short {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Return pill — the headline number of the section */
.tp-return {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #4cd964;
  background: rgba(76, 217, 100, 0.1);
  border: 1px solid rgba(76, 217, 100, 0.28);
  white-space: nowrap;
}

/* Methodology / price-disclosure note under the table */
.tp-note {
  max-width: 1000px;
  margin: -1.35rem auto 0;
  font-size: 0.78rem;
  line-height: 1.65;
  text-align: center;
  color: #9ba3b5;
}

@media (max-width: 767.98px) {
  .tp-rank {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.64rem;
  }

  .tp-dir {
    font-size: 0.56rem;
    padding: 0.14rem 0.45rem;
  }

  .tp-return {
    font-size: 0.7rem;
    padding: 0.16rem 0.45rem;
  }

  .tp-note {
    margin-top: -1rem;
    font-size: 0.74rem;
  }
}
