/* OdoNexus brand: colour themes and the global menu. */
:root {
  --night: #0f0d09;
  --ink: #1d1911;
  --deep: #7a5200;
  --accent: #f5b93b;
  --accent-hover: #f7cb6c;
  --on-accent: #1d1503;
  --tint: #fdf1d6;
  --paper: #fff;
  --soft: #d9cfba;
  --body-ink: #3b3323;
  --glow: #f7cb6c;
}
:root[data-theme="ai"] {
  --night: #140a26;
  --ink: #1c0f36;
  --deep: #4c1d95;
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --on-accent: #fff;
  --tint: #f1ebfd;
  --soft: #d6c9f2;
  --body-ink: #33294a;
  --glow: #c4b5fd;
}

.global { position: relative; z-index: 60; background: var(--night); color: var(--paper); font: 500 1rem/1.4 "Schibsted Grotesk", system-ui, sans-serif; }
.global *, .global *::before, .global *::after { box-sizing: border-box; margin: 0; padding: 0; }
.global-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; max-width: 1440px; margin-inline: auto; padding: 16px clamp(16px, 4vw, 56px); }
/* the DevKit pages keep their header on screen */
.global.is-sticky { position: sticky; top: 0; }
html:has(.global.is-sticky) { scroll-padding-top: 96px; }
.global a { color: inherit; text-decoration: none; }
.global li, .global strong { color: inherit; font-size: inherit; }
.global-mark { display: flex; align-items: center; }
.global-mark img { display: block; width: auto; height: 24px; }
.global-links { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.global-links > a, .global-menu > summary { color: var(--soft); transition: color .2s; }
.global-links > a:hover, .global-menu > summary:hover, .global-links > a[aria-current], .global-menu.is-current > summary { color: var(--paper); }
.global-links > a[aria-current], .global-menu.is-current > summary { font-weight: 700; }
.global-menu { position: relative; }
.global-menu > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
.global-menu > summary::-webkit-details-marker { display: none; }
.global-menu > summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.global-menu[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.global .global-menu ul { position: absolute; right: -16px; top: calc(100% + 14px); width: min(320px, calc(100vw - 32px)); padding: 8px; list-style: none; border-radius: 18px; background: var(--paper); color: #221c10; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.global .global-menu li a { display: block; padding: 12px 14px; border-radius: 12px; }
.global .global-menu li a:hover, .global .global-menu li a[aria-current] { background: var(--tint); }
.global-menu strong { display: block; font-weight: 800; }
.global-menu span { display: block; font-size: .9375rem; color: #5c5342; }
.global .global-menu .soon { padding: 12px 14px; font-size: .9375rem; color: #5c5342; }
.global .global-cta { padding: .6em 1.2em; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; white-space: nowrap; transition: transform .2s, background-color .2s; }
.global .global-cta:hover { background: var(--accent-hover); transform: translateY(-2px); }
.global :focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; }
@media (max-width: 760px) {
  .global-links { order: 3; width: 100%; margin-left: 0; gap: 24px; }
  .global-cta { margin-left: auto; }
  .global-mark img { height: 20px; }
  .global-in { column-gap: 12px; }
  html:has(.global.is-sticky) { scroll-padding-top: 128px; }
  /* on a phone the panel spans the screen under the header */
  .global-menu { position: static; }
  .global .global-menu ul { left: 16px; right: 16px; top: 100%; width: auto; }
}
@media (prefers-reduced-motion: reduce) { .global * { transition: none !important; } }
