/* Extra rules for the bilingual build. Loaded after stencil.css. */

/* Language switch: two links inside the nav list. They take their type, size and underline
   from ".nav-links a" in stencil.css, so they weigh the same as HOME, WORK and the rest. */
.nav-lang { display: flex; align-items: center; gap: 14px; margin-left: 6px; }
@media (max-width: 860px) {
  .nav-lang { margin-left: 0; gap: 26px; }
}
@media (max-width: 860px) {
  /* stencil.css removes the nav underline on phones; keep a mark for the current language */
  .nav-links .nav-lang a[aria-current="true"] {
    background-image: linear-gradient(var(--paper), var(--paper));
    background-size: 100% 3px;
  }
}

/* Phone menu button: three cut bars instead of the word. Open state shows a stencil X.
   The button keeps its name through aria-label. */
.nav-toggle { padding: 0 13px; line-height: 1; }
.nav-bars {
  display: block; width: 30px; height: 22px;
  background:
    linear-gradient(var(--paper), var(--paper)) 0 0 / 100% 4px no-repeat,
    linear-gradient(var(--paper), var(--paper)) 0 9px / 78% 4px no-repeat,
    linear-gradient(var(--paper), var(--paper)) 0 18px / 100% 4px no-repeat;
}
.nav.is-open .nav-bars { background: none; }
.nav.is-open .nav-bars::before {
  content: "X"; display: block; width: 30px; text-align: center;
  font-family: var(--stencil); font-size: 30px; line-height: 24px; color: var(--paper);
}

/* Footer credit: "powered by" + the nous works mono logo from the brand pack (no filters). */
.foot-powered { margin-top: 44px; text-align: center; }
.foot-powered a {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink); text-decoration: none; font-size: 15px; letter-spacing: .12em;
}
.foot-powered img { height: 32px; width: auto; }
