/* RJC Training Portal (train.html). Builds on the Members' Portal app shell (member.css): same ribbon, panels, cards and dialog. */
.tp-progress { display: grid; gap: 8px; }
.tp-progress .bar { height: 12px; border-radius: 99px; background: rgba(14,20,17,.08); overflow: hidden; }
.mp-hello .tp-progress .bar, .mp-card.dark .tp-progress .bar { background: rgba(255,255,255,.14); }
.tp-progress .bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--accent-2)); transition: width 900ms var(--ease-out); }
.tp-progress .row { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; }
.tp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0 6px; }
.tp-steps span { display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.55); }
.tp-steps span::before { content: ""; height: 4px; border-radius: 99px; background: rgba(255,255,255,.16); }
.tp-steps span.done { color: #fff; }
.tp-steps span.done::before { background: var(--accent-2); }
.tp-steps span.now { color: #9fd8b4; }
.tp-steps span.now::before { background: linear-gradient(90deg, var(--accent-2) 50%, rgba(255,255,255,.16) 50%); }

/* classes as tiles */
.tp-track { margin-bottom: 26px; }
.tp-track > h2 { font-size: 18px; display: flex; gap: 10px; align-items: baseline; margin-bottom: 4px; }
.tp-track > p { color: var(--mp-muted); font-size: 14px; margin-bottom: 12px; max-width: 80ch; }
.tp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tp-tile { position: relative; display: grid; gap: 8px; align-content: start; text-align: left; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--mp-line);
  transition: transform var(--fast) var(--ease), box-shadow var(--fast); min-height: 150px; }
.tp-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(0,0,0,.35); }
.tp-tile .code { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--green); }
.tp-tile b { font-size: 16px; line-height: 1.25; }
.tp-tile small { color: var(--mp-muted); font-size: 13px; line-height: 1.4; }
.tp-tile .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; }
.tp-tile.done { background: linear-gradient(160deg, #fff, #eef6f0); border-color: rgba(31,92,56,.25); }
.tp-tile.locked { opacity: .72; }
.tp-tile.locked:hover { opacity: 1; }
.tp-tile .rec { position: absolute; top: 12px; right: 12px; }
.mp-chip.blue { background: rgba(59,130,246,.12); color: #1d4ed8; }
.mp-chip.gray { background: rgba(14,20,17,.07); color: var(--mp-muted); }
.tp-viewseg { display: inline-flex; border: 1px solid rgba(14,20,17,.18); border-radius: 10px; overflow: hidden; background: #fff; }
.tp-viewseg button { padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--mp-muted); }
.tp-viewseg button[aria-pressed="true"] { background: var(--green); color: #fff; }

/* lists and tables */
.tp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tp-table th { text-align: left; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mp-muted); padding: 8px 10px; border-bottom: 1px solid var(--mp-line); }
.tp-table td { padding: 11px 10px; border-bottom: 1px solid var(--mp-line); vertical-align: top; }
.tp-table tr.click { cursor: pointer; }
.tp-table tr.click:hover td { background: rgba(31,92,56,.04); }
.tp-table .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tp-table tfoot td { font-weight: 700; border-bottom: 0; }
.tp-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.tp-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tp-pay button { display: grid; gap: 6px; text-align: left; padding: 20px; border-radius: 18px; background: #fff; border: 2px solid var(--mp-line); transition: border-color var(--fast), transform var(--fast); }
.tp-pay button:hover { border-color: var(--green); transform: translateY(-2px); }
.tp-pay b { font-size: 17px; }
.tp-pay .amt { font-size: 24px; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }
.tp-pay small { color: var(--mp-muted); font-size: 13px; }
.tp-note { padding: 14px 0; border-top: 1px solid var(--mp-line); display: grid; gap: 6px; }
.tp-note:first-child { border-top: 0; padding-top: 0; }
.tp-note .head { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--mp-muted); }
.tp-note .head b { color: var(--paper-ink); font-size: 15px; }
.tp-note p { white-space: pre-line; font-size: 14px; }
.tp-note ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--mp-muted); }
.tp-check { display: grid; gap: 8px; }
.tp-check label { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--mp-line); font-size: 14px; cursor: pointer; }
.tp-check label:has(input:checked) { border-color: var(--green); background: rgba(31,92,56,.05); }
.tp-check input { margin-top: 3px; accent-color: var(--green); width: 18px; height: 18px; }
.tp-flags { display: grid; gap: 10px; }
.tp-flags > div { padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.tp-flags .review { background: rgba(229,72,77,.08); border: 1px solid rgba(229,72,77,.25); }
.tp-flags .caution { background: rgba(180,120,20,.08); border: 1px solid rgba(180,120,20,.25); }
.tp-flags .support { background: rgba(31,92,56,.06); border: 1px solid rgba(31,92,56,.2); }
.tp-flags b { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
.tp-flags ul { margin: 0; padding-left: 18px; }
.tp-plan { display: grid; gap: 6px; }
.tp-plan .row { display: grid; grid-template-columns: 80px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--mp-line); font-size: 14px; }
.tp-plan .row.off { opacity: .6; }
.tp-plan .row label { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; white-space: nowrap; }
.tp-plan .row input { accent-color: var(--green); }
.tp-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; margin: 0; }
.tp-dl dt { color: var(--mp-muted); }
.tp-dl dd { margin: 0; font-weight: 600; }
.tp-sheet ul, .tp-sheet ol { padding-left: 20px; margin: 6px 0 0; display: grid; gap: 4px; font-size: 14px; }
.tp-sheet h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin: 14px 0 4px; }
.dialog .tp-sheet h3 { color: var(--accent-2); }
.tp-times { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-times button { padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25); font-weight: 600; font-size: 14px; }
.tp-times button[aria-pressed="true"] { background: var(--green-2); border-color: var(--green-2); }
.tp-times button:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
@media (max-width: 760px) {
  .tp-pay { grid-template-columns: 1fr; }
  .tp-steps { grid-template-columns: repeat(4, 1fr); }
  .tp-tiles { grid-template-columns: 1fr 1fr; }
  .tp-tile { min-height: 0; padding: 14px; }
  .tp-plan .row { grid-template-columns: 64px 1fr; }
  .tp-plan .row label { grid-column: 2; }
}
@media (max-width: 420px) { .tp-tiles { grid-template-columns: 1fr; } }
.mp-hello .mp-card { color: var(--paper-ink); align-self: stretch; }
.mp-hello .mp-card .mp-eyebrow { color: var(--green); }
.mp-hello .mp-card .mp-muted { color: var(--mp-muted); }
.tp-results { display: grid; gap: 6px; max-height: 280px; overflow-y: auto; }
.tp-result { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.06); }
.tp-result span { display: grid; min-width: 0; } .tp-result small { color: rgba(255,255,255,.6); font-size: 12px; overflow-wrap: anywhere; }
.tp-or { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,.6); margin-top: 6px; }
.tp-or::before, .tp-or::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.15); }
a.mp-item { color: inherit; } a.mp-item:hover h3 { color: var(--green); }
