/* Ghalina shared top bar (the floating pill, links, beta button, theme, language, phone menu) for pages that do not load home.css
   (privacy, delete-account, ...). EXTRACTED from home.css (navigation, buttons, light/dark, roll-down menu): when the bar changes
   there, change it here too. All tokens are scoped to the bar, so the host page's own colours are untouched.
   Markup: the <header class="nav" data-nav> block of index.html / ar.html; behaviour: assets/js/site.js (menu), theme.js. */
header.nav {
  --text: #221420; --muted: #56455a; --surface: #f8f1e1; --line: #dbcaab; --line-gold: rgb(203 166 115 / 0.55);
  --plum: #4a2545; --on-plum: #fff6e8; --gold: #d4af6a; --on-gold: #2a1c05;
  --metal: linear-gradient(135deg, #8c6a44 0%, #eed6aa 22%, #cba673 45%, #f8ead0 68%, #aa8655 100%);
  --shadow: 60 25 55; --ink-plum: var(--plum);
  --nav-glass: rgb(248 241 225 / 0.84); --menu-glass: rgb(242 234 218 / 0.97); --hover-wash: var(--g-hover);
  --font: "Atkinson Hyperlegible Next", "Atkinson Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "Readex Pro", "Readex Fallback", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-ar-system: "Noto Sans Arabic", "Segoe UI", "Geeza Pro", Tahoma, sans-serif;
  --gutter: 16px; --max: 1240px; --nav-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1); --spring: cubic-bezier(0.32, 0.72, 0, 1);
  font-family: var(--font); font-size: 1.125rem; font-weight: 400; line-height: 1.6; color: var(--text);
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] header.nav { font-family: var(--font-ar); font-size: 1.0625rem; line-height: 1.85; }
[data-theme="dark"] header.nav {
  --text: var(--g-text); --muted: var(--g-muted); --surface: var(--g-surface); --line: var(--g-line); --line-gold: var(--g-rim);
  --ink-plum: var(--g-link); --shadow: var(--g-shadow); --nav-glass: rgb(38 19 33 / 0.86); --menu-glass: rgb(30 15 27 / 0.97);
}
@media (min-width: 640px) { header.nav { --gutter: 28px; } }
@media (min-width: 1100px) { header.nav { --gutter: 44px; } }
header.nav *, header.nav *::before, header.nav *::after { box-sizing: border-box; }
header.nav a { text-decoration-thickness: 0.08em; }
header.nav ul { margin: 0; padding: 0; list-style: none; }
header.nav :focus-visible { outline: 3px solid var(--ink-plum); outline-offset: 3px; border-radius: 6px; }
header.nav .i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
[dir="rtl"] header.nav .btn .i { transform: scaleX(-1); }
html.menu-open { overflow: hidden; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

header.nav .btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 26px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.45s var(--spring), box-shadow 0.45s var(--ease), filter 0.3s var(--ease);
}

html[lang="ar"] header.nav .btn { font-weight: 600; }

header.nav .btn:active { transform: translateY(1px) scale(0.975); }

header.nav .btn--gold {
  background: var(--metal);
  color: var(--on-gold);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.55),
    inset 0 0 0 1px rgb(140 106 68 / 0.35),
    0 1px 2px rgb(var(--shadow) / 0.25),
    0 14px 28px -14px rgb(140 106 68 / 0.75);
}

header.nav .btn--gold:hover { filter: brightness(1.04) saturate(1.05); transform: translateY(-1px); }

header.nav .btn--big { min-height: 60px; padding-inline: 30px; font-size: 1.125rem; }
header.nav .btn--small { min-height: 44px; padding: 8px 18px; font-size: 1rem; }

header.nav .btn--quiet {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

header.nav .btn .i { width: 1.1em; height: 1.1em; transition: transform 0.45s var(--spring); }
header.nav .btn:hover .i { transform: translateX(3px); }
[dir="rtl"] header.nav .btn:hover .i { transform: scaleX(-1) translateX(3px); }

/* "Coming soon on Google Play": a store-style pill (Google's badge art is not used before the listing exists). */
.badge-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 24px 8px 16px;
  border-radius: 999px;
  background: #1c1019;
  color: #fff6e8;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgb(226 196 138 / 0.35), 0 14px 26px -16px rgb(0 0 0 / 0.55);
  transition: transform 0.45s var(--spring);
}

html[dir="rtl"] .badge-play { padding: 8px 16px 8px 24px; }

.badge-play:active { transform: scale(0.98); }

.badge-play__glyph {
  width: 20px;
  height: 22px;
  flex: none;
  background: var(--metal);
  clip-path: polygon(8% 4%, 96% 50%, 8% 96%);
}

.badge-play__text { display: grid; line-height: 1.15; text-align: start; }
.badge-play__text small { font-size: 0.8125rem; font-weight: 600; opacity: 0.85; }
.badge-play__text strong { font-size: 1.125rem; font-weight: 750; letter-spacing: -0.01em; }

.badge-play--light { background: rgb(255 246 232 / 0.08); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* Very narrow phones (320 px): a long button label (the Arabic "Join the beta") may wrap instead of sticking out. */
@media (max-width: 359px) {
  header.nav .btn { max-width: 100%; white-space: normal; text-align: center; }
}

/* ---------- Navigation: a floating ivory pill ---------- */

.nav {
  position: fixed;
  top: 12px;
  inset-inline: 0;
  z-index: 40;
  width: min(100% - 2 * var(--gutter) + 16px, var(--max) + 16px);
  margin-inline: auto;
}

.nav__bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 60px;
  padding: 8px;
  padding-inline-start: 14px;
  border-radius: 999px;
  background: var(--nav-glass);
  box-shadow: inset 0 0 0 1px rgb(203 166 115 / 0.35), 0 12px 32px -20px rgb(var(--shadow) / 0.45);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
}

@media (prefers-reduced-transparency: reduce) {
  .nav__bar { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-inline-end: auto;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img { width: 40px; height: 40px; filter: drop-shadow(0 3px 4px rgb(var(--shadow) / 0.4)); } /* the framed tile: its own gold rim and corners */
.brand__alt { color: var(--muted); font-size: 1.05rem; font-weight: 600; }
html[lang="ar"] .brand { font-weight: 700; }

.nav__links { display: none; align-items: center; gap: 2px; }

.nav__links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s var(--ease);
}

.nav__links a:hover { background: var(--hover-wash); }

/* The language switch, as on most bilingual sites: a globe and the other language's name in its own outlined pill,
   always the last item of the bar (right on the English page, left on the Arabic one), set apart from the links and
   the menu button by a thin divider. Visible at every width, 44 px tall. */
.nav__lang {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  margin-inline-start: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px rgb(74 37 69 / 0.3);
  color: var(--ink-plum);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.nav__lang::before {
  content: "";
  position: absolute;
  inset-block: 8px;
  inset-inline-start: -8px;
  width: 1px;
  background: rgb(74 37 69 / 0.2);
}

.nav__lang:hover { background: var(--hover-wash); box-shadow: inset 0 0 0 1.5px var(--ink-plum); }
.nav__lang:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.nav__globe { width: 19px; height: 19px; }
html[lang="en"] .nav__lang { font-family: var(--font-ar-system); }

@media (max-width: 359px) {
  .nav__lang { gap: 5px; margin-inline-start: 9px; padding-inline: 10px; }
  .nav__lang::before { inset-inline-start: -6px; }
}

.menu-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--plum);
  color: var(--on-plum);
  cursor: pointer;
}

.menu-btn__lines,
.menu-btn__lines::before {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  margin-left: -10px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.5s var(--spring);
}

.menu-btn__lines { top: 19px; }
.menu-btn__lines::before { content: ""; top: 6px; }
.menu-btn[aria-expanded="true"] .menu-btn__lines { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__lines::before { transform: translateY(-6px) rotate(-90deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 28px;
  padding: 104px calc(var(--gutter) + 8px) 40px;
  background: var(--menu-glass);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
}

.menu.is-open { opacity: 1; visibility: visible; transition: opacity 0.4s var(--ease), visibility 0s; }
.menu ul { display: grid; gap: 4px; }

.menu a:not(.btn) {
  display: block;
  padding: 10px 0;
  color: var(--text);
  font-size: 1.75rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.menu__foot { display: flex; flex-wrap: wrap; gap: 12px; }
html.menu-open { overflow: hidden; }

/* Eight links in the order of the page (since 2026-10-10 the Arabic «الصلاة ورمضان» comes after Safety): they fit on one line from 1200 px with 12 px
   sides (the Arabic ones are the widest: see the Manual link added 2026-10-21: eight links now, so from 1280 px); below that the menu button opens them. home.js
   closes the menu at the same width. */
.nav__links a { padding-inline: 12px; white-space: nowrap; }

@media (min-width: 480px) {
  .nav__links { display: flex; justify-content: center; min-width: 0; }
  .nav .brand { flex-shrink: 0; }
  /* priority+ (nav-more.js sets data-nav-fit on the header): all links fit, some fit and the rest sit under "More", or
     none fit and the menu button opens the full menu. Until the first measure the links stay hidden (no jump). */
  .nav:not([data-nav-fit="all"]):not([data-nav-fit="some"]) .nav__links { display: none; }
  .nav[data-nav-fit="all"] .menu-btn, .nav[data-nav-fit="all"] .menu,
  .nav[data-nav-fit="some"] .menu-btn, .nav[data-nav-fit="some"] .menu { display: none; }
}
/* Owner 2026-10-23: the "Download the beta" button stays in the bar at EVERY width (the main call to action); the text
   links fold into the menu button only when they no longer fit (see data-nav-fit, nav-more.js)  see the nav v2 block at the end. */

/* The Arabic bar is the widest: at every desktop width the brand keeps only «غالينا», so "Ghalina" never runs into the
   first link. */
@media (min-width: 480px) {
  html[lang="ar"] .nav .brand__alt { display: none; }
}
/* 1024-1279 px: the English bar is as tight, so the brand keeps only the logo and the name there too. */
@media (min-width: 480px) and (max-width: 1279px) {
  .nav .brand__alt { display: none; }
}
/* «الصلاة ورمضان» (round 3) is longer than the old «رمضان»: the Arabic links sit a little closer up to 1259 px. */
@media (min-width: 1280px) and (max-width: 1299px) {
  html[lang="ar"] .nav__links a { padding-inline: 8px; }
}

/* The language pill at the end of the bar takes about 40 px more than the old plain link: up to 1299 px the links
   come a little closer together so everything still fits on one line. */
@media (min-width: 1280px) and (max-width: 1299px) {
  .nav__links a { padding-inline: 9px; }
}

@media (max-width: 420px) {
  .brand__alt { display: none; }
}

/* The moon/sun button: in the bar from 1280 px (where the links show), in the menu below that. */
.nav__theme { display: none; margin-inline-start: 4px; }
.menu__theme { color: var(--ink-plum); }
/* The extra button needs about 54 px: from 1280 px the bar uses more of the window (16 px from each side) and the links
   sit a little closer, so English and Arabic both still fit on one line. */
@media (min-width: 480px) {
  .nav__theme { display: inline-grid; }
  .nav { width: min(100% - 32px, 1340px); }
  .nav__links a { padding-inline: 9px; }
  html[lang="ar"] .nav__links a { padding-inline: 7px; }
}
@media (min-width: 1440px) {
  .nav__links a, html[lang="ar"] .nav__links a { padding-inline: 11px; }
}

[data-theme="dark"] .nav__lang { box-shadow: inset 0 0 0 1.5px var(--line-gold); }
[data-theme="dark"] .nav__lang:hover { box-shadow: inset 0 0 0 1.5px var(--ink-plum); }
[data-theme="dark"] .nav__lang::before { background: var(--line-gold); }
[data-theme="dark"] .menu-btn { box-shadow: inset 0 0 0 1.5px var(--line-gold); }
[data-theme="dark"] .brand img { filter: drop-shadow(0 3px 6px rgb(0 0 0 / 0.55)); }
/* The phone menu rolls down from the bar (clip + fade) and rolls back up; its links get a fading wash. */
.menu { clip-path: inset(0 0 100% 0); transition: opacity 0.4s var(--ease), clip-path 0.45s var(--spring), visibility 0s linear 0.45s; }
.menu.is-open { clip-path: inset(0 0 0 0); transition: opacity 0.4s var(--ease), clip-path 0.45s var(--spring), visibility 0s; }
.menu a:not(.btn) { margin-inline: -14px; padding-inline: 14px; border-radius: 16px; transition: background-color 0.25s ease, color 0.25s ease; }
.menu a:not(.btn):hover, .menu a:not(.btn):focus-visible { background: var(--hover-wash); color: var(--ink-plum); }
@media (prefers-reduced-motion: reduce) {
  .menu, .menu.is-open { clip-path: none; transition: opacity 0.2s ease, visibility 0s; }
}

/* ---------- Nav layout (owner 2026-10-21): brand | links centred in the space between | actions ---------- */
.nav__actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.nav__bar { padding-inline-start: 18px; }
.brand__name { white-space: nowrap; }
.brand { min-width: 0; }
@media (min-width: 480px) {
  .nav__bar { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; padding-inline: 18px 10px; }
  .nav__links { justify-self: stretch; }
  .nav__actions { margin-inline-start: 0; }
}
/* Narrow: keep the name whole; the brand shrinks its gap and the lang pill lets go of extra margin. */
@media (max-width: 400px) {
  .nav__bar { gap: 4px; padding-inline-start: 12px; }
  .brand { gap: 7px; margin-inline-end: 0; flex-shrink: 0; }
  .brand img { width: 34px; height: 34px; }
  .nav__actions { gap: 4px; }
  .nav__lang { margin-inline-start: 6px; padding-inline: 8px; gap: 4px; }
  .nav__lang::before { display: none; }
}

/* ---------- Nav layout (owner 2026-10-21): brand | links centred in the space between | actions ---------- */
.nav__actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.nav__bar { padding-inline-start: 18px; }
.brand__name { white-space: nowrap; }
.brand { min-width: 0; }
@media (min-width: 480px) {
  .nav__bar { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; padding-inline: 18px 10px; }
  .nav__links { justify-self: stretch; }
  .nav__actions { margin-inline-start: 0; }
}
/* Narrow: keep the name whole; the brand shrinks its gap and the lang pill lets go of extra margin. */
@media (max-width: 400px) {
  .nav__bar { gap: 4px; padding-inline-start: 12px; }
  .brand { gap: 7px; margin-inline-end: 0; flex-shrink: 0; }
  .brand img { width: 34px; height: 34px; }
  .nav__actions { gap: 4px; }
  .nav__lang { margin-inline-start: 6px; padding-inline: 8px; gap: 4px; }
  .nav__lang::before { display: none; }
}

html[lang="ar"] .brand__name { letter-spacing: 0; }
html[lang="ar"] .btn, html[lang="ar"] .nav__lang span { line-height: 1.55; }
/* The current page in the bar (on the privacy pages) */
.nav__links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.menu a[aria-current="page"] { background: var(--hover-wash); box-shadow: inset 0 0 0 1.5px var(--line-gold); }
/* Pages that switch language in place (beta, invite, manual): both link sets are in the markup, the page language shows one */
html[lang="ar"] .nav-en, html:not([lang="ar"]) .nav-ar { display: none !important; }
button.nav__lang { border: 0; background: none; font-family: inherit; cursor: pointer; }
header.nav ~ main { margin-top: 84px; }

/* ---------- Nav v2 (owner 2026-10-23): the "Download the beta" button is in the bar at every width ----------
   The links fold into the menu button below the width where they fit; the button, the menu and the language pill always fit. On phones
   (up to 439 px) the brand shows its logo only and the button and pill shrink a little; nothing wraps or overlaps. */
header.nav .nav__cta.btn { flex: none; white-space: nowrap; max-width: none; }
@media (max-width: 439px) {
  .brand__name { display: none; }
  .brand { gap: 0; }
  .nav__bar { padding-inline-start: 10px; }
  header.nav .nav__cta.btn.btn--small { min-height: 44px; padding: 8px 13px; font-size: 0.875rem; }
  html[lang="ar"] header.nav .nav__cta.btn.btn--small { padding-inline: 11px; font-size: 0.8125rem; }
  .nav__cta .i { display: none; }
}
@media (max-width: 399px) {
  .nav__globe { display: none; }
}
@media (max-width: 359px) {
  header.nav .nav__cta.btn.btn--small, html[lang="ar"] header.nav .nav__cta.btn.btn--small { padding-inline: 6px; font-size: 0.75rem; }
  .nav__bar { padding-inline-end: 6px; }
  .nav__actions { gap: 2px; }
  .nav__lang { padding-inline: 7px; margin-inline-start: 3px; }
  .nav__bar .menu-btn { width: 40px; height: 40px; }
  .nav__bar .menu-btn__lines, .nav__bar .menu-btn__lines::before { width: 18px; margin-left: -9px; }
  .nav__bar .menu-btn__lines { top: 16px; }
}

/* ---------- Priority+ "More" (owner 2026-10-23, nav-more.js): as many links as fit, the rest under "More" ---------- */
.nav-more { position: relative; flex: none; display: inline-flex; margin-inline-start: 2px; }
.nav-more[hidden] { display: none; }
.nav-more__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s var(--ease);
}
html[lang="ar"] .nav-more__btn { line-height: 1.55; }
.nav-more__btn:hover, .nav-more.is-open .nav-more__btn { background: var(--hover-wash); }
.nav-more__btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.nav-more__chev { flex: none; width: 18px; height: 18px; color: var(--g-gold-text, var(--gold-ink)); transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1); }
.nav-more.is-open .nav-more__chev { transform: rotate(180deg); }
.nav-more__list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 10px);
  inset-inline-start: 0;
  min-width: 15rem;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 16px;
  background: var(--g-surface, var(--surface));
  box-shadow: inset 0 0 0 1px var(--g-rim, var(--line-gold)), 0 24px 48px -20px rgb(var(--g-shadow, var(--shadow)) / 0.55);
  text-align: start;
  visibility: hidden;
  clip-path: inset(0 0 100% 0 round 16px);
  opacity: 0;
  transition: clip-path 0.22s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.22s ease, visibility 0s linear 0.22s;
}
.nav-more.is-open .nav-more__list { visibility: visible; clip-path: inset(0 0 0 0 round 16px); opacity: 1; transition: clip-path 0.22s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.22s ease, visibility 0s; }
.nav .nav-more__list a.nav-more__link {
  display: block;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 10px;
  color: var(--g-text, var(--text));
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
html[lang="ar"] .nav .nav-more__list a.nav-more__link { line-height: 1.55; }
.nav .nav-more__list a.nav-more__link:hover, .nav .nav-more__list a.nav-more__link:focus-visible { background: var(--hover-wash); outline: none; }
.nav .nav-more__list a.nav-more__link:focus-visible { box-shadow: inset 0 0 0 2px var(--g-focus, var(--gold)); }
.nav .nav-more__list a.nav-more__link[aria-current="page"] { background: var(--hover-wash); text-decoration: none; }
@media (prefers-reduced-motion: reduce) {
  .nav-more__btn, .nav-more__chev, .nav-more__list, .nav .nav-more__list a.nav-more__link { transition: none; }
}

/* ---------- Hover timing (owner 2026-10-23): hover-in is quick but still a fade (--hv-in, 120 ms, ease-out), hover-out a little
   softer (--hv-out, 200 ms). Never over 220 ms for colour, background, border, shadow or opacity. The deliberate long
   effects (reveals, intro, shine loop, sparkles, carousel) are not touched. ---------- */
:root { --hv-in: 0.12s; --hv-out: 0.2s; }
header.nav .btn { transition-duration: var(--hv-out); }
header.nav .btn:hover, header.nav .btn:focus-visible { transition-duration: var(--hv-in); transition-timing-function: ease-out; }
header.nav .btn .i { transition-duration: var(--hv-out); }
header.nav .btn:hover .i, header.nav .btn:focus-visible .i { transition-duration: var(--hv-in); transition-timing-function: ease-out; }
.badge-play { transition-duration: var(--hv-out); }
.badge-play:hover, .badge-play:focus-visible { transition-duration: var(--hv-in); transition-timing-function: ease-out; }
.nav__links a { transition-duration: var(--hv-out); }
.nav__links a:hover, .nav__links a:focus-visible { transition-duration: var(--hv-in); transition-timing-function: ease-out; }
.nav__lang { transition-duration: var(--hv-out); }
.nav__lang:hover, .nav__lang:focus-visible { transition-duration: var(--hv-in); transition-timing-function: ease-out; }
.nav-more__btn { transition-duration: var(--hv-out); }
.nav-more__btn:hover, .nav-more__btn:focus-visible { transition-duration: var(--hv-in); transition-timing-function: ease-out; }
.nav .nav-more__list a.nav-more__link { transition-duration: var(--hv-out); }
.nav .nav-more__list a.nav-more__link:hover, .nav .nav-more__list a.nav-more__link:focus-visible { transition-duration: var(--hv-in); transition-timing-function: ease-out; }
.menu a:not(.btn) { transition-duration: var(--hv-out); }
.menu a:not(.btn):hover, .menu a:not(.btn):focus-visible { transition-duration: var(--hv-in); transition-timing-function: ease-out; }

/* Priority+ from 480 px (owner 2026-10-23): the menu button (full menu) is only for bars where not even "More" fits; the theme button
   then lives in that menu. With the links hidden the actions keep the last grid column. */
@media (min-width: 480px) {
  .nav__actions { grid-column: 3; }
  .nav:not([data-nav-fit="all"]):not([data-nav-fit="some"]) .nav__theme { display: none; }
}
/* Narrow desktop windows (480-759 px): the brand keeps only its logo and the button drops its icon, so "More" fits as low as possible. */
@media (min-width: 480px) and (max-width: 759px) {
  .brand__name { display: none; }
  .brand { gap: 0; }
  .nav__cta .i { display: none; }
}
