/* Trainers (pages/train.html, js/pages/train-b.js), in the Skin B card language. */
.trb { min-width: 0; }
.trb a { color: inherit; }
.tr-admin-note { font: 600 11px var(--font-mono); letter-spacing: .5px; color: var(--c-text-muted); margin: 0 4px 12px; }

/* list rows */
.tr-badge { display: inline-block; vertical-align: 2px; margin-left: 4px; padding: 2px 7px; border-radius: 999px; background: var(--sk-yellow-fill, var(--c-yellow)); color: #111214; font: 700 9.5px var(--font-mono); letter-spacing: .8px; text-transform: uppercase; }
.tr-head { font-size: 12.5px; color: var(--c-text-secondary); margin-top: 3px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tr-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.tr-stars { display: inline-flex; align-items: center; gap: 3px; font: 700 12px var(--font-mono); color: var(--c-text-primary); }
.tr-stars svg { color: var(--c-yellow); }
.tr-stars small { font-weight: 600; color: var(--c-text-muted); }
.tr-new { font: 700 10px var(--font-mono); letter-spacing: 1px; text-transform: uppercase; color: var(--c-text-muted); }
.tr-from, .tr-price { font: 700 12.5px var(--font-mono); color: var(--c-text-primary); white-space: nowrap; }
.tr-date { width: 46px; height: 50px; border-radius: 12px; background: var(--c-surface-3); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 0 auto; }
.tr-date b { font-family: var(--font-display); font-size: 20px; line-height: 1; }
.tr-date span { font: 700 9px var(--font-mono); letter-spacing: 1px; text-transform: uppercase; color: var(--c-text-muted); }

/* bookings */
.tr-booking { align-items: flex-start; }
.tr-state { font: 700 11px var(--font-mono); margin-top: 5px; color: var(--c-text-secondary); }
.tr-state--countered, .tr-state--completed { color: var(--c-yellow); }
.tr-state--confirmed { color: var(--c-green, #22c55e); }
.tr-note { font-size: 12.5px; color: var(--c-text-secondary); margin-top: 4px; font-style: italic; }
.tr-acts { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.tr-mini { border: 1.5px solid var(--c-border-md); background: var(--c-surface-3); color: var(--c-text-primary); border-radius: 999px; padding: 7px 13px; font: 700 12px var(--font-body); cursor: pointer; white-space: nowrap; }
.tr-mini.on { background: var(--sk-yellow-fill, var(--c-yellow)); border-color: transparent; color: #111214; }
.tr-mini:focus-visible, .tr-slot:focus-visible { outline: 2px solid var(--c-yellow); outline-offset: 2px; }

/* the apply / panel card */
.tr-cta { display: flex; flex-direction: column; gap: 6px; padding: 18px; margin-top: 18px; text-decoration: none; }
.tr-cta b { font-family: var(--font-display); font-size: 20px; text-transform: uppercase; }
.tr-cta span { font-size: 13.5px; color: var(--c-text-secondary); line-height: 1.45; }
.tr-soon { padding: 20px; }
.tr-soon h2 { font-family: var(--font-display); text-transform: uppercase; margin: 0 0 6px; }
.tr-soon p { margin: 0; color: var(--c-text-secondary); line-height: 1.5; }

/* a trainer's page */
.tr-own { display: block; margin: 0 4px 14px; font: 600 12.5px var(--font-body); color: var(--c-text-secondary); text-decoration: underline; }
.tr-hero { display: flex; gap: 16px; align-items: center; margin: 4px 4px 12px; }
.tr-hero-t { min-width: 0; }
.tr-hero h1 { font-family: var(--font-display); font-size: 28px; font-weight: 900; text-transform: uppercase; margin: 0; line-height: 1.05; overflow-wrap: anywhere; }
.tr-hero-sub { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.tr-headline { margin: 8px 0 0; color: var(--c-text-secondary); font-size: 14px; line-height: 1.4; }
.tr-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 4px 10px; }
.tr-facts span { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; background: var(--c-surface-3); color: var(--c-text-secondary); }
.tr-where { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 4px 10px; font-size: 13px; color: var(--c-text-secondary); }
.tr-where a { text-decoration: underline; }
.tr-msg { display: inline-flex; align-items: center; gap: 6px; margin: 0 4px 6px; font: 700 13px var(--font-body); text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--c-border-md); }
button.tr-msg { background: none; color: inherit; cursor: pointer; }
.tr-bio { padding: 16px 18px; white-space: pre-wrap; line-height: 1.55; font-size: 14px; }
.tr-terms { padding: 14px 18px; margin-top: 14px; font-size: 13px; color: var(--c-text-secondary); }
.tr-terms p { margin: 0 0 6px; }
.tr-terms p:last-child { margin: 0; }
.tr-muted { color: var(--c-text-muted); font-size: 12.5px; margin: 0; line-height: 1.45; }

/* booking sheet */
.tr-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.tr-slot { border: 1.5px solid var(--c-border-md); background: var(--c-surface-3); color: var(--c-text-primary); border-radius: 12px; padding: 10px 6px; font: 700 13.5px var(--font-mono); cursor: pointer; }
.tr-slot.on { background: var(--sk-yellow-fill, var(--c-yellow)); border-color: transparent; color: #111214; }

/* sheets and forms */
.tr-sheet { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .6); display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
@media (min-width: 700px) { .tr-sheet { align-items: center; } }
.tr-sheet-card { background: var(--c-surface-2); border: 1px solid var(--c-border); color: var(--c-text-primary); border-radius: 22px; padding: 18px; width: 100%; max-width: 480px; max-height: 88vh; overflow: auto; }
.tr-sheet-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.tr-sheet-h h3 { margin: 0; font-family: var(--font-display); text-transform: uppercase; font-size: 22px; overflow-wrap: anywhere; }
.tr-form { display: flex; flex-direction: column; gap: 12px; }
.b-card.tr-form { padding: 18px; }
.tr-form label { display: flex; flex-direction: column; gap: 5px; font: 700 10px var(--font-mono); letter-spacing: 1px; text-transform: uppercase; color: var(--c-text-muted); }
.tr-form input:not([type="checkbox"]), .tr-form select, .tr-form textarea { font: 15px var(--font-body); text-transform: none; letter-spacing: 0; border-radius: 12px; border: 1px solid var(--c-border-md); background: var(--c-surface-3); color: var(--c-text-primary); padding: 10px 12px; min-width: 0; }
.tr-form textarea { resize: vertical; }
.tr-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tr-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .tr-3 { grid-template-columns: 1fr 1fr; } }
.tr-days { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.tr-form .tr-check { flex-direction: row; align-items: center; gap: 8px; font: 500 14px var(--font-body); letter-spacing: 0; text-transform: none; color: var(--c-text-primary); }
.tr-vres:empty, .tr-vchips:empty { display: none; }
.tr-vres { border: 1px solid var(--c-border); border-radius: 16px; overflow: hidden; }
.tr-vres .b-row { width: 100%; background: none; text-align: left; cursor: pointer; }
.tr-vchips { display: flex; flex-wrap: wrap; gap: 6px; }
.tr-vchips .b-chip { display: inline-flex; align-items: center; gap: 6px; }
.tr-vchips button { background: none; border: 0; color: inherit; cursor: pointer; padding: 0; display: inline-flex; }
.tr-rate { display: flex; gap: 6px; }
.tr-rate button { background: none; border: 0; cursor: pointer; color: var(--c-text-muted); padding: 2px; }
.tr-rate button.on { color: var(--c-yellow); }
.tr-ghost { background: transparent !important; border: 1.5px solid var(--c-border-md) !important; color: var(--c-text-primary) !important; margin-top: 10px; }
.tr-off { font: 700 10px var(--font-mono); color: var(--c-text-muted); text-transform: uppercase; }
#trp-sections .b-sec button { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
#trp-sections .b-row[data-svc] { width: 100%; background: none; text-align: left; cursor: pointer; color: inherit; }

/* back bar above every view, and the ?t=demo sample */
/* scrolls with the page: the shared .b-back is sticky and 560px wide, so on a
   wide screen it slid over the trainer cards as a dark band */
.tr-back { position: static; padding-bottom: 0; background: none; }
@media (min-width: 1024px) { .tr-back { max-width: 760px; } }
.tr-sample { margin: 0 0 14px; border: 1px dashed var(--c-border); border-radius: 14px; }
.tr-demo { margin: 0 4px 14px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(20,184,166,.45); background: rgba(20,184,166,.10); font: 500 13px/1.4 var(--font-body); color: var(--c-text-primary); }
.tr-demo b { color: #2DD4BF; margin-right: 4px; }
html[data-theme="light"] .tr-demo b { color: #0F766E; }
.tr-demo a { display: inline-block; margin-top: 4px; font-weight: 700; text-decoration: underline; }

/* cover, avatar over it, a bigger About (mig 272) */
.tr-cover { position: relative; height: 170px; margin: 0 0 -44px; border-radius: 20px; overflow: hidden; background: var(--c-surface-3); }
.tr-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tr-cover--plain { background: linear-gradient(135deg, rgba(20,184,166,.55), rgba(20,184,166,.12) 60%, transparent), var(--c-surface-3); }
.tr-cover--plain::after { content: ""; position: absolute; inset: 22px 40px; border: 2px solid rgba(255,255,255,.18); border-radius: 4px; background: linear-gradient(90deg, transparent calc(50% - 1px), rgba(255,255,255,.18) calc(50% - 1px), rgba(255,255,255,.18) calc(50% + 1px), transparent calc(50% + 1px)); }
@media (min-width: 700px) { .tr-cover { height: 220px; } }
.tr-hero { position: relative; align-items: flex-start; margin: 0 14px 4px; }
.tr-hero-av.b-av--lg { width: 92px; height: 92px; font-size: 30px; border: 4px solid var(--sk-bg, var(--c-black)); }
.tr-hero-t { padding-top: 52px; }
.tr-headline { margin: 6px 4px 12px; font-size: 15px; color: var(--c-text-primary); }
.tr-actions { display: flex; flex-wrap: wrap; margin-top: 4px; }
.tr-actions:empty { display: none; }
.tr-bio { padding: 18px 20px; white-space: normal; }
.tr-bio-t { white-space: pre-line; font-size: 15px; line-height: 1.6; color: var(--c-text-primary); }
.tr-clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.tr-more { margin-top: 6px; padding: 0; background: none; border: 0; color: var(--c-text-secondary); font: 700 13px var(--font-body); text-decoration: underline; cursor: pointer; }
.tr-cert { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--c-border); font-size: 13px; color: var(--c-text-secondary); }
.tr-cert svg { flex-shrink: 0; margin-top: 1px; color: var(--c-yellow); }

/* photos strip + viewer */
.tr-photos, .tr-posts { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 4px 6px; scrollbar-width: none; }
.tr-photos::-webkit-scrollbar, .tr-posts::-webkit-scrollbar { display: none; }
.tr-photo { flex: 0 0 auto; width: 150px; height: 150px; padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; scroll-snap-align: start; background: var(--c-surface-3); }
.tr-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tr-lb { position: fixed; inset: 0; z-index: 1100; background: rgba(0,0,0,.92); display: flex; align-items: center; }
.tr-lb-x { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 14px); right: 14px; z-index: 1; }
.tr-lb-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tr-lb-track::-webkit-scrollbar { display: none; }
.tr-lb-slide { flex: 0 0 100%; display: flex; align-items: center; justify-content: center; scroll-snap-align: center; padding: 16px; box-sizing: border-box; }
.tr-lb-slide img { max-width: 100%; max-height: 100%; border-radius: 12px; }

/* posts */
.tr-post { flex: 0 0 auto; width: 232px; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 18px; border: 1px solid var(--c-border); background: var(--c-surface-2); color: var(--c-text-primary); text-decoration: none; text-align: left; font: inherit; cursor: pointer; scroll-snap-align: start; }
.tr-post-img { width: 100%; height: 130px; object-fit: cover; border-radius: 12px; display: block; }
.tr-post-b { font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tr-post-b--long { -webkit-line-clamp: 8; }
.tr-post-m { display: flex; gap: 12px; margin-top: auto; font: 600 11.5px var(--font-mono); color: var(--c-text-muted); }
.tr-post-m span { display: inline-flex; align-items: center; gap: 4px; }
.tr-pin { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; padding: 3px 8px; border-radius: 999px; background: var(--sk-yellow-fill, var(--c-yellow)); color: #111214; font: 700 10px var(--font-mono); letter-spacing: .6px; text-transform: uppercase; }

/* the panel: your page's look */
#trp-look .b-sec button { display: inline-flex; align-items: center; gap: 4px; }
.tr-look { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.tr-look-cover { margin: 0; height: 130px; }
.tr-look-btn { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 0; background: rgba(0,0,0,.66); color: #fff; font: 700 12.5px var(--font-body); cursor: pointer; }
.tr-look-h { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; font: 700 10px var(--font-mono); letter-spacing: 1px; text-transform: uppercase; color: var(--c-text-muted); }
.tr-look-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tr-look-ph { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--c-surface-3); }
.tr-look-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tr-look-ph button { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.66); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.tr-look-add { aspect-ratio: 1; border-radius: 12px; border: 1.5px dashed var(--c-border-md); background: none; color: var(--c-text-secondary); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.tr-look-pin { width: 100%; border: 1px solid var(--c-border); border-radius: 14px; background: none; color: inherit; text-align: left; cursor: pointer; }
.tr-look .tr-ghost { margin-top: 4px; }
.tr-pick-img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.tr-sheet .b-row[data-pick] { width: 100%; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; }

/* the list as cards */
.tr-cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 700px) { .tr-cards { grid-template-columns: 1fr 1fr; } }
.tr-card { display: block; border-radius: 20px; overflow: hidden; border: 1px solid var(--c-border); background: var(--c-surface-2); color: var(--c-text-primary); text-decoration: none; }
.tr-card-cover { position: relative; height: 96px; background: var(--c-surface-3); overflow: hidden; }
.tr-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tr-card-cover.tr-cover--plain::after { inset: 14px 28px; }
.tr-card-b { position: relative; padding: 0 14px 14px; }
.tr-card-av.b-av { width: 58px; height: 58px; font-size: 19px; margin-top: -29px; border: 3px solid var(--c-surface-2); }
.tr-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-top: 6px; }
.tr-card-top .b-nm { font-family: var(--font-display); font-size: 19px; font-weight: 900; text-transform: uppercase; line-height: 1.1; }
.tr-card-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }
.tr-card-h { margin-top: 4px; font-size: 13.5px; line-height: 1.4; color: var(--c-text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tr-card-f { margin-top: 8px; font: 600 11.5px var(--font-mono); color: var(--c-text-muted); }

/* Coaching | As a player */
.tr-tabs { margin: 14px 4px 0; }
.tr-elos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tr-elo { padding: 14px; border-radius: 18px; border: 1px solid var(--c-border); background: var(--c-surface-2); }
.tr-elo-sp { display: flex; align-items: center; gap: 6px; font: 700 11px var(--font-mono); letter-spacing: .8px; text-transform: uppercase; color: var(--c-text-muted); }
.tr-elo-n { font-family: var(--font-display); font-size: 34px; font-weight: 900; line-height: 1.1; margin-top: 6px; }
.tr-elo-t { font: 700 12px var(--font-body); color: var(--c-text-primary); }
.tr-elo-r { font: 600 11.5px var(--font-mono); color: var(--c-text-muted); margin-top: 4px; }
.tr-acts-sum { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin-bottom: 10px; }
.tr-act-tile { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 16px; border: 1px solid var(--c-border); background: var(--c-surface-2); }
.tr-act-tile b { font-family: var(--font-display); font-size: 24px; line-height: 1.1; margin-top: 4px; }
.tr-act-tile span { font: 700 12px var(--font-body); }
.tr-act-tile small { font: 600 11px var(--font-mono); color: var(--c-text-muted); }
.tr-role { flex-shrink: 0; padding: 4px 10px; border-radius: 999px; background: var(--c-surface-3); font: 700 11px var(--font-mono); color: var(--c-text-secondary); white-space: nowrap; }
.tr-role.on { background: var(--sk-yellow-fill, var(--c-yellow)); color: #111214; }

/* panel: what "As a player" shows */
.tr-shows { display: flex; flex-direction: column; gap: 8px; }
.tr-show { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--c-border); cursor: pointer; }
.tr-show input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--sk-yellow-fill, #FCD00F); flex-shrink: 0; }
.tr-show b { display: block; font: 700 14px var(--font-body); }
.tr-show small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--c-text-muted); line-height: 1.4; }

/* the panel: status card, tabs (mig 274) */
.tr-stcard .tr-reason { margin: 8px 0 0; font-style: italic; opacity: .85; }
.tr-stcard .tr-again { margin-top: 12px; background: #111214 !important; color: #fff !important; }
.tr-ptabs { margin: 6px 0 4px; position: sticky; top: var(--nav-height); z-index: 4; padding: 8px 0; background: var(--sk-bg, var(--c-black)); }
.tr-pbadge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; border-radius: 999px; background: #ef4444; color: #fff; font: 700 10.5px var(--font-mono); }
.tr-pbadge[hidden] { display: none; }
