/* ============================================================
   QuickFix.tools — Guides section
   Edition theme extension · production styles
   ============================================================ */

/* ── Main column ────────────────────────────────────────── */
.guide-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px 56px;
}

/* ── Page hero (Guides index) ───────────────────────────── */
.guide-page-hero {
  margin: 32px 0 8px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.guide-page-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 14px;
}
.guide-page-hero h1 {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 18px;
  color: var(--text-primary);
}
.guide-page-hero p {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0;
}

/* ── Section header (NN / TITLE) ────────────────────────── */
.guide-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 28px 0 14px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.guide-sec-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--text-primary);
}
.guide-sec-num {
  color: var(--accent);
}
.guide-sec-slash {
  color: var(--text-muted);
  margin: 0 8px;
}
.guide-sec-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--text-muted);
}
.guide-view-all {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--accent);
  text-decoration: none;
}
.guide-view-all:hover {
  color: var(--accent-hover);
}

/* ── Guide cards (full size — index page) ───────────────── */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--bg-card-border);
}
.guide-card {
  display: block;
  padding: 22px 22px 24px;
  border-right: 1px solid var(--bg-card-border);
  border-bottom: 1px solid var(--bg-card-border);
  text-decoration: none;
  transition: background 0.15s;
}
.guide-card:nth-child(2n) { border-right: none; }
.guide-card:hover { background: var(--accent-light); }
.guide-card .meta {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--accent);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.guide-card .meta .sep { color: var(--text-muted); }
.guide-card .meta .read { color: var(--text-muted); }
.guide-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0 0 8px;
  text-wrap: balance;
}
.guide-card .dek {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 18px;
}
.guide-card .foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.guide-card .date { color: var(--text-muted); }
.guide-card .tool-link {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.guide-card .tool-link::before {
  content: "↳";
  opacity: 0.8;
}

/* ── Compact guide cards (bottom strip, related) ────────── */
.guide-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--bg-card-border);
}
.guide-strip.cols-2 { grid-template-columns: 1fr 1fr; }
.guide-strip-card {
  display: block;
  padding: 18px 20px 20px;
  border-right: 1px solid var(--bg-card-border);
  border-bottom: 1px solid var(--bg-card-border);
  text-decoration: none;
  transition: background 0.15s;
}
.guide-strip.cols-3 .guide-strip-card:nth-child(3n) { border-right: none; }
.guide-strip.cols-2 .guide-strip-card:nth-child(2n) { border-right: none; }
.guide-strip-card:hover { background: var(--accent-light); }
.guide-strip-card .meta {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--accent);
  margin-bottom: 8px;
}
.guide-strip-card h4 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--text-primary);
  margin: 0 0 6px;
  text-wrap: balance;
}
.guide-strip-card .dek {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

/* ── Article (single guide) ─────────────────────────────── */
.guide-article {
  max-width: 720px;
  margin: 8px auto 0;
}
.guide-crumbs {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.guide-crumbs a {
  color: var(--text-muted);
  text-decoration: none;
}
.guide-crumbs a:hover { color: var(--text-primary); }
.guide-crumbs .sep { margin: 0 8px; }
.guide-crumbs .current { color: var(--text-primary); }

.guide-article-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 16px;
}
.guide-article h1 {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 0 18px;
  text-wrap: balance;
}
.guide-dek {
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0 0 24px;
  max-width: 640px;
}
.guide-article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.guide-article-meta .pair {
  display: flex;
  align-items: center;
  gap: 6px;
}
.guide-article-meta .label { color: var(--text-muted); }
.guide-article-meta .val { color: var(--text-primary); }
.guide-article-meta .val a { color: var(--accent); text-decoration: none; }
.guide-article-meta .val a:hover { color: var(--accent-hover); }
.guide-article-meta .dot {
  width: 3px;
  height: 3px;
  background: var(--border-control);
}

/* ── Article body ───────────────────────────────────────── */
.guide-article-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
}
.guide-article-body p { margin: 0 0 18px; }
.guide-article-body p > strong { color: var(--text-primary); font-weight: 700; }
.guide-article-body h2 {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 36px 0 14px;
  line-height: 1.2;
}
.guide-article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 24px 0 8px;
}
.guide-article-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.guide-article-body ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}
.guide-article-body ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-mono);
}
.guide-article-body ol {
  padding-left: 22px;
  margin: 0 0 18px;
}
.guide-article-body ol li {
  margin-bottom: 8px;
}
.guide-article-body a {
  color: var(--accent);
  text-decoration: none;
}
.guide-article-body a:hover {
  color: var(--accent-hover);
}
.guide-article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 18px;
  margin: 18px 0;
  background: var(--bg-card-solid);
}
.guide-article-body blockquote p {
  margin: 0;
  font-style: italic;
  color: var(--text-primary);
  font-weight: 500;
}
.guide-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.95rem;
}
.guide-article-body th,
.guide-article-body td {
  padding: 10px 14px;
  border: 1px solid var(--bg-card-border);
  text-align: left;
}
.guide-article-body th {
  background: var(--bg-card-solid);
  font-weight: 700;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}
.guide-article-body td {
  color: var(--text-secondary);
}
.guide-article-body code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-card-solid);
  padding: 2px 5px;
  border: 1px solid var(--bg-card-border);
}
.guide-article-body em {
  font-style: italic;
}

/* ── "Try the tool" CTA block ───────────────────────────── */
.guide-tool-cta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  border: 1px solid var(--bg-card-border);
  margin: 36px 0 24px;
  background: var(--bg-card-solid);
  text-decoration: none;
  transition: background 0.15s;
}
.guide-tool-cta:hover {
  background: var(--accent-light);
}
.guide-tool-cta::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--accent);
}
.guide-tool-cta .info { flex: 1; }
.guide-tool-cta .badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 2px 8px;
  margin-bottom: 8px;
}
.guide-tool-cta h4 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin: 0 0 4px;
}
.guide-tool-cta p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}
.guide-tool-cta .arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--accent);
}

/* ── Footer note ────────────────────────────────────────── */
.guide-footer-note {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--text-muted);
  text-align: center;
  margin-top: 24px;
}

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .guide-card { border-right: none; }

  .guide-strip {
    grid-template-columns: 1fr;
  }
  .guide-strip-card { border-right: none; }

  .guide-page-hero h1 {
    font-size: 2.4rem;
  }
  .guide-article h1 {
    font-size: 1.8rem;
  }
  .guide-article-meta {
    gap: 8px;
  }
  .guide-tool-cta {
    padding: 18px 20px;
  }
}
