/* manual.css - VL3/x Pilot Manual Design System */
/* Spec: docs/superpowers/specs/2026-04-07-user-manual-design.md */

/* ===== Fonts ===== */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/inter-latin-700-normal.woff2") format("woff2");
}

/* ===== Design Tokens: Dark Mode (default) ===== */
:root {
  color-scheme: dark;
  --surface-base: #121417;
  --surface-1: #212121;
  --surface-2: #2a2a2a;
  --surface-3: #333333;
  --surface-4: #3d3d3d;
  --surface-border: #444444;

  /* Table surfaces. Tokenised so the light theme can override them; the
     values here are the ones dark has always rendered. */
  --table-header-bg: #1b1f24;
  --table-header-sorted-bg: #21262c;
  --table-row-alt-bg: #15181c;

  --text-primary: #f4f6f8;
  --text-secondary: #dde1e6;
  --text-tertiary: #9aa3ad;

  --color-guitar: #ff6b6b;
  --color-vocal: #4ecdc4;
  --color-setup: #ffe66d;
  --color-dsp: #c084fc;
  --color-neutral: #8a9ba8;

  --tint-guitar: rgba(255, 107, 107, 0.12);
  --tint-vocal: rgba(78, 205, 196, 0.12);
  --tint-setup: rgba(255, 230, 109, 0.12);
  --tint-dsp: rgba(192, 132, 252, 0.12);
  --tint-neutral: rgba(138, 155, 168, 0.12);

  --link-color: #5fe3d8;

  /* Page heading, Tip callout and skip link. Tokenised so the light theme can
     override them (bk-0004 #2); the values here are the ones dark has always
     rendered. */
  --heading-color: #ffffff;
  --callout-tip-bg: #16201f;
  --callout-tip-accent: #5fe3d8;
  --skip-link-text: #000000;
  --sidebar-width: 240px;
  --mono-font:
    ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", Menlo, Consolas, monospace;
}

/* ===== Print / PDF: Option B warm palette (screen always stays Option A dark) ===== */
@media print {
  :root {
    --table-header-bg: #efece6;
    --table-header-sorted-bg: #e6e1d8;
    --table-row-alt-bg: #f2efe9;
    /* Option B: warm paper palette (see dist/manual-readability-mockup.html .light) */
    --surface-base: #faf8f4;
    --surface-1: #f2efe9;
    --surface-2: #efece6;
    --surface-3: #e6e1d8;
    --surface-4: #ddd6c9;
    --surface-border: #d8d2c6;

    --text-primary: #15140f;
    --text-secondary: #2b2a28;
    --text-tertiary: #6b675f;

    --color-guitar: #a72f29;
    --color-vocal: #0d665f;
    --color-setup: #6d5a00;
    --color-dsp: #6c23eb;
    --color-neutral: #4f5e69;

    --tint-guitar: rgba(194, 54, 47, 0.1);
    --tint-vocal: rgba(15, 118, 110, 0.1);
    --tint-setup: rgba(135, 111, 0, 0.1);
    --tint-dsp: rgba(124, 58, 237, 0.1);
    --tint-neutral: rgba(90, 107, 120, 0.1);

    --link-color: #0d665f;

    --heading-color: var(--text-primary);
    --callout-tip-bg: #eef6f4;
    --callout-tip-accent: #0f766e;
    --skip-link-text: var(--surface-base);
  }
}

/* ===== Screen Light Mode: the same warm "paper" palette, bound to the app's
   data-theme="light" (shared localStorage key 'pilot-theme', set by the in-app
   theme toggle and by the manual's own toggle). KEEP THESE TOKEN VALUES IN SYNC
   with the @media print :root block above. ===== */
html[data-theme="light"] {
  color-scheme: light;

  /* Category text darkened 2026-10-28 so it clears 4.5:1 on every light surface and on its own
     tint (measured 3.35-3.82:1 at worst before; Setup labels, DSP badges, neutral code text and
     Guitar labels fell short on the live page). Same hue and saturation, lower lightness.
     KEEP IN SYNC with the @media print :root block. */

  --surface-base: #faf8f4;
  --surface-1: #f2efe9;
  --surface-2: #efece6;
  --surface-3: #e6e1d8;
  --surface-4: #ddd6c9;
  --surface-border: #d8d2c6;

  --text-primary: #15140f;
  --text-secondary: #2b2a28;
  --text-tertiary: #6b675f;

  --color-guitar: #a72f29;
  --color-vocal: #0d665f;
  --color-setup: #6d5a00;
  --color-dsp: #6c23eb;
  --color-neutral: #4f5e69;

  --tint-guitar: rgba(194, 54, 47, 0.1);
  --tint-vocal: rgba(15, 118, 110, 0.1);
  --tint-setup: rgba(135, 111, 0, 0.1);
  --tint-dsp: rgba(124, 58, 237, 0.1);
  --tint-neutral: rgba(90, 107, 120, 0.1);

  --link-color: #0d665f;

  --heading-color: var(--text-primary);
  --callout-tip-bg: #eef6f4;
  --callout-tip-accent: #0f766e;
  --skip-link-text: var(--surface-base);

  --table-header-bg: #efece6;
  --table-header-sorted-bg: #e6e1d8;
  --table-row-alt-bg: #f2efe9;
}

/* ===== Print / PDF: Option B reading overrides ===== */
@media print {
  body {
    font-size: 17px;
  }
  h1 {
    color: var(--text-primary);
  }
  .callout-tip {
    border-color: #0f766e;
    background: #eef6f4;
  }
  .callout-tip .callout-label {
    color: #0f766e;
  }
  a {
    border-bottom-color: rgba(15, 118, 110, 0.35);
  }
}

/* ===== Reset and Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .sidebar {
    transition: none;
  }
}

body {
  background: var(--surface-base);
  color: var(--text-secondary);
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    system-ui,
    sans-serif;
  font-size: 16.5px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

/* ===== Focus Indicators (a11y) ===== */
:focus-visible {
  outline: 2px solid var(--link-color);
  outline-offset: 2px;
}
a:focus-visible {
  border-radius: 2px;
}
button:focus-visible {
  border-radius: 4px;
}

/* ===== Skip to Content (a11y) ===== */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-vocal);
  color: var(--skip-link-text);
  padding: 8px 16px;
  z-index: 1000;
  font-weight: 600;
  text-decoration: none;
}
.skip-to-content:focus {
  top: 0;
}

/* ===== Layout: Sidebar + Content ===== */
.manual-layout {
  display: flex;
  min-height: 100vh;
}

/* ===== Sidebar ===== */
.sidebar {
  position: sticky;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  overflow-y: auto;
  background: var(--surface-1);
  border-right: 1px solid var(--surface-border);
  padding: 16px 0;
  flex-shrink: 0;
  font-size: 13px;
}

.sidebar-header {
  position: relative;
  padding: 0 16px 12px;
  border-bottom: 1px solid var(--surface-border);
  margin-bottom: 8px;
}

.sidebar-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Pilot brand lockup (manual surfaces) */
.sidebar-title .pilot-logo-img,
.mobile-title .pilot-logo-img {
  content: url("/images/pilot-logo-dark.svg");
  height: 28px;
  width: auto;
  vertical-align: middle;
}

.mobile-title .pilot-logo-img {
  height: 22px;
}

h1 .pilot-logo-img {
  content: url("/images/pilot-mark-dark.svg");
  display: inline-block;
  height: 40px;
  width: 40px;
  margin-right: 10px;
  vertical-align: middle;
}

h1 .brand-pilot {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--color-vocal);
  margin-right: 6px;
  vertical-align: middle;
}

[data-theme="light"] .sidebar-title .pilot-logo-img,
[data-theme="light"] .mobile-title .pilot-logo-img {
  content: url("/images/pilot-logo-light.svg");
}

[data-theme="light"] h1 .pilot-logo-img {
  content: url("/images/pilot-mark-light.svg");
}

.manual-suffix {
  font-weight: 500;
  color: var(--text-secondary);
}

/* ===== Dark/Light theme toggle (shares the app's 'pilot-theme' state) ===== */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-secondary);
  cursor: pointer;
}
.theme-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-tertiary);
}
.theme-toggle-btn svg {
  display: block;
  pointer-events: none;
}
.theme-toggle-btn .icon-moon {
  display: none;
}
[data-theme="light"] .theme-toggle-btn .icon-sun {
  display: none;
}
[data-theme="light"] .theme-toggle-btn .icon-moon {
  display: block;
}
.sidebar-header .theme-toggle-btn {
  position: absolute;
  top: 4px;
  right: 16px;
}
.mobile-topbar .theme-toggle-btn {
  margin-left: auto;
}
/* On mobile the sidebar is a drawer; the top-bar toggle is the single control. */
@media (max-width: 1024px) {
  .sidebar-header .theme-toggle-btn {
    display: none;
  }
}
@media print {
  .theme-toggle-btn {
    display: none !important;
  }
}

h1 .manual-suffix {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--text-secondary);
  vertical-align: middle;
}

.sidebar-search {
  margin-top: 8px;
  position: relative;
}

.sidebar-search input {
  width: 100%;
  padding: 6px 10px;
  background: var(--surface-2);
  border: 1px solid var(--surface-border);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 12px;
  font-family: inherit;
  outline: none;
}
.sidebar-search input:focus {
  border-color: var(--link-color);
}

.sidebar-quick-links {
  padding: 8px 16px;
  border-bottom: 1px solid var(--surface-border);
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-quick-links a {
  color: var(--link-color);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
}

.sidebar-section {
  padding: 4px 0;
}

.sidebar-section-label {
  padding: 4px 16px;
  font-weight: 600;
  color: var(--text-tertiary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  user-select: none;
}

.sidebar-section-label.active {
  color: var(--text-primary);
}

.sidebar-section-items {
  display: none;
}

.sidebar-section.expanded .sidebar-section-items {
  display: block;
}

.sidebar-link {
  display: block;
  padding: 3px 16px 3px 24px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  border-left: 2px solid transparent;
}
.sidebar-link:hover {
  color: var(--text-primary);
  background: var(--surface-2);
}
.sidebar-link.current {
  font-weight: 500;
}
/* Category color indicators on current page */
.sidebar-link.current.color-guitar {
  color: var(--color-guitar);
  border-left-color: var(--color-guitar);
}
.sidebar-link.current.color-vocal {
  color: var(--color-vocal);
  border-left-color: var(--color-vocal);
}
.sidebar-link.current.color-setup {
  color: var(--color-setup);
  border-left-color: var(--color-setup);
}
.sidebar-link.current.color-dsp {
  color: var(--color-dsp);
  border-left-color: var(--color-dsp);
}
.sidebar-link.current.color-neutral {
  color: var(--link-color);
  border-left-color: var(--link-color);
}

.sidebar-anchor {
  display: block;
  padding: 2px 16px 2px 36px;
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 12px;
}
.sidebar-anchor:hover {
  color: var(--text-secondary);
}

/* ===== Mobile Top Bar + Hamburger ===== */
.mobile-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-1);
  border-bottom: 1px solid var(--surface-border);
  padding: 8px 16px;
  align-items: center;
  gap: 12px;
}

.hamburger {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.mobile-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 199;
}

.sidebar-close {
  display: none;
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 16px;
  margin-bottom: 4px;
  text-align: right;
  width: 100%;
}

/* ===== Content Area ===== */
.content {
  flex: 1;
  min-width: 0;
  max-width: 680px;
  margin: 0 auto;
  padding: 36px 32px 64px;
}

.breadcrumb {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}
.breadcrumb a {
  color: var(--text-tertiary);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--link-color);
}
.breadcrumb .sep {
  margin: 0 6px;
}

.page-meta {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}

/* ===== Typography ===== */
h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--heading-color);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 44px;
  margin-bottom: 14px;
  scroll-margin-top: 80px;
}

h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 30px;
  margin-bottom: 8px;
  scroll-margin-top: 80px;
}

p {
  margin-bottom: 18px;
}

a {
  color: var(--link-color);
  text-decoration: none;
  border-bottom: 1px solid rgba(95, 227, 216, 0.35);
}
a:hover {
  border-bottom-color: var(--link-color);
}
/* bk-0004 item 2 and rev 3 R4: the link colour is close to body text in both themes (light
   2.11:1, dark 1.19:1; WCAG 1.4.1), so a content link carries a solid underline in its own
   colour, and hover moves it to the text colour. The breadcrumb and the index pills sit inside
   .content and keep their look. */
.content a:not(.breadcrumb a, .index-quick-links a) {
  border-bottom-color: var(--link-color);
}
.content a:not(.breadcrumb a, .index-quick-links a):hover {
  border-bottom-color: var(--text-primary);
}

ul,
ol {
  margin-bottom: 18px;
  padding-left: 24px;
}
li {
  margin-bottom: 8px;
}

/* ===== Callout Components ===== */
.callout {
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 6px;
  border-left: 3px solid;
  font-size: 14px;
}
.callout-label {
  font-weight: 700;
  margin-right: 4px;
}

.callout-backup {
  border-color: var(--color-setup);
  background: var(--tint-setup);
}
.callout-backup .callout-label {
  color: var(--color-setup);
}

.callout-tip {
  border-color: var(--callout-tip-accent);
  background: var(--callout-tip-bg);
}
.callout-tip .callout-label {
  color: var(--callout-tip-accent);
}

.callout-warning {
  border-color: var(--color-guitar);
  background: var(--tint-guitar);
}
.callout-warning .callout-label {
  color: var(--color-guitar);
}

.callout-note {
  border-color: var(--color-neutral);
  background: var(--tint-neutral);
}
.callout-note .callout-label {
  color: var(--color-neutral);
}

.callout-scenario {
  border-color: var(--color-dsp);
  background: var(--tint-dsp);
}
.callout-scenario .callout-label {
  color: var(--color-dsp);
}

/* ===== DSP-Only Badge ===== */
.dsp-badge {
  display: inline-block;
  background: var(--tint-dsp);
  color: var(--color-dsp);
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 3px;
  vertical-align: middle;
  letter-spacing: 0.3px;
}

/* ===== Parameter Tables ===== */
.param-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
}
.param-table th {
  text-align: left;
  padding: 8px 12px;
  background: var(--table-header-bg);
  color: var(--text-primary);
  font-weight: 600;
  border-bottom: 1px solid var(--surface-border);
  font-size: 12px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.param-table th .sort-arrow {
  margin-left: 4px;
  font-size: 10px;
  /* bk-0004 rev 3 R12: the lowest opacity at 3:1 on the light header (0.4 gave 2.52:1). */
  opacity: 0.47;
}
.param-table th.sorted {
  background: var(--table-header-sorted-bg);
}
.param-table th.sorted .sort-arrow {
  opacity: 1;
}

.param-table td {
  padding: 6px 12px;
  border-bottom: 1px solid var(--surface-border);
  vertical-align: top;
}
.param-table tr:nth-child(even) td {
  background: var(--table-row-alt-bg);
}
.param-table tr:nth-child(odd) td {
  background: transparent;
}

/* Table horizontal scroll on mobile */
.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
}

/* ===== Code / Monospace ===== */
code {
  font-family: var(--mono-font);
  font-size: 13px;
  background: var(--surface-3);
  padding: 1px 5px;
  border-radius: 3px;
}
pre {
  background: var(--surface-2);
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  padding: 12px 16px;
  overflow-x: auto;
  margin: 16px 0;
  font-size: 13px;
  line-height: 1.5;
}
pre code {
  background: none;
  padding: 0;
}

/* ===== Images ===== */
figure {
  margin: 20px 0;
  break-inside: avoid;
}
figure img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}
figcaption {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 6px;
  text-align: center;
}

/* Screenshot framing for print (border on figure container, not img) */
@media print {
  figure.screenshot {
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    overflow: hidden;
  }
}

/* ===== Related Pages (bottom of content) ===== */
.related-pages {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--surface-border);
}
.related-pages h3 {
  font-size: 14px;
  margin-top: 0;
  color: var(--text-tertiary);
}
.related-pages ul {
  list-style: none;
  padding: 0;
}
.related-pages li {
  margin-bottom: 6px;
}

/* ===== Footer ===== */
.manual-footer {
  margin-top: 48px;
  padding: 20px 0;
  border-top: 1px solid var(--surface-border);
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
}
.manual-footer a {
  color: var(--text-tertiary);
}
.manual-footer a:hover {
  color: var(--link-color);
}
.footer-links {
  margin-top: 6px;
}
.footer-links span {
  margin: 0 8px;
}

/* ===== Glossary Filter ===== */
.glossary-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.glossary-filter {
  flex: 1;
  min-width: 200px;
  padding: 8px 12px;
  background: var(--surface-2);
  border: 1px solid var(--surface-border);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.glossary-filter:focus {
  border-color: var(--link-color);
}
.glossary-category-select {
  padding: 8px 12px;
  background: var(--surface-2);
  border: 1px solid var(--surface-border);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
}

/* ===== Loading State ===== */
.loading-msg {
  text-align: center;
  padding: 32px;
  color: var(--text-tertiary);
  font-size: 14px;
}

/* ===== Glossary Live Region (a11y) ===== */
.glossary-status {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

/* ===== Index Page Cards ===== */
.index-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.index-card {
  background: var(--surface-1);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 16px;
  border-left: 3px solid var(--color-neutral);
}
.index-card h3 {
  margin-top: 0;
  font-size: 15px;
}
.index-card p {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}
.index-card ul {
  list-style: none;
  padding: 0;
  font-size: 13px;
}
.index-card.guitar {
  border-left-color: var(--color-guitar);
}
.index-card.vocal {
  border-left-color: var(--color-vocal);
}
.index-card.setup {
  border-left-color: var(--color-setup);
}
.index-card.dsp {
  border-left-color: var(--color-dsp);
}

/* ===== Responsive: Tablet ===== */
@media (max-width: 1024px) {
  .sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    width: 280px;
    z-index: 200;
    transition: left 0.25s ease;
  }
  .sidebar.open {
    left: 0;
  }
  .sidebar-close {
    display: block;
  }
  .sidebar-backdrop.open {
    display: block;
  }
  .mobile-topbar {
    display: flex;
  }
  .content {
    padding: 24px 20px 48px;
  }
}
@media (max-width: 1024px) and (prefers-reduced-motion: reduce) {
  .sidebar {
    transition: none;
  }
}

/* ===== Responsive: Mobile ===== */
@media (max-width: 768px) {
  .content {
    padding: 16px 16px 40px;
  }
  h1 {
    font-size: 24px;
  }
  h2 {
    font-size: 18px;
    scroll-margin-top: 60px;
  }
  h3 {
    font-size: 15px;
    scroll-margin-top: 60px;
  }
  .index-cards {
    grid-template-columns: 1fr;
  }
}

/* ===== Print ===== */
@media print {
  body {
    background: #faf8f4;
    color: #2b2a28;
    font-size: 11pt;
  }

  .sidebar,
  .mobile-topbar,
  .sidebar-backdrop,
  .skip-to-content,
  .glossary-controls,
  .sidebar-search {
    display: none !important;
  }

  .manual-layout {
    display: block;
  }

  .content {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  a {
    color: #0f766e;
    text-decoration: underline;
    border-bottom: none;
  }
  /* Print external URLs but suppress vl3x.info and internal links */
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #666;
  }
  a[href^="https://vl3x.info"]::after {
    content: "";
  }
  a[href^="http://vl3x.info"]::after {
    content: "";
  }
  a:not([href^="http"])::after {
    content: "";
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
  figure,
  .callout,
  .param-table {
    break-inside: avoid;
  }
  .param-table tr {
    break-inside: avoid;
  }

  .callout {
    border-left-width: 3px;
    background: none !important;
    border-color: #888 !important;
  }
  .callout-label {
    color: #333 !important;
  }

  .dsp-badge {
    background: none;
    border: 1px solid #888;
    color: #333;
  }

  .manual-footer {
    border-top: 1px solid #ccc;
    color: #666;
  }
}
