/* PACKAGE: coaching -- the weight chart (inline SVG) and progress-photo thumbnails.
   Guide: /home/sagedash/.guides/packages/coaching-package.md */
.coach-chart { max-height: 260px; }
.coach-chart-grid { stroke: rgba(0, 0, 0, .08); stroke-width: 1; }
.coach-chart-label { fill: #6c757d; font-size: 12px; }
.coach-chart-line { fill: none; stroke: var(--bs-primary, #0d6efd); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.coach-chart-dot { fill: var(--bs-primary, #0d6efd); }
html.dark .coach-chart-grid { stroke: rgba(255, 255, 255, .12); }
html.dark .coach-chart-label { fill: #adb5bd; }
.coach-photo-thumb { width: 88px; height: 88px; object-fit: cover; border: 1px solid rgba(0, 0, 0, .1); }
html.dark .coach-photo-thumb { border-color: rgba(255, 255, 255, .15); }

/* --------------------------------------------------------------------------
   Client detail, "Option B" (Kenny, 2026-11-12, from Claude Desktop's mockup).
   Colors are the palette's jobs, so each client's brand carries through: written with the
   master's names, which package-add/-sync rename on a brand-colored clone: --mud -> --brand
   (dark: name plate, main buttons, rules), --clay -> --brand-accent (links, tab labels),
   --desert -> --brand-title (fallback only). --primary (bars, active tab) exists on clones;
   the master falls back to desert. Status colors stay semantic.
   -------------------------------------------------------------------------- */
.coach-detail { --cd-ink: #1a1a1a; --cd-muted: #5c5c5c; --cd-line: #e6e6e6; --cd-soft: #f5f5f6; }
/* Columns are Bootstrap's (the master detail grid); these only stack each column's panels with a gap. */
.coach-detail .cd-left, .coach-detail .cd-right { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.coach-detail .cd-main { display: flex; flex-direction: column; margin-bottom: 24px; min-width: 0; }

/* panels and type */
.coach-detail .cd-panel { background: #fff; padding: 18px 20px; color: var(--cd-ink); }
.coach-detail .cd-h { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cd-ink); }
.coach-detail .cd-small { font-size: 12px; }
.coach-detail .cd-muted { color: var(--cd-muted); }
.coach-detail .cd-good { color: #1e5a22; font-weight: 600; }
.coach-detail .cd-bad { color: #a32020; font-weight: 600; }
.coach-detail a:not(.btn):not(.dropdown-item) { color: var(--clay); }
.coach-detail a:not(.btn):not(.dropdown-item):hover { color: var(--clay-hover); }

/* name plate */
.coach-detail .cd-plate { background: var(--mud); color: #fff; padding: 20px; }
.coach-detail .cd-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--primary, var(--desert)); color: #111; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; flex-shrink: 0; }
.coach-detail .cd-name { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.2; color: #fff; letter-spacing: 0.01em; }
.coach-detail .cd-plate-meta { font-size: 12px; color: #cfcfcf; }
.coach-detail .cd-plate a { color: var(--primary-light, var(--desert-light)) !important; }

/* chips (the mockup's small square-ish badges) */
/* Chips are all one size, text centered both ways, all caps (Kenny, 2026-11-12). A <button> chip (the program menu)
   matches a <span> one: same font, height and box. */
.coach-detail .cd-chip { display: inline-flex; align-items: center; justify-content: center; height: 22px; padding: 0 9px; margin: 0; font-family: inherit; font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: 0.05em; text-transform: uppercase; border-radius: 3px; border: 0; white-space: nowrap; vertical-align: middle; box-sizing: border-box; }
.coach-detail .cd-chip-active { background: #2e7d32; color: #fff; }
.coach-detail .cd-chip-prospect, .coach-detail .cd-chip-info { background: #e3f0fa; color: #134c78; }
.coach-detail .cd-chip-paused { background: #fff3cd; color: #6b4e00; }
.coach-detail .cd-chip-completed, .coach-detail .cd-chip-archived { background: #e9e9ea; color: #3a3a3a; }
.coach-detail .cd-chip-program { background: var(--primary, var(--desert)); color: #111; cursor: pointer; }
.coach-detail .cd-chip-program.dropdown-toggle::after { margin-left: 5px; vertical-align: 0; }

/* bars */
.coach-detail .cd-bar { height: 8px; background: #efefef; }
.coach-detail .cd-bar > div { height: 100%; background: var(--primary, var(--desert)); }
.coach-detail .cd-bar-dark { height: 6px; background: #3a3a3a; margin-top: 6px; }
.coach-detail .cd-bar-tint { background: #f1e3d7; }
.coach-detail .cd-pct { font-size: 12px; font-weight: 600; min-width: 34px; text-align: right; }

/* progress tiles and sparkline */
.coach-detail .cd-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.coach-detail .cd-tile { background: var(--cd-soft); padding: 10px; }
.coach-detail .cd-tile-l { font-size: 11px; color: var(--cd-muted); }
.coach-detail .cd-tile-v { font-size: 20px; font-weight: 600; line-height: 1.3; }
.coach-detail .cd-tile-good { background: #e8f3e9; }
.coach-detail .cd-tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 575px) { .coach-detail .cd-tiles-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.coach-detail .cd-tile-good .cd-tile-l, .coach-detail .cd-tile-good .cd-tile-v { color: #1e5a22; }
.coach-detail .cd-spark { width: 100%; height: 70px; margin-top: 12px; display: block; }
.coach-detail .cd-spark-base { stroke: #e2e2e2; stroke-width: 1; }
.coach-detail .cd-spark-line { fill: none; stroke: var(--primary, var(--desert)); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.coach-detail .cd-spark-dot { fill: var(--primary, var(--desert)); }

/* definition lists */
.coach-detail .cd-dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13px; }
.coach-detail .cd-dl dt { color: var(--cd-muted); font-weight: 400; }
.coach-detail .cd-dl dd { margin: 0; }
.coach-detail .cd-dl-right dd { text-align: right; }
.coach-detail .cd-pill { background: #fdebdd; color: #8a3e12; font-size: 12px; padding: 3px 10px; border-radius: 12px; }
.coach-detail .cd-contact { font-size: 13px; }

/* tabs */
.coach-detail .cd-tabs { display: flex; flex-wrap: wrap; gap: 2px; }
.coach-detail .cd-tab { background: #f7f7f8; color: var(--clay) !important; border: 0; border-top: 3px solid transparent; padding: 12px 18px; font-size: 13px; font-weight: 600; text-decoration: none; text-transform: uppercase; letter-spacing: 0.03em; }
.coach-detail .cd-tab:hover { background: #fff; }
@media (max-width: 1699px) { .coach-detail .cd-tab { padding: 11px 11px; font-size: 12px; letter-spacing: 0.02em; } }   /* keeps the six tabs on one row in the col-xl-6 middle column */
.coach-detail .cd-tab.active { background: #fff; color: var(--cd-ink) !important; border-top-color: var(--primary, var(--desert)); }
.coach-detail .cd-tab-more { color: var(--cd-muted) !important; }
.coach-detail .cd-tab-more.active { color: var(--cd-ink) !important; }
.coach-detail .cd-tab-body { background: #fff; padding: 22px 24px 26px; color: var(--cd-ink); }
.coach-detail .cd-tab-title { margin: 0; font-size: 18px; font-weight: 600; color: var(--cd-ink); }
/* the title row (tab name and its action) sits on a thin rule, above the tab's content (Kenny, 2026-11-12) */
.coach-detail .cd-tab-head { min-height: 40px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--cd-line); }

/* buttons */
.coach-detail .cd-btn { height: 40px; padding: 0 18px; font-size: 13px; font-weight: 500; border: 0; display: inline-flex; align-items: center; }
.coach-detail .cd-btn-sm { font-weight: 600; padding: 0 16px; }
.coach-detail .cd-btn-line { background: #fff; border: 1px solid var(--mud); color: var(--mud); font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 0; }
.coach-detail .cd-btn-line:hover { background: var(--mud); color: #fff; }
.coach-detail .cd-btn-block { width: 100%; height: 42px; font-size: 13px; font-weight: 500; display: flex; align-items: center; justify-content: center; }
.coach-detail .cd-btn-accent { width: 100%; height: 42px; background: var(--primary, var(--desert)); color: #111; border: 0; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; border-radius: 0; }
.coach-detail .cd-btn-accent:hover { background: var(--primary-hover, var(--desert-hover)); color: #111; }
.coach-detail .cd-btn-text { background: transparent; border: 0; color: var(--cd-muted); font-size: 12px; padding: 6px 10px; }
.coach-detail .cd-btn-text:hover { color: var(--cd-ink); text-decoration: underline; }
.coach-detail .cd-link-muted { background: none; border: 0; padding: 0; color: var(--cd-muted); font-size: 12px; text-decoration: underline; }

/* goals */
.coach-detail .cd-goal-head, .coach-detail .cd-goal-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
/* Band headers: every tab's section headings and the Goals tab's two column heads (Kenny, 2026-11-12: "a background
   style header ... for each tab"). Neutral with a dark edge; .cd-band-accent is the coach's side, peach with the accent. */
.coach-detail .cd-band { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--cd-soft); border-left: 4px solid var(--mud); padding: 10px 14px; margin: 0 0 12px; }
.coach-detail .cd-band-accent { background: #fff6ef; border-left-color: var(--primary, var(--desert)); }
.coach-detail .cd-band-l { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--cd-ink); line-height: 1.4; }
.coach-detail .cd-band-r { font-size: 12px; color: var(--cd-muted); white-space: nowrap; }
.coach-detail .cd-band + .cd-band { margin-top: 0; }
.coach-detail .cd-goal-head .cd-band { margin-bottom: 2px; }
html.dark .coach-detail .cd-band-accent { background: #2c241e; }
.coach-detail .cd-goal-row { padding: 18px 0; border-bottom: 1px solid var(--cd-line); }
.coach-detail .cd-goal-text { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.5; }
.coach-detail .cd-goal-closed .cd-goal-text { color: var(--cd-muted); }
.coach-detail .cd-rec { background: #fff6ef; padding: 14px; }
.coach-detail .cd-recform { border: 1px solid #f2c9aa; padding: 14px; }
.coach-detail .cd-recform.collapse.show, .coach-detail .cd-recform.collapsing { display: flex; flex-direction: column; gap: 10px; }
.coach-detail #recNew { margin-bottom: 18px; }
.coach-detail .cd-recform-h { font-size: 12px; font-weight: 600; }
.coach-detail .cd-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--cd-muted) !important; width: 100%; }
@media (max-width: 575px) { .coach-detail .cd-goal-head, .coach-detail .cd-goal-row { grid-template-columns: 1fr; } }

/* needs attention */
.coach-detail .cd-attn { border-top: 3px solid #c62828; padding-bottom: 8px; }
.coach-detail .cd-attn-h { color: #a32020; margin-bottom: 4px; }
.coach-detail .cd-attn li { padding: 12px 0; border-top: 1px solid #eee; }
.coach-detail .cd-attn-t { font-size: 13px; font-weight: 500; }

/* dark mode */
html.dark .coach-detail { --cd-ink: #e8e8e8; --cd-muted: #a6a6a6; --cd-line: #333; --cd-soft: #262626; }
html.dark .coach-detail .cd-panel, html.dark .coach-detail .cd-tab-body, html.dark .coach-detail .cd-tab.active, html.dark .coach-detail .cd-btn-line { background: #1d1d1f; }
html.dark .coach-detail .cd-tab { background: #2a2a2c; }
html.dark .coach-detail .cd-rec { background: #2c241e; }
