/* =========================================================================
   GUIDE PAGES — long-form reference layout for the AI-search hub
   (/kettlebell-complexes/ and its 3 sub-pages)

   Distinct from the rest of the site on purpose: those pages are short,
   persuasive, mobile-first scrolls built to convert ad/organic traffic in
   one pass. These are dense reference pages built to be read, extracted by
   crawlers, and occasionally skimmed on a wide desktop monitor. Same brand
   tokens (colors, fonts) from styles.css — different structural layout.
   Load this AFTER styles.css.
   ========================================================================= */

/* ---------- Breadcrumb (hierarchy signal for crawlers + orientation for humans) ---------- */
.guide-breadcrumb {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.guide-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.guide-breadcrumb a:hover { color: var(--text); }

.guide-breadcrumb .sep {
  margin: 0 8px;
  color: var(--text-dim);
}

.guide-breadcrumb [aria-current="page"] { color: var(--text-dim); }

/* ---------- Page header (title + credibility line, not a persuasive hero) ---------- */
.guide-header {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border);
}

.guide-header .container { max-width: 760px; }

.guide-kicker {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}

.guide-header h1 {
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.05;
  margin-bottom: 16px;
}

.guide-dek {
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 620px;
}

.guide-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  color: var(--text-dim);
}

.guide-byline img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--border);
}

.guide-byline strong { color: var(--text-muted); font-weight: 600; }

.guide-updated {
  flex-basis: 100%;
  margin-top: 2px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  color: var(--text-dim);
}

/* Short first-person note from Pat — humanizes a page a cold visitor landed on. */
.guide-frompat {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 48px;
  padding: 22px 24px;
  background: var(--surface-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.guide-frompat img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.guide-frompat .label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.guide-frompat p.note { margin: 0; line-height: 1.5; }

/* ---------- Two-column shell: sticky TOC (desktop) + reading column ---------- */
.guide-layout {
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px var(--gutter) 64px;
}

/* Mobile: collapsible jump menu instead of a sidebar */
.guide-jump {
  display: block;
  margin-bottom: 32px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.guide-jump summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 18px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.guide-jump summary::-webkit-details-marker { display: none; }

.guide-jump summary::after {
  content: "+";
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
}

.guide-jump[open] summary::after { content: "\2212"; }

.guide-jump ol {
  list-style: none;
  padding: 0 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-jump a {
  font-size: 15px;
  color: var(--text-muted);
  text-decoration: none;
}

.guide-jump a:hover { color: var(--text); }

/* Desktop sidebar TOC — hidden on mobile, shown at the 1024px breakpoint below */
.guide-toc {
  display: none;
}

.guide-body {
  max-width: 720px;
  margin: 0 auto;
}

/* ---------- Body typography (sentence-case, reading-optimized) ---------- */
/* Anton/uppercase stays reserved for the page H1 and CTA blocks — brand
   "big moments" — not for dense instructional subheads, which need to be
   scannable at small sizes without shouting. */
.guide-body h2 {
  font-family: 'Inter', system-ui, sans-serif;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 800;
  font-size: clamp(24px, 4vw, 30px);
  line-height: 1.2;
  margin: 48px 0 16px;
  scroll-margin-top: 24px;
}

.guide-body h3 {
  font-family: 'Inter', system-ui, sans-serif;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 700;
  font-size: clamp(19px, 3vw, 22px);
  line-height: 1.3;
  margin: 32px 0 12px;
  scroll-margin-top: 24px;
}

.guide-body p {
  margin-bottom: 18px;
  max-width: 68ch;
}

.guide-body ul,
.guide-body ol {
  margin: 0 0 20px;
  padding-left: 22px;
}

.guide-body li {
  margin-bottom: 10px;
  line-height: 1.5;
}

.guide-body a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.guide-body a:hover { color: var(--accent); }

/* Key-takeaways block: the most quotable facts, bulleted, near the top.
   Extraction-friendly for crawlers, skimmable for humans in a hurry. */
.guide-takeaways {
  background: var(--surface-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 0 0 40px;
}

.guide-takeaways .label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 14px;
}

.guide-takeaways ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-takeaways li {
  position: relative;
  padding-left: 26px;
  line-height: 1.45;
  margin: 0;
}

.guide-takeaways li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* Worked example: a concrete, illustrative sequence set apart from prose. */
.guide-example {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 8px 0 24px;
}

.guide-example .label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.guide-example ol {
  margin: 0 0 4px;
  padding-left: 20px;
}

.guide-example li { margin-bottom: 6px; }

.guide-example .note {
  font-size: 14px;
  color: var(--text-muted);
  margin: 8px 0 0;
}

/* Direct-answer callout: the sentence a crawler should be able to lift
   verbatim. Placed right under a question-style h2/h3. */
.guide-answer {
  background: var(--surface-card);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 500;
}

/* ---------- Video embed (facade thumbnail, lazy-loaded iframe on click) ---------- */
.guide-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  margin: 24px 0 8px;
  cursor: pointer;
}

.guide-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.guide-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.guide-video .play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-video .play-badge span {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(224, 35, 28, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
}

.guide-video-caption {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 24px;
}

/* ---------- Comparison table (scrolls horizontally on narrow screens) ---------- */
.guide-table-wrap {
  overflow-x: auto;
  margin: 8px 0 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}

.guide-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
}

.guide-table th,
.guide-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.4;
}

.guide-table thead th {
  background: var(--surface-elev);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  color: var(--text);
}

.guide-table tbody th {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.guide-table tr:last-child th,
.guide-table tr:last-child td { border-bottom: none; }

/* ---------- FAQ list (question/answer pairs) ---------- */
.guide-faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.guide-faq-item:first-child { padding-top: 0; }

.guide-faq-item h3 {
  margin: 0 0 10px;
}

/* ---------- CTA block (reused across all 4 pages) ---------- */
.guide-cta {
  margin-top: 48px;
  padding: 32px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.guide-cta h2 {
  margin-top: 0 !important;
}

.guide-cta p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 20px;
}

.guide-cta .btn {
  max-width: 360px;
  margin: 0 auto;
}

.guide-cta-secondary {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: var(--text-dim);
}

.guide-cta-secondary:hover { color: var(--text); }

/* ---------- Cross-links to the other 3 hub pages ---------- */
.guide-related {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.guide-related h2 {
  margin-top: 0 !important;
}

.guide-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.guide-related-card {
  display: block;
  padding: 18px 20px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 120ms ease;
}

.guide-related-card:hover { border-color: var(--accent); }

.guide-related-card .label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.guide-related-card .title {
  font-weight: 600;
  font-size: 16px;
}

/* ---------- Tablet: wider column, still single-column, no sidebar yet ---------- */
@media (min-width: 720px) {
  .guide-body { max-width: 680px; }
}

/* ---------- Desktop: sticky sidebar TOC replaces the mobile jump menu ---------- */
@media (min-width: 1024px) {
  .guide-jump { display: none; }

  .guide-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 720px);
    gap: 56px;
    align-items: start;
  }

  .guide-toc {
    display: block;
    position: sticky;
    top: 32px;
  }

  .guide-toc-label {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 14px;
  }

  .guide-toc ol {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .guide-toc a {
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-muted);
    text-decoration: none;
    display: block;
  }

  .guide-toc a:hover { color: var(--text); }

  .guide-related-grid {
    grid-template-columns: 1fr 1fr;
  }
}
