/* cca-athletics.mecentral.io — mirrors cca-athletics.org design tokens
   (Tailwind/shadcn theme extracted from their production CSS bundle). */

:root {
  --background: 0 0% 100%;
  --foreground: 215 69% 13%;
  --border: 215 15% 88%;
  --card: 0 0% 99%;
  --card-foreground: 215 69% 13%;
  --card-border: 0 0% 94%;
  --primary: 353 85% 45%;
  --primary-foreground: 0 0% 98%;
  --secondary: 215 20% 93%;
  --secondary-foreground: 215 69% 13%;
  --muted: 215 15% 94%;
  --muted-foreground: 215 25% 40%;
  --accent: 353 45% 94%;
  --accent-foreground: 353 85% 35%;
  --destructive: 353 85% 45%;
  --input: 215 15% 80%;
  --ring: 353 85% 45%;
  --font-sans: 'Inter', sans-serif;
  --font-hand: 'Architects Daughter', cursive;
  --radius: .5rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: 215 50% 7%;
    --foreground: 0 0% 95%;
    --border: 215 30% 18%;
    --card: 215 45% 10%;
    --card-foreground: 0 0% 95%;
    --card-border: 215 35% 14%;
    --primary: 353 85% 50%;
    --primary-foreground: 0 0% 98%;
    --secondary: 215 35% 15%;
    --secondary-foreground: 0 0% 95%;
    --muted: 215 30% 14%;
    --muted-foreground: 215 15% 65%;
    --accent: 215 40% 16%;
    --accent-foreground: 0 0% 95%;
    --input: 215 25% 25%;
    --ring: 353 85% 50%;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Background wash, matching their .public-site--wash treatment */
.cca-wash {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 100% -10%, hsl(var(--primary) / .10), transparent 55%),
    radial-gradient(90% 70% at -5% 25%, hsl(215 50% 40% / .10), transparent 50%);
}

.cca-shell { max-width: 880px; margin: 0 auto; padding: 0 20px 64px; }

/* Header */
.cca-header {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 0 16px; border-bottom: 1px solid hsl(var(--border));
}
.cca-header img { width: 54px; height: 54px; border-radius: 50%; }
.cca-header .t { display: flex; flex-direction: column; }
.cca-header .t strong { font-size: 1.05rem; letter-spacing: .01em; }
.cca-header .t span { font-size: .8rem; color: hsl(var(--muted-foreground)); text-transform: uppercase; letter-spacing: .14em; }
.cca-header .back {
  margin-left: auto; font-size: .85rem; text-decoration: none;
  color: hsl(var(--muted-foreground));
}
.cca-header .back:hover { color: hsl(var(--foreground)); }

/* Hero */
.cca-hero { padding: 42px 0 10px; }
.cca-hero h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.15; margin: 0 0 12px; letter-spacing: -.02em; }
.cca-hero p { max-width: 620px; margin: 0 0 6px; color: hsl(var(--muted-foreground)); font-size: 1.02rem; }

.cca-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0 34px; }
.cca-step {
  background: hsl(var(--card)); border: 1px solid hsl(var(--card-border));
  border-radius: var(--radius); padding: 14px 16px;
}
.cca-step b { display: block; font-size: .92rem; margin-bottom: 3px; }
.cca-step small { color: hsl(var(--muted-foreground)); font-size: .8rem; line-height: 1.4; display: block; }
.cca-step .n {
  display: inline-flex; width: 22px; height: 22px; border-radius: 50%;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  font-size: .75rem; font-weight: 700; align-items: center; justify-content: center;
  margin-bottom: 8px;
}
@media (max-width: 640px) { .cca-steps { grid-template-columns: 1fr; } }

/* Cards / form */
.cca-card {
  background: hsl(var(--card)); border: 1px solid hsl(var(--card-border));
  border-radius: calc(var(--radius) + 4px); padding: 26px 26px 30px; margin-bottom: 22px;
  box-shadow: 0 1px 2px hsl(215 69% 13% / .05);
}
.cca-card h2 { margin: 0 0 4px; font-size: 1.2rem; letter-spacing: -.01em; }
.cca-card .sub { margin: 0 0 20px; font-size: .88rem; color: hsl(var(--muted-foreground)); }

.cca-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .cca-grid2 { grid-template-columns: 1fr; } }

.cca-field { margin-bottom: 16px; }
.cca-field label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 6px; }
.cca-field input[type=text], .cca-field input[type=email] {
  width: 100%; padding: 10px 12px; font: inherit; font-size: .95rem;
  color: hsl(var(--foreground)); background: hsl(var(--background));
  border: 1px solid hsl(var(--input)); border-radius: var(--radius);
}
.cca-field input:focus { outline: 2px solid hsl(var(--ring) / .55); outline-offset: 1px; border-color: hsl(var(--ring)); }
.cca-field .hint { font-size: .78rem; color: hsl(var(--muted-foreground)); margin-top: 5px; }

/* Waiver text panel */
.cca-waiver-text {
  border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  background: hsl(var(--muted) / .5);
  max-height: 300px; overflow-y: auto; padding: 16px 18px;
  font-size: .84rem; color: hsl(var(--foreground) / .9);
}
.cca-waiver-text h3 { margin: 0 0 8px; font-size: .95rem; text-align: center; }
.cca-waiver-text ol { padding-left: 20px; margin: 8px 0; }
.cca-waiver-text li { margin-bottom: 8px; }
.cca-waiver-text .shout { font-weight: 700; }

/* Signature pads */
.cca-sig { margin-bottom: 4px; }
.cca-sig-canvas-wrap {
  position: relative; border: 1px dashed hsl(var(--input));
  border-radius: var(--radius); background: hsl(var(--background));
}
.cca-sig canvas { display: block; width: 100%; height: 120px; touch-action: none; border-radius: var(--radius); cursor: crosshair; }
.cca-sig-line {
  position: absolute; left: 8%; right: 8%; bottom: 26px; height: 1px;
  background: hsl(var(--input)); pointer-events: none;
}
.cca-sig-x { position: absolute; left: 8%; bottom: 30px; color: hsl(var(--muted-foreground)); font-size: .8rem; pointer-events: none; }
.cca-sig-tools { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.cca-sig-tools button {
  font: inherit; font-size: .78rem; padding: 4px 10px; cursor: pointer;
  color: hsl(var(--muted-foreground)); background: hsl(var(--secondary));
  border: 1px solid hsl(var(--border)); border-radius: 999px;
}
.cca-sig-tools button.active { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); border-color: hsl(var(--accent-foreground) / .3); }
.cca-sig-type-input { flex: 1; }
.cca-sig-type-input input {
  width: 100%; padding: 6px 10px; font-family: var(--font-hand); font-size: 1.15rem;
  color: hsl(var(--foreground)); background: hsl(var(--background));
  border: 1px solid hsl(var(--input)); border-radius: var(--radius);
}

.cca-consent { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; font-size: .86rem; }
.cca-consent input { margin-top: 3px; accent-color: hsl(var(--primary)); width: 16px; height: 16px; }

/* Buttons */
.cca-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: .95rem;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  border: 1px solid hsl(353 85% 37%); border-radius: var(--radius);
  padding: 11px 22px; cursor: pointer; width: 100%;
}
.cca-btn:hover { background: hsl(353 85% 41%); }
.cca-btn[disabled] { opacity: .55; cursor: default; }
.cca-error {
  display: none; margin: 14px 0 0; padding: 11px 14px; font-size: .86rem;
  background: hsl(var(--destructive) / .08); color: hsl(var(--destructive));
  border: 1px solid hsl(var(--destructive) / .35); border-radius: var(--radius);
}
.cca-error.show { display: block; }

/* Confirmation view */
.cca-done { display: none; text-align: center; padding: 46px 20px 30px; }
.cca-done.show { display: block; }
.cca-done .badge {
  width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%;
  background: hsl(var(--accent)); color: hsl(var(--accent-foreground));
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
}
.cca-done h2 { margin: 0 0 8px; }
.cca-done p { max-width: 480px; margin: 0 auto 10px; color: hsl(var(--muted-foreground)); font-size: .92rem; }

/* Modal (no JS alerts, ever) */
.cca-modal-backdrop {
  display: none; position: fixed; inset: 0; z-index: 50;
  background: hsl(215 69% 8% / .55); align-items: center; justify-content: center; padding: 20px;
}
.cca-modal-backdrop.show { display: flex; }
.cca-modal {
  background: hsl(var(--card)); color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--card-border)); border-radius: calc(var(--radius) + 4px);
  max-width: 420px; width: 100%; padding: 22px 24px;
}
.cca-modal h3 { margin: 0 0 8px; font-size: 1.05rem; }
.cca-modal p { margin: 0 0 18px; font-size: .88rem; color: hsl(var(--muted-foreground)); }
.cca-modal .cca-btn { width: auto; padding: 8px 18px; }

/* Footer */
.cca-footer {
  border-top: 1px solid hsl(var(--border)); margin-top: 30px; padding: 22px 0 8px;
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  font-size: .8rem; color: hsl(var(--muted-foreground));
}
.cca-footer a { color: hsl(var(--muted-foreground)); }
.cca-footer .mec { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.cca-footer .mec b { color: hsl(var(--foreground)); font-weight: 600; }

/* Admin panel */
.cca-shell-wide { max-width: 1280px; }
.cca-btn-sm {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 600; text-decoration: none;
  padding: 5px 14px; border-radius: var(--radius); white-space: nowrap;
  color: hsl(var(--secondary-foreground)); background: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
}
.cca-btn-sm:hover { background: hsl(var(--muted)); text-decoration: none; }
.cca-btn-sm-primary {
  color: hsl(var(--primary-foreground)); background: hsl(var(--primary));
  border-color: hsl(353 85% 37%);
}
.cca-btn-sm-primary:hover { background: hsl(353 85% 41%); }
.cca-linkbtn {
  font: inherit; font-size: .85rem; background: none; border: none; cursor: pointer;
  color: hsl(var(--muted-foreground)); padding: 0;
}
.cca-linkbtn:hover { color: hsl(var(--foreground)); }
.cca-admin-tablewrap { overflow-x: auto; }
.cca-admin-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.cca-admin-table th {
  text-align: left; padding: 10px 12px; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .08em; color: hsl(var(--muted-foreground));
  border-bottom: 1px solid hsl(var(--border));
}
.cca-admin-table td { padding: 11px 12px; border-bottom: 1px solid hsl(var(--border) / .5); vertical-align: top; }
.cca-admin-table tr:last-child td { border-bottom: none; }
.cca-admin-table code { font-size: .8rem; background: hsl(var(--muted)); padding: 2px 6px; border-radius: 4px; }
.cca-admin-table .dim { color: hsl(var(--muted-foreground)); }
.cca-admin-actions { white-space: nowrap; }
.cca-admin-actions .cca-btn-sm { margin-right: 8px; }
.cca-admin-actions .cca-btn-sm:last-child { margin-right: 0; }
.cca-admin-pager { padding: 12px; display: flex; gap: 10px; font-size: .85rem; }
