/* VBallr trackers (Portal / 5th Years / Commitments). Self-contained: everything is scoped under .trk and only
   relies on the colour variables and .card / .card-title that both sites get from styles.css. */
.trk { width: 100%; }
.trk a { color: var(--accent); }
.trk-note { font-size: 12px; color: var(--text-dim); padding: 0 14px 12px; }
.trk-sum { font-size: 12px; color: var(--text-dim); padding: 0 14px 8px; }
.trk-sum:empty { display: none; }

.trk-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; padding: 4px 14px 12px; }
.trk-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-dim); }
.trk-filters select, .trk-filters input { min-width: 140px; }

.trk-scroll { overflow-x: auto; scrollbar-width: auto; scrollbar-color: var(--text-dim) var(--row-hover); }
.trk-scroll::-webkit-scrollbar { height: 14px; }
.trk-scroll::-webkit-scrollbar-track { background: var(--row-hover); }
.trk-scroll::-webkit-scrollbar-thumb { background: var(--text-dim); border-radius: 7px; border: 3px solid var(--row-hover); }

/* The main app's generic table rules centre the first column and dim it; boards want plain left-aligned text. */
.trk-table th, .trk-table td { padding: 5px 9px; text-align: left; vertical-align: top; color: var(--text); width: auto; }
.trk-table th:first-child, .trk-table td:first-child { text-align: left; width: auto; color: var(--text); }
.trk-table tr.trk-first td { border-top: 2px solid var(--text, #222); }
.trk-table td.trk-school { font-weight: 700; vertical-align: middle; min-width: 150px; }
.trk-table td.trk-school a { color: inherit; text-decoration: none; }
.trk-table td.trk-school img { height: 20px; vertical-align: middle; margin-right: 4px; }
.trk-table td.trk-name { font-weight: 600; }
.trk-names { font-size: 12px; color: var(--text-dim); font-weight: 400; line-height: 1.5; }
.trk-table td.trk-note { white-space: normal; }
.trk-dest { margin-top: 4px; }
.trk-dest img, .trk-dest-link img { height: 18px; width: auto; vertical-align: middle; margin: 0 2px 0 4px; }
.trk-dest a, .trk-dest-link { color: inherit; font-weight: 600; text-decoration: none; }
.trk-nm { text-decoration: none; }
.trk-nm:hover { text-decoration: underline; }

.trk-tag { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 99px; border: 1px solid var(--border); color: var(--text-dim); margin-left: 4px; white-space: nowrap; }
.trk-tag.warn { color: var(--bad); border-color: var(--bad); }
.trk-tag.ok { color: var(--good); border-color: var(--good); }
.trk-tag.hot { color: var(--accent, #d9531e); border-color: var(--accent, #d9531e); }
.trk-tag.mute { opacity: .75; }
.trk-pill { margin-left: 0; font-size: 12px; padding: 2px 10px; font-weight: 600; }

@media (max-width: 720px) {
  .trk-filters label { flex: 1 1 42%; }
  .trk-filters select, .trk-filters input { min-width: 0; width: 100%; }
}
/* comfortable tap targets, and iOS Safari zooms the page when a focused control is under 16px */
@media (pointer: coarse) {
  .trk-filters select, .trk-filters input { min-height: 42px; font-size: 16px !important; }
}

/* Main app: the switch between boards (Portal / 5th Years / Commitments) above the board. */
.trk-switch { display: inline-flex; gap: 2px; padding: 3px; margin: 0 0 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-elev2, var(--bg-elev)); max-width: 100%; overflow-x: auto; }
.trk-switch-btn { appearance: none; border: 0; background: none; color: var(--text-dim); font: inherit; font-weight: 600; font-size: 14px; padding: 7px 16px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.trk-switch-btn:hover { color: var(--text); }
.trk-switch-btn.active { background: var(--accent); color: #fff; }
@media (pointer: coarse) { .trk-switch-btn { min-height: 40px; } }

/* Main app: promo for the transfer tool, above the boards. */
.trk-promo { position: relative; margin: 0 0 14px; border: 1px solid var(--accent); border-left-width: 5px; border-radius: 10px; background: var(--bg-elev); }
.trk-promo:hover { background: var(--row-hover); }
.trk-promo-link { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 52px 14px 18px; color: var(--text) !important; text-decoration: none; }
.trk-promo-close { position: absolute; top: 6px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--text-dim); font-size: 22px; line-height: 1; cursor: pointer; }
.trk-promo-close:hover { background: var(--bg-elev2, var(--row-hover)); color: var(--text); }
.trk-promo-text { font-size: 14px; line-height: 1.45; color: var(--text-dim); }
.trk-promo-text b { color: var(--text); font-size: 16px; display: block; margin-bottom: 2px; }
.trk-promo-go { flex: none; font-weight: 700; font-size: 14px; color: #fff; background: var(--accent); padding: 8px 14px; border-radius: 8px; white-space: nowrap; }
@media (max-width: 720px) { .trk-promo-link { flex-direction: column; align-items: stretch; text-align: left; } .trk-promo-go { text-align: center; } }

/* Portal board: invitation to report a transfer to the Instagram page. */
.trk-callout { margin-top: 10px; padding: 9px 12px; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 8px; background: var(--bg-elev2, var(--bg-elev)); font-size: 13px; color: var(--text); }
.trk-callout a { font-weight: 600; }

/* Portal board: experience bar (0-100), same look as the school finder's. */
.trk-exp { position: relative; display: inline-block; width: 64px; height: 20px; border-radius: 6px; overflow: hidden; background: var(--row-hover); vertical-align: middle; cursor: help; }
.trk-exp > i { position: absolute; inset: 0 auto 0 0; opacity: .8; background: var(--text-dim); }
.trk-exp.ok > i { background: var(--good); }
.trk-exp.warn > i { background: var(--bad); }
.trk-exp > b { position: relative; padding-left: 7px; font-size: 12px; line-height: 20px; color: var(--text); }
