/* Kompas, the colours of the compass. Loaded last on every page, so the whole site shares one look:
   light pages with dark green cards for what matters, mint labels, silver details and the needle's soft blue.
   Buttons are dark green on light backgrounds and mint on dark ones.
   The old token name --cobalt now holds the compass green, so every button, label, link and footer follows. */
:root {
  --deep: #22302c;
  --cobalt: #22302c;
  --cobalt-deep: #121c19;
  --on-cobalt: #ffffff;
  --mint: #8fd3c1;
  --mint-hover: #a8e2d3;
  --mint-soft: #d6f0e8;
  --mint-ink: #2b6b5c;
  --needle: #9aa5f5;
}
::selection { background: var(--mint-soft); color: var(--ink, #13201c); }

/* Buttons: dark green on light, mint on dark */
.btn-cobalt { background: var(--deep); color: #fff; }
@media (hover: hover) and (pointer: fine) { .btn-cobalt:hover { background: var(--cobalt-deep); } }
.hero3 .btn-cobalt, .on-deep .btn-cobalt, .on-cobalt .btn-cobalt, .cc .btn-cobalt, footer .btn-cobalt { background: var(--mint); color: var(--ink, #13201c); }
@media (hover: hover) and (pointer: fine) { .hero3 .btn-cobalt:hover, .on-deep .btn-cobalt:hover, .on-cobalt .btn-cobalt:hover, .cc .btn-cobalt:hover, footer .btn-cobalt:hover { background: var(--mint-hover); } }
.hero3 :focus-visible, .on-deep :focus-visible, .on-cobalt :focus-visible, .cc :focus-visible, footer :focus-visible { outline-color: var(--mint); }

/* The dark compass card (used by the pages for their most important blocks) */
.cc { background: var(--deep); color: #fff; border-radius: 24px; }
.cc-label { font-size: 0.875rem; font-weight: 600; color: var(--mint); }
.cc-soft { color: rgba(255, 255, 255, 0.78); }

/* Footer: the inside of the compass */
footer { background-color: #1a2622; background-image: radial-gradient(90% 120% at 20% 0%, #2a3b36 0%, #1a2622 55%, #0f1815 100%); color: #fff; }
footer .credit { color: rgba(255, 255, 255, 0.78); }
footer a:hover { color: var(--mint); }

/* Right-to-left (Arabic): "go forward" arrows and chevrons point to the left. `scale` also flips their small hover nudge. */
[dir="rtl"] svg:has(> use[href="#i-arrow"]), [dir="rtl"] .text-link svg, [dir="rtl"] .tc-body em svg, [dir="rtl"] .sn-feature em svg { scale: -1 1; }
/* The highlighter sweeps in reading direction: from the right in Arabic, from the left in Dutch text inside an Arabic page. */
mark.ink:dir(rtl), mark.hl:dir(rtl) { background-position: 100% 0; }
