:root {
  /* Colour palette — single source of truth for all pages */
  --bg: #0a0a0f;
  --surface: #12121a;
  --border: #1e1e2e;
  --text: #e8e6e1;
  --text-muted: #a8a6a0;
  --text-dim: #a8a6a0;   /* alias used on index/about pages */
  --white: #f5f3ee;
  --accent: #c4a35a;
  --accent-dim: rgba(196, 163, 90, 0.15);

  /* Risk band colours */
  --risk-low: #7a9e7e;
  --risk-moderate: #c4a35a;
  --risk-high: #c4884a;
  --risk-very-high: #c45a5a;

  /* Typography */
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-mono: "DM Mono", monospace;

  /* Spacing scale (8 px base) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;

  /* Border radius scale */
  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;

  /* Animation */
  --ease-bar: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-bar: 0.8s;
}

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

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ── Logo — shared across all pages ─────────────────────────────────────── */
.logo {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent);
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; }

/* ── Site nav ───────────────────────────────────────────────────────────── */
:root { --nav-height: 48px; }

body { padding-top: var(--nav-height); }

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 200;
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.site-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  flex-shrink: 1;
  min-width: 0;
}

.site-nav__links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  padding: 6px 7px;
  white-space: nowrap;
  transition: color 0.2s;
}
.site-nav__links a:hover { color: var(--white); text-decoration: none; }
.site-nav__links a:hover { color: var(--white); }

.site-nav__cta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--bg) !important;
  background: var(--accent);
  padding: 6px 14px !important;
  transition: opacity 0.2s !important;
}
.site-nav__cta:hover { opacity: 0.85; color: var(--bg) !important; }

/* Hamburger — mobile only */
.site-nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
}
.site-nav__burger span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--text-dim);
  transition: transform 0.2s, opacity 0.2s;
}

/* Mobile drawer */
.site-nav__drawer {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: rgba(10, 10, 15, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 199;
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 4px;
}
.site-nav__drawer.open { display: flex; }

.site-nav__drawer a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.site-nav__drawer a:last-child { border-bottom: none; }
.site-nav__drawer a:hover { color: var(--white); text-decoration: none; }
.site-nav__drawer .site-nav__cta {
  margin-top: 8px;
  padding: 12px 0 !important;
  text-align: center;
  border-bottom: none;
}

@media (max-width: 1080px) {
  .site-nav__links { display: none; }
  .site-nav__burger { display: flex; }
}

/* Greek nav links are significantly longer — collapse to hamburger earlier */
@media (max-width: 1400px) {
  html[lang="el"] .site-nav__links { display: none; }
  html[lang="el"] .site-nav__burger { display: flex; }
}

/* ── Language switcher ───────────────────────────────────────────────────── */
.lang-switcher {
  position: relative;
  flex-shrink: 0;
}
.lang-switcher[open] { z-index: 300; }
.lang-switcher__current {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 3px;
  border: 1px solid transparent;
  list-style: none;
  user-select: none;
  transition: color 0.2s, border-color 0.2s;
}
.lang-switcher__current::-webkit-details-marker { display: none; }
.lang-switcher__current::after {
  content: ' ▾';
  font-size: 8px;
  opacity: 0.5;
}
.lang-switcher[open] .lang-switcher__current,
.lang-switcher__current:hover {
  color: var(--white);
  border-color: var(--border);
}
.lang-switcher__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: rgba(10, 10, 15, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 52px;
}
.lang-switcher__item {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 3px;
  text-align: center;
  transition: color 0.15s, background 0.15s;
}
.lang-switcher__item:hover { color: var(--white); background: rgba(255,255,255,0.07); text-decoration: none; }
.lang-switcher__item.active { color: var(--white); background: rgba(255,255,255,0.1); }
@media (max-width: 1080px) { .lang-switcher { display: none; } }

/* Drawer lang switcher */
.drawer-lang-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 10px 0 4px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.drawer-lang-switcher__item {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: none;
  padding: 3px 6px;
  border-radius: 3px;
  transition: color 0.15s, background 0.15s;
  border-bottom: none !important;
}
.drawer-lang-switcher__item:hover { color: var(--white); background: rgba(255,255,255,0.07); text-decoration: none; }
.drawer-lang-switcher__item.active { color: var(--white); background: rgba(255,255,255,0.1); }

/* ── Language save toast ────────────────────────────────────────────────── */
#lang-save-toast {
  position: fixed;
  top: 60px;
  right: 16px;
  transform: translateY(-12px);
  z-index: 9000;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0;
  pointer-events: none;
  max-width: calc(100vw - 32px);
  white-space: nowrap;
}
#lang-save-toast.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
#lang-save-toast .lang-toast__msg {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
#lang-save-toast .lang-toast__msg strong {
  color: var(--white);
  font-weight: 500;
}
#lang-save-toast .lang-toast__actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
#lang-save-toast button {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
#lang-save-toast .lang-toast__yes {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
#lang-save-toast .lang-toast__yes:hover { opacity: 0.85; }
#lang-save-toast .lang-toast__no {
  background: transparent;
  color: var(--text-muted);
}
#lang-save-toast .lang-toast__no:hover { color: var(--white); background: rgba(255,255,255,0.05); }

@media (max-width: 480px) {
  #lang-save-toast {
    white-space: normal;
    flex-direction: column;
    align-items: flex-start;
    right: 8px;
    left: 8px;
    max-width: none;
  }
}

/* ── Focus — keyboard navigation ────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
/* Remove default outline for mouse users */
:focus:not(:focus-visible) { outline: none; }
