/* Guidesidor (guider/*.html) och guideingången på startsidan.
   Bygger på tokens i base.css. Smal läskolumn, inga nya animationer. */

/* ---------- Guideingång på startsidan ---------- */
.guide-teaser { padding-block: clamp(56px, 6vw, 96px); }
.guide-teaser__inner {
  display: grid;
  gap: 16px;
  max-width: 46rem;
}
.guide-teaser h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.1; }
.guide-teaser .lead { max-width: 34em; }
.guide-teaser .link-arrow { justify-self: start; min-height: 44px; }

/* ---------- Guidesidan ---------- */
.guide {
  padding-block: clamp(40px, 6vw, 88px) clamp(72px, 9vw, 128px);
}

.guide__column {
  max-width: 42rem;
  margin-inline: auto;
}

.crumbs { margin-bottom: 32px; font-size: var(--fs-small); color: var(--ink-3); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }
.crumbs a { color: var(--ink-2); }
.crumbs [aria-current="page"] { color: var(--ink-3); }

.guide__head { display: grid; gap: 20px; margin-bottom: 40px; }
.guide__head h1 {
  font-size: clamp(2.125rem, 1.4rem + 3vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.guide__meta { font-size: var(--fs-small); color: var(--ink-3); }

/* Löptext */
.guide__body { font-size: 1.0625rem; line-height: 1.65; }
.guide__body > * + * { margin-top: 1.1em; }
.guide__body h2 {
  margin-top: 2.6em;
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.guide__body h3 { margin-top: 1.8em; font-size: var(--fs-h3); }
.guide__body h2 + *, .guide__body h3 + * { margin-top: 0.6em; }
.guide__body p, .guide__body li { text-wrap: pretty; }
.guide__body ul, .guide__body ol { padding-left: 1.25em; }
.guide__body li + li { margin-top: 0.4em; }
.guide__body a:not(.btn) { color: var(--green); }
.guide__body a:not(.btn):hover { color: var(--ink); }
.guide__ingress { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink); }

/* Hänvisning till källa i löptexten */
.cite {
  display: inline-block;
  min-width: 1.5em;
  margin-left: 2px;
  padding: 0 4px;
  border-radius: 4px;
  background: rgb(31 77 69 / 0.08);
  font-family: var(--font-mono);
  font-size: 0.75em;
  line-height: 1.6;
  text-align: center;
  text-decoration: none;
  vertical-align: 0.15em;
}
.guide__body a.cite { color: var(--green); }
.guide__body a.cite:hover { background: var(--lime-wash); color: var(--ink); }

/* Innehåll */
.toc {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
}
.toc__title {
  margin-bottom: 8px;
  font-size: var(--fs-small);
  font-weight: 600;
}
.toc ol { margin: 0; padding-left: 1.25em; font-size: var(--fs-small); }
.toc li + li { margin-top: 2px; }
.toc a { display: inline-block; padding-block: 4px; color: var(--ink-2); }
.toc a:hover { color: var(--ink); }

/* Mall att kopiera */
.template {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  overflow: hidden;
}
.template__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 10px 12px 10px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--card-2);
  font-size: var(--fs-small);
  font-weight: 600;
}
.template__copy { position: relative; display: inline-flex; align-items: center; gap: 10px; }
.copy-button {
  min-block-size: 40px;
  min-inline-size: 24px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: 600 var(--fs-small) / 1 var(--font-body);
  cursor: pointer;
}
.copy-button:hover { border-color: var(--ink); }
.copy-status { font-size: var(--fs-small); font-weight: 500; color: var(--ok-fg); }
.template pre {
  margin: 0;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink);
}

/* Pilotinbjudan och radarillustration */
.guide-pilot {
  margin-top: 56px;
  padding: clamp(16px, 4vw, 32px);
  background: var(--green);
  color: var(--green-ink);
  border-radius: var(--r-lg);
}
.guide-pilot h2 { margin: 0 0 20px; }
.guide-pilot > .btn { margin-top: 20px; }
.guide-pilot > .btn:focus-visible { outline-color: var(--lime); }
.guide-pilot__note { margin: 8px 0 18px; font-size: var(--fs-small); }
.article-product-figure {
  margin-block: 28px 0;
  margin-inline: clamp(0px, (100vw - 560px) / 4, 40px);
}
.article-product-figure figcaption { margin-top: 16px; font-size: var(--fs-small); line-height: 1.6; }
.guide-pilot .hero-visual { padding: 0; border-radius: var(--r-md); margin-inline: 0; }
.guide-pilot .hv-flow { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: clamp(12px, 3vw, 20px); }
.guide-pilot .hv-link { display: none; }
.guide-pilot .hv-col { grid-column: 1; }
.guide-pilot .hv-source-list { grid-template-columns: 1fr; padding: 0; margin: 0; }
.guide-pilot .hv-source-list li + li { margin-top: 0; }
.guide-pilot .hv-source:nth-child(4) { display: flex; }
.guide-pilot .hv-verdict__card { padding: 16px; }

/* Checklista */
.checklist { list-style: none; padding-left: 0 !important; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--green);
  border-radius: 4px;
}

/* Frågor och svar */
.qa h4 { margin-top: 1.4em; }

/* Pilotinbjudan längst ned */
.guide-cta { padding-block: clamp(64px, 8vw, 112px); }
.guide-cta__inner { display: grid; gap: 20px; max-width: 42rem; margin-inline: auto; }
.guide-cta h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.1; }
.guide-cta .btn { justify-self: start; }
.guide-cta .link-arrow { justify-self: start; min-height: 44px; color: var(--green-ink); }
