/* The one header of the app pages (new, try, pricing, account; view.html has the same look in its own top bar, view.css).
   Pay design v3, board "Main": one line at every width, no sideways scroll at 340 px.
   Computer (768 px up): logo and name, Pricing (only while subscriptions are on), Articles, Knowledge base, language, credits, account;
   try also has its page button. The links and the select sit in the bar: the menu panel has no box there.
   Phone, like the home page: a burger (header-menu.js; its panel: Home, Pricing while subscriptions are on, Articles, Knowledge base,
   the language), credits, account (or Sign in). The pages end with the language select too (.app-foot, a phone's last line).
   Builds on app.css (.site-header, .wordmark, the language pill) and offer.css (the credits pill, Sign in and the round account button).
   The home page keeps its own rules in app.css (.home ...); this file is not loaded there. Logical properties only. */
.app-bar { display: flex; flex-wrap: nowrap; align-items: center; gap: 0 1.25rem; min-block-size: 4rem; padding-block: 0.25rem; }
.app-header .wordmark { flex: none; margin: 0; }
.app-nav { flex: none; display: flex; align-items: center; gap: 0.25rem 1.1rem; margin-inline: 0 0.75rem; }
.app-nav a, .menu-home {
  display: inline-flex; align-items: center; min-block-size: 44px; color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap;
}
.app-nav a[hidden], .menu-home { display: none; }
.app-nav a:hover, .menu-home:hover { color: var(--accent-deep); text-decoration: underline; }
.app-nav a[aria-current="page"] { color: var(--accent-deep); }
.app-end { flex: none; display: flex; align-items: center; gap: 0.5rem; min-inline-size: 0; margin-inline-start: auto; }
.app-lang select { max-inline-size: 11rem; text-overflow: ellipsis; }
.app-end .btn { flex: none; white-space: nowrap; }

/* between a phone and a wide screen the bar tightens before anything overlaps: the page's own button (try) and then the name give way */
@media (min-width: 768px) and (max-width: 1099px) {
  .app-bar { gap: 0 0.75rem; }
  .app-nav { gap: 0.25rem 0.8rem; margin-inline-end: 0.35rem; font-size: 0.95rem; }
  .app-end { gap: 0.4rem; }
  .app-lang select { max-inline-size: 8.5rem; }
  .app-end .btn { display: none; }
}
@media (min-width: 768px) and (max-width: 899px) {
  .app-header .wordmark > span { display: none; }
}

/* phone: one 58 px row, the same measures as the home page (app.css .home); a burger at the start (no logo) opens the panel,
   credits and the account stay at the end */
@media (max-width: 767px) {
  .app-bar { gap: 0 0.5rem; min-block-size: 58px; }
  .app-end .btn { display: none; }
  .app-end { margin-inline-start: 0; }
  .app-end .credits-pill { padding-inline: 9px; gap: 4px; }
  .app-end .signin-btn { padding-inline: 12px; }
  .app-site { position: relative; }
  .app-site .wordmark { display: none; }
  .app-site .menu-btn { display: grid; margin-inline-end: auto; }
  .app-site .header-menu { display: none; }
  .app-site.menu-open .header-menu { display: block; }
  .app-site .app-nav { flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
  .app-site .menu-home { display: flex; }
  .app-site .header-menu hr { display: block; }
  .app-site .app-lang select { flex: 1; max-inline-size: none; }
}

/* the language, again on a phone: the page's last line */
.app-foot { display: none; }
@media (max-width: 767px) {
  .app-foot { display: block; margin-block-start: 1.5rem; padding-block: 1.25rem 2rem; border-block-start: 1px solid var(--line); }
  .app-foot .lang-switch { gap: 0.6rem; }
  .app-foot label { font-weight: 650; }
  .app-foot select { max-inline-size: 100%; min-block-size: 44px; }
}
