/* Generated by scripts/build-user-guide.py; edit the script, not this file. */
:root {
  --bg: #0b1f33;
  --panel: #0f2940;
  --text: #d6e4f0;
  --muted: #8aa8c4;
  --faint: #5a7f9e;
  --border: #1e3a54;
  --accent: #3a6ea5;
  --highlight: #ff6a00;
  --heading: #ffffff;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Keyboard focus and scrolling into view keep clear of the floating chapter bar. */
  scroll-padding-bottom: 5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

a {
  color: var(--heading);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--highlight);
  text-decoration-color: var(--highlight);
}

:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -4rem;
  padding: 0.5rem 1rem;
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: 6px;
  z-index: 10;
}

.skip-link:focus {
  top: 0.75rem;
}

.bar,
main {
  max-width: 54rem;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  color: var(--heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.lang-switch {
  display: flex;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.lang-switch a,
.lang-switch .current {
  display: inline-block;
  min-width: 2.75rem;
  padding: 0.375rem 0.625rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
}

.lang-switch a {
  color: var(--muted);
}

.lang-switch a:hover {
  color: var(--heading);
  border-color: var(--accent);
}

.lang-switch .current {
  color: var(--heading);
  background: var(--accent);
  border-color: var(--accent);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading);
  line-height: 1.25;
  font-weight: 700;
  scroll-margin-top: 1rem;
}

h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin: 2.5rem 0 1rem;
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
  letter-spacing: -0.015em;
  margin: 0 0 1.25rem;
}

h3 {
  font-size: 1.3rem;
  margin: 2.25rem 0 0.75rem;
}

h4 {
  font-size: 1.075rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
}

h5,
h6 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

h3:target,
h4:target {
  color: var(--highlight);
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

p,
li,
td {
  -webkit-hyphens: auto;
  hyphens: auto;
}

ul,
ol {
  padding-left: 1.5rem;
}

li {
  margin: 0.25rem 0;
}

li > p {
  margin: 0.25rem 0;
}

li > ul,
li > ol {
  margin: 0.25rem 0;
}

li::marker {
  color: var(--muted);
}

strong {
  color: var(--heading);
  font-weight: 600;
}

code {
  font-family: var(--mono);
  font-size: 0.875em;
  color: var(--heading);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.05em 0.35em;
  overflow-wrap: anywhere;
  -webkit-hyphens: none;
  hyphens: none;
}

pre {
  overflow-x: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.875rem 1rem;
}

pre code {
  border: 0;
  padding: 0;
  background: none;
  overflow-wrap: normal;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.intro .lead {
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 44rem;
}

.toc {
  margin: 2rem 0 1rem;
  padding: 1.25rem 1.25rem 0.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.toc h2 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-guides {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr));
  gap: 0 2rem;
}

.toc-guides > li {
  margin: 0 0 1rem;
}

.toc-guide {
  font-weight: 600;
  font-size: 1.0625rem;
}

.toc-guides ol {
  margin-top: 0.375rem;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.toc-guides ol li {
  margin: 0.3rem 0;
}

.toc-guides ol a {
  color: var(--text);
  text-decoration-color: var(--border);
}

.toc-guides ol a:hover {
  color: var(--highlight);
  text-decoration-color: var(--highlight);
}

.guide {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.guide-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.25rem;
}

.guide-head h2 {
  margin: 0;
}

.guide-head h2::before {
  content: '';
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-bottom: 0.875rem;
  background: var(--highlight);
  border-radius: 2px;
}

.back {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}

.back-end {
  margin-top: 2rem;
}

.back a {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  color: var(--highlight);
  border: 1px solid var(--highlight);
  border-radius: 999px;
  text-decoration: none;
}

.back a:hover {
  color: var(--bg);
  background: var(--highlight);
}

/* The floating chapter bar: the last child of each guide's article, sticky at the bottom of the
   window while that article is in view. No ancestor of it may set overflow, or it stops sticking. */
.chapter-nav {
  position: -webkit-sticky;
  position: sticky;
  bottom: 0.75rem;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

.chapter-nav a,
.chapter-nav .disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--highlight);
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
}

.chapter-nav a {
  color: var(--highlight);
}

.chapter-nav a:hover {
  color: var(--bg);
  background: var(--highlight);
}

.chapter-nav .disabled {
  color: var(--faint);
  border-color: var(--border);
  cursor: default;
}

.chapter-nav .short {
  display: none;
}

@media (max-width: 48rem) {
  .chapter-nav {
    bottom: 0.5rem;
    gap: 0.375rem;
    padding: 0.375rem;
    font-size: 0.8125rem;
  }

  .chapter-nav a,
  .chapter-nav .disabled {
    flex: 1 1 auto;
    min-height: 2.5rem;
    padding: 0.375rem 0.5rem;
  }

  .chapter-nav .full {
    display: none;
  }

  .chapter-nav .short {
    display: inline;
  }
}

@media print {
  .chapter-nav {
    display: none;
  }
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  margin: 1.25rem 0 1.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}

th,
td {
  min-width: 7.5rem;
  padding: 0.5rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--heading);
  font-weight: 600;
  background: var(--bg);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.shot {
  margin: 1.5rem 0;
}

.shot img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--faint);
  border-radius: 6px;
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer .bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 1.25rem;
}

.site-footer a {
  color: var(--text);
  text-decoration-color: var(--faint);
}

.site-footer a:hover {
  color: var(--highlight);
}
