/* STG Portal V3 — Team Training Schedules (#/training). Owner 11/11/2026. Navy theme, mobile-first. */
.tr-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.tr-bar .tr-season { margin: 0; }
.tr-view { margin: 0; }
.tr-days { margin: 4px 0 10px; flex-wrap: nowrap; overflow-x: auto; }
.tr-days .chip.is-today:not(.active) { border-color: var(--blue, #2E3A8C); }
.tr-search { margin: 4px 0 14px; max-width: 420px; }

.tr-logo { flex: none; width: 46px; height: 46px; border-radius: 12px; overflow: hidden; background: #fff; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); }
.tr-logo img { width: 100%; height: 100%; object-fit: contain; }
.tr-logo.is-sm { width: 34px; height: 34px; border-radius: 9px; }
.tr-logo.is-mono { background: var(--surface-3); color: var(--ink); box-shadow: none; }
.tr-logo.is-mono .ico { width: 20px; height: 20px; }

/* Week grid (desktop) */
.tr-gridwrap { padding: 0; overflow: auto; }
.tr-grid { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-sm); }
.tr-grid thead th { position: sticky; top: 0; z-index: 1; background: var(--ink); color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: 11px; padding: 12px 10px; text-align: center; white-space: nowrap; }
.tr-grid thead th small { display: block; font-size: 9.5px; letter-spacing: .08em; opacity: .85; margin-top: 2px; }
.tr-grid thead th.is-today { background: #3A46A8; }
.tr-grid thead th.tr-gcol { text-align: left; }
.tr-grid tbody th, .tr-grid td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tr-grid tbody tr:last-child th, .tr-grid tbody tr:last-child td { border-bottom: 0; }
.tr-grid tbody tr:nth-child(even) th, .tr-grid tbody tr:nth-child(even) td { background: var(--surface-2, rgba(27,33,89,.025)); }
.tr-grid tbody th.tr-gcol { text-align: left; font-weight: 700; position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 220px; }
.tr-gname { display: flex; align-items: center; gap: 10px; color: var(--text); }
.tr-grid td { text-align: center; }
.tr-grid td.is-today { background: rgba(58, 70, 168, .07) !important; }
.tr-cell { display: inline-block; padding: 5px 10px; border-radius: 999px; background: var(--surface-3); color: var(--ink); font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.tr-grid td.is-today .tr-cell { background: #3A46A8; color: #fff; }
.tr-off { color: var(--muted); }

/* Cards (phones) */
.tr-cards { display: grid; gap: 12px; }
@media (min-width: 640px) { .tr-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tr-cards > .tr-card { margin: 0; padding: 0; overflow: hidden; }
.tr-card-h { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tr-card-h b { flex: 1; min-width: 0; color: var(--text); font-size: var(--fs-md); }
.tr-week { list-style: none; margin: 0; padding: 4px 0; }
.tr-week li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px; font-size: var(--fs-sm); color: var(--text-2); }
.tr-week li b { color: var(--text); white-space: nowrap; }
.tr-week li.is-today { background: rgba(58, 70, 168, .08); color: var(--text); font-weight: 700; }
.tr-week li em { font-style: normal; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: #3A46A8; border-radius: 999px; padding: 2px 7px; margin-left: 6px; }
.tr-none { padding: 12px 14px; margin: 0; font-size: var(--fs-sm); }

/* By Day */
.tr-dayhead { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-family: var(--font-display); color: var(--text); }
.tr-dayhead .muted { font-family: inherit; font-size: var(--fs-sm); font-weight: 600; }
.tr-daylist { display: grid; gap: 10px; }
@media (min-width: 900px) { .tr-daylist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tr-daylist > .tr-dayrow { margin: 0; display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.tr-dayrow b { color: var(--text); }
.tr-time { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface-3); color: var(--ink); font-weight: 800; font-size: 13px; white-space: nowrap; }

:root[data-theme="dark"] .tr-grid thead th { background: #232a63; }
:root[data-theme="dark"] .tr-grid thead th.is-today, :root[data-theme="dark"] .tr-grid td.is-today .tr-cell { background: #3A46A8; color: #fff; }
:root[data-theme="dark"] .tr-cell, :root[data-theme="dark"] .tr-time { color: var(--text); }
:root[data-theme="dark"] .tr-logo.is-mono { color: var(--text); }

@media print {
  .tr-bar, .tr-search, .tr-days { display: none !important; }
  .tr-grid thead th { background: #1B2159 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tr-gridwrap { box-shadow: none; overflow: visible; }
}
