/* Guides. Long-form reading, so this is mostly typography: one column at a comfortable
   measure, generous leading, and enough hierarchy that a definition list scans without
   being read. Colours come from the app's tokens so the guides sit inside the product
   rather than beside it. */

.guide {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 22px 96px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
}

.guide .back {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 28px;
}
.guide .back:hover { color: var(--text); }

/* A post's date, above its title on the blog index and under it on the post. */
.guide .meta { font-size: 13px; color: var(--faint); margin: -6px 0 18px; }
.guide .entry .meta { margin: 0 0 6px; }

.guide h1 {
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.guide .standfirst {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.guide h2 {
  font-size: 21px;
  margin: 44px 0 12px;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.guide h3 {
  font-size: 16px;
  margin: 26px 0 6px;
  color: var(--text);
}

.guide p { margin: 0 0 16px; }
.guide a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; }
.guide a:hover { border-bottom-color: var(--accent); }
.guide strong { color: var(--text); font-weight: 600; }
.guide em { color: var(--muted); font-style: italic; }

.guide ul, .guide ol { margin: 0 0 16px; padding-left: 22px; }
.guide li { margin-bottom: 9px; }

/* Numbered steps carry an order that matters, so the marker is given weight rather than
   left as the browser's default grey. */
.guide ol.steps { counter-reset: step; list-style: none; padding-left: 0; }
.guide ol.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 38px;
  margin-bottom: 14px;
}
.guide ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  display: grid;
  place-items: center;
}

/* Definition lists are the substance of the glossary, so the term has to be findable when
   somebody arrives on an anchor from a search result. */
.guide dl.defs { margin: 0 0 16px; }
.guide dl.defs dt {
  font-weight: 600;
  margin: 22px 0 4px;
  scroll-margin-top: 24px;
}
.guide dl.defs dt:first-child { margin-top: 0; }
.guide dl.defs dd {
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid var(--line);
  color: var(--muted);
}

.guide .faq { margin-top: 8px; }
.guide .faq h3 { color: var(--text); font-weight: 600; }
.guide .faq p { color: var(--muted); margin-bottom: 18px; }

.guide .cta {
  margin-top: 48px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--muted);
}

/* The index needs each entry to be one obvious target, not a heading with a link in it. */
.guide .index { display: grid; gap: 12px; margin: 0 0 8px; }
.guide .index .entry {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color var(--t, .15s) ease, background var(--t, .15s) ease;
}
.guide .index .entry:hover { border-color: var(--accent); background: var(--raised); }
.guide .index .entry h2 { margin: 0 0 6px; font-size: 17px; color: var(--text); }
.guide .index .entry p { margin: 0; color: var(--muted); font-size: 14.5px; }

@media (max-width: 640px) {
  .guide { padding: 28px 18px 72px; font-size: 15.5px; }
  .guide h1 { font-size: 27px; }
  .guide .standfirst { font-size: 16.5px; }
  .guide h2 { font-size: 19px; }
}

/* A footer on a guide is mostly there so somebody who arrived from a search result has a
   way back into the product, and a way to change their cookie answer without hunting. */
.guide-foot {
  max-width: 720px;
  margin: 0 auto;
  padding: 22px 22px 60px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.guide-foot a { color: var(--muted); text-decoration: none; }
.guide-foot a:hover { color: var(--text); }

/* Comparison tables. On a comparison page the table IS the answer, so it is styled rather
   than left to the browser. A wide one scrolls inside its own box on a phone instead of
   pushing the whole page sideways. */
.guide .table-wrap {
  overflow-x: auto;
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.guide table.compare { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.guide table.compare caption {
  caption-side: top;
  text-align: left;
  padding: 12px 14px 4px;
  color: var(--faint);
  font-size: 12.5px;
}
.guide table.compare th,
.guide table.compare td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
.guide table.compare thead th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-color: var(--line);
  white-space: nowrap;
}
.guide table.compare tbody th { font-weight: 600; color: var(--text); min-width: 8em; }
.guide table.compare td { color: var(--muted); min-width: 11em; }
.guide table.compare tbody tr:last-child > * { border-bottom: none; }

/* Who is making the claims, stated before the claims. */
.guide .disclosure {
  font-size: 14px;
  color: var(--muted);
  padding: 10px 14px;
  border-left: 3px solid var(--amber);
  border-radius: 0 8px 8px 0;
  background: var(--panel);
}

/* A prompt is something to copy, so it looks like text to copy rather than prose. */
.guide .prompt {
  white-space: pre-line;
  font-size: 14.5px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--sunken);
}

.guide ul.sources { font-size: 14px; color: var(--muted); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
