/* Guides: hub + long-form article styling. Uses the shared design tokens. */

.guides-layout,
.guide-article {
  max-width: 46rem;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4) var(--space-8);
}

/* ---- Hub ---- */
.guides-header {
  margin-bottom: var(--space-6);
}
.guides-header h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--fg);
  margin: 0 0 var(--space-2);
}
.guides-intro {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.guide-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.guide-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  transition: border-color var(--transition-fast);
}
.guide-card:hover {
  border-color: var(--accent);
}
.guide-card__link {
  display: block;
  padding: var(--space-5);
  text-decoration: none;
}
.guide-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--fg);
  margin: 0 0 var(--space-2);
}
.guide-card__desc {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 var(--space-3);
}
.guide-card__cta {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
}

/* ---- Article ---- */
.guide-article__header {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}
.guide-article__header h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.2;
  color: var(--fg);
  margin: 0 0 var(--space-3);
}
.guide-byline {
  font-size: var(--text-sm);
  color: var(--muted);
}
.guide-byline a {
  color: var(--muted);
  text-decoration: underline;
}

.guide-prose {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--fg);
}
.guide-prose > p {
  margin: 0 0 var(--space-4);
}
.guide-prose h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--fg);
  margin: var(--space-7) 0 var(--space-3);
}
.guide-prose a {
  color: var(--accent);
  text-decoration: underline;
}
.guide-prose strong {
  color: var(--fg);
  font-weight: 700;
}

/* Numbered list (e.g. the common-mistakes guide) */
.guide-prose ol {
  margin: 0 0 var(--space-5);
  padding-left: var(--space-5);
}
.guide-prose ol li {
  margin-bottom: var(--space-4);
  line-height: 1.7;
  padding-left: var(--space-1);
}
.guide-prose ol li strong {
  display: block;
  margin-bottom: var(--space-1);
}

/* Ranking table */
.guide-table-wrap {
  overflow-x: auto;
  margin: var(--space-4) 0 var(--space-6);
}
.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.guide-table caption {
  text-align: left;
  font-size: var(--text-xs);
  color: var(--muted);
  margin-bottom: var(--space-2);
}
.guide-table th,
.guide-table td {
  padding: var(--space-2) var(--space-3);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.guide-table th {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 600;
}
.guide-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.guide-table .word {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.guide-table tr.is-highlight td {
  background: var(--accent-soft);
}

/* Call-to-action box */
.guide-cta {
  margin: var(--space-7) 0 0;
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
}
.guide-cta p {
  margin: 0 0 var(--space-3);
  font-size: var(--text-base);
  color: var(--fg);
}
.guide-cta .btn {
  text-decoration: none;
}

@media (max-width: 600px) {
  .guides-layout,
  .guide-article {
    padding: var(--space-5) var(--space-3) var(--space-7);
  }
  .guides-header h1,
  .guide-article__header h1 {
    font-size: var(--text-xl);
  }
}
