/* Theme: Default
 * The site's existing look. This file deliberately changes almost nothing —
 * it exists so that "no theme" and "a theme" travel the same code path, and so
 * the seam is exercised before anyone depends on it.
 *
 * Themes are layered over the content-hashed bundles rather than replacing
 * them: the build that produced those bundles is not in this repository, so
 * overriding is honest and refactoring would be guesswork.
 */
:root {
  --gr-accent: #505b98;
  --gr-accent-contrast: #ffffff;
  --gr-ink: #1d2233;
  --gr-muted: #5a6274;
  --gr-surface: #ffffff;
  --gr-radius: 4px;
  --gr-font-heading: inherit;
  --gr-font-body: inherit;
}

/* --- Top navigation: stop the centred bar shifting on hover / active ---
 * Reported by Plamen (Oct 2026): hovering a nav item, or selecting one, nudged
 * the whole top row and its horizontal centring - the item appeared to "move"
 * under the cursor. In a centred row this happens when an item changes WIDTH
 * between states; the usual cause is the active/hover state switching the text
 * to a heavier font-weight (bold text is wider), so every item slides to keep
 * the row centred.
 *
 * Fix: keep the font-weight identical in every state so the width never
 * changes. The current page is still distinguishable by its underline (the
 * `.underlined` treatment) and colour, neither of which affects layout.
 * If a future review wants the active item bolder, reserve its bold width with
 * a hidden ghost copy rather than switching weight live. */
#top-header nav ul li.underlined > a,
#top-header nav ul li.underlined:hover > a,
#top-header nav ul li.underlined.active > a {
  font-weight: 500 !important;
}
