/* XC — the signed-in platform (SANDBOX ONLY). Dashboards stay calm and simple (owner: Ali's feedback on simplicity):
   the same structure, routes and controls; the presentation becomes editorial — serif titles, an ink greeting band,
   softer cards with depth, gradient primary actions. Scoped to html.xc (added by /redesign/xc.js). */

/* ── V2 athlete app (platform/app.html: .ax-*, .ap-*) ─────────────────────────────────────────────────────── */
html.xc .ax-side, html.xc .ax-sidebar, html.xc nav.ax-nav { background: linear-gradient(180deg, var(--xc-ink-2), var(--xc-night)) !important; }
html.xc .ax-side a, html.xc .ax-nav a { font-family: var(--xc-sans); }
html.xc .ax-card, html.xc .ap-card { border-radius: var(--xc-r) !important; box-shadow: var(--xc-shadow-sm) !important; border: 1px solid var(--xc-line) !important; transition: transform .3s var(--xc-ease), box-shadow .3s; }
html.xc .ax-card:hover { box-shadow: 0 14px 40px rgba(7, 11, 25, .12) !important; }
html.xc .ax-card h2, html.xc .ax-card h3, html.xc .ap-card h2 { font-family: var(--xc-serif); font-weight: 700; letter-spacing: -.005em; }
html.xc .ax-h1, html.xc .ap-h1, html.xc .ax-head h1, html.xc .ax-title { font-family: var(--xc-serif) !important; font-weight: 800 !important; }
html.xc .ap-btn, html.xc .ax-btn { border-radius: 10px; font-family: var(--xc-sans); font-weight: 600; }
html.xc .ap-btn:not(.ap-btn-s), html.xc .ax-btn-p { background: linear-gradient(135deg, var(--xc-blue), var(--xc-blue-hi)) !important; box-shadow: var(--xc-btn-shadow); border: 0 !important; color: #fff !important; }
html.xc .ax-hero, html.xc .ax-welcome, html.xc .ax-greet { background: radial-gradient(900px 400px at 90% -20%, rgba(31, 59, 214, .45), transparent 60%), linear-gradient(135deg, var(--xc-ink-2), var(--xc-ink)) !important; color: #fff !important; border-radius: var(--xc-r) !important; box-shadow: var(--xc-shadow) !important; }
html.xc .ax-hero *, html.xc .ax-welcome *, html.xc .ax-greet * { color: inherit; }
html.xc .ax-main, html.xc .ap-main { background: var(--xc-paper); }

/* ── Coach's Corner (coaches.html: .co-*, .cc-settings-card) ──────────────────────────────────────────────── */
html.xc .co-section-label { font-family: var(--xc-serif) !important; font-size: 22px !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: 0 !important; }
html.xc .cc-settings-card, html.xc .co-card { border-radius: var(--xc-r) !important; box-shadow: var(--xc-shadow-sm) !important; }

/* ── generic signed-in / content pages ────────────────────────────────────────────────────────────────────── */
html.xc main h1 { font-size: clamp(30px, 4vw, 44px); }
html.xc input, html.xc select, html.xc textarea { font-family: var(--xc-sans); border-radius: 10px; }
html.xc input:focus, html.xc select:focus, html.xc textarea:focus { outline: none; border-color: var(--xc-blue) !important; box-shadow: 0 0 0 4px rgba(16, 41, 184, .14); }
html.xc table { font-family: var(--xc-sans); }
html.xc .ax-welcome .ax-outline { background: rgba(255, 255, 255, .08) !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, .45) !important; }
html.xc .ax-welcome .ax-btn-p { background: var(--xc-accent) !important; color: var(--xc-ink) !important; box-shadow: none; }
html.xc .ax-welcome .ax-hello { font-family: var(--xc-serif) !important; font-weight: 800; }
html.xc #ccViewTitle, html.xc .co-pane h2, html.xc #coachDashboard h2, html.xc .cc-pane h2, html.xc main h2 { font-family: var(--xc-serif) !important; font-weight: 700 !important; letter-spacing: -.005em; }
html.xc #ccViewTitle { font-weight: 800 !important; }

/* ═══ the platform experience (both brands) — motion, depth and photography inside the signed-in app ═══════════════ */
/* 1. every view enters with a coordinated, staggered rise (CSS animations run when the app inserts a view, so each
      route change animates without touching app code) */
@keyframes xc-rise { from { opacity: 0; transform: translateY(18px) scale(.995); } to { opacity: 1; transform: none; } }
@keyframes xc-fade { from { opacity: 0; } to { opacity: 1; } }
html.xc.xc-motion .ax-main > *, html.xc.xc-motion #scRoot .ax-view > *, html.xc.xc-motion .ax-content > *,
html.xc.xc-motion .co-pane > *, html.xc.xc-motion #coachDashboard > *, html.xc.xc-motion .cc-form-card > *,
html.xc.xc-motion main > .hm-wrap > *, html.xc.xc-motion .ap-form > * { animation: xc-rise .7s var(--xc-ease) both; }
html.xc.xc-motion .ax-main > *:nth-child(2), html.xc.xc-motion .ax-content > *:nth-child(2), html.xc.xc-motion .cc-form-card > *:nth-child(2) { animation-delay: .06s; }
html.xc.xc-motion .ax-main > *:nth-child(3), html.xc.xc-motion .ax-content > *:nth-child(3), html.xc.xc-motion .cc-form-card > *:nth-child(3) { animation-delay: .12s; }
html.xc.xc-motion .ax-main > *:nth-child(4), html.xc.xc-motion .ax-content > *:nth-child(4), html.xc.xc-motion .cc-form-card > *:nth-child(4) { animation-delay: .18s; }
html.xc.xc-motion .ax-main > *:nth-child(n+5), html.xc.xc-motion .ax-content > *:nth-child(n+5), html.xc.xc-motion .cc-form-card > *:nth-child(n+5) { animation-delay: .24s; }

/* 2. the greeting band becomes a cinematic photographic band (brand photo behind ink, like the CranialCheck hero) */
html.xc .ax-welcome, html.xc .xc-band-photo { position: relative; overflow: hidden; isolation: isolate; }
html.xc .ax-welcome::before, html.xc .xc-band-photo::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--xc-band-photo) right 30% / cover no-repeat; opacity: .38; filter: saturate(1.1); }
html.xc .ax-welcome::after, html.xc .xc-band-photo::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 11, 25, .96) 0%, rgba(10, 20, 80, .82) 45%, rgba(7, 11, 25, .35) 100%); }
html.xc .ax-welcome { min-height: 170px; }

/* 3. the sidebar: ink with a soft glow, an accent bar on the active item, items that glide on hover */
html.xc .ax-side a, html.xc .ax-nav a, html.xc .co-nav a, html.xc .co-side a { position: relative; transition: background .25s, color .25s, transform .25s var(--xc-ease); }
html.xc .ax-side a:hover, html.xc .ax-nav a:hover { transform: translateX(3px); }
html.xc .ax-side a[aria-current="page"], html.xc .ax-side a.on, html.xc .ax-side a.active, html.xc .ax-nav a.on, html.xc .ax-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--xc-accent); }

/* 4. cards: layered depth, a hairline highlight, lift on hover — calm, not busy */
html.xc .ax-card, html.xc .cc-coach-card, html.xc .cc-settings-card, html.xc .hm-start-card, html.xc .cc-form-card {
  background: linear-gradient(180deg, #fff, #fbfcff) !important; box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 10px 30px rgba(7, 11, 25, .07) !important; }
html.xc .cc-coach-card { border-radius: var(--xc-r-sm) !important; border: 1px solid var(--xc-line) !important; transition: transform .3s var(--xc-ease), box-shadow .3s; }
html.xc .cc-coach-card:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(7, 11, 25, .12) !important; }

/* 5. inner pages: an editorial page header — the first heading block of a page gets the serif display treatment */
html.xc .cc-form-page { background: radial-gradient(1000px 500px at 100% -10%, rgba(16, 41, 184, .10), transparent 60%), var(--xc-paper); }
html.xc .cc-form-card { border-radius: 22px !important; border: 1px solid var(--xc-line) !important; }
html.xc .cc-form-card > h1, html.xc .cc-form-page h1 { font-family: var(--xc-serif) !important; font-weight: 800 !important; font-size: clamp(32px, 4.4vw, 48px) !important; text-transform: none !important; letter-spacing: -.01em !important; }
html.xc .cc-tabs { gap: 6px; } html.xc .cc-tabs button { border-radius: 999px !important; font-family: var(--xc-sans); font-weight: 600; transition: background .25s, color .25s, transform .25s var(--xc-ease); }
html.xc .cc-tabs button[aria-selected="true"] { background: var(--xc-ink) !important; color: #fff !important; box-shadow: 0 6px 16px rgba(13, 20, 48, .25); }
html.xc .cc-tabs button:hover { transform: translateY(-1px); }
html.xc [role="tabpanel"]:not([hidden]) { animation: xc-fade .45s var(--xc-ease); }

/* 6. Coach's Corner overview (CourtCheck hub + SwingCheck coaches.html) */
html.xc .ccc-stat { border-radius: 14px !important; transition: transform .3s var(--xc-ease), box-shadow .3s; } html.xc .ccc-stat:hover { transform: translateY(-3px); box-shadow: var(--xc-shadow-sm); }
html.xc .ccc-stat b { font-family: var(--xc-serif); font-size: 30px !important; }
html.xc .ccc-invite { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: linear-gradient(135deg, var(--xc-ink-2), var(--xc-ink)) !important; border: 0 !important; border-radius: var(--xc-r) !important; box-shadow: var(--xc-shadow); }
html.xc .ccc-invite::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--xc-band-photo) right 30% / cover no-repeat; opacity: .25; }
html.xc .ccc-invite h2 { color: #fff; font-family: var(--xc-serif); font-size: 24px !important; } html.xc .ccc-invite .cc-muted { color: rgba(255, 255, 255, .75) !important; }
html.xc .ccc-invite .ccc-code { color: var(--xc-accent); } html.xc .ccc-invite .ccc-link { color: #fff; }
html.xc .co-stat, html.xc .co-kpi { border-radius: 16px !important; border-top: 3px solid var(--xc-accent) !important; }

@media (prefers-reduced-motion: reduce) { html.xc .ax-main > *, html.xc .ax-content > *, html.xc .cc-form-card > *, html.xc [role="tabpanel"] { animation: none !important; } }
html.xc { --xc-band-photo: radial-gradient(420px 220px at 85% 0%, rgba(255,248,220,.35), transparent 70%); }   /* no generated photography (owner standard 2026-12-02) */

/* ═══ DEPTH REFINEMENT for the signed-in platform (owner 2026-12-02): muted page backgrounds instead of white, white
   cards with visible edges, darker secondary text, navy frames (sidebars, greeting bands) and clear inactive controls.
   Layout, routes and controls unchanged; Coach Austin's bottom bar untouched. ═══════════════════════════════════════ */
html.xc .ax-main, html.xc .ap-main, html.xc .ax-content, html.xc .cc-main, html.xc .co-wrap, html.xc .cc-form-page, html.xc body.rc, html.xc .rc-main { background: var(--xc-mist, #eaeef6) !important; }
html.xc .ax-card, html.xc .ap-card, html.xc .cc-card, html.xc .cc-coach-card, html.xc .cc-settings-card, html.xc .cc-form-card, html.xc .co-card, html.xc .rc-card, html.xc .ccc-stat, html.xc .co-stat, html.xc .co-kpi {
  background: #fff !important; border: 1px solid var(--xc-line, #d3d9e6) !important; box-shadow: 0 1px 0 #fff inset, 0 10px 28px rgba(10, 18, 48, .09) !important; }
html.xc .ax-card h2, html.xc .ax-card h3, html.xc .cc-card h3, html.xc .rc-card h2, html.xc .co-section-label, html.xc #ccViewTitle, html.xc .rc-title { color: var(--xc-ink, #0a1230) !important; }
html.xc .ax-muted, html.xc .cc-muted, html.xc .co-muted, html.xc .rc-sub, html.xc .rc-intro, html.xc .rc-src, html.xc:not(.xc-ondark) .sub, html.xc .cc-set-l, html.xc .ap-hint { color: var(--xc-slate, #343e58) !important; }
html.xc .rc-side, html.xc .cc-sidebar, html.xc .co-side { background: linear-gradient(180deg, var(--xc-deep, #0a1450), var(--xc-deep-2, #060d33)) !important; }
html.xc .rc-side, html.xc .rc-side a, html.xc .rc-side button, html.xc .cc-sidebar .cc-nav-item { color: #e6ebf7 !important; }
html.xc .rc-side .is-current, html.xc .rc-side [aria-current="page"], html.xc .cc-nav-item.active { color: #fff !important; box-shadow: inset 3px 0 0 var(--xc-accent); background: rgba(255, 255, 255, .08) !important; }
/* inactive tabs / segmented controls: readable, clearly buttons */
html.xc .cc-tabs button:not([aria-selected="true"]), html.xc .ax-tabs button:not(.on):not([aria-selected="true"]), html.xc .rc-filters select, html.xc .rc-filters input {
  background: #fff !important; color: var(--xc-ink, #0a1230) !important; border: 1px solid #b9c2d6 !important; }
html.xc .rc-btn-ghost, html.xc .btn-s { color: var(--xc-ink, #0a1230) !important; border-color: #b9c2d6 !important; background: #fff !important; }
html.xc .rc-top, html.xc .co-dash-header { background: transparent; }
html.xc table th { color: var(--xc-ink, #0a1230); background: var(--xc-mist-2, #e1e7f1); }
html.xc table td { color: #1f2a44; }
html.xc .cc-card { padding: 22px 26px !important; border-radius: var(--xc-r) !important; }

/* production 2026-12-03: inside the app (body.ax) scrolling stays instant, as before the redesign — app code scrolls to a
   control and measures it (dock clearance, playback controls); smooth scrolling stays on the marketing pages */
html.xc:has(body.ax), html.xc:has(body.cc-app), html.xc:has(.cc-main) { scroll-behavior: auto; }
