/* ==========================================================================
   XO Stats — help guide shared styles
   Used by: help/admin-onboarding.html, help/statkeeper-gameday-guide.html
   ========================================================================== */

/* === Dark theme === */
body {
  background: var(--obsidian);
  color: #fff;
  --ink: #fff;
  --ink-mute: rgba(255,255,255,0.60);
  --ink-faint: rgba(255,255,255,0.40);
  --card: rgba(255,255,255,0.06);
  --rule: rgba(255,255,255,0.12);
  --rule-strong: rgba(255,255,255,0.22);
  --citrus-tint: rgba(162,255,0,0.12);
  --aqua-tint: rgba(20,68,68,0.55);
  --warn-tint: rgba(181,61,0,0.28);
}
.lede { color: rgba(255,255,255,0.75); }
a { color: rgba(255,255,255,0.85); }
a:hover { color: var(--citrus); }
.eyebrow { color: var(--citrus); }
.step-body ul li::before { background: var(--citrus); }
.step-body ol li::before { color: var(--citrus); }
.callout--tip .callout-label,
.callout--note .callout-label { color: var(--citrus); }
.callout--note { border-color: var(--citrus); }
.callout--important { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.22); }
.callout--important .callout-label { color: rgba(255,255,255,0.85); }
.step-locator { border-left-color: var(--citrus); }
.locator-label { color: var(--citrus); }
.colophon { border-top-color: rgba(255,255,255,0.15); }

/* Eyebrow margin-bottom override for doc pages (site.css: 20px) */
.eyebrow { margin-bottom: 24px; }

/* ---------- Doc body ---------- */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 32px 48px;
}

/* ---------- Intro ---------- */
.intro { margin-bottom: 72px; }

h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(40px, 7.6vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  margin: 0 0 24px;
  color: var(--ink);
}
.lede {
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.45;
  color: var(--obsidian-soft);
  max-width: 540px;
  margin: 0 0 36px;
}

.stats {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
}
.stats > div {
  flex: 1 1 0;
  min-width: 110px;
  padding-right: 20px;
}
.stats > div + div {
  padding-left: 20px;
  border-left: 1px solid var(--rule);
}
.stats dt {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 4px;
}
.stats dd {
  margin: 0;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 30px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.stats dd .unit {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-left: 4px;
  font-weight: 500;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.step {
  padding: 56px 0;
  border-top: 1px solid var(--rule);
  position: relative;
  page-break-inside: avoid;
  break-inside: avoid;
}
.step:last-child { border-bottom: 1px solid var(--rule); }

.step-num {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(64px, 11vw, 104px);
  line-height: 0.82;
  letter-spacing: -0.02em;
  color: var(--ink);
  position: relative;
  margin: 0 0 14px;
  padding-bottom: 6px;
}
.step-num::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0.55em;
  height: 8px;
  background: var(--citrus);
}

.step-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(24px, 3.4vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--ink);
}

.step-locator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  color: var(--ink-mute);
  margin: 0 0 28px;
  padding: 8px 14px 8px 12px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--aqua);
}
.locator-label {
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--aqua);
  font-weight: 600;
}
.step-locator em {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
}

.step-body p { margin: 0 0 16px; }
.step-body p:last-child { margin-bottom: 0; }

.step-body ul,
.step-body ol {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.step-body ul li,
.step-body ol li {
  position: relative;
  padding: 6px 0 6px 24px;
  border-bottom: 1px dashed var(--rule);
  font-size: 15.5px;
}
.step-body ul li:last-child,
.step-body ol li:last-child { border-bottom: none; }
.step-body ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 16px;
  width: 6px;
  height: 6px;
  background: var(--obsidian);
}
.step-body ol { counter-reset: substep; }
.step-body ol li {
  counter-increment: substep;
}
.step-body ol li::before {
  content: counter(substep, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 6px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--aqua);
  letter-spacing: 0.06em;
}

.step-body strong {
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Callouts ---------- */
.callout {
  margin: 24px 0 0;
  padding: 18px 22px;
  border-left: 4px solid var(--rule-strong);
  background: var(--card);
  font-size: 15px;
  line-height: 1.55;
  page-break-inside: avoid;
  break-inside: avoid;
}
.callout p { margin: 0; }
.callout p + p { margin-top: 8px; }
.callout-label {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-right: 10px;
  color: var(--ink);
}

.callout--tip {
  border-color: var(--citrus);
  background: var(--citrus-tint);
}
.callout--tip .callout-label { color: var(--aqua); }

.callout--note {
  border-color: var(--aqua);
  background: var(--aqua-tint);
}
.callout--note .callout-label { color: var(--aqua); }

.callout--important {
  border-color: var(--obsidian);
  background: #F2F1EC;
}
.callout--important .callout-label { color: var(--obsidian); }

.callout--warning {
  border-color: var(--warn);
  background: var(--warn-tint);
}
.callout--warning .callout-label { color: var(--warn); }

/* ---------- Colophon / Footer ---------- */
.colophon {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 32px 64px;
  border-top: 3px solid var(--obsidian);
  position: relative;
}
.colophon::before {
  content: '';
  position: absolute;
  left: 32px;
  top: -3px;
  width: 80px;
  height: 3px;
  background: var(--citrus);
}
.colophon-statement {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: clamp(20px, 2.8vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 24px 0 16px;
  max-width: 560px;
}
.colophon-contact {
  font-size: 15px;
  color: var(--ink-mute);
  margin: 0 0 32px;
}
.colophon-contact a { font-weight: 600; }
.colophon-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.mark-dot {
  width: 8px;
  height: 8px;
  background: var(--citrus);
  display: inline-block;
}

/* ---------- Mobile ---------- */
@media (max-width: 540px) {
  .doc { padding: 44px 20px 36px; }
  .intro { margin-bottom: 48px; }
  .step { padding: 40px 0; }
  .stats > div { flex: 1 1 50%; min-width: 0; padding: 12px 16px; }
  .stats > div + div { border-left: none; padding-left: 16px; }
  .stats { border-top: 1px solid var(--rule); padding-top: 0; }
  .colophon { padding: 40px 20px 48px; }
  .colophon::before { left: 20px; }
  .step-locator { font-size: 13px; }
}

/* ---------- Print ---------- */
@media print {
  :root { --paper: #fff; --card: #fff; }
  @page { margin: 14mm 14mm 18mm; }
  body { background: #fff; font-size: 11pt; line-height: 1.45; }
  .doc { padding: 16pt 0 0; max-width: none; }
  h1 { font-size: 32pt; }
  .lede { font-size: 13pt; }
  .step { padding: 18pt 0; page-break-inside: avoid; }
  .step + .step { page-break-before: auto; }
  .step-num { font-size: 56pt; }
  .step-num::after { background: var(--obsidian); }
  .step-title { font-size: 18pt; }
  .callout {
    background: #fff !important;
    border: 1px solid var(--ink-mute);
    border-left: 4px solid var(--obsidian);
  }
  .callout--tip { border-left-color: var(--aqua); }
  .callout--note { border-left-color: var(--aqua); }
  .callout--important { border-left-color: var(--obsidian); }
  .callout--warning { border-left-color: var(--warn); }
  .colophon { padding: 24pt 0; }
  .colophon::before { display: none; }
  .step-locator { background: #fff; border-color: var(--rule-strong); }
  a { color: var(--ink); }
  a[href^="mailto:"]::after { content: ""; }
}
