:root {
  /* Brand */
  --brand:        #0070FF;
  --brand-deep:   #0056C6;
  --cyan:         #00A9DE;   /* deepened for legibility on white */
  --cyan-bright:  #00D1FF;   /* gradients / glows only */
  --violet:       #9C3FD1;   /* deepened for legibility on white */
  --teal:         #0B9E6E;
  --amber:        #C98A1F;
  --rose:         #D93359;

  /* Daylight surfaces */
  --ink:          #0B1B33;
  --bg:           #F7FAFD;
  --bg-2:         #FFFFFF;
  --surface:      #FFFFFF;
  --surface-2:    #F1F6FC;
  --surface-3:    #E7EFF9;
  --line:         rgba(11,42,84,0.10);
  --line-strong:  rgba(11,42,84,0.18);

  /* Text */
  --text:         #1C2B45;
  --text-2:       #4A5D80;
  /* ⚠️ Darkened 2026-09-07 from #7688A6, which measured 3.43:1 on --bg and
     failed WCAG AA (4.5) on 12 elements. #5B6F8D is 4.71:1 on the worst of
     the three grounds. The owner's "don't change the colour structure" rule
     is respected: same hue family, one token, nothing else moved.
     ⛔ #5F7391 looks like it should work and does NOT; it lands at 4.45. */
  --text-3:       #5B6F8D;

  /* Effects */
  --glow-blue:    rgba(0,112,255,0.18);
  --glow-cyan:    rgba(0,209,255,0.14);
  --shadow-card:  0 24px 50px rgba(23,59,110,0.10);
  --shadow-deep:  0 30px 70px rgba(23,59,110,0.14);
  --radius:       20px;
  --radius-lg:    28px;
  --radius-sm:    12px;
  --maxw:         1120px;

  --grad-brand:   linear-gradient(135deg, #0070FF 0%, #00D1FF 100%);
  --grad-brand-v: linear-gradient(135deg, #0056C6 0%, #0095D6 60%, #9C3FD1 130%);

  /* Typography mirrors the Cora app: Manrope headings · Inter body · JetBrains Mono data */
  --font-display: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", monospace;
}

/* ⛔ GENERATED by build_help.py. Edit the generator, not this file.
   The :root block above is copied from styles.css at build time. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
/* ⚖️ Hover must never REDUCE contrast. --brand (#0070FF) measures 4.21:1 on
   --bg and fails AA, so hover keeps --brand-deep (6.37:1) and signals itself
   with a thicker underline instead of a lighter colour. */
a:hover { color: var(--brand-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--surface); color: var(--text);
  padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0;
  box-shadow: var(--shadow-card); font-weight: 600;
}
.skip:focus { left: 0; }

/* ── Top bar ─────────────────────────────────────────────────────────── */
.hnav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247,250,253,0.88); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.hnav-in {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 16px;
}
.hbrand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.hbrand img { width: 96px; height: auto; display: block; }
.hbrand span {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: 0.02em; color: var(--text-2);
  border-left: 1px solid var(--line-strong); padding-left: 10px;
}
.hback { margin-left: auto; font-size: 14px; font-weight: 600; text-decoration: none; }
.hmenu {
  display: none; background: none; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 6px; color: var(--text-2); cursor: pointer;
}
.hmenu svg { width: 22px; height: 22px; display: block; }

/* ── Layout ──────────────────────────────────────────────────────────── */
.hwrap {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 48px;
  align-items: start;
}
.hside { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow-y: auto; padding: 32px 0 40px; }
.hside ul { list-style: none; margin: 0 0 20px; padding: 0; }
.hside li { margin: 0; }
.hside a {
  display: block; padding: 5px 10px; margin-left: -10px;
  border-radius: var(--radius-sm); font-size: 14.5px;
  color: var(--text-2); text-decoration: none; line-height: 1.4;
}
.hside a:hover { background: var(--surface-2); color: var(--text); }
.hside a.cur { background: var(--surface-3); color: var(--brand-deep); font-weight: 600; }
.nav-sec {
  font-family: var(--font-display); font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3);
  margin: 22px 0 8px;
}
.hside nav > ul:first-child { margin-top: 4px; }
.nav-g { margin: 0 0 2px; }
.nav-g > summary {
  list-style: none; cursor: pointer; padding: 5px 10px; margin-left: -10px;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
  color: var(--text-2); display: flex; align-items: center; gap: 6px;
}
.nav-g > summary::-webkit-details-marker { display: none; }
.nav-g > summary::before {
  content: ""; width: 0; height: 0; flex: none;
  border-left: 5px solid currentColor;
  border-top: 4px solid transparent; border-bottom: 4px solid transparent;
  transition: transform .15s ease; opacity: .55;
}
.nav-g[open] > summary::before { transform: rotate(90deg); }
.nav-g > summary:hover { background: var(--surface-2); color: var(--text); }
.nav-g > ul { margin: 2px 0 8px; padding-left: 12px; border-left: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .nav-g > summary::before { transition: none; } }

.hmain { padding: 34px 0 72px; min-width: 0; }
.doc { max-width: 70ch; }

/* ── Type ────────────────────────────────────────────────────────────── */
.doc h1 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4.4vw, 40px);
  line-height: 1.15; letter-spacing: -0.02em; color: var(--ink);
  margin: 0 0 20px; text-wrap: balance;
}
.doc h2 {
  font-family: var(--font-display); font-weight: 700; font-size: 23px;
  line-height: 1.3; letter-spacing: -0.01em; color: var(--ink);
  margin: 44px 0 12px; padding-top: 10px; text-wrap: balance;
  border-top: 1px solid var(--line);
}
.doc h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 17.5px;
  color: var(--ink); margin: 30px 0 8px; text-wrap: balance;
}
.doc h4 { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; color: var(--text); margin: 22px 0 6px; }
.doc p { margin: 0 0 16px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin: 0 0 7px; }
.doc li > ul, .doc li > ol { margin: 7px 0 0; }
.doc strong { font-weight: 650; color: var(--ink); }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }
.doc code {
  font-family: var(--font-mono); font-size: 0.875em;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 5px; padding: 1px 5px;
}
.doc pre {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 16px;
  overflow-x: auto; margin: 0 0 18px;
}
.doc pre code { background: none; border: 0; padding: 0; font-size: 13.5px; line-height: 1.6; }
.doc blockquote {
  margin: 0 0 18px; padding: 2px 0 2px 18px;
  border-left: 3px solid var(--line-strong); color: var(--text-2);
}
.doc blockquote p:last-child { margin-bottom: 0; }

/* ── On-page contents ────────────────────────────────────────────────── */
.toc {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 18px; margin: 0 0 30px;
}
.toc p {
  font-family: var(--font-display); font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin: 0 0 6px;
}
.toc ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.toc li { margin: 0 0 3px; break-inside: avoid; }
.toc a { font-size: 14.5px; text-decoration: none; color: var(--text-2); }
.toc a:hover { color: var(--brand-deep); text-decoration: underline; }

/* ── Callouts ────────────────────────────────────────────────────────── */
.cal {
  border-radius: var(--radius-sm); padding: 14px 18px; margin: 0 0 20px;
  border: 1px solid var(--line); border-left-width: 3px; background: var(--surface-2);
}
.cal > :last-child { margin-bottom: 0; }
.cal-t { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; margin: 0 0 5px !important; color: var(--ink); }
.cal-note    { border-left-color: var(--brand); }
.cal-warning { border-left-color: var(--amber); }
.cal-tip     { border-left-color: var(--teal); }

/* ── Figures ─────────────────────────────────────────────────────────── */
.shot { margin: 0 0 24px; }
.shot img {
  display: block; width: 100%; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface);
  box-shadow: 0 10px 26px rgba(23,59,110,0.07);
}
.shot figcaption { font-size: 13.5px; color: var(--text-3); margin-top: 8px; }

/* ── Search ──────────────────────────────────────────────────────────── */
.hfind {
  display: inline-flex; align-items: center; gap: 7px; margin-left: auto;
  padding: 6px 10px; font: inherit; font-size: 13.5px; cursor: pointer;
  color: var(--text-2); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.hfind:hover { border-color: var(--line-strong); color: var(--text); }
.hfind svg { width: 15px; height: 15px; }
.hfind kbd {
  font: inherit; font-size: 11.5px; padding: 1px 5px; color: var(--text-3);
  border: 1px solid var(--line); border-radius: 4px; background: var(--surface);
}
.sdlg {
  position: fixed; inset: 0; z-index: 95; display: flex;
  justify-content: center; padding: 10vh 20px 20px;
  background: rgba(9,18,33,.5);
}
.sbox {
  width: min(680px, 100%); max-height: 74vh; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 26px 70px rgba(0,0,0,.3);
  overflow: hidden;
}
.sbox input {
  font: inherit; font-size: 16px; padding: 15px 18px; border: 0;
  border-bottom: 1px solid var(--line); outline: none; color: var(--text);
  background: var(--surface);
}
.sres { overflow-y: auto; padding: 6px; margin: 0; list-style: none; }
.sres li { margin: 0; }
.sres a {
  display: block; padding: 9px 12px; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text);
}
.sres a:hover, .sres a.on { background: var(--surface-2); }
.sres b { display: block; font-size: 14.5px; color: var(--brand-deep); }
.sres em {
  display: block; font-style: normal; font-size: 12.5px;
  color: var(--text-3); margin-top: 2px;
}
.sres mark { background: #ffe9a8; color: inherit; padding: 0 1px; border-radius: 2px; }
.snone { padding: 22px; color: var(--text-3); font-size: 14px; }
@media (max-width: 900px) { .hfind span, .hfind kbd { display: none; } }

/* ── Zoomable screenshots ────────────────────────────────────────────── */
.zoom {
  display: block; padding: 0; border: 0; background: none; width: 100%;
  cursor: zoom-in; border-radius: var(--radius-sm);
}
.zoom:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.shot.phone .zoom { max-width: 300px; }

.lb {
  position: fixed; inset: 0; z-index: 90; display: flex;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(9,18,33,.86);
}
.lb img {
  max-width: min(1100px, 96vw); max-height: 92vh; width: auto; height: auto;
  border-radius: var(--radius-sm); box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.lb-x {
  position: absolute; top: 14px; right: 16px; width: 44px; height: 44px;
  font-size: 30px; line-height: 1; color: #fff; cursor: pointer;
  background: rgba(255,255,255,.12); border: 0; border-radius: var(--radius-sm);
}
.lb-x:hover { background: rgba(255,255,255,.22); }

/* ── Previous / next ─────────────────────────────────────────────────── */
.pn {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin: 40px 0 10px; padding-top: 22px; border-top: 1px solid var(--line);
}
.pn a {
  flex: 1 1 220px; min-width: 0; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; background: var(--surface);
}
.pn a:hover { border-color: var(--line-strong); background: var(--surface-2); }
.pn span {
  display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 3px;
}
.pn b { color: var(--brand-deep); font-size: 15px; font-weight: 600; }
.pn-n { text-align: right; }
.shot.phone img { max-width: 300px; }
.shot.phone { display: flex; flex-direction: column; align-items: flex-start; }
.shot.ph .ph-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 40px 20px; text-align: center;
  background: var(--surface-2); border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm); color: var(--text-3);
}
.shot.ph span { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.shot.ph small { font-size: 13px; }

/* ── Tables ──────────────────────────────────────────────────────────── */
.tw { overflow-x: auto; margin: 0 0 22px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.doc th, .doc td { text-align: left; padding: 9px 14px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th {
  font-family: var(--font-display); font-weight: 700; font-size: 12.5px;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3);
  border-bottom-color: var(--line-strong); white-space: nowrap;
}
.doc td code { white-space: nowrap; }

/* ── Page furniture ──────────────────────────────────────────────────── */
.stamp {
  margin: 44px 0 6px !important; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--text-3);
}
.ask { font-size: 14px; color: var(--text-2); margin: 0 !important; }

/* ── Home tiles (index only) ─────────────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 0 0 30px; padding: 0; list-style: none; }
.tiles li { margin: 0; }
.tiles a {
  display: block; height: 100%; padding: 16px 18px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: 0 2px 8px rgba(23,59,110,0.04);
}
.tiles a:hover { border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.tiles b { display: block; font-family: var(--font-display); font-size: 16px; color: var(--ink); margin-bottom: 3px; }
.tiles span { display: block; font-size: 14px; color: var(--text-2); line-height: 1.5; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.hfoot { border-top: 1px solid var(--line); background: var(--surface-2); margin-top: 40px; }
.hfoot-in { max-width: var(--maxw); margin: 0 auto; padding: 26px 24px 34px; }
.disc { font-size: 12.5px; line-height: 1.6; color: var(--text-3); margin: 0 0 8px; max-width: 88ch; }
.legal { font-size: 13px; color: var(--text-3); margin: 14px 0 0; }
.legal a { color: var(--text-2); }

/* ── Responsive ──────────────────────────────────────────────────────── */
.hclose { display: none; }

@media (max-width: 900px) {
  .hwrap { grid-template-columns: 1fr; gap: 0; }
  .hmenu { display: block; }

  /* ⛔ WAS `display:block` ON A STATIC ASIDE, which inserted the whole guide
     (50 links) above the article and pushed the page you came to read off
     the bottom of the screen. A drawer overlays instead, scrolls on its own,
     and closes. */
  .hside {
    display: block; position: fixed; top: 0; right: 0; bottom: 0;
    width: min(86vw, 340px); height: 100dvh; max-height: none;
    overflow-y: auto; overscroll-behavior: contain;
    background: var(--surface); border-left: 1px solid var(--line);
    box-shadow: -18px 0 40px rgba(0,0,0,.18);
    padding: 56px 20px 40px; z-index: 60;
    transform: translateX(100%); visibility: hidden;
    /* ⚠️ visibility is stepped, NOT eased. Transitioning it over a duration
       makes "is it visible yet" depend on where the transition has got to,
       which is fragile and untestable. Flip it instantly on open; delay it
       to the END of the slide on close so the drawer does not vanish
       mid-animation. Only `transform` is actually animated. */
    transition: transform .22s ease, visibility 0s linear .22s;
  }
  .hside.open {
    transform: none; visibility: visible;
    transition: transform .22s ease, visibility 0s linear 0s;
  }

  .hscrim {
    position: fixed; inset: 0; z-index: 55;
    background: rgba(0,0,0,.38);
  }
  .hclose {
    display: block; position: absolute; top: 10px; right: 12px;
    width: 40px; height: 40px; line-height: 1; font-size: 26px;
    background: none; border: 0; border-radius: var(--radius-sm);
    color: var(--text-2); cursor: pointer;
  }
  .hclose:hover { background: var(--surface-2); color: var(--text); }

  /* Stop the page scrolling under an open drawer. */
  html.nav-open, html.nav-open body { overflow: hidden; }

  .hmain { padding-top: 26px; }
  .toc ul { columns: 1; }
  .doc h1 { font-size: 29px; }
}

@media (prefers-reduced-motion: reduce) {
  .hside { transition: none; }
}
@media (max-width: 640px) {
  /* ⭐ A two-column reference table is the common shape here, and sideways
     scrolling hides the half that explains the other half. Stack each row
     into a card and label the cells from the header. */
  .doc table.stack, .doc table.stack tbody, .doc table.stack tr, .doc table.stack td {
    display: block; width: 100%;
  }
  .doc table.stack thead { display: none; }
  .doc table.stack tr {
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 10px 12px; margin: 0 0 10px; background: var(--surface);
  }
  .doc table.stack td { border: 0; padding: 3px 0; }
  .doc table.stack td::before {
    content: attr(data-th); display: block;
    font-size: 11px; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--text-3);
  }
  .doc table.stack td:first-child { font-weight: 600; color: var(--text); }
  .pn-n { text-align: left; }
}

@media (max-width: 520px) {
  .hnav-in, .hwrap, .hfoot-in { padding-left: 18px; padding-right: 18px; }
  .hbrand img { width: 78px; }
  .hback { font-size: 13px; }
}
