/* =====================================================================
   SECTION 4 — Methodology
   Mirrors the anchored-page structure of Section 3 (Gear & Tips), with
   a tighter editorial layout, callout blocks, and a numbered-source list.
   ===================================================================== */

/* ---------- HERO ---------- */

.method-hero {
  padding: 4.5rem 0 2.5rem;
  background: linear-gradient(180deg, var(--color-bg-elevated) 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-divider);
}

.method-hero-inner {
  max-width: var(--container-narrow);
  text-align: center;
}

.method-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.method-hero-subtitle {
  font-size: clamp(1.05rem, 1.75vw, 1.25rem);
  color: var(--color-fg-muted);
  max-width: 38rem;
  margin: 0 auto;
  line-height: 1.55;
}

@media (max-width: 768px) {
  .method-hero { padding: 3rem 0 2rem; }
}

/* ---------- IN-PAGE TOC ---------- */

.method-toc {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-bg-elevated);
  border-bottom: 1px solid var(--color-divider);
  font-size: 0.875rem;
}

.method-toc-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  overflow-x: auto;
}

.method-toc-label {
  font-family: var(--font-display);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--color-fg-muted);
  white-space: nowrap;
}

.method-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.method-toc-list li { margin: 0; }

.method-toc-list a {
  text-decoration: none;
  color: var(--color-fg-muted);
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.15s ease, border-bottom-color 0.15s ease;
}

.method-toc-list a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

@media (max-width: 768px) {
  .method-toc-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .method-toc-list { gap: 0.875rem; }
}

/* ---------- CONTENT SECTIONS ---------- */

.method-section {
  max-width: var(--container-narrow);
  padding: 3.5rem 1.5rem 1.5rem;
  scroll-margin-top: 4rem;
}

.method-section + .method-section {
  border-top: 1px solid var(--color-divider);
  padding-top: 3.5rem;
}

.method-section h2 {
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  margin: 0 0 1rem;
}

.method-section h3 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.5rem;
  font-style: italic;
  font-weight: 600;
}

.method-lead {
  margin-bottom: 1.5rem;
}

.method-section p { line-height: 1.65; }
.method-section li { line-height: 1.55; }

.method-section code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-bg-elevated);
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  border: 1px solid var(--color-divider);
}

/* ---------- CALLOUT BLOCK ---------- */

.method-callout {
  background: var(--color-bg-elevated);
  border-left: 3px solid var(--color-accent);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
}
.method-callout p {
  margin: 0 0 0.85em;
  line-height: 1.6;
}
.method-callout p:last-child {
  margin-bottom: 0;
}

/* ---------- NUMBERED SOURCE LIST ---------- */

.method-sources-list {
  list-style: none;
  counter-reset: source-counter;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 1.25rem;
}

.method-sources-list > li {
  counter-increment: source-counter;
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 4rem;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-divider);
  border-radius: 4px;
}

.method-sources-list > li::before {
  content: counter(source-counter);
  position: absolute;
  top: 1.25rem;
  left: 1.125rem;
  width: 2rem;
  height: 2rem;
  background: var(--color-accent);
  color: #f4ead0;
  font-family: var(--font-display);
  letter-spacing: 0;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 600;
}

.method-sources-list h3 {
  font-style: normal;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  margin: 0 0 0.4rem;
}

.method-sources-list p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-fg-muted);
}
.method-sources-list p strong,
.method-sources-list p em {
  color: var(--color-fg);
}

/* ---------- BUILD-SEQUENCE STEPS ---------- */

.method-steps {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
}
.method-steps li {
  margin-bottom: 0.85rem;
  line-height: 1.55;
}
.method-steps li::marker {
  color: var(--color-accent);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.05em;
}

/* ---------- PLATFORM-LIST CARDS ---------- */

.method-platform-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.875rem;
}

.method-platform-list li {
  margin: 0;
  padding: 1rem 1.125rem;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-divider);
  border-radius: 4px;
  line-height: 1.55;
}

/* ---------- TRY-IT-YOURSELF CTA ---------- */

.method-cta-section {
  text-align: center;
}
.method-cta-section .method-lead {
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.method-cta-line {
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.method-disabled-cta {
  opacity: 0.65;
  cursor: not-allowed;
}
.method-disabled-cta:hover {
  transform: none;
  box-shadow: none;
}

.method-cta-note {
  font-size: 0.8rem;
  color: var(--color-fg-muted);
  font-style: italic;
  max-width: 28rem;
  line-height: 1.45;
}

/* ---------- BACK CTA ---------- */

.method-back-cta {
  padding: 4rem 1.5rem 5rem;
  text-align: center;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--color-divider);
}
