/* Training Calendar (training-center v2) — combined customer calendar.
   Styling follows the storefront's post-facelift density language
   (cart.css / orders.css): full-width pages with 2.5rem gutters, uppercase
   700 page headings, neutral palette (#242424 text, #f0f0f0 hairlines,
   #9e9e9e micro-labels), dark #1a1a1a buttons, 1rem/1.5rem radii. */

/* D11: ONE training page, two views. The shell owns the page box that
   .tc-ov-page and .tc-cal-page each used to own on their own — those two are
   kept for any surface still rendering the old containers. */
.tc-page,
.tc-cal-page {
  max-width: var(--container-max, 120rem);
  margin: 0 auto;
  padding: clamp(1rem, calc(2 * var(--vwx)), 1.5rem) clamp(1rem, calc(3 * var(--vwx)), 2.5rem) clamp(3rem, calc(6 * var(--vwx)), 5rem);
}

/* View switcher — the shop's own .view-toggle (main.css) with a label next to
   each icon: "Courses"/"Calendar" name two different things, unlike the PLP's
   grid/list where the icon IS the meaning. */
.tc-view-toggle .view-toggle__btn {
  width: auto;
  gap: 0.4375rem;
  padding: 0 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* .tc-page is the training hub's page root (training_page.dart) — the
   toggle renders under it on both the Courses and Calendar views. */
.tc-page {
  container-type: inline-size;
  container-name: tcpage;
}

/* Former width media query at 27rem, measured on the page root. */
@container tcpage (max-width: 27rem) {
  /* Icon-only when the head has to stack — the title above already says
     "Training Centre", so the labels are the first thing that can go. */
  .tc-view-toggle .view-toggle__label {
    display: none;
  }

  .tc-view-toggle .view-toggle__btn {
    width: 2.5rem;
    padding: 0;
  }
}

.tc-cal-pagehead h1 {
  margin: 0 0 0.375rem;
  font-size: clamp(1.25rem, calc(3.5 * var(--vwx)), 2.75rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.031em;
  line-height: 1.15;
  color: #242424;
}

.tc-cal-sub {
  color: #6b6b6b;
  font-size: 0.9375rem;
  margin: 0 0 1.25rem;
  max-width: 46rem;
}

.tc-cal-loading,
.tc-cal-error,
.tc-cal-gated,
.tc-cal-empty {
  padding: 3rem 0;
  text-align: center;
  color: #555;
}

.tc-cal-retry {
  margin-top: 0.75rem;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
}

/* ── Controls row: booking-type filter + legend ───────────────────── */

.tc-cal-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin: 0 0 0.875rem;
}

.tc-cal-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.tc-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 1.875rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e0e0e0;
  color: #242424;
  font-size: 0.7812rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.tc-filter-pill:hover {
  border-color: #c0c0c0;
}

.tc-filter-pill--active {
  background: #242424;
  border-color: #242424;
  color: #fff;
}

.tc-filter-pill-count {
  font-size: 0.6875rem;
  color: #9e9e9e;
}

.tc-filter-pill--active .tc-filter-pill-count {
  color: rgba(255, 255, 255, 0.7);
}

.tc-cal-controls-sep {
  width: 1px;
  height: 1.25rem;
  background: #e8e8e8;
}

/* Narrow-island compaction: the island root is a size container, and when
   it can't fit the filter + legend pill rows on one line the two compact
   <select> twins (rendered alongside in the DOM) take over. Applies
   wherever the island is narrow — the course-PDP embed, phones — without
   JS measurement. */
.tc-cal-island {
  container-type: inline-size;
  container-name: tccal;
}

.tc-cal-island .tc-cal-controls-compact {
  display: none;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-width: 0;
}

.tc-cal-select {
  height: 1.875rem;
  padding: 0 0.75rem;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  background: #fff;
  color: #242424;
  font-size: 0.7812rem;
  font-weight: 500;
  max-width: 100%;
  cursor: pointer;
}

@container tccal (max-width: 64rem) {
  .tc-cal-island .tc-cal-filters,
  .tc-cal-island .tc-cal-controls-sep,
  .tc-cal-island .tc-cal-controls > .tc-legend {
    display: none;
  }

  .tc-cal-island .tc-cal-controls-compact {
    display: flex;
  }
}

/* ── Device switcher ────────────────────────────────────────────── */

/* One calendar per equipment family (8VM1, 8VM3, …) — reuses the
   overview's .tc-ov-nav/.tc-ov-pill pill language; this class only slots
   the row between the page head and the calendar surface. */
.tc-cal-eqnav {
  margin: 0 0 1rem;
}

/* ── Legend ─────────────────────────────────────────────────────── */

.tc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 0.5rem;
}

/* Course pills: T-code + name — with one device per view there's room to
   say what each course IS, which is what makes the pills worth clicking
   (they're focus toggles). Carries its tc-color-N class so the dot +
   focus ring pick up the training's accent. */
.tc-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  color: #242424;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 999px;
  padding: 2px 0.625rem 2px 0.4375rem;
  white-space: nowrap;
  cursor: pointer;
}

.tc-legend-item:hover {
  border-color: #c0c0c0;
}

.tc-legend-code {
  font-weight: 700;
}

/* The name stays quiet next to the code and truncates before the pill
   row starts wrapping into a block. */
.tc-legend-name {
  font-weight: 400;
  color: #6b6b6b;
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Focus toggle active elsewhere → this pill recedes with its bars (same
   opacity as .tc-chip--dimmed / .tc-bar--dimmed). */
.tc-legend-item--dimmed {
  opacity: 0.4;
}

/* ── Layout: calendar + basket ──────────────────────────────────── */

/* Fluid sidebar: calendar flexes, basket rail holds ~20rem and wraps
   below the calendar when the row can't fit both (no width breakpoint). */
.tc-cal-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: start;
}

.tc-cal-layout > :first-child {
  flex: 999 1 min(100%, 26rem);
  min-width: 0;
}

/* ── Calendar ───────────────────────────────────────────────────── */

.tc-cal {
  border: 1px solid #f0f0f0;
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
}

.tc-cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.tc-cal-toolbar-nav {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* Outlook's header order: Today, arrows, then the month title, which is
   itself the month/year picker. */
.tc-cal-today {
  height: 2rem;
  padding: 0 0.75rem;
  margin-right: 0.25rem;
  border: 1px solid #ebebeb;
  border-radius: 0.5rem;
  background: #fff;
  color: #242424;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.tc-cal-today:hover:not(:disabled) {
  border-color: #c0c0c0;
  background: #fafafa;
}

.tc-cal-today:disabled {
  color: #b0b0b0;
  cursor: default;
}

.tc-monthpick {
  position: relative;
}

.tc-monthpick-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.5rem;
  border: 0;
  border-radius: 0.5rem;
  background: none;
  color: inherit;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
}

.tc-monthpick-trigger:hover,
.tc-monthpick-trigger[aria-expanded='true'] {
  background: #f5f5f5;
}

.tc-monthpick-caret {
  font-size: 0.75rem;
  color: #6b6b6b;
}

.tc-monthpick-pop {
  position: absolute;
  top: calc(100% + 0.375rem);
  left: 0;
  z-index: 20;
  width: 15rem;
  padding: 0.75rem;
  border: 1px solid #ebebeb;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12);
}

.tc-monthpick-year {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #242424;
}

.tc-monthpick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
}

.tc-monthpick-month {
  padding: 0.5rem 0;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  background: none;
  color: #242424;
  font-size: 0.8125rem;
  cursor: pointer;
}

.tc-monthpick-month:hover {
  background: #f5f5f5;
}

.tc-monthpick-month--today {
  border-color: #641e8c;
}

.tc-monthpick-month--active {
  background: #242424;
  color: #fff;
}

.tc-monthpick-month--active:hover {
  background: #242424;
}

.tc-cal-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #242424;
}

.tc-cal-nav {
  width: 2rem;
  height: 2rem;
  border: 1px solid #ebebeb;
  border-radius: 0.5rem;
  background: #fff;
  color: #6b6b6b;
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
}

.tc-cal-nav:hover {
  border-color: #c0c0c0;
  background: #fafafa;
}

.tc-cal-headrow,
.tc-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.tc-cal-headcell {
  padding: 0.5rem 0.375rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9e9e9e;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

.tc-cal-cell {
  min-height: 6rem;
  padding: 0.375rem;
  border-right: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tc-cal-cell:nth-child(7n) {
  border-right: none;
}

.tc-cal-cell--blank {
  background: #fafafa;
}

.tc-cal-cell--weekend {
  background: #fafafa;
}

.tc-cal-cell--today .tc-cal-daynum {
  background: #242424;
  color: #fff;
  border-radius: 50%;
}

.tc-cal-daynum {
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #333;
}

/* ── Week rows + multi-day session bars (React island) ──────────────
   The island renders each week as a 7-column grid: row 1 day numbers,
   rows 2..n bar lanes (grid-template-rows set inline per week from the
   lane count), plus 7 background divs spanning all rows for the day
   borders/tints. A session bar spans its duration_days columns —
   Capacity-app look, shop tokens. The tc-cal-grid/tc-cal-cell/tc-chip
   rules further down stay for the Dart no-JS fallback calendar.        */

/* Horizontal scroller with a floor on the grid width, so day columns
   stay usable on narrow viewports instead of collapsing to slivers.
   A no-op wherever the calendar is wider than the 32rem floor. */
.tc-cal-scroll {
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tc-cal-scroll > .tc-cal-headrow,
.tc-cal-scroll > .tc-cal-weeks {
  min-width: 32rem;
}

/* Island month view is Mon–Fri behind a narrow ISO-week gutter column
   (Outlook-style); the Dart fallback keeps the 7-col .tc-cal-headrow
   default further up. */
.tc-cal-headrow--weekdays {
  grid-template-columns: 2.25rem repeat(5, minmax(0, 1fr));
}

.tc-cal-week {
  display: grid;
  grid-template-columns: 2.25rem repeat(5, minmax(0, 1fr));
  min-height: 6.5rem;
  border-bottom: 1px solid #f0f0f0;
}

/* The week-number gutter: quiet, bordered off from the day grid, numbers
   top-aligned with the day numbers. The header corner above it says "CW"
   once, so the cells carry just the number. */
.tc-cal-cwgutter {
  padding: 0.5rem 0.25rem 0;
  border-right: 1px solid #f0f0f0;
  background: #fafafa;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #9e9e9e;
  text-align: center;
}

.tc-cal-corner {
  text-align: center;
}

.tc-cal-week:last-child {
  border-bottom: none;
}

/* D11 deep link: the week a ?date= pointed at. scroll-margin-top keeps the
   page head visible when the row is scrolled into view, and the tint says
   "this is the week you asked for" without competing with a selection. */
.tc-cal-week {
  scroll-margin-top: 6rem;
}

/* Scroll anchor when the whole calendar is brought into view instead of the
   bare week row (see the calendar view's _tryScrollToWeek). */
.tc-cal-toolbar {
  scroll-margin-top: 1rem;
}

.tc-cal-week--target {
  background: #fbf7fe;
  box-shadow: inset 0.1875rem 0 0 #641e8c;
}

.tc-cal-bg {
  border-right: 1px solid #f0f0f0;
  z-index: 0;
}

.tc-cal-bg--end {
  border-right: none;
}

.tc-cal-bg--offmonth,
.tc-cal-bg--weekend {
  background: #fafafa;
}

.tc-cal-daynum-wrap {
  display: flex;
  align-items: center;
  padding: 0.25rem 0.375rem 2px;
  z-index: 1;
  min-width: 0;
}

.tc-cal-daynum--today {
  background: #242424;
  color: #fff;
  border-radius: 50%;
}

/* Adjacent-month days — real dates, muted (Outlook-style). Their bars get
   the standard dimmed treatment via .tc-bar--dimmed. */
.tc-cal-daynum--out {
  color: #c0c0c0;
}

/* ISO calendar-week hint, right-aligned in the Monday cell. */
.tc-cal-cw {
  margin-left: auto;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9e9e9e;
  white-space: nowrap;
}

.tc-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1px;
  min-width: 0;
  z-index: 1;
  margin: 0 0.25rem 0.25rem;
  padding: 0.1875rem 0.5rem 0.25rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  background: var(--tc-bg, #eef);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.tc-bar:hover {
  border-color: var(--tc-accent, #55c);
}

.tc-bar--selected {
  border-color: var(--tc-accent, #55c);
  box-shadow: 0 0 0 1px var(--tc-accent, #55c) inset;
}

/* Deep-link focus: non-focused sessions recede but stay usable */
.tc-bar--dimmed {
  opacity: 0.35;
}

.tc-bar--dimmed:hover {
  opacity: 0.85;
}

.tc-bar-head {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  min-width: 0;
}

.tc-bar-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: #242424;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tc-bar-badge {
  flex: none;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #6b6b6b;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 0.25rem;
  padding: 0 0.25rem;
}

.tc-bar-check {
  flex: none;
  margin-left: auto;
  color: var(--tc-accent, #55c);
  font-weight: 700;
  font-size: 0.75rem;
}

.tc-bar-meta {
  font-size: 0.6875rem;
  color: #6b6b6b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Keep at least a sliver of the name visible before the badge wins. */
.tc-bar-name {
  min-width: 2.5rem;
}

/* ── Session chips (Dart no-JS fallback calendar) ────────────────── */

.tc-chip {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  width: 100%;
  padding: 0.25rem 0.375rem;
  border: 1px solid transparent;
  border-left-width: 3px;
  border-radius: 4px;
  font-size: 0.7188rem;
  text-align: left;
  cursor: pointer;
  background: var(--tc-bg, #eef);
  border-left-color: var(--tc-accent, #55c);
  color: #222;
  transition: box-shadow 0.12s ease, transform 0.12s ease;
}

.tc-chip:hover {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.tc-chip--selected {
  border-color: var(--tc-accent, #55c);
  box-shadow: 0 0 0 1px var(--tc-accent, #55c) inset;
  font-weight: 600;
}

.tc-chip-code {
  font-weight: 600;
  white-space: nowrap;
}

.tc-chip-meta {
  margin-left: auto;
  color: #555;
  white-space: nowrap;
}

.tc-chip-check {
  color: var(--tc-accent, #55c);
  font-weight: 700;
}

/* 8-color palette (assigned per training code, index order) */
.tc-color-0 { --tc-accent: #7353e5; --tc-bg: #efeafd; }
.tc-color-1 { --tc-accent: #0f8c8c; --tc-bg: #e3f5f5; }
.tc-color-2 { --tc-accent: #c8641e; --tc-bg: #fbeee2; }
.tc-color-3 { --tc-accent: #2d6fd1; --tc-bg: #e7effb; }
.tc-color-4 { --tc-accent: #b0338f; --tc-bg: #f9e8f4; }
.tc-color-5 { --tc-accent: #5d8f22; --tc-bg: #eef6e3; }
.tc-color-6 { --tc-accent: #b03a3a; --tc-bg: #f9e9e9; }
.tc-color-7 { --tc-accent: #6b6b74; --tc-bg: #efeff2; }

/* Legend / basket color dot */
.tc-basket-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--tc-accent, #55c);
  flex: none;
  display: inline-block;
}

/* ── Selection basket ───────────────────────────────────────────── */

.tc-basket {
  flex: 1 1 20rem;
  min-width: 0;
  position: sticky;
  top: calc(var(--header-height, 4rem) + 1rem);
  border: 1px solid #f0f0f0;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 0 2.5rem rgba(26, 26, 26, 0.04);
  padding: 1.5rem;
}

.tc-basket-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.875rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9e9e9e;
}

.tc-basket-count {
  background: #242424;
  color: #fff;
  border-radius: 999px;
  font-size: 0.6875rem;
  letter-spacing: 0;
  padding: 1px 0.5rem;
}

.tc-basket-empty {
  color: #777;
  font-size: 0.8438rem;
}

.tc-basket-line {
  border-top: 1px solid #f0f0f0;
  padding: 0.625rem 0;
}

.tc-basket-line-head {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.tc-basket-line-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tc-basket-line-name {
  font-size: 0.8438rem;
  font-weight: 600;
}

.tc-basket-line-date {
  font-size: 0.75rem;
  color: #666;
}

.tc-basket-remove {
  margin-left: auto;
  border: none;
  background: none;
  font-size: 1.125rem;
  line-height: 1;
  color: #999;
  cursor: pointer;
}

.tc-basket-remove:hover {
  color: #b03a3a;
}

.tc-basket-line-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding-left: 1.125rem;
}

.tc-basket-exclusive {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b6b6b;
  background: #f0f0f0;
  border-radius: 0.25rem;
  padding: 2px 0.375rem;
}

.tc-basket-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tc-step {
  width: 1.625rem;
  height: 1.625rem;
  border: 1px solid #ebebeb;
  border-radius: 0.5rem;
  background: #fff;
  color: #6b6b6b;
  cursor: pointer;
  font-size: 0.9375rem;
  line-height: 1;
}

.tc-step:hover:not(:disabled) {
  border-color: #c0c0c0;
}

.tc-step:disabled {
  opacity: 0.4;
  cursor: default;
}

.tc-step-value {
  font-size: 0.8125rem;
  min-width: 3.25rem;
  text-align: center;
}

.tc-basket-line-price {
  font-size: 0.8438rem;
  font-weight: 600;
}

/* Week-coverage rail, variant A (island-only — the Dart fallback basket
   doesn't render it, same parity note as the multi-day bars). Filled
   segments take the covering training's palette via tc-color-N custom
   props; open weekdays are dashed "+" buttons that day-filter the
   suggestions below. */
.tc-rail-block {
  margin: 0.875rem 0 0;
}

.tc-rail-week-label {
  margin: 0 0 0.25rem;
  font-size: 0.7187rem;
  color: #767676;
}

.tc-rail {
  display: flex;
  gap: 0.1875rem;
}

.tc-rail-seg {
  flex: 1 1 0;
  height: 1.125rem;
  border-radius: 0.25rem;
  min-width: 0;
}

.tc-rail-seg--filled {
  background: var(--tc-bg, #eef);
  border: 1px solid var(--tc-accent, #55c);
}

.tc-rail-seg--open {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #c9c9c9;
  background: transparent;
  color: #767676;
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.tc-rail-seg--open:hover:not(:disabled) {
  border-color: #767676;
  color: #1a1a1a;
}

.tc-rail-seg--open:disabled {
  cursor: default;
  border-color: #ececec;
}

.tc-rail-seg--active {
  border-style: solid;
  border-color: #1a1a1a;
  color: #1a1a1a;
  background: #f5f5f5;
}

.tc-rail-summary {
  margin: 0.375rem 0 0;
  font-size: 0.7187rem;
  color: #555;
}

/* Day-filter context line above the suggestions ("Sessions for Thu, 20 Aug
   · Show all") */
.tc-rail-dayline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: -0.25rem 0 0.375rem;
  font-size: 0.7187rem;
  color: #555;
}

.tc-rail-dayline-clear {
  border: none;
  background: none;
  padding: 0;
  font-size: 0.7187rem;
  color: #1a1a1a;
  text-decoration: underline;
  cursor: pointer;
}

/* D4 "no dead ends" redirect offer — one line + one action, rendered
   between the rail and the suggestions. */
.tc-redirect {
  margin: 0.75rem 0 0;
  padding: 0.625rem 0.75rem;
  border: 1px solid #e8e8e8;
  border-radius: 0.5rem;
  background: #fafafa;
}

.tc-redirect-line {
  margin: 0 0 0.5rem;
  font-size: 0.7812rem;
  color: #1a1a1a;
}

.tc-redirect-move {
  font-size: 0.7812rem;
  font-weight: 600;
  padding: 0.3125rem 0.75rem;
  border: 1px solid #1a1a1a;
  border-radius: 0.5rem;
  background: #fff;
  cursor: pointer;
}

.tc-redirect-move:hover {
  background: #1a1a1a;
  color: #fff;
}

/* Inline link-styled button (request-a-week affordances in empty states) */
.tc-linklike {
  border: none;
  background: none;
  padding: 0;
  font-size: inherit;
  color: #1a1a1a;
  text-decoration: underline;
  cursor: pointer;
}

/* Zero-availability notice under the calendar toolbar (D8) */
.tc-cal-nomatch {
  margin: 0.5rem 0;
  font-size: 0.8125rem;
  color: #555;
}

/* "Request a training week" lead form (D8) — centered overlay card. The
   backdrop is a direct child of the page container, so no ancestor
   stacking-context traps apply (see repo CLAUDE.md CSS notes). */
.tc-lead-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.4);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.tc-lead-card {
  width: min(30rem, 100%);
  max-height: min(85vh, 44rem);
  overflow-y: auto;
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 0.5rem 3rem rgba(26, 26, 26, 0.18);
}

.tc-lead-title {
  margin: 0 0 0.375rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.tc-lead-intro {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: #555;
}

.tc-lead-label {
  margin: 0.75rem 0 0.25rem;
  font-size: 0.7187rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #767676;
}

.tc-lead-courses {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tc-lead-course,
.tc-lead-exclusive {
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  cursor: pointer;
}

.tc-lead-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.tc-lead-row .tc-mytr-input {
  flex: 1 1 10rem;
}

.tc-lead-field {
  flex: 0 0 7rem;
}

.tc-lead-message {
  width: 100%;
  margin-top: 0.75rem;
  resize: vertical;
}

.tc-lead-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  align-items: center;
}

.tc-lead-actions .tc-basket-checkout {
  width: auto;
  flex: 0 0 auto;
}

.tc-basket-suggest-title {
  margin: 0.875rem 0 0.5rem;
  font-size: 0.8125rem;
  color: #444;
}

.tc-basket-suggestions {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.tc-suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.375rem 0.5rem;
  border: 1px dashed var(--tc-accent, #55c);
  border-radius: 0.5rem;
  background: var(--tc-bg, #eef);
  font-size: 0.7812rem;
  cursor: pointer;
  text-align: left;
}

.tc-suggestion:hover {
  border-style: solid;
}

.tc-suggestion-name {
  font-weight: 600;
  min-width: 0;
}

.tc-suggestion-date {
  white-space: nowrap;
  color: #555;
}

.tc-basket-total {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #e8e8e8;
  margin-top: 0.75rem;
  padding-top: 0.625rem;
  font-size: 0.875rem;
}

.tc-basket-total-amount {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tc-basket-error {
  color: #b03a3a;
  font-size: 0.7812rem;
  margin: 0.625rem 0 0;
}

.tc-basket-checkout {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.625rem 1rem 0.75rem;
  background: #1a1a1a;
  color: #fff;
  border: 1px solid #666;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
}

.tc-basket-checkout:hover {
  background: #333;
}

.tc-basket-checkout:disabled {
  opacity: 0.6;
  cursor: default;
}

/* ── My Trainings (/my-trainings) ───────────────────────────────── */

.tc-mytr-month {
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 1.75rem 0 0.625rem;
  color: #242424;
}

.tc-mytr-card {
  border: 1px solid #f0f0f0;
  border-radius: 1rem;
  background: #fff;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.tc-mytr-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tc-mytr-name {
  font-weight: 600;
  font-size: 0.9375rem;
}

.tc-mytr-badge {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 2px 0.5rem;
  background: #eee;
  color: #555;
}

/* Same 5-state palette as .orders-status-pill (orders.css). */
.tc-mytr-badge--confirmed { background: #e0f2e9; color: #2e7d4f; }
.tc-mytr-badge--pending { background: #fff08b; color: #ad8425; }
.tc-mytr-badge--cancelled { background: #fde8e8; color: #d94f4f; }
.tc-mytr-badge--exclusive { background: #f0f0f0; color: #6b6b6b; }

/* T14 roster status: complete reuses the confirmed green; overdue the
   cancelled red — same 5-state palette, no new colours. */
.tc-mytr-badge--complete { background: #e0f2e9; color: #2e7d4f; }
.tc-mytr-badge--overdue { background: #fde8e8; color: #d94f4f; }

/* T14 deadline line + closed-for-changes routing note */
.tc-mytr-deadline {
  font-size: 0.8125rem;
  color: #666;
  margin: 0 0 0.5rem;
}

.tc-mytr-deadline--urgent {
  color: #ad6a25;
  font-weight: 600;
}

.tc-mytr-closed {
  font-size: 0.8125rem;
  color: #666;
  margin: 0.5rem 0 0;
}

.tc-mytr-closed a {
  color: inherit;
  text-decoration: underline;
}

/* T15 — participant directory + roster-entry autocomplete */
.tc-pdir {
  margin-top: 2rem;
}

.tc-pdir-row {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  border: 1px solid #f0f0f0;
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.625rem 0.875rem;
  margin-bottom: 0.5rem;
}

.tc-pdir-row--selected {
  border-color: #242424;
}

.tc-pdir-check {
  margin-top: 0.25rem;
}

.tc-pdir-main {
  flex: 1;
  min-width: 0;
}

.tc-pdir-name {
  font-weight: 600;
  font-size: 0.875rem;
}

.tc-pdir-detail {
  color: #777;
  font-size: 0.7812rem;
}

.tc-pdir-history {
  color: #666;
  font-size: 0.7812rem;
  margin-top: 0.125rem;
}

.tc-pdir-editbtn {
  border: none;
  background: none;
  font-size: 0.8125rem;
  color: #6b6b6b;
  text-decoration: underline;
  cursor: pointer;
  padding: 0.25rem;
}

.tc-pdir-editform {
  margin: -0.25rem 0 0.75rem;
  padding: 0.625rem 0.875rem;
  border: 1px dashed #d9d9d9;
  border-radius: 0.75rem;
}

.tc-pdir-mergebar {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
  border: 1px solid #242424;
  border-radius: 0.75rem;
  background: #fafafa;
  padding: 0.625rem 0.875rem;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
}

.tc-pdir-suggest {
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  background: #fafafa;
  margin: -0.25rem 0 0.625rem;
  overflow: hidden;
}

.tc-pdir-suggest-item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  padding: 0.4375rem 0.75rem;
  font-size: 0.8125rem;
  cursor: pointer;
}

.tc-pdir-suggest-item:hover {
  background: #f0f0f0;
}

.tc-mytr-meta {
  font-size: 0.7812rem;
  color: #666;
  margin-top: 0.25rem;
}

.tc-mytr-attendees h4 {
  margin: 0.875rem 0 0.375rem;
  font-size: 0.8125rem;
}

.tc-mytr-none {
  font-size: 0.8125rem;
  color: #888;
  margin: 0 0 0.5rem;
}

.tc-mytr-list {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
}

.tc-mytr-list li {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0.25rem 0;
  font-size: 0.8438rem;
  border-bottom: 1px dashed #eee;
}

.tc-mytr-att-detail {
  color: #777;
  font-size: 0.7812rem;
}

.tc-mytr-add {
  border: 1px dashed #c0c0c0;
  background: none;
  border-radius: 0.5rem;
  padding: 0.4375rem 0.875rem;
  font-size: 0.8125rem;
  cursor: pointer;
  color: #6b6b6b;
}

.tc-mytr-add:hover {
  border-color: #242424;
  color: #242424;
}

/* B1 "that's everyone" — the purchaser's completeness statement for a
   roster whose seat count can never reach it (exclusive bookings). Sits
   under the add-participants affordance, deliberately quieter than it. */
.tc-mytr-rosterdone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: #6b6b6b;
}

/* Sits under the attendee list as the primary "I'm done" action. Takes the
   .tc-basket-checkout base (dark solid pill) and only overrides layout: full
   width would stretch it across the card, which is wrong for a confirming
   action sitting beside quieter text. */
.tc-mytr-rosterdone-btn {
  margin-top: 0.5rem;
  width: auto;
}

.tc-mytr-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.375rem, 1fr));
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.tc-mytr-input {
  padding: 0.5rem 0.625rem;
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
}

.tc-mytr-editor-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 0.625rem;
}

.tc-mytr-save {
  width: auto;
  margin-top: 0;
}

.tc-mytr-cancel {
  border: none;
  background: none;
  color: #666;
  cursor: pointer;
  font-size: 0.8125rem;
}

.tc-mytr-cta {
  color: #242424;
  font-weight: 600;
}

.tc-mytr-empty-sub {
  color: var(--se-text-secondary, #6b7280);
  font-size: 0.875rem;
  margin: 0.25rem 0 0.75rem;
}

/* Embedded in the ProfilePage shell (sidebar TRAININGS entry) — the shell
   owns page gutters + heading; we only space the intro line off the cards. */
.tc-mytr-embed > .tc-cal-sub {
  margin: 0 0 1.25rem;
}

/* ── My Trainings: bookings table + roster grid (SHOP-1155, React island) ──
   The two buyers this serves manage ~17 bookings / ~100 seats each, at a
   desk. A table answers "what needs names, by when" on the first screen; the
   open row and its roster share ONE tinted surface so the grid reads as the
   inside of that booking, not as a second card. Same palette as the rest of
   the training centre: #242424 ink, #641e8c accent, neutral hairlines. */

.tc-mtb-island {
  container-type: inline-size;
}

.tc-mtb {
  color: #242424;
  caret-color: #641e8c;
  accent-color: #641e8c;
}

.tc-mtb ::selection {
  background: #e9dbf3;
  color: #242424;
}

.tc-mtb :focus-visible {
  outline: 2px solid #641e8c;
  outline-offset: 2px;
  border-radius: 0.375rem;
}

.tc-mtb-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.tc-mtb-tabular,
.tc-mtb-view-count,
.tc-mtb-tab-count {
  font-variant-numeric: tabular-nums;
}

/* Tabs (Dart): Bookings | People */
.tc-mtb-tabs {
  display: flex;
  gap: 1.5rem;
  margin: 0 0 1.25rem;
  border-bottom: 1px solid #ebebeb;
}

.tc-mtb-tab {
  display: inline-flex;
  align-items: baseline;
  gap: 0.375rem;
  margin-bottom: -1px;
  padding: 0.625rem 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: #6b6b6b;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.tc-mtb-tab:hover {
  color: #242424;
}

.tc-mtb-tab--active {
  border-bottom-color: #641e8c;
  color: #242424;
}

.tc-mtb-tab-count {
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b6b6b;
}

/* Toolbar: view switch + search */
.tc-mtb-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}

.tc-mtb-views {
  display: inline-flex;
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
  overflow: hidden;
}

.tc-mtb-view {
  display: inline-flex;
  align-items: baseline;
  gap: 0.375rem;
  padding: 0.4375rem 0.75rem;
  border: 0;
  background: #fff;
  color: #4a4a4a;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.tc-mtb-view + .tc-mtb-view {
  border-left: 1px solid #e0e0e0;
}

.tc-mtb-view:hover {
  background: #fafafa;
}

.tc-mtb-view--active,
.tc-mtb-view--active:hover {
  background: #242424;
  color: #fff;
}

.tc-mtb-view-count {
  font-size: 0.6875rem;
  font-weight: 500;
  opacity: 0.75;
}

.tc-mtb-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 1 20rem;
  min-width: 14rem;
  padding: 0 0.625rem;
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
  background: #fff;
  color: #6b6b6b;
}

.tc-mtb-search:focus-within {
  border-color: #641e8c;
}

.tc-mtb-search input {
  flex: 1;
  min-width: 0;
  padding: 0.4375rem 0;
  border: 0;
  outline: 0;
  background: none;
  color: #242424;
  font: inherit;
  font-size: 0.8125rem;
}

.tc-mtb-search input::placeholder {
  color: #6b6b6b;
}

/* Bookings table */
.tc-mtb-scroll {
  border: 1px solid #ebebeb;
  border-radius: 1rem;
  background: #fff;
  overflow-x: auto;
}

.tc-mtb-table {
  width: 100%;
  min-width: 46rem;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.35;
}

.tc-mtb-table > thead th {
  padding: 0.625rem 1rem;
  border-bottom: 1px solid #ebebeb;
  background: #fafafa;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.tc-mtb-table > thead th:first-child {
  padding-left: 2.625rem; /* lines up with the date, past the chevron */
}

.tc-mtb-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
  border: 0;
  background: none;
  color: #6b6b6b;
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.tc-mtb-sort svg {
  opacity: 0;
  transition: opacity 120ms ease-out;
}

.tc-mtb-sort:hover svg {
  opacity: 0.5;
}

.tc-mtb-sort--active {
  color: #242424;
}

.tc-mtb-sort--active svg,
.tc-mtb-sort--active:hover svg {
  opacity: 1;
}

.tc-mtb-row {
  cursor: pointer;
}

.tc-mtb-row > td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
}

.tc-mtb-table > tbody > tr:last-child > td {
  border-bottom: 0;
}

.tc-mtb-row:hover > td {
  background: #fafafa;
}

.tc-mtb-row--open > td,
.tc-mtb-row--open:hover > td {
  background: #fbf7fe;
  border-bottom-color: transparent;
}

.tc-mtb-num {
  text-align: right;
}

.tc-mtb-table > thead th.tc-mtb-num .tc-mtb-sort {
  flex-direction: row-reverse;
}

.tc-mtb-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.tc-mtb-toggle svg {
  color: #6b6b6b;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.tc-mtb-toggle[aria-expanded='true'] svg {
  transform: rotate(90deg);
  color: #641e8c;
}

.tc-mtb-row > td:first-child .tc-mtb-sub {
  padding-left: 1.5rem;
}

.tc-mtb-course {
  display: block;
  font-weight: 600;
}

.tc-mtb-sub {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.75rem;
  color: #6b6b6b;
}

.tc-mtb-hit {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.0625rem 0.375rem;
  border-radius: 0.25rem;
  background: #f5edfa;
  color: #4f1870;
  font-size: 0.75rem;
}

.tc-mtb-type {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #4a4a4a;
  white-space: nowrap;
}

.tc-mtb-meter {
  display: flex;
  justify-content: flex-end;
  gap: 2px;
  margin-top: 0.375rem;
}

.tc-mtb-meter i {
  width: 0.5rem;
  height: 0.25rem;
  border-radius: 1px;
  background: #e0e0e0;
}

.tc-mtb-meter i.on {
  background: #641e8c;
}

.tc-mtb-status {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  white-space: nowrap;
}

.tc-mtb-status--overdue {
  color: #b3261e;
}

.tc-mtb-status--complete {
  color: #2e7d4f;
}

.tc-mtb-status--closed,
.tc-mtb-status--held,
.tc-mtb-status--cancelled {
  color: #6b6b6b;
  font-weight: 500;
}

.tc-mtb-none {
  margin: 0;
  padding: 2rem 1.25rem;
  border: 1px solid #ebebeb;
  border-radius: 1rem;
  background: #fff;
  color: #4a4a4a;
  font-size: 0.9375rem;
}

/* Roster: the inside of the open row */
.tc-mtb-rosterrow > td {
  padding: 0 1rem 1rem 2.625rem;
  border-bottom: 1px solid #ebebeb;
  background: #fbf7fe;
}

.tc-mtb-roster {
  animation: tc-mtb-open 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tc-mtb-open {
  from {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tc-mtb-roster {
    animation: none;
  }
  .tc-mtb-toggle svg {
    transition: none;
  }
}

.tc-mtb-guard {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.625rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d9c3e8;
  border-radius: 0.5rem;
  background: #fff;
  font-size: 0.8125rem;
}

.tc-mtb-guard span {
  margin-right: auto;
  font-weight: 600;
}

.tc-mtb-grid {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e6dcee;
  border-radius: 0.75rem;
  background: #fff;
  font-size: 0.8125rem;
}

.tc-mtb-grid th {
  padding: 0.5rem 0.5rem 0.375rem;
  color: #6b6b6b;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.tc-mtb-grid th:nth-child(2) {
  width: 13%;
}

.tc-mtb-grid th:nth-child(3) {
  width: 15%;
}

.tc-mtb-grid th:nth-child(4) {
  width: 26%;
}

.tc-mtb-grid th:nth-child(5) {
  width: 19%;
}

.tc-mtb-grid td {
  padding: 0.1875rem 0.5rem;
  border-top: 1px solid #f3eef7;
  vertical-align: middle;
}

.tc-mtb-seatno {
  width: 3rem;
  padding-left: 0.875rem !important;
  color: #6b6b6b;
}

.tc-mtb-celltext {
  display: block;
  padding: 0.4375rem 0.5rem;
  overflow-wrap: anywhere;
}

.tc-mtb-cell {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 0.375rem 0.5rem;
  border: 1px solid #d9d9d9;
  border-radius: 0.375rem;
  background: #fff;
  color: #242424;
  font: inherit;
}

.tc-mtb-cell:hover {
  border-color: #b0b0b0;
}

.tc-mtb-cell:focus {
  border-color: #641e8c;
  outline: 2px solid #e9dbf3;
  outline-offset: 0;
}

.tc-mtb-cell:disabled {
  background: #fafafa;
  color: #6b6b6b;
}

/* A free seat reads as a slot waiting for a name, not as a broken form. */
.tc-mtb-seat--free .tc-mtb-cell:not(:focus) {
  border-style: dashed;
  border-color: #cfcfcf;
}

.tc-mtb-seat--unsaved > td {
  background: #faf5fd;
}

.tc-mtb-seat--error > td {
  background: #fdf3f2;
}

.tc-mtb-seat--error .tc-mtb-cell {
  border-color: #b3261e;
}

.tc-mtb-seatactions {
  padding-right: 0.75rem !important;
  text-align: right;
}

/* The provenance mark takes its own line above the row buttons rather than
   pushing "Remove" out of a fixed-width column. */
.tc-mtb-seatactions .tc-mtb-origin {
  display: block;
  width: fit-content;
  margin: 0.125rem 0.5rem 0.125rem auto;
}

.tc-mtb-rowbtn {
  white-space: nowrap;
}

/* Column headers label the cells on a wide screen; stacked (narrow) they are
   gone, so the placeholders take over. */
.tc-mtb-cell::placeholder {
  color: transparent;
}

.tc-mtb-origin,
.tc-mtb-unsaved {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.0625rem 0.4375rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
}

.tc-mtb-origin {
  border: 1px solid #e0e0e0;
  color: #4a4a4a;
  cursor: help;
}

.tc-mtb-unsaved {
  background: #e9dbf3;
  color: #4f1870;
}

.tc-mtb-rowbtn {
  padding: 0.25rem 0.5rem;
  border: 0;
  border-radius: 0.375rem;
  background: none;
  color: #4f1870;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.tc-mtb-rowbtn:hover:not(:disabled) {
  background: #f5edfa;
}

.tc-mtb-rowbtn:disabled {
  color: #9a9a9a;
  cursor: default;
}

.tc-mtb-seatnote > td {
  padding-top: 0;
  padding-bottom: 0.5rem;
  border-top: 0;
  font-size: 0.75rem;
}

.tc-mtb-error {
  margin-right: 0.75rem;
  color: #b3261e;
  font-weight: 600;
}

.tc-mtb-was {
  color: #6b6b6b;
}

.tc-mtb-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}

.tc-mtb-suggest button {
  padding: 0.25rem 0.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 0.375rem;
  background: #fff;
  color: #4a4a4a;
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}

.tc-mtb-suggest button strong {
  color: #242424;
}

.tc-mtb-suggest button:hover,
.tc-mtb-suggest button.on {
  border-color: #641e8c;
  background: #fbf7fe;
}

.tc-mtb-grid-none {
  padding: 1rem 0.875rem !important;
  color: #6b6b6b;
}

.tc-mtb-notice {
  margin: 0.5rem 0 0;
  color: #b3261e;
  font-size: 0.8125rem;
  font-weight: 600;
}

.tc-mtb-roster .tc-mtb-closed {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: #4a4a4a;
}

.tc-mtb-roster .tc-mtb-closed a {
  color: #4f1870;
  text-underline-offset: 0.15em;
}

.tc-mtb-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.tc-mtb-hint {
  margin: 0;
  max-width: 34rem;
  font-size: 0.75rem;
  color: #6b6b6b;
}

.tc-mtb-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.tc-mtb-btn {
  padding: 0.4375rem 0.875rem;
  border: 1px solid #d0d0d0;
  border-radius: 0.5rem;
  background: #fff;
  color: #242424;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.tc-mtb-btn:hover:not(:disabled) {
  border-color: #9a9a9a;
}

.tc-mtb-btn--quiet {
  border-color: transparent;
  background: none;
  color: #4a4a4a;
}

.tc-mtb-btn--quiet:hover:not(:disabled) {
  border-color: transparent;
  background: #f0f0f0;
}

.tc-mtb-btn--primary {
  border-color: #242424;
  background: #242424;
  color: #fff;
}

.tc-mtb-btn--primary:hover:not(:disabled) {
  border-color: #000;
  background: #000;
}

.tc-mtb-btn:disabled {
  border-color: #e6e6e6;
  background: #f3f3f3;
  color: #8a8a8a;
  cursor: default;
}

/* Narrow (phone, or a tight embed): rows stack, seats become labelled blocks.
   Must not break; the desk is where this page is used. */
@container (max-width: 44rem) {
  .tc-mtb-table {
    min-width: 0;
  }

  .tc-mtb-table > thead {
    display: none;
  }

  .tc-mtb-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.25rem 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
  }

  .tc-mtb-row > td,
  .tc-mtb-row:hover > td,
  .tc-mtb-row--open > td,
  .tc-mtb-row--open:hover > td {
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
  }

  .tc-mtb-row--open {
    background: #fbf7fe;
    border-bottom-color: transparent;
  }

  .tc-mtb-cell::placeholder {
    color: #6b6b6b;
  }

  .tc-mtb-seat > td,
  .tc-mtb-seat--unsaved > td,
  .tc-mtb-seat--error > td {
    background: none;
  }

  .tc-mtb-seat--unsaved {
    background: #faf5fd;
  }

  .tc-mtb-seat--error {
    background: #fdf3f2;
  }

  .tc-mtb-seatactions .tc-mtb-origin {
    display: inline-block;
    margin: 0 0.5rem 0 0;
  }

  .tc-mtb-row > td[data-label='Order'],
  .tc-mtb-row > td[data-label='Type'] {
    display: none;
  }

  .tc-mtb-row > td[data-label='Course'] {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .tc-mtb-row > td[data-label='Status'] {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }

  .tc-mtb-row > td[data-label='Named'],
  .tc-mtb-row > td[data-label='Names due'] {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    font-size: 0.8125rem;
  }

  .tc-mtb-row > td[data-label='Named']::before,
  .tc-mtb-row > td[data-label='Names due']::before {
    content: attr(data-label);
    color: #6b6b6b;
    font-size: 0.75rem;
  }

  .tc-mtb-meter {
    display: none;
  }

  .tc-mtb-rosterrow,
  .tc-mtb-rosterrow > td {
    display: block;
  }

  .tc-mtb-rosterrow > td {
    padding: 0 0.75rem 0.75rem;
  }

  .tc-mtb-grid thead {
    display: none;
  }

  .tc-mtb-grid,
  .tc-mtb-grid tbody,
  .tc-mtb-seat,
  .tc-mtb-seatnote {
    display: block;
  }

  .tc-mtb-seat {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.375rem;
    padding: 0.625rem;
    border-top: 1px solid #f3eef7;
  }

  .tc-mtb-seat > td {
    display: block;
    width: auto;
    padding: 0 !important;
    border: 0;
    text-align: left;
  }

  .tc-mtb-seat > td.tc-mtb-seatno,
  .tc-mtb-seat > td.tc-mtb-seatactions,
  .tc-mtb-seat > td[data-label='E-mail'],
  .tc-mtb-seat > td[data-label='Company'] {
    grid-column: 1 / -1;
  }

  .tc-mtb-seat > td.tc-mtb-seatno::before {
    content: 'Seat ';
  }

  .tc-mtb-seatnote > td {
    display: block;
    padding: 0 0.625rem 0.5rem !important;
  }

  .tc-mtb-seatnote > td:first-child {
    display: none;
  }

  .tc-mtb-search {
    flex: 1 1 100%;
  }
}

/* ── Training Centre overview (/training-center) ──────────────────────
   The explanatory entrypoint that feeds the calendar above. Follows the
   post-facelift density language (cart.css / orders.css): flat hairline
   rows in a table-like grid per switchgear family, uppercase micro-labels,
   dark buttons, sticky "how booking works" sidebar card. Shares the
   tc-cal-* loading/error/empty states; everything else is tc-ov-*.       */

.tc-ov-page {
  max-width: var(--container-max, 120rem);
  margin: 0 auto;
  padding: clamp(1rem, calc(2 * var(--vwx)), 1.5rem) clamp(1rem, calc(3 * var(--vwx)), 2.5rem) clamp(3rem, calc(6 * var(--vwx)), 5rem);
}

.tc-ov-pagehead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
}

.tc-ov-heading {
  margin: 0;
  font-size: clamp(1.25rem, calc(3.5 * var(--vwx)), 2.75rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.031em;
  line-height: 1.15;
  color: #242424;
}

.tc-ov-sub {
  margin: 0.375rem 0 0;
  font-size: 0.9375rem;
  color: #6b6b6b;
  max-width: 46rem;
}

/* ── Calendar equipment nav pills ─────────────────────────────────
   Mirrors the orders-page filter tags (.orders-filter-tag): pill row,
   active = solid #242424. (The catalogue view's own nav moved to the
   shop's .filter-pill grammar in T8 — these pills now serve the
   calendar's equipment switcher only.) */

.tc-ov-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tc-ov-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.25rem;
  padding: 0 1rem;
  border-radius: 6.25rem;
  background: #fff;
  border: 1px solid #e0e0e0;
  color: #242424;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.tc-ov-pill:hover {
  border-color: #c0c0c0;
}

.tc-ov-pill--active {
  background: #242424;
  border-color: #242424;
  color: #fff;
}

.tc-ov-pill-count {
  font-size: 0.75rem;
  color: #9e9e9e;
}

.tc-ov-pill--active .tc-ov-pill-count {
  color: rgba(255, 255, 255, 0.7);
}

/* ── Catalogue: one table-like section per switchgear family ─────── */

.tc-ov-group + .tc-ov-group {
  margin-top: 2.5rem;
}

.tc-ov-group-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.tc-ov-group-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #242424;
}

.tc-ov-group-count {
  font-size: 0.8125rem;
  color: #9e9e9e;
}

/* Role badges — same chip anatomy as the my-assets kind badges, in this
   page's neutral palette. The dark variant marks the entry point of each
   catalogue ("Foundation"); everything else stays outlined. Exclusive is
   today's unmarked norm, so the badge marks the exception worth noticing:
   "Single seats". */
.tc-ov-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.1875rem 0.625rem;
  border: 1px solid #e8e8e8;
  border-radius: 0.75rem;
  background: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b6b6b;
  white-space: nowrap;
}

.tc-ov-badge--dark {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
}


/* Price block — the cart/orders amount idiom: number first (bold, tabular,
   right-aligned so prices align into a column across rows), the unit as a
   quiet suffix. Both prices carry equal weight: a "/ seat" line existing at
   all is what says single seats are sold; its absence says exclusive-only. */
.tc-ov-price-line {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #242424;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tc-ov-price-line--muted {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #9e9e9e;
}

.tc-ov-price-unit {
  margin-right: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #9e9e9e;
}

/* Venue caption in the group header — one equipment family runs at one
   training centre, which scales to additional centres later. */
.tc-ov-group-venue {
  font-size: 0.75rem;
  color: #9e9e9e;
}


/* ── T8: catalogue = the shop PLP's own components (§5.1) ─────────
   The list view renders the real .catalog-page scaffolding — the
   category-tile strip (CategoryNavigation), .products-list-header
   (results count · sort · the Courses|Calendar switcher in the shop
   toggle's slot) and .catalog-layout with the shop's .filter-panel
   sidebar. Only the course ROWS are training-specific (wireframe
   anatomy, .tc-plp-row below). The v1 explainer strip and the
   whole-row anchor are gone (D9 / multiple links per row). */

/* The outer .tc-page provides the page gutter, so the shop head rows must
   not add their own (they carry the fluid page gutter for standalone use —
   inside .tc-page it double-indented the breadcrumb vs the title). */
.tc-page .pdl-breadcrumb-row {
  margin: 0 0 0.75rem;
  padding: 0;
}

.tc-page .product-header {
  padding: 0;
}


/* The outer .tc-page already provides the page box (max-width + gutter),
   so the nested .catalog-page must not add its own page chrome — kill its
   max-width and the page gutter its immediate bands carry. */
.tc-page .catalog-page {
  max-width: none;
  padding-bottom: 0;
}

/* The pagehead already closes with its own padding; the tile strip doesn't
   need the PLP's extra header gap on top of that. */
.tc-page .catalog-page > .category-nav-wrapper {
  margin-top: 0;
}

.tc-page .catalog-page .category-nav,
.tc-page .catalog-page .products-list-header,
.tc-page .catalog-page .catalog-layout {
  padding-left: 0;
  padding-right: 0;
}

/* ── Course rows (wireframe anatomy) ── */

.tc-plp-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.tc-ov-group .tc-plp-row:last-child {
  border-bottom: none;
}

.tc-plp-thumb {
  flex-shrink: 0;
  display: block;
  margin-top: 0.125rem;
}

.tc-plp-thumb-img,
.tc-plp-thumb-ph {
  display: block;
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  object-fit: cover;
}

/* Quiet placeholder until course photos exist (M1). */
.tc-plp-thumb-ph {
  background: #f7f7f7;
  border: 1px dashed #e0e0e0;
}

.tc-plp-main {
  flex: 1;
  min-width: 0;
}

.tc-plp-eyebrow {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9e9e9e;
}

.tc-plp-title {
  margin: 0.125rem 0 0.25rem;
  display: flex;
  align-items: baseline;
  gap: 0.375rem 0.625rem;
  flex-wrap: wrap;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  color: #242424;
}

.tc-plp-title-link {
  color: inherit;
  text-decoration: none;
}

.tc-plp-title-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* The SAP-no. slot: full admin-entered code, quiet, inline. */

.tc-plp-meta {
  margin: 0;
  font-size: 0.8125rem;
  color: #6b6b6b;
  font-variant-numeric: tabular-nums;
}

.tc-plp-days {
  display: inline-flex;
  gap: 0.1875rem;
  margin-right: 0.375rem;
  vertical-align: -1px;
}

.tc-plp-day-sq {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 0.125rem;
  background: #242424;
}

.tc-plp-combine-link {
  color: #242424;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: #c9c9c9;
}

.tc-plp-combine-link:hover {
  text-decoration-color: #242424;
}

/* Short course description under the meta line — the admin-editable
   product description, clamped to two lines (feedback 2026-08-23). */
.tc-plp-desc {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #6b6b6b;
  max-width: 46rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Right column: the shop row's lead-time/price slot — next-date chips
   deep-linking into the calendar week, then both prices. */
.tc-plp-side {
  flex-shrink: 0;
  width: 11.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.375rem;
  text-align: right;
}

.tc-plp-side-label {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9e9e9e;
}

.tc-plp-datechips {
  display: flex;
  gap: 0.25rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.tc-plp-datechip {
  font-size: 0.75rem;
  color: #242424;
  text-decoration: none;
  border: 1px solid #e0e0e0;
  border-radius: 0.375rem;
  padding: 0.125rem 0.4375rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.tc-plp-datechip--first {
  border-color: #9e9e9e;
}

.tc-plp-datechip:hover {
  border-color: #242424;
}

.tc-plp-prices {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  margin-top: 0.125rem;
}

.tc-plp {
  container-type: inline-size;
  container-name: tcplp;
}

/* Former width media query at 64rem; 62rem ≈ that viewport minus page
   padding, measured on the .tc-plp page root (training_center_page.dart). */
@container tcplp (max-width: 62rem) {
  .tc-plp-row {
    flex-wrap: wrap;
  }

  .tc-plp-side {
    width: auto;
    margin-left: 4rem;
    align-items: flex-start;
    text-align: left;
  }

  .tc-plp-datechips {
    justify-content: flex-start;
  }
}

/* Legend item highlighted by ?training=CODE deep-link */
.tc-legend-item--focus {
  font-weight: 700;
  border-color: var(--tc-accent, #55c);
  box-shadow: 0 0 0 1px var(--tc-accent, #55c) inset;
}

/* Deep-link focus: non-focused sessions recede but stay usable */
.tc-chip--dimmed {
  opacity: 0.4;
}

.tc-chip--dimmed:hover {
  opacity: 0.85;
}

.tc-cal-headlinks {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-wrap: wrap;
  margin: 0 0 1.25rem;
}

.tc-cal-focusnote {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7812rem;
  color: #555;
  background: #f4f4f6;
  border-radius: 999px;
  padding: 0.1875rem 0.25rem 0.1875rem 0.75rem;
}

.tc-cal-focusclear {
  border: 0;
  background: #fff;
  border-radius: 999px;
  padding: 0.1875rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #242424;
  cursor: pointer;
}

.tc-cal-focusclear:hover {
  background: #242424;
  color: #fff;
}

/* ─── Course PDP (/training-center/course/:code, §5.2) ──────────────────
   Composes the shop PDP's DESIGN grammar (.product-detail--design /
   .pdp-tab-bar / .pdp-accordion / spec pills / the floating
   .purchase-bar--product pill at the rail's end) — everything below is only
   what the shop PDP has no slot for: the embedded calendar's fit, the
   related-course rows, and the buy pill's session-state extras. */

/* Embedded calendar (real TrainingCalendarView inside the info rail).
   The rail is ~half the page, so the basket panel stacks BELOW the month
   grid instead of beside it, and the island keeps its own inner scroll. */
.tc-course-cal {
  margin-top: 0.5rem;
}

.tc-course-cal .tc-cal-layout {
  flex-direction: column;
}

/* flex-basis becomes HEIGHT on the column axis — without the reset the
   basket's `flex: 1 1 20rem` (a WIDTH basis in the standalone row layout)
   rendered the empty panel 20rem tall. Sticky is a row-layout affordance
   too; in the column it would ride over the sections below. */
.tc-course-cal .tc-cal-layout > * {
  width: 100%;
  flex: 0 0 auto;
}

.tc-course-cal .tc-basket {
  position: static;
}

/* The shell-owned page box is absent here — neutralize the standalone
   view's page-level spacing inside the accordion body. */
.tc-course-cal .tc-cal-headlinks {
  margin-bottom: 0.75rem;
}

/* "Open the full training calendar" — plain quiet text link. */
.tc-course-callink {
  display: inline-block;
  margin-top: 0.875rem;
  font-size: 0.8125rem;
  color: #555;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tc-course-callink:hover {
  color: #242424;
}

/* Related courses — compact rows in the catalogue-row idiom (title link,
   muted meta, the PLP's own date chip). */
.tc-course-rel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 0.5px solid #e5e5e5;
}

.tc-course-rel-row:last-child {
  border-bottom: none;
}

.tc-course-rel-main {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  min-width: 0;
}

.tc-course-rel-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #242424;
  text-decoration: none;
}

.tc-course-rel-title:hover {
  text-decoration: underline;
}

.tc-course-rel-meta {
  font-size: 0.75rem;
  color: #767676;
  white-space: nowrap;
}

/* "What the course covers" — the centre's own module list (SHOP-890).
   Display data only: a package is one SKU with one roster, so a module row
   is never a link and never carries a price. Numbered by the centre's own
   label (FIT: Roman numerals), not by list position, so the numbering
   matches the deck a participant is handed. */
.tc-course-curriculum {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tc-course-modules {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tc-course-module {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  padding: 0.5rem 0;
  border-bottom: 0.5px solid #e5e5e5;
}

.tc-course-module:last-child {
  border-bottom: none;
}

.tc-course-module-no {
  flex: 0 0 auto;
  min-width: 1.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #767676;
  text-transform: uppercase;
}

.tc-course-module-main {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-width: 0;
  flex: 1 1 auto;
}

.tc-course-module-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #242424;
}

.tc-course-module-code {
  font-size: 0.6875rem;
  color: #999;
  font-variant-numeric: tabular-nums;
}

.tc-course-module-hours {
  flex: 0 0 auto;
  font-size: 0.75rem;
  color: #767676;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.tc-course-curriculum-total,
.tc-course-curriculum-note {
  font-size: 0.8125rem;
  color: #555;
  margin: 0;
}

.tc-course-curriculum-label {
  font-weight: 600;
  color: #242424;
}

/* Info-rail fallback note when no course copy is authored yet. */
.tc-course-info-empty {
  font-size: 0.8125rem;
  color: #555;
  margin: 0.5rem 0 0;
}

/* The buy cluster uses the shared purchase_bar.css at the rail's end. Local rules
   cover only what the shop has no slot for: the cart-error line, which
   takes a full row of its own above the cells. */
.tc-course-buy-box-error {
  flex-basis: 100%;
  font-size: 0.8125rem;
  color: #b1353b;
}

/* Course text: ~4-line clamp behind "Read more" (max-height, not
   line-clamp — the description is multi-paragraph). 4 lines of the rail's
   0.9375rem/1.55 description ≈ 5.9rem. The paragraphs carry 1.5–2.5rem
   margins, so the cut lands mid-line and the top of the next line showed as
   a row of dots (Userback 8497807): fade the bottom out instead. */
.tc-course-desc--clamped {
  max-height: 5.9rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

.tc-course-desc-toggle {
  border: 0;
  background: none;
  padding: 0.25rem 0;
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #242424;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* Gated calendar embed: the way in (standalone bounces to /login instead). */
.tc-cal-login {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
  color: #242424;
}

.tc-course-back {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
  color: #242424;
}

/* PDP embed: weeks without a single session collapse to a slim strip —
   at ~half-page width the default 6.5rem row pushed every session below
   the fold when the month's sessions cluster in one or two weeks. */
.tc-course-cal .tc-cal-week:not(:has(.tc-bar)) {
  min-height: 2.25rem;
}

/* Minimum-participants notice: basket (island) and course-PDP buy box. */
.tc-min-note {
  margin: 0.625rem 0 0;
  padding: 0.5rem 0.625rem;
  border: 1px solid #e6dcee;
  border-radius: 0.5rem;
  background: #fbf7fe;
  color: #4a4a4a;
  font-size: 0.75rem;
  line-height: 1.4;
}

/* ── Side column: selection panel + course-info card ─────────────────
   The sticky moved from .tc-basket to this wrapper so the card scrolls
   with the panel as one unit. */
.tc-cal-side {
  flex: 1 1 20rem;
  min-width: 0;
  position: sticky;
  top: calc(var(--header-height, 4rem) + 1rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tc-cal-side .tc-basket {
  flex: none;
  position: static;
  top: auto;
}

.tc-course-cal .tc-cal-side {
  position: static;
}

/* Basket line title → course PDP: reads like the plain title, underlines
   on hover so it's discoverably a link. */
.tc-basket-line-namelink {
  color: inherit;
  text-decoration: none;
}

.tc-basket-line-namelink:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Course-info card — basic info for the last-clicked / focused course +
   the way to its PDP. Same panel language as .tc-basket. */
.tc-coursecard {
  border: 1px solid #f0f0f0;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 0 2.5rem rgba(26, 26, 26, 0.04);
  padding: 1.25rem;
}

.tc-coursecard-thumb {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: 0.75rem;
  margin: 0 0 0.75rem;
}

.tc-coursecard-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #242424;
}

.tc-coursecard-meta {
  margin: 0.125rem 0 0;
  font-size: 0.75rem;
  color: #767676;
}

.tc-coursecard-desc {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #4a4a4a;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tc-coursecard-prices {
  display: flex;
  gap: 1rem;
  margin: 0.625rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #242424;
}

.tc-coursecard-price-unit {
  font-weight: 400;
  color: #9e9e9e;
  margin-right: 0.375rem;
}

.tc-coursecard-link {
  display: inline-block;
  margin-top: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #242424;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Course PDP: Terms & Conditions ───────────────────────────────────────
   product.metadata.terms_documents, rendered above the calendar: they are what
   the buyer agrees to when they book. Row grammar follows .tc-course-rel-row
   so the accordion bodies on this page read as one family; it is a <button>,
   not an <a>, because the open goes through DocumentDownloadService (a url may
   need the API base prefixed, and a file id needs a signed URL resolved
   first). Sibling of .pdp-terms-doc-row on the shop PDP. */
.tc-course-docs {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.tc-course-docs-note {
  font-size: 0.8125rem;
  color: #555;
  margin: 0;
}

.tc-course-doc-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.625rem 0;
  background: none;
  border: none;
  border-bottom: 0.5px solid #e5e5e5;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.tc-course-doc-row:last-child {
  border-bottom: none;
}

.tc-course-doc-row svg {
  flex: 0 0 auto;
}

.tc-course-doc-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #242424;
}

.tc-course-doc-row:hover .tc-course-doc-name {
  text-decoration: underline;
}

.tc-course-doc-hint {
  flex: 0 0 auto;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: #6b6b6b;
}
