/* The look of the manuals (index.html: telemetry, setups.html: Setups). Colours are those of the
   RN Design System (web/rn-tokens.css), light and dark; the type is the system font, as in the app. */
:root {
  --red: #e5202b;
  --red-dark: #ce1d27;
  --hero: #07080a;
  --hero-text: #f4f5f7;
  --hero-dim: #aab0bb;
  --bg: #ffffff;
  --bg2: #f3f4f7;
  --fg: #0e1014;
  --dim: #4d5563;
  --muted: #6b7380;
  --line: #e2e4ea;
  --line-strong: #c9cdd6;
  --shadow: 0 4px 18px rgba(10, 12, 16, 0.07);
  --green: #15803d;
  --yellow: #8a5e00;
  --blue: #0b6fb0;
  --tint-blue: #f2f8fd;
  --tint-green: #f2faf5;
  --tint-yellow: #fdf8ee;
  --radius: 8px;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0e11;
    --bg2: #15181d;
    --fg: #f4f5f7;
    --dim: #c3c8d0;
    --muted: #8d95a1;
    --line: #262a31;
    --line-strong: #3a3f48;
    --shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
    --green: #2ecc71;
    --yellow: #ffd23f;
    --blue: #58c4ff;
    --tint-blue: rgba(88, 196, 255, 0.07);
    --tint-green: rgba(46, 204, 113, 0.07);
    --tint-yellow: rgba(255, 210, 63, 0.07);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
a:focus-visible, video:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 3px; }
code, kbd { font-family: var(--mono); font-size: 0.86em; background: var(--bg2); border: 1px solid var(--line); border-radius: 4px; padding: 0.05em 0.35em; }
kbd { border-bottom-width: 2px; }
img, video { max-width: 100%; display: block; }
b, strong { font-weight: 600; }

/* ---------- the header ---------- */
.hero { position: relative; color: var(--hero-text); background: var(--hero); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-picture, none) center 40% / cover no-repeat; opacity: 0.32; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(15deg, rgba(7, 8, 10, 0.97) 25%, rgba(7, 8, 10, 0.72) 60%, rgba(60, 10, 14, 0.6)); }
.hero-inner { position: relative; z-index: 1; max-width: 1340px; margin: 0 auto; padding: 26px 24px 60px; }
.hero-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.hero-top img { height: 38px; width: auto; }
.hero-top .back { min-height: 38px; font-size: 14px; }
.hero .meta { font-size: 13px; color: var(--hero-dim); font-family: var(--mono); margin: 40px 0 0 26px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.08; margin: 10px 0 14px; font-weight: 700; letter-spacing: -0.02em; padding-left: 20px; border-left: 6px solid var(--red); }
.hero h1 .beta { font-size: 0.32em; vertical-align: middle; letter-spacing: 0.08em; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 4px; padding: 2px 8px; margin-left: 10px; }
.hero p.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: #d5d9df; max-width: 760px; margin: 0 0 0 26px; }
.hero .cta { margin: 30px 0 0 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--radius); font-weight: 600; font-size: 15px; text-decoration: none; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.32); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* The switch between the two manuals, at the top of the header. */
.manuals { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); }
.manuals a { color: var(--hero-dim); text-decoration: none; font-size: 14px; font-weight: 600; padding: 5px 16px; border-radius: 999px; }
.manuals a:hover { color: #fff; }
.manuals a[aria-current="page"] { background: #fff; color: var(--hero); }

/* ---------- contents on the left, text on the right ---------- */
.layout { max-width: 1340px; margin: 0 auto; padding: 44px 24px 80px; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; }
nav.toc { position: sticky; top: 20px; align-self: start; font-size: 14px; max-height: calc(100vh - 40px); overflow-y: auto; padding-bottom: 8px; }
nav.toc .app { display: flex; align-items: center; justify-content: center; min-height: 40px; margin: 0 0 22px; border-radius: var(--radius); background: var(--hero); color: #fff; font-weight: 600; text-decoration: none; }
nav.toc .app:hover { background: var(--red); color: #fff; }
nav.toc h2 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin: 0 0 10px; font-weight: 600; }
nav.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
nav.toc li { counter-increment: toc; }
nav.toc a { display: block; padding: 6px 10px; border-left: 2px solid var(--line); color: var(--muted); text-decoration: none; line-height: 1.4; }
nav.toc ol a::before { content: counter(toc) ". "; color: var(--muted); opacity: 0.7; }
nav.toc li.plain { counter-increment: none; }
nav.toc ol li.plain a::before { content: ""; }
nav.toc a:hover { color: var(--fg); border-left-color: var(--line-strong); }
nav.toc a.active { color: var(--fg); font-weight: 600; border-left-color: var(--red); }
nav.toc .other { display: block; margin-top: 18px; padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius); background: var(--bg2); color: var(--fg); text-decoration: none; line-height: 1.4; }
nav.toc .other small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-bottom: 2px; }
nav.toc .other b { color: var(--red); }
nav.toc .other:hover { border-color: var(--line-strong); border-left-color: var(--red); }

main { min-width: 0; max-width: 1040px; }
/* Text keeps a line that reads well; pictures and videos take the whole column. */
main p, main ul, main ol, main h3, section > .sub { max-width: 820px; }
section { padding-top: 6px; margin-bottom: 72px; }
section > h2 { font-size: 30px; line-height: 1.22; letter-spacing: -0.01em; margin: 0 0 6px; display: flex; align-items: baseline; gap: 14px; }
section > h2 .n { flex: none; font-size: 15px; font-weight: 700; color: #fff; background: var(--red); border-radius: 999px; min-width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0 9px; transform: translateY(-4px); }
section > .sub { color: var(--dim); margin: 0 0 24px; font-size: 18px; line-height: 1.5; }
h3 { font-size: 20px; margin: 38px 0 8px; letter-spacing: -0.005em; }
p, ul, ol { margin: 0 0 14px; }
li { margin: 5px 0; }
.muted { color: var(--muted); }
.ui { font-weight: 600; }

/* Lists with round markers: .dots for points, .steps for numbered steps. */
ul.dots { list-style: none; padding: 0; }
ul.dots > li { position: relative; padding-left: 28px; margin: 10px 0; }
ul.dots > li::before { content: ""; position: absolute; left: 6px; top: 0.62em; width: 9px; height: 9px; border-radius: 999px; background: var(--red); box-shadow: 0 0 0 4px rgba(229, 32, 43, 0.14); }
ol.steps { counter-reset: step; list-style: none; padding: 0; }
ol.steps > li { counter-increment: step; position: relative; padding-left: 44px; margin: 14px 0; min-height: 28px; }
ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 29px; height: 29px; border-radius: 999px; background: var(--red); color: #fff; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ---------- cards, tables, badges ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); box-shadow: 0 1px 2px rgba(10, 12, 16, 0.04); }
.table-wrap { overflow-x: auto; margin: 0 0 20px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); background: var(--bg2); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 1px 10px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--bg2); color: var(--dim); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.badge.green { color: var(--green); background: var(--tint-green); }
.badge.yellow { color: var(--yellow); background: var(--tint-yellow); }
.badge.red { color: var(--red); background: rgba(229, 32, 43, 0.09); }

.note { border: 1px solid var(--line); border-left: 4px solid var(--blue); background: var(--tint-blue); border-radius: var(--radius); padding: 13px 16px; margin: 20px 0; font-size: 15px; }
.note.tip { border-left-color: var(--green); background: var(--tint-green); }
.note.warn { border-left-color: var(--yellow); background: var(--tint-yellow); }
.note > strong:first-child { display: block; margin-bottom: 2px; }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }

/* The big card that leads to the other manual. */
.crosslink { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px 24px; margin: 0 0 64px; padding: 26px 28px; border-radius: 12px; background: var(--hero); color: var(--hero-text); text-decoration: none; box-shadow: var(--shadow); border-left: 6px solid var(--red); }
.crosslink:hover { color: var(--hero-text); }
.crosslink:hover .go { background: var(--red-dark); }
.crosslink img { width: 64px; height: 64px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); }
.crosslink small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--hero-dim); font-weight: 600; }
.crosslink strong { display: block; font-size: 26px; line-height: 1.2; margin: 2px 0 6px; letter-spacing: -0.01em; }
.crosslink span.text { display: block; color: #d5d9df; font-size: 16px; line-height: 1.5; }
.crosslink .go { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: var(--radius); background: var(--red); color: #fff; font-weight: 600; white-space: nowrap; }

/* An overview of what a manual holds: a grid of small cards. */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 0 0 24px; }
.tiles a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--fg); background: var(--bg); }
.tiles a:hover { border-color: var(--red); }
.tiles a b { display: block; }
.tiles a span { color: var(--muted); font-size: 14px; line-height: 1.45; display: block; margin-top: 2px; }

/* ---------- pictures and videos ---------- */
figure { margin: 24px 0 30px; }
figure .shot { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--bg2); }
figure .shot.small { max-width: 400px; }
figure .shot img, figure .shot video { width: 100%; height: auto; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 9px; line-height: 1.5; }
.videos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.video video { width: 100%; height: auto; background: var(--hero); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.video .cap { margin-top: 12px; font-size: 16px; line-height: 1.5; max-width: 820px; }
.video .cap b { display: block; }
.video .cap span { color: var(--muted); }

footer.page { border-top: 1px solid var(--line); padding: 28px 24px 40px; }
footer.page .inner { max-width: 1340px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; color: var(--muted); font-size: 14px; }
footer.page a { color: var(--muted); }

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  nav.toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
  nav.toc ol { columns: 2; column-gap: 16px; }
  nav.toc li { break-inside: avoid; }
}
@media (max-width: 640px) {
  .hero-inner { padding: 20px 16px 44px; }
  .layout { padding-left: 16px; padding-right: 16px; }
  nav.toc ol { columns: 1; }
  .hero h1 { margin-top: 34px; padding-left: 14px; }
  .hero p.lead, .hero .cta, .hero .meta { margin-left: 20px; }
  .hero .meta { margin-top: 28px; }
  .hero-top img { height: 30px; }
  section > h2 { font-size: 25px; }
  .crosslink { grid-template-columns: 1fr; padding: 22px 20px; }
  .crosslink img { display: none; }
}
@media print {
  .hero { color: #000; background: none; }
  .hero::before, .hero::after, .hero .cta, .manuals, nav.toc, .videos, .crosslink .go { display: none; }
  .hero p.lead, .hero-top .meta { color: #333; }
  .layout { display: block; padding-top: 0; }
  figure, table { break-inside: avoid; }
  a { color: inherit; }
}

/* Dark: the black blocks of the light look would vanish on the dark page. */
@media (prefers-color-scheme: dark) {
  nav.toc .app { background: var(--red); }
  nav.toc .app:hover { background: var(--red-dark); }
  .crosslink { background: #181b21; border: 1px solid var(--line-strong); border-left: 6px solid var(--red); }
}
