/**
 * Copyright (c) 2026 Al Ahad Naba, trading as Relo Studio. All rights reserved.
 *
 * Proprietary source code, protected under the UK Copyright, Designs and
 * Patents Act 1988 (s.3(1)(b)). Copying, adaptation, scraping or commercial
 * redistribution of this code or its design without written permission is
 * prohibited. See https://relostudio.co.uk/legal.html
 */

/* The guide pages: long reads for people arriving from a search, set like the
   rest of the site. Static HTML, no scripts beyond the shared font swap. */

.guide {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 1.8rem + 3vw, 4.5rem));
  padding-bottom: var(--sp-section);
}

.guide__crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: var(--step--1);
  color: var(--cream-400);
}
.guide__crumbs a { color: var(--copper-200); }

.guide__head {
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid var(--line);
}
.guide__head h1 { font-size: var(--step-5); max-width: 20ch; }
.guide__head .lede { max-width: 46ch; }
.guide__head .btn { justify-self: start; }
.guide__meta { font-size: var(--step--1); color: var(--cream-400); }

.guide__body { display: grid; gap: var(--sp-4); max-width: var(--measure); padding-top: var(--sp-7); }
.guide__body h2 { margin-top: var(--sp-6); font-size: var(--step-3); line-height: 1.1; }
.guide__body h2:first-child { margin-top: 0; }
.guide__body h3 { margin-top: var(--sp-3); font-size: var(--step-1); line-height: 1.22; letter-spacing: -0.018em; }
.guide__body p, .guide__body li, .guide__body td { color: var(--fg-muted); }
.guide__body strong, .guide__body th { color: var(--cream-50); font-weight: 600; }
.guide__body a:not(.btn) { color: var(--copper-200); }

.guide__body ul, .guide__body ol { display: grid; gap: var(--sp-2); }
.guide__body ul li { position: relative; padding-left: 1.25rem; }
.guide__body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--copper-400);
}
.guide__body ol { counter-reset: step; }
.guide__body ol li { position: relative; padding-left: 2rem; counter-increment: step; }
.guide__body ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--copper-400);
}

.guide__table { overflow-x: auto; border: 1px solid var(--line); border-radius: 0.75rem; }
.guide__table table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.guide__table--wide table { min-width: 34rem; }
.guide__table th, .guide__table td { padding: 0.75rem 0.9rem; text-align: left; vertical-align: top; }
.guide__table thead th { border-bottom: 1px solid var(--line); }
.guide__table tbody tr + tr td, .guide__table tbody tr + tr th { border-top: 1px solid var(--line); }

.guide__cta {
  display: grid;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
  padding: clamp(1.4rem, 1rem + 1.6vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--bg-raised);
}
.guide__cta h2 { margin-top: 0; }
.guide__cta .btn { justify-self: start; }

.guide__related { display: grid; gap: var(--sp-2); margin-top: var(--sp-6); }
.guide__related ul { display: grid; gap: var(--sp-2); }
