/* Luminor user guide (shared by guide.html and guide-fr.html) */
:root {
  color-scheme: dark;
  --bg: #1c1c1e; --surface: #2c2c2e; --surface-2: #242426;
  --text: #f5f5f7; --text-2: rgba(235,235,245,.66); --text-3: rgba(235,235,245,.36);
  --sep: rgba(84,84,88,.55); --fill: rgba(118,118,128,.2);
  --accent: #0a84ff; --accent-text: #409cff; --accent-soft: rgba(10,132,255,.16);
  --yellow: #ffd60a; --orange: #ff9f0a; --green: #30d158; --red: #ff453a;
  --axial: #0a84ff; --coronal: #30d158; --sagittal: #ff9f0a;
  --font: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f5f5f7; --surface: #ffffff; --surface-2: #fbfbfd;
    --text: #1d1d1f; --text-2: rgba(60,60,67,.75); --text-3: rgba(60,60,67,.45);
    --sep: rgba(60,60,67,.16); --fill: rgba(120,120,128,.12);
    --accent-text: #0066cc; --accent-soft: rgba(0,113,227,.09);
    --yellow: #b58900; --orange: #c93400; --green: #248a3d; --red: #d70015;
  }
}
:root[data-theme="dark"] { color-scheme: dark; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.62 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
.layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); max-width: 1220px; margin: 0 auto; }

/* Table of contents */
nav.toc { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 32px 18px 32px 24px; border-right: 1px solid var(--sep); }
.toc .brand { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; color: var(--text); }
.toc .brand img { width: 32px; height: 32px; border-radius: 8px; }
.toc .brand strong { display: block; font-size: 16px; letter-spacing: -.02em; }
.toc .brand span { font-size: 12px; color: var(--text-2); }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc ol a { display: flex; gap: 8px; padding: 5px 10px; border-radius: 8px; color: var(--text-2); font-size: 14px; }
.toc ol a::before { content: counter(toc); width: 18px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.toc ol a:hover { background: var(--fill); color: var(--text); text-decoration: none; }
.toc .brand:hover { text-decoration: none; }
.toc ol a.on { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.toc .open-app { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 24px; padding: 9px 12px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600; font-size: 14px; }
.toc .open-app:hover { text-decoration: none; filter: brightness(1.08); }

/* Content */
main { padding: 48px 56px 96px; min-width: 0; }
.hero { padding-bottom: 28px; margin-bottom: 8px; border-bottom: 1px solid var(--sep); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
h1 { font-size: 48px; line-height: 1.08; letter-spacing: -.035em; margin: 8px 0 14px; font-weight: 700; }
.lede { font-size: 20px; line-height: 1.5; color: var(--text-2); max-width: 720px; margin: 0; }
h2 { font-size: 30px; letter-spacing: -.025em; line-height: 1.2; margin: 64px 0 12px; font-weight: 700; }
h2 .num { color: var(--text-3); font-weight: 600; margin-right: 10px; font-variant-numeric: tabular-nums; }
h3 { font-size: 20px; letter-spacing: -.015em; margin: 34px 0 8px; font-weight: 600; }
p, li { max-width: 760px; }
ul, ol { padding-left: 22px; }
li { margin: 4px 0; }
strong { font-weight: 600; }
code, kbd { font-family: var(--mono); font-size: .86em; }
code { background: var(--fill); padding: 1px 6px; border-radius: 5px; }
kbd { display: inline-block; min-width: 22px; text-align: center; padding: 1px 7px; border-radius: 6px; background: var(--surface); border: 1px solid var(--sep); border-bottom-width: 2px; font-weight: 600; font-size: .8em; white-space: nowrap; }
figure { margin: 22px 0 28px; }
figure img { display: block; width: 100%; max-width: 820px; border-radius: 12px; border: 1px solid var(--sep); box-shadow: 0 12px 40px rgba(0,0,0,.28); }
figcaption { font-size: 13px; color: var(--text-2); margin-top: 10px; max-width: 820px; }

.callout { display: flex; gap: 14px; padding: 14px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--sep); max-width: 760px; margin: 18px 0; }
.callout .ic { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.callout p { margin: 0; }
.callout.tip .ic { background: var(--accent-soft); color: var(--accent-text); }
.callout.warn .ic { background: rgba(255,159,10,.16); color: var(--orange); }
.callout.safety { border-color: rgba(255,159,10,.45); }
.callout.safety .ic { background: rgba(255,159,10,.16); color: var(--orange); }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 40px; margin: 12px 0; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }

table { border-collapse: separate; border-spacing: 0; width: 100%; max-width: 820px; margin: 16px 0 24px; font-size: 14.5px; background: var(--surface); border: 1px solid var(--sep); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--sep); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); font-weight: 600; background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td:first-child { white-space: nowrap; }
.num-col { font-variant-numeric: tabular-nums; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 24px 0; max-width: 820px; }
.feature { padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--sep); }
.feature b { display: block; font-size: 15px; margin-bottom: 4px; }
.feature span { font-size: 13.5px; color: var(--text-2); line-height: 1.5; display: block; }
.feature i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent-text); }

.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: 0; margin-right: 4px; }
.diagram { max-width: 820px; margin: 22px 0 8px; }
.diagram svg { width: 100%; height: auto; display: block; }
.legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px 22px; max-width: 820px; padding: 0; list-style: none; font-size: 14.5px; }
.legend li { display: flex; gap: 10px; align-items: baseline; }
.badge-n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }

footer.doc { margin-top: 72px; padding-top: 22px; border-top: 1px solid var(--sep); font-size: 13px; color: var(--text-2); }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  nav.toc { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--sep); padding: 20px 16px; }
  .toc ol { columns: 2; }
  main { padding: 28px 16px 64px; }
  h1 { font-size: 36px; }
  .lede { font-size: 18px; }
  table { display: block; overflow-x: auto; }
}
@media print {
  :root { color-scheme: light; --bg: #fff; --surface: #fff; --surface-2: #f5f5f7; --text: #000; --text-2: #444; --text-3: #777; --sep: #ccc; --fill: #eee; --accent-text: #0066cc; }
  nav.toc { display: none; }
  .layout { display: block; }
  main { padding: 0; }
  h2 { break-before: page; margin-top: 0; }
  figure, table, .callout { break-inside: avoid; }
  figure img { box-shadow: none; }
  a { color: inherit; }
}

/* Language switch */
.lang { display: flex; gap: 2px; padding: 2px; margin: 0 0 22px; border-radius: 9px; background: var(--fill); }
.lang a { flex: 1; text-align: center; padding: 4px 8px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.lang a:hover { text-decoration: none; color: var(--text); }
.lang a[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
@media print { .lang { display: none; } }
