/* ── Guides: hub + article pages ─────────────────────────────────────── */

.page-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 16px; }
.page-hero p { font-size: 17px; color: var(--slate); max-width: 620px; line-height: 1.65; }

.content-section { padding: 64px 0; }
.content-section h2 { font-size: 26px; margin-bottom: 16px; }

/* ── Breadcrumbs ── */
.guide-crumbs {
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.guide-crumbs a { color: var(--slate); text-decoration: none; }
.guide-crumbs a:hover { color: var(--ink); text-decoration: underline; }
.guide-crumbs span[aria-current] { color: var(--ink); font-weight: 500; }

/* ── Hub index ── */
.guide-index { padding: 56px 0 72px; }
.guide-index-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.guide-index-item a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 28px;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.guide-index-item a:hover { border-color: var(--slate); transform: translateY(-2px); }
.guide-index-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.guide-index-item h2 { font-size: 22px; color: var(--ink); margin: 8px 0 10px; }
.guide-index-item p { font-size: 15px; color: var(--slate); line-height: 1.7; margin-bottom: 14px; }
.guide-index-more { font-size: 14px; font-weight: 600; color: var(--action); }
.guide-index-more i { vertical-align: middle; }

/* ── Article ── */
.guide-hero {
  padding: 56px 0 44px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.guide-hero .container { max-width: 760px; }
.guide-hero h1 { font-size: clamp(29px, 4.4vw, 44px); line-height: 1.18; margin-bottom: 18px; }
.guide-standfirst { font-size: 18px; color: var(--slate); line-height: 1.65; margin-bottom: 18px; }
.guide-byline {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--slate);
  margin: 0;
}

.guide-body { padding: 48px 0 8px; }
.guide-body .container { max-width: 720px; }
.guide-body h2 {
  font-size: 27px;
  margin: 44px 0 16px;
  line-height: 1.25;
}
.guide-body h2:first-child { margin-top: 0; }
.guide-body h3 { font-size: 19px; margin: 32px 0 12px; }
.guide-body p {
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--slate);
  margin-bottom: 20px;
}
.guide-body strong { color: var(--ink); font-weight: 600; }
.guide-body a { color: var(--action); text-decoration: underline; text-underline-offset: 2px; }
.guide-body a:hover { color: var(--focus); }
.guide-body ul, .guide-body ol { margin: 0 0 22px; padding-left: 22px; }
.guide-body li {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--slate);
  margin-bottom: 10px;
}

.guide-steps { counter-reset: step; list-style: none; padding-left: 0; }
.guide-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
  margin-bottom: 14px;
}
.guide-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--under-bg);
  color: var(--under);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-callout {
  background: var(--paper);
  border-left: 3px solid var(--action);
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin: 28px 0;
}
.guide-callout p { margin-bottom: 10px; font-size: 16px; }
.guide-callout p:last-child { margin-bottom: 0; }

.guide-table-wrap { overflow-x: auto; margin: 26px 0; }
.guide-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.guide-table th, .guide-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.guide-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--slate);
  font-weight: 600;
}
.guide-table td { color: var(--ink); font-family: 'IBM Plex Mono', monospace; }
.guide-table td:first-child { font-family: 'Hanken Grotesk', sans-serif; }

/* ── FAQ ── */
.guide-faq { margin: 24px 0 8px; }
.guide-faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.guide-faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.guide-faq summary::-webkit-details-marker { display: none; }
.guide-faq summary::after {
  content: '+';
  font-family: 'IBM Plex Mono', monospace;
  color: var(--slate);
  flex-shrink: 0;
}
.guide-faq details[open] summary::after { content: '−'; }
.guide-faq details p {
  padding: 0 0 16px;
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--slate);
}

/* ── CTA, pager, area links ── */
.guide-cta {
  max-width: 720px;
  margin: 44px auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px 32px;
  text-align: center;
}
.guide-cta h2 { font-size: 24px; margin-bottom: 10px; }
.guide-cta p { color: var(--slate); font-size: 15px; line-height: 1.7; margin-bottom: 22px; }

.guide-pager {
  max-width: 720px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.guide-pager-link {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  text-decoration: none;
  display: block;
  transition: border-color .15s ease;
}
.guide-pager-link:hover { border-color: var(--slate); }
.guide-pager-next { text-align: right; }
.guide-pager-dir {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--slate);
  margin-bottom: 6px;
}
.guide-pager-title { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.4; }

.guide-areas { max-width: 720px; margin: 48px auto 0; padding-bottom: 72px; }
.guide-areas h2 { font-size: 20px; margin-bottom: 16px; }
.guide-area-links { display: flex; flex-wrap: wrap; gap: 8px; }
.guide-area-links a {
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  background: var(--surface);
  transition: border-color .15s ease;
}
.guide-area-links a:hover { border-color: var(--slate); }

@media (max-width: 575px) {
  .guide-pager { grid-template-columns: 1fr; }
  .guide-pager-next { text-align: left; }
  .guide-body p, .guide-body li { font-size: 16px; }
}
