:root {
  --bg: #f5f7f7;
  --card: #ffffff;
  --text: #16201f;
  --muted: #5b6766;
  --accent: #00897f;
  --border: #e2e8e7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1514;
    --card: #182120;
    --text: #e8efee;
    --muted: #9aa8a6;
    --accent: #33d1bd;
    --border: #26302f;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

header.hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 32px;
}

header.hero img {
  width: 76px;
  height: 76px;
  border-radius: 18px;
}

h1 { font-size: 34px; line-height: 1.15; margin: 0; }
h2 { font-size: 22px; margin: 36px 0 8px; }
h3 { font-size: 18px; margin: 24px 0 4px; }
p, li { color: var(--text); }
.subtitle { color: var(--muted); margin: 4px 0 0; }
.muted { color: var(--muted); font-size: 15px; }

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 4px 22px 18px;
  margin: 18px 0;
}

nav {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 15px;
}

ul { padding-left: 22px; }

/* Language menu, top right */
.page-top { display: flex; justify-content: flex-end; margin: -24px 0 20px; }
.lang-menu { position: relative; }
.lang-menu summary {
  display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none;
  font-size: 14px; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 5px 10px 5px 8px;
  background: var(--card);
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { color: var(--text); }
.lang-menu summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lang-menu summary .chev { width: 12px; height: 12px; transition: transform .15s; }
.lang-menu[open] summary .chev { transform: rotate(180deg); }
.lang-menu ul {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 20;
  list-style: none; margin: 0; padding: 6px; min-width: 200px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 18px 40px -18px rgba(10, 40, 38, 0.35);
}
.lang-menu li a { display: block; padding: 7px 12px; border-radius: 9px; color: var(--text); font-size: 15px; }
.lang-menu li a:hover { background: var(--bg); text-decoration: none; }
.lang-menu li a[aria-current] { color: var(--accent); font-weight: 600; }

/* Long single-word headings (German, Dutch) wrap instead of widening the page. */
h1, h2 { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
header.hero div { min-width: 0; }
@media (max-width: 480px) {
  h1 { font-size: 28px; }
  header.hero img { width: 60px; height: 60px; border-radius: 14px; }
}

/* "Support is in English" note on translated support pages */
.note {
  background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: 12px; padding: 12px 16px; font-size: 15px; color: var(--muted);
}
.note strong { color: var(--text); }

/* Social links: logos in their own row at the bottom, apart from the page links */
.social { display: flex; gap: 12px; margin: 20px 0 4px; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--muted); border: 1px solid var(--border); background: var(--card);
  transition: color .15s, border-color .15s;
}
.social a:hover, .social a:focus-visible { color: var(--accent); border-color: var(--accent); text-decoration: none; }
.social svg { width: 20px; height: 20px; }
