/* One bar for the whole site (layout A, picked 18 Oct 2026): five plain links, "Try the live shop" and one filled button.
   Loaded last on every page, so it settles anything site.css or barbers.css says about the header. */
.gnav { grid-template-columns: auto 1fr auto; column-gap: 28px; }
.gnav .nav-links { justify-self: center; gap: 30px; }
.nav-ctas { justify-self: end; display: flex; align-items: center; gap: 10px; }
.nav-ctas .pill { height: 42px; padding: 0 18px; justify-self: auto; box-shadow: none; }
.nav-links a[aria-current="page"] { color: var(--ink); }
.ext-mark { margin-left: .35em; font-weight: 500; }
.link-arrow.ext::after { content: "\2197"; }
.link-arrow.ext:hover::after { transform: translate(2px, -2px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lede-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 18px; }
.lede-ctas .link-arrow { margin-top: 0; }
.proof-ctas { margin-top: 36px; }
.menu nav a { justify-content: flex-start; }
.menu nav a[aria-current="page"] b { color: var(--accent); }
.ink .menu nav a[aria-current="page"] b { color: var(--hi); }

/* the bar needs about 1280px for all five links; below that the links move into the menu */
.gdock { display: none; }
@media (max-width: 1279px) {
  .gnav { grid-template-columns: 1fr auto auto; column-gap: 12px; }
  .gnav .nav-links { display: none; }
  .gnav .menu-btn { display: inline-flex; align-items: center; justify-self: end; height: 38px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-weight: 600; font-size: 15px; cursor: pointer; }
  .menu-open .gnav .menu-btn { background: var(--ink); color: var(--paper); }
  .nav-ctas .pill { height: 38px; padding: 0 16px; font-size: 14px; }
}
/* phones: the bar keeps the mark and Menu; both buttons sit at the bottom, under the thumb */
@media (max-width: 760px) {
  .gnav { grid-template-columns: 1fr auto; }
  .gnav .nav-ctas { display: none; }
  .gdock { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 18; display: flex; gap: 8px; padding: 8px; border-radius: 999px; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 12px 30px -12px rgb(0 0 0 / .45); outline: 1px solid var(--line); transition: transform .3s var(--ease), opacity .3s var(--ease); }
  .gdock .pill { flex: 1 1 0; min-width: 0; height: 46px; padding: 0 12px; justify-content: center; font-size: 15px; box-shadow: none; }
  .gdock.off, .menu-open .gdock { transform: translateY(140%); opacity: 0; pointer-events: none; }
  body:has(.gdock) { padding-bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) { .gdock { transition: none; } }

/* Barbershops drop-down (12 Nov 2026) */
.nav-drop { position: relative; display: inline-flex; align-items: center; }
.nav-drop > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .6; }
.nav-drop .drop { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px); min-width: 240px; padding: 10px; display: grid; gap: 2px; background: var(--paper, #fff); color: var(--ink, #131313); border: 1px solid rgba(19,19,19,.1); border-radius: 14px; box-shadow: 0 18px 40px rgba(19,19,19,.14); opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s; z-index: 50; }
.nav-drop::before { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 14px; }
.nav-drop:hover .drop, .nav-drop:focus-within .drop { opacity: 1; visibility: visible; transform: translate(-50%, 4px); }
.nav-drop .drop a { display: block; padding: 10px 12px; border-radius: 9px; font-size: 15px; font-weight: 500; color: var(--ink, #131313); text-decoration: none; white-space: nowrap; }
.nav-drop .drop a:hover, .nav-drop .drop a:focus-visible { background: rgba(39,66,255,.08); color: #2742FF; }
.nav-drop .drop a[aria-current="page"] { color: #2742FF; }
.menu nav a.sub { padding-left: 22px; font-size: 17px; opacity: .8; }
.menu nav a.sub[aria-current="page"] { color: var(--accent); opacity: 1; }
.ink .nav-drop .drop { background: #1c1c1c; border-color: rgba(255,255,255,.12); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.ink .nav-drop .drop a { color: #f4f4f2; }
.ink .nav-drop .drop a:hover, .ink .nav-drop .drop a:focus-visible { background: rgba(255,255,255,.07); color: var(--hi); }
.ink .nav-drop .drop a[aria-current="page"], .ink .menu nav a.sub[aria-current="page"] { color: var(--hi); }
.menu nav a.sub { padding-top: 12px; padding-bottom: 12px; }
