/* The written guide for new people. Colours come from styles.css. */
.guide { background: var(--bg); }
.guide-head { background: var(--hero); text-align: center; padding: 28px 20px 32px; border-bottom: 1px solid var(--line); }
.guide-head .logo { display: block; margin: 0 auto 12px; width: 200px; }
.guide-head h1 { font-size: 1.75rem; margin-bottom: 8px; }
.guide-head p { color: var(--on-hero); max-width: 34rem; margin: 0 auto 18px; }
.guide .btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; padding-inline: 28px; }
.guide-main { max-width: 860px; margin: 0 auto; padding: 20px 16px 56px; }
.toc { margin: 8px 0 0; padding-inline-start: 1.4em; columns: 2; column-gap: 24px; }
.toc li { padding: 4px 0; break-inside: avoid; }
.toc a, .step a { color: var(--brand); font-weight: 700; }
.step { display: grid; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 12px; }
.step h2 { font-size: 1.375rem; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.step .n { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-fill); color: var(--on-brand); display: flex; align-items: center; justify-content: center; font-size: 1.125rem; }
.step ol, .step ul { margin: 0 0 10px; padding-inline-start: 1.4em; }
.step li { padding: 4px 0; }
.step p { margin-bottom: 10px; }
.step img { width: 100%; max-width: 300px; height: auto; margin: 0 auto; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 6px 22px rgba(0, 0, 0, .10); background: var(--surface); }
.guide-end { text-align: center; padding-top: 28px; }
@media (min-width: 720px) {
  .step { grid-template-columns: 1fr 300px; align-items: start; }
  .step.text-only { grid-template-columns: 1fr; }
  .guide-head h1 { font-size: 2.125rem; }
}
@media (max-width: 420px) { .toc { columns: 1; } }
@media print { .guide-head .btn, .guide-end { display: none; } .step { break-inside: avoid; } .step img { max-width: 220px; box-shadow: none; } }
.step .n.soon { width: auto; border-radius: 999px; padding: 0 14px; font-size: .9375rem; background: var(--amber-soft); color: var(--amber-ink); }
/* Terms and privacy */
.legal .guide-head .logo { width: 150px; }
.legal-sec { padding: 24px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 12px; }
.legal-sec h2 { font-size: 1.5rem; margin-bottom: 12px; }
.legal-sec h3 { font-size: 1.0625rem; font-weight: 800; margin: 20px 0 6px; }
.legal-sec p, .legal-sec li { line-height: 1.9; }
.legal-sec ul { margin: 0 0 8px; padding-inline-start: 1.3em; }
.legal-sec li { padding: 2px 0; }
.legal-sec a, .legal .toc a { color: var(--brand); font-weight: 700; }

/* Room for the bottom bar on the guide and the terms */
body.has-bar { padding-bottom: 84px; }
@media print { .tabs, #toast { display: none; } body.has-bar { padding-bottom: 0; } }

/* Clear of the iPhone status bar and home bar (see styles.css) */
.guide-head { padding-top: calc(28px + var(--safe-top)); }
body.has-bar { padding-bottom: calc(84px + var(--safe-bottom)); }
@media print { body.has-bar { padding-bottom: 0; } }
