/* ================================================
   Rock Stepper Workouts — Shared Spoke Page CSS
   Link from all spoke pages:
   <link rel="stylesheet" href="spoke-styles.css">
   ================================================ */

:root {
  --rose:       #C07C80;
  --rose-light: #F2E8E8;
  --rose-deep:  #A35F62;
  --sage:       #7A9E8E;
  --sage-light: #EAF2EE;
  --cream:      #FDFAF6;
  --sand:       #F5EFE6;
  --warm-white: #FFFFFF;
  --text:       #2C2C2C;
  --text-mid:   #5A5A5A;
  --text-light: #909090;
  --border:     #E8DDD5;
  --border-soft:#F0E9E1;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--cream);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ---- Typography ---- */
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.25; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 700; margin-bottom: 16px; }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 700; margin-bottom: 12px; color: var(--text); }
h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
p  { margin-bottom: 16px; color: var(--text-mid); }
a  { color: var(--rose-deep); }
strong { color: var(--text); font-weight: 600; }

.eyebrow {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--rose); display: block; margin-bottom: 8px;
}

/* ---- Layout ---- */
.container { max-width: 780px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253,250,246,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  padding: 0 20px;
}
.nav-inner {
  max-width: 1040px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; height: 60px; gap: 16px;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem; font-weight: 700;
  color: var(--rose-deep); text-decoration: none; white-space: nowrap;
}
.nav-logo span { color: var(--text-mid); font-weight: 400; }
.nav-links { display: flex; gap: 20px; list-style: none; align-items: center; }
.nav-links a { color: var(--text-mid); text-decoration: none; font-size: 0.83rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--rose-deep); }
.nav-cta {
  background: var(--rose); color: #fff;
  padding: 9px 18px; border-radius: 50px;
  font-size: 0.82rem; font-weight: 700;
  text-decoration: none; white-space: nowrap;
  transition: background 0.2s; flex-shrink: 0;
}
.nav-cta:hover { background: var(--rose-deep); }
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--text); }
.nav-mobile-menu { display: none; background: var(--warm-white); border-top: 1px solid var(--border-soft); padding: 16px 20px 24px; }
.nav-mobile-menu.open { display: block; }
.nav-mobile-menu a { display: block; padding: 11px 0; font-size: 0.95rem; color: var(--text-mid); text-decoration: none; border-bottom: 1px solid var(--border-soft); }
.nav-mobile-menu .nav-cta { display: block; text-align: center; margin-top: 16px; border-radius: 50px; padding: 13px; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  background: var(--warm-white);
}
.breadcrumb-inner {
  max-width: 780px; margin: 0 auto; padding: 0 20px;
  font-size: 0.78rem; color: var(--text-light);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--rose-deep); }
.breadcrumb-sep { color: var(--border); }

/* ---- Article Hero ---- */
.article-hero {
  background: linear-gradient(160deg, #FDF8F4 0%, #F9EEE8 100%);
  padding: 48px 20px 40px;
  border-bottom: 1px solid var(--border-soft);
}
.article-hero .container { max-width: 780px; }
.hero-meta { font-size: 0.78rem; color: var(--text-light); margin-bottom: 16px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-meta span { display: flex; align-items: center; gap: 4px; }
.article-hero p { font-size: 1.05rem; color: var(--text-mid); max-width: 640px; margin-bottom: 0; }

/* ---- Quick Answer Box ---- */
.quick-answer {
  background: var(--sage-light);
  border-left: 3px solid var(--sage);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 32px 0;
}
.quick-answer .qa-label {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 8px; display: block;
}
.quick-answer p { color: var(--text); margin-bottom: 0; font-size: 0.95rem; }

/* ---- Main Article ---- */
.article-body { padding: 40px 0 60px; }
.article-body h2 { margin-top: 36px; margin-bottom: 14px; }
.article-body h2:first-child { margin-top: 0; }

/* ---- Tip List ---- */
.tip-list { list-style: none; margin: 12px 0 20px; }
.tip-list li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 0.93rem;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border-soft);
}
.tip-list li:last-child { border-bottom: none; }
.tip-list li::before { content: '→'; position: absolute; left: 0; color: var(--rose); }
.tip-list li strong { color: var(--text); }

/* ---- Numbered Steps ---- */
.steps { list-style: none; margin: 16px 0 24px; counter-reset: steps; }
.steps li {
  counter-increment: steps;
  padding: 14px 16px 14px 52px;
  position: relative;
  margin-bottom: 10px;
  background: var(--warm-white);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  font-size: 0.92rem;
  color: var(--text-mid);
}
.steps li::before {
  content: counter(steps);
  position: absolute; left: 14px; top: 12px;
  width: 26px; height: 26px;
  background: var(--rose);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700; font-size: 0.85rem;
}
.steps li strong { color: var(--text); display: block; margin-bottom: 4px; }

/* ---- Callout ---- */
.callout {
  border-left: 3px solid var(--rose);
  background: var(--rose-light);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px; margin: 24px 0;
}
.callout p { margin-bottom: 0; font-size: 0.9rem; color: var(--text-mid); }
.callout strong { color: var(--rose-deep); }
.callout.sage { border-left-color: var(--sage); background: var(--sage-light); }
.callout.sage p { color: #3d5e54; }
.callout.sage strong { color: #2a5044; }

/* ---- Mistake Grid ---- */
.mistake-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0 24px; }
.mistake-card {
  border-radius: 12px; padding: 18px 20px;
  border: 1px solid var(--border-soft);
}
.mistake-card.wrong { background: #fff5f5; border-color: #f5c6c6; }
.mistake-card.right { background: var(--sage-light); border-color: #b5d9cb; }
.mistake-card .card-label {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 8px; display: block;
}
.mistake-card.wrong .card-label { color: #c0392b; }
.mistake-card.right .card-label { color: var(--sage); }
.mistake-card p { font-size: 0.85rem; margin-bottom: 0; color: var(--text-mid); }

/* ---- Accessory Rec ---- */
.accessory-rec {
  background: var(--sand);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 32px 0;
  display: flex; gap: 20px; align-items: flex-start;
}
.acc-icon { font-size: 2.2rem; flex-shrink: 0; }
.acc-body h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.acc-body p { font-size: 0.86rem; color: var(--text-mid); margin-bottom: 12px; }
.acc-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--rose); color: #fff;
  padding: 9px 18px; border-radius: 50px;
  font-size: 0.82rem; font-weight: 700;
  text-decoration: none; transition: background 0.2s;
}
.acc-link:hover { background: var(--rose-deep); }

/* ---- Related Articles ---- */
.related-articles {
  background: var(--warm-white);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 36px 0;
}
.related-articles h4 {
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-light); margin-bottom: 14px;
}
.related-list { list-style: none; }
.related-list li { border-bottom: 1px solid var(--border-soft); }
.related-list li:last-child { border-bottom: none; }
.related-list a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 0;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
}
.related-list a:hover { color: var(--rose-deep); }
.related-list .arrow { color: var(--rose); font-size: 0.8rem; flex-shrink: 0; }

/* ---- Challenge CTA ---- */
.challenge-cta {
  background: linear-gradient(135deg, #C07C80 0%, #A35F62 100%);
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
  margin: 40px 0;
}
.challenge-cta h3 { color: #fff; font-size: 1.4rem; margin-bottom: 10px; }
.challenge-cta p { color: rgba(255,255,255,0.85); font-size: 0.92rem; margin-bottom: 24px; }
.challenge-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--rose-deep);
  padding: 14px 32px; border-radius: 50px;
  font-weight: 700; font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.challenge-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,0.2); }

/* ---- FAQ ---- */
.faq-section { padding: 48px 0; background: var(--warm-white); border-top: 1px solid var(--border-soft); }
.faq-section h2 { margin-bottom: 24px; }
.faq-item { border: 1px solid var(--border-soft); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: var(--cream);
  color: var(--text); border: none; cursor: pointer;
  padding: 16px 20px; font-size: 0.92rem; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: 'DM Sans', sans-serif; transition: background 0.18s; min-height: 56px;
}
.faq-q:hover { background: var(--rose-light); }
.faq-arrow { color: var(--rose); flex-shrink: 0; transition: transform 0.28s; }
.faq-item.open .faq-arrow { transform: rotate(45deg); }
.faq-a { background: var(--warm-white); max-height: 0; overflow: hidden; transition: max-height 0.35s ease; padding: 0 20px; }
.faq-item.open .faq-a { max-height: 300px; padding: 16px 20px; }
.faq-a p { font-size: 0.88rem; color: var(--text-mid); margin-bottom: 0; }

/* ---- Footer ---- */
footer {
  background: #2C2C2C; color: #888;
  padding: 40px 20px 28px; text-align: center;
}
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin-bottom: 24px; list-style: none; }
.footer-links a { color: #777; font-size: 0.8rem; text-decoration: none; transition: color 0.18s; }
.footer-links a:hover { color: var(--rose); }
.footer-disclaimer { font-size: 0.72rem; color: #555; max-width: 640px; margin: 0 auto 10px; line-height: 1.6; }
.footer-disclaimer a { color: #666; }

/* ---- Print ---- */
@media print {
  .nav, .nav-mobile-toggle, .challenge-cta, .nav-cta, footer .footer-links { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .article-hero { background: none; padding: 16px 0; }
  section { padding: 12px 0; }
  .mistake-grid { grid-template-columns: 1fr 1fr; }
  @page { margin: 1in; }
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-mobile-toggle { display: block; }
  .article-hero { padding: 36px 16px 28px; }
  .mistake-grid { grid-template-columns: 1fr; }
  .accessory-rec { flex-direction: column; }
  .challenge-cta { padding: 28px 20px; }
  .related-articles { padding: 20px; }
}
