/* ============================================================
   WALKTHROUGHS — Styles
   ============================================================ */

#app.page-walkthrough {
  max-width: 960px;
  padding-bottom: 4rem;
}

.walkthrough-back {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.walkthrough-meta {
  font-size: 0.8rem;
  margin: 0.25rem 0 1.5rem;
}

/* --- Article prose --- */

.walkthrough-prose {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.walkthrough-prose p {
  margin: 0 0 1rem;
}

.walkthrough-prose strong {
  color: var(--primary);
}

.walkthrough-prose a {
  border-bottom: 1px dotted var(--muted);
}

.walkthrough-prose h1 {
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--primary);
  margin: 0 0 0.75rem;
}

.walkthrough-prose h2 {
  font-size: 0.95rem;
  color: var(--secondary);
  text-shadow: var(--text-glow-amber);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.walkthrough-prose h2 + p strong {
  color: var(--text-tertiary);
  font-weight: 400;
}

/* --- Figures --- */

.walkthrough-figure {
  margin: 1.25rem 0;
}

/* Images open full size in a new tab (useful on phones); keep the site's inverted link hover off them. */
.walkthrough-figure a,
.walkthrough-figure a:hover {
  display: block;
  background: none;
  border: none;
}

.walkthrough-figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* Charts are drawn on white; frame them as cards so they sit cleanly on the dark page. */
.walkthrough-figure--chart {
  background: #ffffff;
  border-radius: var(--card-radius);
  padding: 0.5rem;
}

.walkthrough-figure--screenshot img {
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
}

.walkthrough-caption {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
  margin: -0.5rem 0 1.25rem;
}

/* --- Quick links --- */

.walkthrough-links__day {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--secondary);
  margin: 0.75rem 0 0.35rem;
}

.walkthrough-links__day:first-child {
  margin-top: 0;
}

.walkthrough-links ul {
  list-style: none;
}

.walkthrough-links li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--divider);
  font-size: 0.85rem;
}

/* --- Match sections --- */

.walkthrough-match,
#wt-quick-links {
  scroll-margin-top: 4.5rem; /* clear the sticky top bar */
}

.walkthrough-match__footer {
  padding: 0 1rem 0.75rem;
  text-align: right;
  font-size: 0.75rem;
}

/* --- Archive --- */

.walkthrough-index__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--divider);
}

.walkthrough-index__row:last-child {
  border-bottom: none;
}

.walkthrough-index__title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.walkthrough-index__row:hover .walkthrough-index__meta {
  color: var(--bg);
}

@media (max-width: 640px) {
  .walkthrough-prose {
    font-size: 0.9rem;
  }

  .walkthrough-links li,
  .walkthrough-index__row {
    flex-direction: column;
    gap: 0.1rem;
  }
}
