/* Manager "Coming soon" stub pages (Oct 22 2026): /cmc-manager.html, /pineville-manager.html, /winston-manager.html.
   Same look as the Cabarrus Manager design (site .top header fade, soft shadows, storybook headings) in all three
   themes. Static pages only: no data, no sign-in, no scripts beyond the shared theme picker. */
/* ---------- tokens ---------- */
body.cm-page {
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px;
  --cm-r: 16px; --cm-r-sm: 10px;
  --cm-ink: #f4f7fb; --cm-muted: #c4b5e0; --cm-soft: rgba(196,181,224,.72);
  --cm-gold: #E2B65C; --cm-accent: #e879f9; --cm-accent-2: #c026d3;
  --cm-card: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.03));
  --cm-card-solid: rgba(26,14,52,.72);
  --cm-line: rgba(232,121,249,.14); --cm-line-2: rgba(255,255,255,.07);
  --cm-well: rgba(0,0,0,.18);
  --cm-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 1px 2px rgba(0,0,0,.25), 0 10px 30px -12px rgba(0,0,0,.55);
  --cm-shadow-up: 0 1px 0 rgba(255,255,255,.06) inset, 0 2px 4px rgba(0,0,0,.25), 0 18px 40px -14px rgba(0,0,0,.6), 0 0 24px -6px rgba(232,121,249,.18);
  --cm-grid: rgba(255,255,255,.07); --cm-axis: rgba(255,255,255,.22); --cm-tick: rgba(196,181,224,.85);
  --cm-c1: #e879f9; --cm-c1-soft: rgba(232,121,249,.38); --cm-c2: #E2B65C;
  --cm-seg0: #e879f9; --cm-seg1: #E2B65C; --cm-seg2: #a78bfa; --cm-seg3: #67e8f9; --cm-seg4: #94a3b8;
  --cm-focus: 0 0 0 3px rgba(226,182,92,.28), 0 0 18px rgba(232,121,249,.30);
  --cm-head: "IM Fell English SC", "Playfair Display", Georgia, serif;
  --cm-body: "EB Garamond", Georgia, serif;
  --cm-sans: "Source Sans 3", system-ui, sans-serif;
  --cm-num: Outfit, "Source Sans 3", system-ui, sans-serif;
  --cm-ok: #34d399; --cm-busy: #f472b6; --cm-stale: #94a3b8; --cm-none: rgba(196,181,224,.45);
  --cm-good: #34d399; --cm-okay: #a3e635; --cm-stretched: #fbbf24; --cm-heavy: #fb923c; --cm-burnout: #f87171;
}
html[data-theme="maroon"] body.cm-page {
  --cm-r: 14px; --cm-r-sm: 8px;
  --cm-ink: #1F1A1D; --cm-muted: #5E5459; --cm-soft: #7A6B72;
  --cm-gold: #B48A3C; --cm-accent: #8A1538; --cm-accent-2: #5C0632;
  --cm-card: linear-gradient(180deg, rgba(255,253,249,.94), rgba(251,246,240,.9));
  --cm-card-solid: #FFFDF9;
  --cm-line: rgba(92,6,50,.10); --cm-line-2: rgba(92,6,50,.07);
  --cm-well: rgba(92,6,50,.035);
  --cm-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 1px 2px rgba(60,10,30,.06), 0 10px 28px -14px rgba(60,10,30,.22);
  --cm-shadow-up: 0 1px 0 rgba(255,255,255,.9) inset, 0 2px 6px rgba(60,10,30,.08), 0 18px 40px -16px rgba(60,10,30,.30);
  --cm-grid: rgba(92,6,50,.07); --cm-axis: rgba(92,6,50,.24); --cm-tick: #6E6166;
  --cm-c1: #8A1538; --cm-c1-soft: rgba(138,21,56,.30); --cm-c2: #B48A3C;
  --cm-seg0: #8A1538; --cm-seg1: #B48A3C; --cm-seg2: #C76B86; --cm-seg3: #6B4C5A; --cm-seg4: #CDBFC5;
  --cm-focus: 0 0 0 3px rgba(180,138,60,.30), 0 0 16px rgba(138,21,56,.14);
  --cm-ok: #15803d; --cm-busy: #be185d; --cm-stale: #8a8086; --cm-none: #CDBFC5;
  --cm-good: #2f855a; --cm-okay: #7c9a2f; --cm-stretched: #c08a1e; --cm-heavy: #c2622d; --cm-burnout: #b42d3d;
}
html[data-theme="enterprise"] body.cm-page {
  --cm-r: 12px; --cm-r-sm: 8px;
  --cm-ink: #14202E; --cm-muted: #405068; --cm-soft: #5A6B80;
  --cm-gold: #C8902E; --cm-accent: #1A6E8E; --cm-accent-2: #0F3550;
  --cm-card: linear-gradient(180deg, rgba(255,255,255,.88), rgba(246,249,252,.84));
  --cm-card-solid: #FCFDFE;
  --cm-line: rgba(15,53,80,.10); --cm-line-2: rgba(15,53,80,.07);
  --cm-well: rgba(15,53,80,.035);
  --cm-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 1px 2px rgba(11,42,64,.06), 0 10px 28px -14px rgba(11,42,64,.24);
  --cm-shadow-up: 0 1px 0 rgba(255,255,255,.9) inset, 0 2px 6px rgba(11,42,64,.08), 0 18px 40px -16px rgba(11,42,64,.32);
  --cm-grid: rgba(15,53,80,.07); --cm-axis: rgba(15,53,80,.25); --cm-tick: #52627A;
  --cm-c1: #1A6E8E; --cm-c1-soft: rgba(26,110,142,.30); --cm-c2: #C8902E;
  --cm-seg0: #0F3550; --cm-seg1: #1A6E8E; --cm-seg2: #C8902E; --cm-seg3: #7FB3C9; --cm-seg4: #C4CFDB;
  --cm-focus: 0 0 0 3px rgba(26,110,142,.26), 0 0 16px rgba(200,144,46,.18);
  --cm-ok: #15803d; --cm-busy: #b4235a; --cm-stale: #7a8798; --cm-none: #C4CFDB;
  --cm-good: #2f855a; --cm-okay: #6f9a2a; --cm-stretched: #b7861b; --cm-heavy: #c0622b; --cm-burnout: #b4303f;
}

body.cm-page [hidden] { display: none !important; }

/* ---------- header (site .top fade) + Manager view badge ---------- */
body.cm-page .cm-top { margin-bottom: var(--s3) !important; }
body.cm-page .cm-top h1 { font-family: var(--cm-head) !important; font-weight: 400 !important; letter-spacing: .01em; font-size: clamp(30px, 3.6vw, 44px) !important; line-height: 1.1 !important; margin: var(--s1) 0 var(--s1) !important; }
html:not([data-theme="maroon"]):not([data-theme="enterprise"]) body.cm-page .cm-top {
  /* Classic: a soft dusk fade in the same family as the Maroon/Enterprise header bands */
  position: relative; margin: 0 calc(-1 * clamp(16px, 4vw, 56px)) var(--s3) !important; padding: var(--s4) clamp(16px, 4vw, 56px) var(--s3) !important;
  background: radial-gradient(900px 320px at 85% -40%, rgba(245,215,110,.14), transparent 60%), linear-gradient(120deg, #2a0a4a 0%, #4a1470 45%, #6d28d9 80%, #7c3aed 100%);
  border-bottom: 1px solid rgba(226,182,92,.45); box-shadow: 0 18px 40px -18px rgba(10,4,22,.7);
}
html:not([data-theme="maroon"]):not([data-theme="enterprise"]) body.cm-page .cm-top .eyebrow::before {
  content: ""; display: block; width: 44px; height: 2px; background: #E2B65C; margin: 0 0 12px; border-radius: 2px;
}
body.cm-page .cm-top .sub { max-width: 62ch; }
body.cm-page .cm-top .top-actions { align-items: center; gap: var(--s1); }
.cm-badge {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 999px;
  font-family: var(--cm-sans); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #2A1A05 !important; background: linear-gradient(135deg, #F3D9A4, #E2B65C 55%, #C8902E);
  box-shadow: 0 1px 0 rgba(255,255,255,.55) inset, 0 6px 18px -6px rgba(0,0,0,.45); white-space: nowrap;
}
.cm-badge-star { font-size: 11px; color: #5C3A06 !important; }

/* ---------- cards ---------- */
body.cm-page .cm-card {
  position: relative; min-width: 0;
  background: var(--cm-card); border: 1px solid var(--cm-line); border-radius: var(--cm-r);
  box-shadow: var(--cm-shadow); padding: var(--s3); color: var(--cm-ink);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: box-shadow .35s cubic-bezier(.22,.61,.36,1), transform .35s cubic-bezier(.22,.61,.36,1), border-color .35s;
}
@media (hover: hover) { body.cm-page .cm-card:hover { box-shadow: var(--cm-shadow-up); } }
body.cm-page .cm-kicker { margin: 0 0 4px; font-family: var(--cm-sans); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cm-gold) !important; }
body.cm-page .cm-card h2, body.cm-page .cm-section h2 {
  margin: 0; font-family: var(--cm-head) !important; font-weight: 400 !important; font-size: 24px !important; line-height: 1.2 !important;
  letter-spacing: .01em; color: var(--cm-ink) !important; -webkit-text-fill-color: currentColor !important; background: none !important;
}
body.cm-page .cm-section-sub, body.cm-page .cm-foot-note { margin: var(--s1) 0 0; font-family: var(--cm-sans); font-size: 13px; line-height: 1.5; color: var(--cm-muted) !important; max-width: 70ch; }

.cm-btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer; font-family: var(--cm-sans); font-size: 14px; font-weight: 700;
  transition: transform .2s cubic-bezier(.22,.61,.36,1), box-shadow .25s, filter .25s, background .25s;
}
.cm-btn-sm { height: 32px; padding: 0 14px; font-size: 13px; }
.cm-btn-primary { color: #fff; background: linear-gradient(135deg, var(--cm-accent), var(--cm-accent-2)); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 2px 4px rgba(0,0,0,.14), 0 8px 20px -8px var(--cm-c1-soft); }
html:not([data-theme="maroon"]):not([data-theme="enterprise"]) .cm-btn-primary { color: #1a0533; background: linear-gradient(135deg, #f0abfc, #e879f9 40%, #c026d3); }
.cm-btn-ghost { color: var(--cm-ink); background: var(--cm-well); border-color: var(--cm-line); }

.cm-btn:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 4px 8px rgba(0,0,0,.14), 0 14px 28px -10px var(--cm-c1-soft); }
.cm-btn:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 1px 2px rgba(0,0,0,.18); }
body.cm-page :focus-visible { outline: none !important; box-shadow: var(--cm-focus) !important; border-radius: 999px; }

/* ---------- Coming soon card ---------- */
body.cm-page .ms-main { display: grid; place-items: start center; padding: var(--s3) 0 var(--s4); }
body.cm-page .ms-card { width: min(720px, 100%); padding: var(--s4); text-align: center; }
body.cm-page .ms-icon {
  width: 72px; height: 72px; margin: 0 auto var(--s3); border-radius: 50%; display: grid; place-items: center;
  background: var(--cm-well); border: 1px solid var(--cm-line); color: var(--cm-gold);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 8px 22px -10px var(--cm-c1-soft);
}
body.cm-page .ms-icon svg { width: 34px; height: 34px; }
body.cm-page .ms-card h2 { font-size: clamp(26px, 3vw, 32px) !important; }
body.cm-page .ms-status {
  display: inline-flex; align-items: center; gap: 8px; margin: var(--s2) 0 0; padding: 6px 14px; border-radius: 999px;
  font-family: var(--cm-sans); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cm-ink); background: var(--cm-well); border: 1px solid var(--cm-line);
}
body.cm-page .ms-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cm-gold); box-shadow: 0 0 0 3px rgba(226,182,92,.22); }
body.cm-page .ms-msg { margin: var(--s3) auto 0; max-width: 52ch; font-family: var(--cm-sans); font-size: 16px; line-height: 1.6; color: var(--cm-muted) !important; }
body.cm-page .ms-msg strong { color: var(--cm-ink) !important; font-weight: 700; }
body.cm-page .ms-actions { margin-top: var(--s4); display: flex; justify-content: center; gap: var(--s1); flex-wrap: wrap; }
body.cm-page .ms-actions .cm-btn { height: 44px; padding: 0 24px; text-decoration: none; }
body.cm-page .ms-foot { margin: var(--s3) 0 0; font-family: var(--cm-sans); font-size: 13px; color: var(--cm-soft) !important; }

/* Theme link colors must not repaint the primary button text */
html[data-theme="enterprise"] body.cm-page a.cm-btn-primary,
html[data-theme="maroon"] body.cm-page a.cm-btn-primary { color: #fff !important; -webkit-text-fill-color: #fff !important; }
html:not([data-theme="maroon"]):not([data-theme="enterprise"]) body.cm-page a.cm-btn-primary { color: #1a0533 !important; -webkit-text-fill-color: #1a0533 !important; }

/* ---------- phone ---------- */
@media (max-width: 640px) {
  body.cm-page .cm-top .top-actions { grid-column: 1 / -1; grid-row: auto; justify-self: start; }
  .cm-badge { height: 32px; padding: 0 12px; font-size: 11px; }
  body.cm-page .ms-main { padding: var(--s2) 0 var(--s3); }
  body.cm-page .ms-card { padding: var(--s3) var(--s2); }
  body.cm-page .ms-actions .cm-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  body.cm-page *, body.cm-page *::before, body.cm-page *::after { animation: none !important; transition: none !important; }
}
