/* One header logo for the whole site (Erik, 23 Nov 2026: "I want this logo type size and positioning to be on every
   page where it makes sense ... when clicking from a page onto the home page it looks unprofessional when logo size
   and placing and format changes").

   The reference is the home page nav (front.css .fn-brand): cube 22px, 10px gap, wordmark 112 x 16px, in a 64px
   bar, left edge at --f-pad, i.e. clamp(16px, 4.5vw, 64px). Pages that load this file use the markup

     <a href="/" class="... g-brand" aria-label="Grepped home"><svg class="g-cube" ...></svg><svg class="g-word" ...></svg></a>

   and the rules at the bottom line each page's own header up with the home page's. */
:root { --g-pad: clamp(16px, 4.5vw, 64px); --g-nav: 64px; }

.g-brand { display: inline-flex; align-items: center; gap: 10px; height: 34px; flex: none; max-width: none;
  color: var(--ink, currentColor); opacity: 1; text-decoration: none; }
.g-brand:hover { text-decoration: none; }
.g-brand svg { display: block; flex: none; fill: currentColor; filter: none; }
.g-brand .g-cube { width: 22px; height: 22px; }
.g-brand .g-word { width: 112px; height: 16px; }

/* ---------- Placement, page by page ---------- */

/* Cashout: no header bar, the logo sits on the page. */
a.gc-logo.g-brand { top: calc((var(--g-nav) - 34px) / 2); left: var(--g-pad); opacity: 1; }

/* Marketplace: its bar is padded by --gut (48px) with !important, so shift just the logo onto the home page's line. */
.nav-top > .g-brand { margin-left: max(0px, calc(var(--g-pad) - var(--gut, 48px))); }

/* Start, Requests, Grants, agent docs (.st-nav), quote details and confirm (.nav-inner), partner pages (.nav-in),
   Partnerships (.pn): same gutter as the home nav. */
.st-nav:has(.g-brand), .nav-inner:has(.g-brand), .nav-in:has(> .g-brand), .pn:has(> .g-brand) { padding-left: var(--g-pad); padding-right: var(--g-pad); }

/* Their bars were 64 to 72px tall; the home nav is 64px, so the logo sits at the same height. (The marketplace bar stays
   72px: its sticky filters are laid out from that height, so its logo sits 4px lower.) */
.st-nav:has(.g-brand) { height: var(--g-nav); }
.nav-inner:has(.g-brand) { min-height: var(--g-nav); box-sizing: border-box; }

/* Intro: intro.css made its logo inline-block, which stacked the cube over the wordmark. */
.in-top .g-brand { display: inline-flex; }
.in-top:has(.g-brand) { padding-left: var(--g-pad); padding-right: var(--g-pad); padding-top: 15px; padding-bottom: 15px; }

/* Market, Swipe and Map keep their own spot (centred column, phone card stack, search pill); only the lockup is shared. */

/* Narrow phones: the marketplace bar is tight, so keep the cube and drop the wordmark, as the home nav does on scroll. */
@media (max-width: 370px) {
  .nav-top .g-brand .g-word { display: none; }
}
/* Phones: Partnerships, Swipe and Map have buttons or a search box beside the logo, so they keep the cube and drop
   the wordmark rather than squeeze them. */
@media (max-width: 480px) { .pn .g-brand .g-word, .sw-top .g-brand .g-word, .g-brand.mm-logo .g-word { display: none; } }
