/*
 * Demo mode (SMILEGOLF_TOUR_DEMO in functions.php).
 *
 * Turns the tournament site into a plain grey wireframe so the demo shows how
 * entering works without presenting a design. The brand tokens are swapped for
 * greys on body, so the theme and LatePoint's form both pick them up.
 */

body.is-demo {
  --yellow: #e4e4e4;
  --yellow-hover: #d4d4d4;
  --green: #333333;
  --green-hover: #555555;
  --paper: #ffffff;
  --range: #f4f4f4;
  --line: #cccccc;
  --ink: #333333;
  --ink-soft: #707070;
  --font: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --radius: 4px;
}

.is-demo h1,
.is-demo h2,
.is-demo h3 {
  font-weight: 700;
  letter-spacing: 0;
}

/* ---------------------------------- banner */
.demo-banner {
  padding: 0.6rem var(--gutter);
  background: #fff6c2;
  border-bottom: 1px dashed #b3a24a;
  color: #4d4410;
  font-size: var(--step--1);
  text-align: center;
}

/* ---------------------------------- logos */
/* Smile Golf's own logo already says the name, so only "Tournaments" sits
   beside it. */
/* The supplied PNG has wide margins around the artwork, so it needs the height. */
.is-demo .tour-brand img.demo-logo {
  width: auto;
  height: 5rem;
  margin-block: -0.75rem;
}
.is-demo .tour-brand__name { display: none; }
.is-demo .tour-brand__site { margin-top: 0; font-size: var(--step-0); color: var(--ink); }

.is-demo .tour-hero {
  background: var(--range);
  color: var(--ink);
  border-bottom: 1px dashed var(--line);
  padding-block: 3rem;
}

.is-demo .tour-hero__title {
  font-size: var(--step-3);
  max-width: none;
}

.is-demo .button--outline {
  border-color: var(--ink);
  color: var(--ink);
}

/* ---------------------------------- tournament table */
.is-demo .scorecard {
  border: 1px solid var(--line);
  border-radius: 0;
}

.is-demo .scorecard thead th {
  background: var(--range);
  color: var(--ink);
  border-color: var(--line);
}

.is-demo .scorecard__left {
  background: none;
  font-size: var(--step-0);
}

.is-demo .level-tag,
.is-demo .level-tag--beginner,
.is-demo .level-tag--intermediate,
.is-demo .level-tag--advanced {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
}

/* ---------------------------------- levels and steps */
.is-demo .levels-wrap { background: none; border-block: 1px dashed var(--line); }

.is-demo .level,
.is-demo .level--beginner,
.is-demo .level--intermediate {
  border: 1px solid var(--line);
  border-radius: 0;
}

.is-demo .steps li::before {
  background: none;
  border: 1px solid var(--ink);
  font-size: var(--step-0);
}

/* ---------------------------------- footer */
.is-demo .site-footer { border-top: 1px dashed var(--line); }

/* ---------------------------------- LatePoint form */
.is-demo .latepoint-w .latepoint-step-desc-w svg [fill="#E6EEFF"],
.is-demo .latepoint-w .latepoint-step-desc-w svg [fill="#e6eeff"] {
  fill: var(--range) !important;
}
