/* Freshie beer-parity overlay — targeted patch layered over a brand's existing
   inline styles (Group B/C). Loaded LAST in <head> so equal-specificity rules win.
   Header: brand left · nav centered · language + account hard-right.
   Plus the shared minimal footer + aligned floating buttons. */

/* fill vars some older brands don't define, so the footer themes correctly */
:root { --paper: var(--paper-bright, #f7f3ea); --shadow: rgba(20, 20, 18, .18); }

/* ---------- Header cluster ----------
   Resilient/additive: each brand keeps its own brand-mark + nav (classes vary:
   .brand-link / .site-logo / .site-brand, .nav / .site-nav). We only float the
   language picker + account + mobile toggle to the far right. */
.site-header-inner, .site-nav-inner, #hdr .wrap.nav, #hdr .nav { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.brand-link, .site-logo, .site-brand, #hdr .brand { flex-shrink: 0; min-width: 0; }
#fs-acct-btn { order: 91; flex-shrink: 0; }
.nav-mobile-toggle, .nav-toggle, .menu-toggle, .mobile-nav-toggle, .burger { order: 92; flex-shrink: 0; }

/* language picker pulled into the header (was fixed bottom-left); margin-left:auto
   pushes it + everything after it (account, toggle) to the right edge */
#i18n-pick.in-header { position: static !important; order: 90; margin-left: auto; left: auto; right: auto; top: auto; bottom: auto; flex-shrink: 0; }
#i18n-pick.in-header > summary { background: transparent; color: inherit; box-shadow: none; padding: 6px 9px; border: 1px solid rgba(140, 140, 140, .34); border-radius: 18px; }
#i18n-pick.in-header .i18n-menu { position: absolute; bottom: auto !important; top: calc(100% + 8px) !important; left: auto !important; right: 0 !important; }
/* compact picker on mobile (globe only) so the header cluster fits narrow screens */
@media (max-width: 760px) {
  #i18n-pick.in-header > summary > span { display: none; }
  #i18n-pick.in-header > summary > svg.chev, #i18n-pick.in-header > summary .chev { display: none; }
  #i18n-pick.in-header > summary { padding: 6px 8px; gap: 0; }
}

/* ---------- Mobile menu: centered, full-row tap targets ---------- */
.site-header.is-open .nav { display: flex !important; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; text-align: center; background: var(--paper, #fff); border-bottom: 1px solid var(--hairline, rgba(0,0,0,.08)); padding: 8px 0; box-shadow: 0 12px 28px -10px var(--shadow); }
.site-header.is-open .nav a { display: block; width: 100%; text-align: center; padding: 12px; }

/* ---------- Injected hamburger (brands with an always-visible nav, e.g. ferment/fruit/veggie) ----------
   ensureToggle() tags the links list .fr-collapsible + the bar .fr-injected-nav, so this
   works regardless of the brand's own class names. */
.fr-navtoggle { order: 92; flex-shrink: 0; display: none; align-items: center; background: transparent; border: 0; padding: 6px; margin: 0; cursor: pointer; color: inherit; }
.fr-navtoggle svg { width: 24px; height: 24px; }
.fr-injected-nav { position: relative; }
@media (max-width: 760px) {
  .fr-navtoggle { display: inline-flex; }
  .fr-collapsible { display: none !important; }
  .fr-injected-nav.fr-nav-open .fr-collapsible { display: flex !important; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; text-align: center; background: var(--paper, #fff); border-bottom: 1px solid var(--hairline, rgba(0,0,0,.08)); padding: 8px 0; box-shadow: 0 12px 28px -10px var(--shadow); z-index: 50; }
  .fr-injected-nav.fr-nav-open .fr-collapsible a { display: block; width: 100%; text-align: center; padding: 12px; }
}

/* ---------- Scan strip: small, side-by-side, pinned flush below header ---------- */
.vy-strip { flex-wrap: nowrap !important; gap: 8px; padding: 6px 12px; top: var(--fr-header-h, 56px) !important; }
.vy-strip .pri, .vy-strip .sec { flex: 1 1 0; min-width: 0; justify-content: center; font-size: 11px !important; padding: 6px 10px !important; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vy-strip .pri svg, .vy-strip .sec svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ---------- Sticky search/filter pins below header (+ scan strip if present) ---------- */
.filter-bar { top: var(--fr-sticky-top, 56px) !important; }

/* ---------- Aligned floating buttons (kofi sized to match the Ask pill) ---------- */
#freshie-kofi-btn { width: 44px !important; height: 44px !important; bottom: 10px !important; left: 10px !important; }
#freshie-kofi-btn svg { width: 22px !important; height: 22px !important; }

/* ---------- Minimal standard footer (shared look) ---------- */
.site-footer { padding-bottom: 88px; padding-left: 22px; padding-right: 22px; }
.site-footer .footer-min { max-width: 720px; margin: 0 auto; }
.site-footer .footer-min .footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.site-footer .footer-mark { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.site-footer .footer-mark svg { width: 17px; height: 17px; color: var(--paper); }
.site-footer .footer-min .brand-name { font-family: var(--font-display, var(--font-body)); font-weight: 800; font-size: 18px; color: var(--ink); }
.site-footer .footer-min .brand-name em { font-style: normal; color: var(--accent-deep); }
.site-footer .footer-min .footer-tagline { font-size: 13px; color: var(--ink-soft); margin: 0 0 20px; }
.site-footer .footer-fam-label { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 13px; }
.site-footer .footer-fam { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 8px; margin: 0 0 22px; font-size: 13.5px; }
.site-footer .footer-fam a { color: var(--accent-deep); text-decoration: none; }
.site-footer .footer-fam a:hover { text-decoration: underline; }
.site-footer .footer-fam .here { font-weight: 600; color: var(--ink); }
.site-footer .footer-acct { margin: 0 0 20px; font-size: 14px; font-weight: 500; line-height: 1.7; text-align: center; }
.site-footer .footer-acct a { color: var(--ink); text-decoration: none; }
.site-footer .footer-acct a:hover { color: var(--accent-deep); }
.site-footer .footer-acct .sep { margin: 0 9px; color: var(--ink-muted); opacity: 0.5; }
.site-footer .footer-legal { border-top: 0.5px solid var(--hairline); padding-top: 14px; font-size: 11.5px; color: var(--ink-muted); line-height: 1.8; margin: 0; }
.site-footer .footer-legal a { color: var(--ink-muted); }
@media (min-width: 680px) { .site-footer .footer-fam { grid-template-columns: repeat(4, 1fr); max-width: 540px; } }
