/* Approved centred-logo phone navigation. Every website page with the shared
   nav uses it: the landing page, and About, Contact, Privacy and Terms. */
@media (max-width: 720px) {
  html.landing-centred-nav .nav { z-index: 1; }
  html.landing-centred-nav .nav-end { gap: 6px; }
  html.landing-centred-nav .nav-toggle { order: 2; width: 40px; height: 40px; margin-right: 0; }

  /* the full screen menu */
  .landing-centred-nav .nav-sheet {
    position: fixed; inset: 0; z-index: 0;
    display: flex; flex-direction: column;
    padding: 112px 24px max(28px, env(safe-area-inset-bottom));
    background: var(--paper);
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden;
    transition: opacity 200ms ease-out, visibility 0s linear 200ms;
  }
  html.landing-menu-open { overflow: hidden; }
  html.landing-menu-open .nav-sheet { opacity: 1; visibility: visible; transition: opacity 200ms ease-out; }
  .landing-centred-nav .phone-menu-links { display: grid; border-top: 1px solid var(--rule); }
  .landing-centred-nav .phone-menu-links:focus { outline: none; }
  .landing-centred-nav .phone-menu-links a {
    display: flex; align-items: center; min-height: 64px;
    border-bottom: 1px solid var(--rule);
    font-size: 24px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink);
  }
  .landing-centred-nav .phone-menu-links a:active { color: var(--ink-2); }
  .landing-centred-nav .phone-menu-links a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
  /* while open, the bar follows the menu's surface */
  html.landing-menu-open .nav-progress { opacity: 0; }
  :root:not([data-theme="dark"]).landing-menu-open .nav-wrap.on-dark .nav { background: var(--glass); border-color: var(--rule); color: var(--ink); }
  :root:not([data-theme="dark"]).landing-menu-open .nav-wrap.on-dark .nav-toggle[aria-expanded="true"] { background: rgba(24, 24, 27, 0.06); }
  :root:not([data-theme="dark"]).landing-menu-open .nav-wrap.on-dark .nav-end .btn-solid { background: var(--solid); color: var(--on-solid); }

  html.landing-centred-nav .nav-wrap .nav-sheet { background: var(--paper); left: 0; right: 0; top: 0; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; }
  html.landing-centred-nav .nav-sheet[hidden] { display: none; }
  html.landing-centred-nav .nav-sheet .phone-menu-links a { padding: 0; height: auto; border-radius: 0; color: var(--ink); }
  html.landing-centred-nav .nav-sheet .phone-menu-links a:hover { background: transparent; color: var(--ink-2); }
  html.landing-centred-nav .nav { grid-template-columns: 1fr auto 1fr; padding: 0 8px; }
  html.landing-centred-nav .brand { grid-column: 2; justify-self: center; }
  html.landing-centred-nav .nav-end { grid-column: 3; }
  html.landing-centred-nav .nav-toggle { position: absolute; left: 7px; top: 50%; transform: translateY(-50%); }
  html.landing-centred-nav .nav-sheet:not([hidden]) { animation: none; }
  html.landing-menu-open .phone-menu-links a { animation: pm-in 380ms var(--out) both; animation-delay: calc(var(--i, 0) * 35ms + 60ms); }
}
@keyframes pm-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
html.calm .nav-sheet, html.calm .phone-menu-links a { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .landing-centred-nav .nav-sheet, .landing-centred-nav .phone-menu-links a { transition: none !important; animation: none !important; }
}
