:root {
    --bg-base:     #0E1029;
    --bg-surface:  #21233A;
    --bg-surface2: #2A2C45;
    --brand:       #74BD4C;
    --brand-glow:  rgba(116,189,76,0.15);
    --danger:      #E94846;
    --warning:     #D87205;
    --info:        #0676D6;
    --text:        #FFFFFF;
    --text-sec:    #B0B0B0;
    --text-ter:    #999999;
    --divider:     #444444;
    --radius:      8px;
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-base);
    color: var(--text);
    font-size: 15px;
    line-height: 1.65;
  }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 260px; background: var(--bg-surface);
    border-right: 1px solid var(--divider);
    overflow-y: auto; padding: 24px 0; z-index: 100;
  }
  .sidebar-logo {
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--divider);
    margin-bottom: 16px;
  }
  .sidebar-logo .app-name { font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: .05em; text-transform: uppercase; }
  .sidebar-logo .doc-title { font-size: 11px; color: var(--text-ter); margin-top: 2px; }
  .sidebar nav a {
    display: block; padding: 6px 20px;
    color: var(--text-sec); text-decoration: none;
    font-size: 13px; border-left: 3px solid transparent;
    transition: all .15s;
  }
  .sidebar nav a:hover { color: var(--text); background: var(--brand-glow); }
  .sidebar nav a.l1 { font-weight: 600; color: var(--text); margin-top: 8px; font-size: 12px; letter-spacing:.04em; text-transform:uppercase; }
  .sidebar nav a.l1:hover { border-left-color: var(--brand); }
  .sidebar nav a.l2 { padding-left: 32px; }
  .sidebar nav a.l3 { padding-left: 44px; font-size: 12px; }
  .main { margin-left: 260px; padding: 48px 56px 96px; max-width: 1060px; }
  h1 { font-size: 28px; font-weight: 800; color: var(--brand); margin-bottom: 6px; }
  h2 { font-size: 20px; font-weight: 700; color: var(--text); margin: 48px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--divider); }
  h3 { font-size: 16px; font-weight: 600; color: var(--brand); margin: 28px 0 12px; }
  h4 { font-size: 14px; font-weight: 600; color: var(--text-sec); margin: 20px 0 8px; text-transform: uppercase; letter-spacing: .06em; }
  p { margin-bottom: 14px; color: var(--text-sec); }
  strong { color: var(--text); font-weight: 600; }
  a { color: var(--brand); text-decoration: none; }
  a:hover { text-decoration: underline; }
  hr { border: none; border-top: 1px solid var(--divider); margin: 32px 0; }
  ul, ol { margin: 0 0 14px 22px; color: var(--text-sec); }
  li { margin-bottom: 4px; }
  li strong { color: var(--text); }
  blockquote { border-left: 3px solid var(--brand); margin: 16px 0; padding: 10px 16px; background: var(--brand-glow); border-radius: 0 var(--radius) var(--radius) 0; color: var(--text-sec); font-size: 14px; }
  code { font-family: "SF Mono", "Fira Code", Consolas, monospace; font-size: 13px; background: var(--bg-surface2); color: var(--brand); padding: 2px 6px; border-radius: 4px; }
  pre { background: var(--bg-surface2); border: 1px solid var(--divider); border-radius: var(--radius); padding: 18px 20px; overflow-x: auto; margin: 16px 0; }
  pre code { background: none; color: #e2e8f0; padding: 0; font-size: 13px; line-height: 1.6; }
  .table-wrap { overflow-x: auto; margin: 16px 0; border-radius: var(--radius); border: 1px solid var(--divider); }
  table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
  thead tr { background: var(--bg-surface2); }
  thead th { padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-sec); white-space: nowrap; }
  tbody tr { border-top: 1px solid var(--divider); transition: background .1s; }
  tbody tr:hover { background: rgba(255,255,255,.03); }
  td { padding: 9px 14px; color: var(--text-sec); vertical-align: top; }
  td strong { color: var(--text); }
  td code { font-size: 12px; }
  .ok   { color: #4ade80; font-weight: 600; }
  .warn { color: var(--warning); font-weight: 600; }
  .bad  { color: var(--danger);  font-weight: 600; }
  @media (max-width: 900px) { .sidebar { display: none; } .main { margin-left: 0; padding: 24px 20px 60px; } }

/* === appended from templates/extra.css === */
/* Language switcher (fixed top-right, native <details> for no-JS dropdown) */
.lang-switcher {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 200;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
}
.lang-switcher details {
  background: var(--bg-surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  min-width: 160px;
}
.lang-switcher summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
.lang-switcher summary::-webkit-details-marker { display: none; }
.lang-switcher summary::after {
  content: "▾";
  margin-left: auto;
  color: var(--text-ter);
  font-size: 11px;
}
.lang-switcher details[open] summary::after { content: "▴"; }
.lang-switcher ul {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  border-top: 1px solid var(--divider);
}
.lang-switcher li { margin: 0; }
.lang-switcher li a {
  display: block;
  padding: 6px 14px;
  color: var(--text-sec);
  text-decoration: none;
  border-left: 3px solid transparent;
}
.lang-switcher li a:hover {
  color: var(--text);
  background: var(--brand-glow);
  border-left-color: var(--brand);
  text-decoration: none;
}

/* Translation disclaimer (English banner under <h1> on non-EN/NL pages) */
.translation-notice {
  margin: 16px 0 24px;
  padding: 12px 16px;
  background: rgba(216, 114, 5, 0.08);
  border-left: 3px solid var(--warning);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-sec);
}
.translation-notice strong { color: var(--text); }
.translation-notice a {
  color: var(--brand);
  text-decoration: none;
}
.translation-notice a:hover { text-decoration: underline; }

/* Mobile adjustments */
@media (max-width: 768px) {
  .lang-switcher {
    top: 12px;
    right: 12px;
    font-size: 12px;
  }
  .lang-switcher details { min-width: 140px; }
  .main { padding-top: 64px; }
}
