/* Visual Segue Editor v2 - help pages.
   Palette matches bluetomatomedia.com, but light: this is read for minutes at a
   time, not skimmed. Self-contained, no web fonts, works offline. */

:root {
  --bg: #e5e5e5;
  --panel: #f6f7f9;
  --panel-2: #eef0f3;
  --text: #1c1d21;
  --muted: #5c6370;
  --accent: #1f9d94;        /* the site's teal, darkened for contrast on white */
  --accent-soft: #e6f5f4;
  --warn: #b3560f;          /* the site's orange, darkened */
  --warn-soft: #fdf2e7;
  --border: #dcdfe4;
  --sidebar: 260px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- layout ---------- */

.layout { display: flex; min-height: 100vh; }

nav.sidebar {
  width: var(--sidebar);
  flex-shrink: 0;
  background: var(--panel);
  border-right: 1px solid var(--border);
  padding: 1.75rem 1.25rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

nav.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}
nav.sidebar .brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}
nav.sidebar .tagline {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0 0 1.5rem 1.05rem;
}

nav.sidebar ol {
  list-style: none;
  margin: 0; padding: 0;
  counter-reset: section;
}
nav.sidebar ol li { counter-increment: section; margin-bottom: 0.15rem; }
nav.sidebar ol li a {
  display: block;
  padding: 0.4rem 0.6rem;
  border-radius: 5px;
  color: var(--text);
  font-size: 0.9rem;
}
nav.sidebar ol li a::before {
  content: counter(section) ".";
  color: var(--muted);
  margin-right: 0.5rem;
  font-variant-numeric: tabular-nums;
}
nav.sidebar ol li a:hover { background: var(--panel-2); text-decoration: none; }
nav.sidebar ol li a.current {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
nav.sidebar ol li a.current::before { color: var(--accent); }

main {
  flex: 1;
  min-width: 0;
  padding: 3rem 3.5rem 6rem;
  max-width: 860px;
}

/* ---------- type ---------- */

h1 {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}
.subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 2.5rem;
}

h2 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin: 2.75rem 0 0.75rem;
  padding-top: 0.5rem;
}
h3 {
  font-size: 1.05rem;
  margin: 1.75rem 0 0.5rem;
}

p { margin: 0 0 1rem; }

ul, ol { margin: 0 0 1rem; padding-left: 1.4rem; }
li { margin-bottom: 0.35rem; }

strong { font-weight: 600; }

kbd, .ui {
  font-family: inherit;
  font-weight: 600;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.05em 0.4em;
  font-size: 0.92em;
  white-space: nowrap;
}

/* inline code, e.g. a filename or an ini key */
code {
  font-family: "SF Mono", "Cascadia Code", Consolas, "Courier New", monospace;
  font-size: 0.88em;
  background: var(--panel-2);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}

/* a code block, e.g. an ini snippet or a command line */
pre {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
  overflow-x: auto;
  margin: 1rem 0;
}
pre code {
  background: none;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: pre;
}

/* a button referred to by name, coloured as it is in the app */
.ui-green {
  background: #d9f2d9;
  border-color: #9fd39f;
}

/* ---------- steps ---------- */

.step {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 1.1rem 1.3rem;
  margin-bottom: 1rem;
}
.step h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--accent);
}
.step h3 .n {
  display: inline-block;
  min-width: 1.6em;
  color: var(--muted);
  font-weight: 400;
}
.step p:last-child { margin-bottom: 0; }

/* ---------- callouts ---------- */

.note, .warning {
  border-radius: 6px;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.note {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
}
.warning {
  background: var(--warn-soft);
  border-left: 3px solid var(--warn);
}
.note p:last-child, .warning p:last-child { margin-bottom: 0; }
.note strong { color: var(--accent); }
.warning strong { color: var(--warn); }

/* ---------- screenshots ---------- */

figure {
  margin: 1.75rem 0;
}
figure img,
figure video {
  max-width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: 6px;
}
figcaption {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.5rem;
}

/* Placeholder shown until a real screenshot is dropped in. Delete the rule once
   every image exists - a broken image is then obvious rather than disguised. */
figure.placeholder {
  background: repeating-linear-gradient(
    45deg, var(--panel), var(--panel) 10px, var(--panel-2) 10px, var(--panel-2) 20px);
  border: 1px dashed var(--border);
  border-radius: 6px;
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
figure.placeholder .shot-name {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

/* ---------- tables ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  background: var(--panel);
  font-weight: 600;
}
tbody tr:last-child td { border-bottom: none; }

/* ---------- footer nav ---------- */

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.pager a {
  display: block;
  padding: 0.75rem 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  max-width: 48%;
}
.pager a:hover { background: var(--panel-2); text-decoration: none; }
.pager a .dir { display: block; color: var(--muted); font-size: 0.78rem; }
.pager a.next { margin-left: auto; text-align: right; }

/* ---------- small screens ---------- */

@media (max-width: 800px) {
  .layout { flex-direction: column; }
  nav.sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  main { padding: 2rem 1.5rem 4rem; }
}

/* ---------- print ---------- */

@media print {
  nav.sidebar, .pager { display: none; }
  main { max-width: none; padding: 0; }
  body { font-size: 11pt; }
  h2 { page-break-after: avoid; }
  figure, .step, .note, .warning { page-break-inside: avoid; }
}
