/* The guide at /help. Same colours and type as the map (styles.css), but a normal scrolling page. */
:root {
  --font: "Helvetica Neue", Helvetica, "Inter", "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070b14;
  --card: rgba(255, 255, 255, .045);
  --border: rgba(255, 255, 255, .09);
  --text: #eef2fb;
  --muted: #8d99b3;
  --faint: rgba(255, 255, 255, .07);
  --accent: #5ee6a8;
  --on-accent: #06281a;
  --shadow: 0 20px 60px rgba(0, 0, 0, .55);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef2f6;
  --card: #ffffff;
  --border: rgba(16, 24, 40, .1);
  --text: #121826;
  --muted: #5d6779;
  --faint: rgba(16, 24, 40, .06);
  --accent: #0a9d63;
  --on-accent: #ffffff;
  --shadow: 0 18px 50px rgba(30, 45, 70, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px; padding-left: 22px; }
li { margin: 6px 0; }
b { font-weight: 650; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + var(--safe-t)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 15px; white-space: nowrap; }
.brand em { font-style: normal; color: var(--accent); }
.mark { width: 30px; height: 30px; border-radius: 50%; position: relative; flex: none; background: conic-gradient(from 210deg, #0062CF, #009952, #F6BC26, #EB6800, #D82233, #9A38A1, #0062CF); }
.mark span { position: absolute; inset: 4px; border-radius: 50%; background: var(--bg); }
.mark span::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--text); }
.go { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 650; font-size: 14px; text-decoration: none; white-space: nowrap; transition: transform .2s var(--ease); }
.go:hover { transform: translateY(-1px); }
.go.big { padding: 14px 26px; font-size: 16px; }

/* ---------- content ---------- */
main { max-width: 860px; margin: 0 auto; padding: 0 16px calc(40px + var(--safe-b)); }
section { padding: 34px 0 10px; border-top: 1px solid var(--border); }
section.intro { border-top: 0; padding-top: 36px; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
h1 { font-size: clamp(28px, 6vw, 42px); margin-bottom: 14px; }
.lede { font-size: 18px; color: var(--muted); max-width: 640px; }
h2 { font-size: 23px; margin-bottom: 14px; display: flex; align-items: flex-start; gap: 10px; }
h3 { font-size: 17px; margin: 22px 0 10px; }
.num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; background: var(--faint); color: var(--muted); }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 8px; }
.toc a { padding: 7px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; }
.toc a:hover { border-color: var(--accent); }

/* text beside a phone screenshot, stacked on narrow screens */
.split { display: grid; grid-template-columns: 1fr 250px; gap: 32px; align-items: start; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--faint); }
.shot figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 10px; }
@media (max-width: 680px) {
  .split { grid-template-columns: 1fr; gap: 18px; }
  .shot.phone { max-width: 260px; margin: 4px auto 8px; }
}

/* an inline picture of a button, so people can match the words to the screen */
.ic {
  display: inline-grid; place-items: center; vertical-align: -6px;
  width: 26px; height: 26px; border-radius: 8px; margin: 0 1px;
  background: var(--card); border: 1px solid var(--border);
  font-style: normal; font-weight: 700; font-size: 17px; line-height: 1; color: var(--text);
}
.ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

code, kbd { font: 600 14px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--faint); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }
.examples li { margin: 8px 0; }

details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 0 16px; margin: 10px 0; }
details[open] { padding-bottom: 6px; }
summary { cursor: pointer; padding: 13px 0; font-weight: 650; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--faint); color: var(--muted); font-weight: 700; transition: transform .2s var(--ease); }
details[open] > summary::after { transform: rotate(45deg); }

.legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.legend > div { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); font-size: 15px; line-height: 1.4; }
.legend .ic { flex: none; width: 36px; height: 36px; border-radius: 11px; font-size: 18px; vertical-align: 0; }
.legend .ic svg { width: 20px; height: 20px; }

.keys { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; align-items: center; }
.keys dt { white-space: nowrap; }
.keys dd { margin: 0; color: var(--muted); }

.cta { text-align: center; padding: 30px 0 10px; border-top: 1px solid var(--border); margin: 24px 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
