/* =============================================================================
   Relief Coaching Academy — brand and additions.

   styles.css is the shared platform shell, kept byte-identical to the
   Operations Hub / SongBook copy. This file only (1) re-points its tokens at
   the colours of the Relief Coaching logo (navy and orange, chosen by the
   owner on 2026-11-16 to replace "Sage & Sunrise") and the brand fonts, and
   (2) adds the few pieces the Academy needs that the shell has no class for.

   Palette, taken from the logo: navy #0D475C · orange #F0A443
                                 cream background #FBF7F0 · ink #1B2A33
   Orange is decoration only: white text on it, or orange text on white,
   does not reach a readable contrast, so it is never a text or button colour.
   ============================================================================= */

:root {
  --color-bg: #FBF7F0;              /* cream */
  --color-surface: #ffffff;
  --color-surface-alt: #F3EFE8;
  --color-border: #E2DCD2;
  --color-text: #1B2A33;
  --color-text-muted: #55636B;
  --color-primary: #0D475C;         /* logo navy: buttons, links (white text ≈ 10:1) */
  --color-primary-dark: #093544;
  --color-primary-light: #E2EDF1;
  --color-accent: #F0A443;          /* logo orange, decoration only */
  --color-gold: #F0A443;
  --color-sage: #3C7489;            /* lighter navy-teal for rules and borders */
  --font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
}

h1, h2, h3, .stat-value { font-family: var(--font-heading); font-weight: 600; letter-spacing: -.01em; }
.data-table, .btn, label, input, select, textarea { font-family: var(--font-family); }

/* Navy bar with the logo's orange as a thin rule beneath. The logo is navy
   ink, so it sits on the shell's white chip, drawn taller here because the
   lockup has two lines of lettering. */
#topbar { box-shadow: inset 0 -3px 0 0 var(--color-accent); }
#topbar .brand-logo { height: 42px; max-width: 160px; padding: 3px 8px; }
@media (max-width: 640px) { #topbar .brand-logo { height: 36px; max-width: 130px; } }
.brand-product { font-family: var(--font-heading); font-size: 1.1rem; }

#demo-banner[hidden] { display: none; }
#demo-banner .btn { margin-left: 8px; }

/* ---------- Things the shell has no class for ---------- */

.u-page-medium { max-width: 860px; margin-left: auto; margin-right: auto; }
.section-title { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pre-wrap { white-space: pre-wrap; }

/* A sentence that needs reading, above the work it is about. */
.callout {
  background: var(--color-primary-light); border-left: 4px solid var(--color-sage);
  border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 14px; font-size: .92rem;
}
.callout-warning { background: var(--color-warning-light); border-left-color: var(--color-gold); }
.callout-danger { background: var(--color-danger-light); border-left-color: var(--color-danger); }
.callout-quiet { background: var(--color-surface-alt); border-left-color: var(--color-border); }
.callout .btn { margin-left: 6px; }
.callout ul { padding-left: 18px; margin-top: 4px; }

/* Sign-in and other single-card pages. */
.auth-card { max-width: 520px; margin: 40px auto; text-align: center; padding: 32px 28px; }
.auth-card .btn-row, .auth-card p:has(.btn) { justify-content: center; }
.auth-logo { height: 48px; width: auto; margin: 0 auto 18px; display: block; }

/* Training copy: choose who to be. */
.picker-list { display: grid; gap: 10px; }
.picker-item { display: grid; gap: 2px; text-align: left; cursor: pointer; font: inherit; color: inherit; width: 100%; border: 1px solid var(--color-border); }
.picker-item:hover, .picker-item:focus-visible { border-color: var(--color-primary); background: var(--color-primary-light); }

/* Course editor. */
.course-status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -8px 0 14px; }
.plain-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.plain-fieldset[disabled] { opacity: .75; }
.legend-label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; padding: 0; }
.price-row { align-items: flex-end; border-bottom: 1px dashed var(--color-border); margin-bottom: 10px; }
.price-row .field[hidden] { display: none; }
.price-row .price-remove { flex: 0 0 auto; }
.course-image-preview { max-width: 100%; max-height: 220px; border-radius: var(--radius-sm); object-fit: cover; }
.history-list { list-style: none; padding: 0; margin: 0; }
.history-list li { padding: 6px 0; border-bottom: 1px solid var(--color-border); font-size: .9rem; }
.history-list li:last-child { border-bottom: 0; }

.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 14px; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 0; }
label.check input { width: auto; }
.agreement { background: var(--color-surface-alt); border-radius: var(--radius-sm); padding: 12px 16px; font-size: .92rem; }
.agreement ul { padding-left: 18px; }

/* Review. */
.review-table th[scope="row"] { width: 160px; vertical-align: top; text-align: left; white-space: nowrap; }
.review-table td { vertical-align: top; }
.review-img { max-width: 260px; max-height: 140px; border-radius: var(--radius-sm); }

/* Coach detail. */
.detail-list { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; margin: 0; }
.detail-list dt { font-weight: 600; color: var(--color-text-muted); font-size: .88rem; }
.detail-list dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { .detail-list { grid-template-columns: 1fr; } .detail-list dd { margin-bottom: 8px; } }
.coach-photo { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; }
.share-save { flex: 0 0 auto !important; align-self: flex-end; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; }

/* ---------- Ticketing ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.avail-switch { gap: 10px; }
.avail-switch input { width: 18px; height: 18px; accent-color: #2fb344; }
.ticket-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
@media (max-width: 860px) { .ticket-grid { grid-template-columns: 1fr; } }
.ticket-thread-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.ticket-thread { max-height: 58vh; min-height: 240px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #fbfaf7; }
.tk-msg { max-width: 80%; padding: 8px 12px; border-radius: 12px; font-size: .92rem; }
.tk-meta { font-size: .74rem; color: var(--color-text-muted); margin-bottom: 2px; }
.tk-meta span { margin-left: 6px; }
.tk-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.tk-visitor { align-self: flex-start; background: var(--color-surface-alt); border-bottom-left-radius: 4px; }
.tk-staff { align-self: flex-end; background: var(--color-primary-light); border-bottom-right-radius: 4px; }
.tk-staff.tk-note { background: #fdf3dd; border: 1px dashed var(--color-accent); }
.tk-system { align-self: center; background: none; color: var(--color-text-muted); font-style: italic; font-size: .82rem; text-align: center; }
.tk-system .tk-meta { display: none; }
.ticket-reply { padding: 12px 16px; border-top: 1px solid var(--color-border); background: var(--color-surface); }
.ticket-reply.is-note { background: #fdf3dd; }
.ticket-reply textarea { width: 100%; resize: vertical; }
.ticket-reply-row { justify-content: space-between; align-items: center; margin-top: 8px; }
.ticket-pickup { width: 100%; margin-bottom: 14px; }
.ticket-facts { grid-template-columns: 90px 1fr; font-size: .88rem; }
