/* Eight links in the menu (Elf ideas, #570, 24 Nov 2026). From 841 to about 905 pixels the row of
   links no longer fits beside "Get the app", which dropped to a second line, so the Menu button
   takes over up to 920 pixels, as it does up to 840 in styles.css. These are styles.css's own
   max-width: 840px rules, for 841 to 920. styles.css is frozen to the end of 24 November: from 25
   November, raise that block to 920px, move the gaps below into styles.css, and this file can go. */
@media (min-width: 841px) and (max-width: 920px) {
  .nav { padding: 12px 0; }
  @supports selector(:popover-open) {
    .nav { flex-wrap: nowrap; }
    .nav-menu { display: inline-block; }
    .nav-links[popover] { display: none; }
    .nav-links[popover]:popover-open {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      position: fixed;
      inset: 68px 12px auto 12px;
      background: var(--paper);
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: 8px;
      box-shadow: 0 16px 50px rgba(27, 35, 64, 0.16);
    }
    .nav-links[popover]:popover-open a {
      font-size: 16px;
      padding: 14px 16px;
      border-radius: 12px;
      color: var(--ink);
    }
    .nav-links[popover]:popover-open a[aria-current='page'] { color: var(--indigo); background: var(--indigo-tint-2); }
    .nav-links[popover]::backdrop { background: rgba(27, 35, 64, 0.2); }
  }
}

/* From 921 pixels the links are one row again, with little room to spare. Linux Chromium draws the
   same words about 42 pixels wider in all than a Mac does, so on CI "Get the app" fell under the
   logo at 921 (run 45390245485, 24 Nov), and would have from 1001 to about 1003 too, where the gaps
   widen. Closer gaps keep one row there: 12px to 1000 pixels, then styles.css's 18px on to 1100
   (it stops at 1000), and its 26px from 1101. */
@media (min-width: 921px) and (max-width: 1000px) {
  .nav { gap: 12px; }
  .nav-links { gap: 12px; }
  .nav-actions { margin-left: 6px; }
}
@media (min-width: 1001px) and (max-width: 1100px) {
  .nav-links { gap: 18px; }
}
