/* Trident LMS 1.7.45 · public ranking on the home page (.tplb, includes/public-rank.php): counters, «Top 10 da semana»,
   «Certificados recentes», CTA. Theme colours: navy #252652, teal #17a5bc / #0d6c8c, gold #f5b81c; Inter (theme font).
   Mobile first. Same table language as the portal league card (portal-league.css). The site has no dark theme, so every
   colour is set explicitly. Contrast (WCAG AA): white on #252652 14.5:1, gold #f5b81c on #252652 8.4:1, #d8dcf2 on
   #252652 10.6:1, navy on white 14.5:1, #0d6c8c on white 5.9:1, #4f5672 on white 7.3:1, navy on gold 8.4:1. */
.tplb { --n: #252652; --nd: #1b1c3d; --t: #17a5bc; --td: #0d6c8c; --g: #f5b81c; --mut: #4f5672; --line: #e3e8f0; --soft: #f4f8fb;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: #fff; line-height: 1.5; box-sizing: border-box;
  background: linear-gradient(160deg, var(--n) 0%, var(--nd) 100%); padding: 48px 16px; width: 100%; }
.tplb *, .tplb *::before, .tplb *::after { box-sizing: border-box; }
.tplb h2, .tplb h3, .tplb p, .tplb ul { margin: 0; }
.tplb-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tplb__in { max-width: 1200px; margin: 0 auto; }

.tplb__head { text-align: center; max-width: 760px; margin: 0 auto 24px; }
.tplb__head h2 { font-size: clamp(26px, 4.4vw, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.tplb__head h2::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 2px; margin: 14px auto 0; background: linear-gradient(90deg, var(--t), var(--g)); }
.tplb .tplb__sub { margin-top: 12px; font-size: 17px; color: #d8dcf2; }

/* counters: stacked on phones, a strip of 3 from 640 px */
.tplb .tplb__stats { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0 0 22px; }
@media (min-width: 640px) { .tplb .tplb__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
.tplb__stat { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 12px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); text-align: center; }
.tplb__stat b { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; color: var(--g); font-variant-numeric: tabular-nums; line-height: 1.1; }
.tplb__stat span { font-size: 15px; color: #fff; }
.tplb__ico { font-size: 18px; }

/* cards: one column on phones, two from 900 px */
.tplb__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .tplb__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; } .tplb__grid--one { grid-template-columns: minmax(0, 760px); justify-content: center; } }
.tplb__card { background: #fff; color: var(--n); border-radius: 16px; padding: 18px 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); min-width: 0; }
@media (min-width: 640px) { .tplb__card { padding: 22px 22px; } }
.tplb__card h3 { font-size: 19px; font-weight: 800; color: var(--n); margin-bottom: 10px; }

/* weekly top: a real table */
.tplb__table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tplb__table th, .tplb__table td { padding: 8px 4px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.tplb__table thead th { font-size: 12.5px; color: var(--mut); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.tplb__table tbody th { width: 44px; font-weight: 800; color: var(--n); white-space: nowrap; font-size: 17px; }
.tplb__table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--td); }
.tplb__table .num b { color: var(--n); font-weight: 800; }
.tplb__r--podium { background: #fff8e6; }
.tplb__table tbody tr:last-child th, .tplb__table tbody tr:last-child td { border-bottom: 0; }
.tplb__who { display: flex; align-items: center; gap: 9px; min-width: 0; }
.tplb__av { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 13px; background: var(--td); }
.tplb__av--anon { background: #6b7280; }
.tplb__nm { font-weight: 700; color: var(--n); overflow-wrap: anywhere; }
.tplb__nm--anon { font-weight: 600; color: var(--mut); }
.tplb__cert { font-size: 16px; line-height: 1; }
.tplb .tplb__note { margin-top: 10px; font-size: 12.5px; color: var(--mut); }
.tplb__empty { padding: 14px; border-radius: 10px; background: var(--soft); color: #33384f; font-size: 15px; }

/* recent certificates: a list */
.tplb__feed { list-style: none; padding: 0; }
.tplb__feed li { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.tplb__feed li:last-child { border-bottom: 0; }
.tplb__feed .tplb__nm { grid-column: 1; }
.tplb__course { grid-column: 1 / -1; grid-row: 2; color: #33384f; font-size: 14px; line-height: 1.4; }
.tplb__ago { grid-column: 2; grid-row: 1; color: var(--td); font-size: 13px; font-weight: 600; white-space: nowrap; }

/* CTA */
.tplb .tplb__cta { text-align: center; margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.tplb__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 26px; border-radius: 12px;
  background: var(--g); color: var(--n) !important; font-weight: 800; font-size: 17px; text-decoration: none !important; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.tplb__btn:hover { background: #ffc93f; }
.tplb__btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.tplb__cta small { font-size: 13px; color: #d8dcf2; max-width: 560px; }
@media (max-width: 380px) { .tplb__btn { width: 100%; } .tplb__table { font-size: 14px; } .tplb__av { width: 28px; height: 28px; } }
@media (prefers-reduced-motion: reduce) { .tplb * { transition: none !important; animation: none !important; } }

/* 1.7.47: «O que dizem os nossos formandos» — latest 4–5★ reviews, full width under the two cards: 1 column on phones,
   2 from 640 px, 3 from 1000 px. Stars gold #f5b81c (decorative, with an aria-label), quotes navy-grey #33384f (11.5:1). */
.tplb__rv { margin-top: 16px; }
@media (min-width: 900px) { .tplb__rv { margin-top: 22px; } }
.tplb .tplb__rvlist { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .tplb .tplb__rvlist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1000px) { .tplb .tplb__rvlist { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tplb__rvitem { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); min-width: 0; }
.tplb__stars { color: var(--g); font-size: 18px; letter-spacing: 2px; line-height: 1; }
.tplb__stars-off { color: #c9cfdc; }
.tplb .tplb__quote { margin: 0; padding: 0 0 0 12px; border-left: 3px solid var(--t); flex: 1; }
.tplb .tplb__quote p { margin: 0; font-size: 15px; line-height: 1.55; color: #33384f; overflow-wrap: anywhere; }
.tplb .tplb__rvby { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.tplb__rvwho { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tplb__rvwho .tplb__course { font-size: 13px; color: var(--mut); }
.tplb__rvby .tplb__ago { white-space: nowrap; color: var(--td); font-size: 13px; font-weight: 600; }
