/* The site header and footer for the pages that don't draw their own: the engine's pages (/ideas, /privacy,
   /terms and their Spanish versions) and /ideas/coworking. The home page's header (public/home/home.css),
   copied under its own class names (.bxh, .bxf) so it can't clash with those pages' styles. Markup: menu.js
   (siteHeader, siteFooter). Script: public/chrome/chrome.js (the phone menu). */

.bxh,.bxf{
  --bxc-bg:#0A0C0F; --bxc-line:rgba(236,238,241,.08); --bxc-line2:rgba(236,238,241,.14);
  --bxc-ink:#ECEEF1; --bxc-ink2:#C4CAD1; --bxc-mut2:#8B95A1; --bxc-dim:#828C98;
  --bxc-signal:#FF7A45; --bxc-dark:#0E1013;
  --bxc-body:'Instrument Sans',ui-sans-serif,system-ui,sans-serif;
  --bxc-mono:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
  font-family:var(--bxc-body);line-height:1.55;-webkit-font-smoothing:antialiased
}
.bxh-in,.bxf-in{box-sizing:border-box;max-width:1200px;margin:0 auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
@media (min-width:760px){.bxh-in,.bxf-in{padding-left:max(24px,env(safe-area-inset-left,0px));padding-right:max(24px,env(safe-area-inset-right,0px))}}

/* Header */
.bxh{position:sticky;top:env(safe-area-inset-top,0px);z-index:40;background:rgba(10,12,15,.86);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--bxc-line)}
.bxh-in{position:relative;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:66px}
.bxh-logo{display:flex;align-items:center;text-decoration:none}
.bxh-logo img{display:block;width:auto;height:24px}
.bxh nav{display:flex;align-items:center;gap:2px}
.bxh nav a{display:inline-block;padding:9px 12px;border-radius:999px;font-size:14px;font-weight:600;line-height:1.55;color:var(--bxc-ink2);text-decoration:none;background:none;border:0;box-shadow:none}
.bxh nav a:hover{color:var(--bxc-ink);background:rgba(236,238,241,.06)}
.bxh nav a[aria-current="page"]{color:var(--bxc-ink);box-shadow:inset 0 -3px 0 var(--bxc-signal);border-radius:0}
.bxh nav a.cta{background:var(--bxc-signal);color:var(--bxc-dark);padding:9px 16px;margin-left:6px}
.bxh nav a.cta:hover{background:#FF9466;color:var(--bxc-dark)}
.bxh :focus-visible,.bxf :focus-visible{outline:2px solid var(--bxc-signal);outline-offset:3px;border-radius:6px}

/* EN/ES switch: after the menu links on desktop; inside the open menu on phones. */
.bxh .lang-sw{display:inline-flex;align-items:center;margin-left:6px;font-family:var(--bxc-mono);font-size:12px}
.bxh .lang-sw i{font-style:normal;color:var(--bxc-dim)}
.bxh nav .lang-sw a{padding:9px 7px;font-size:12px;color:var(--bxc-mut2)}
.bxh nav .lang-sw a[aria-current="true"]{color:var(--bxc-ink)}

/* Phone menu (≤900 px): a "Menu" button next to "Let's talk" opens the same links in a panel under the header. */
.bxh .menu{display:contents}
.bxh .menu-btn{display:none}
@media (max-width:900px){
  .bxh nav a:not(.cta){display:none}
  .bxh .menu-btn:not([hidden]){display:inline-flex;align-items:center;gap:9px;min-height:40px;padding:0 14px;margin-left:6px;border:1px solid var(--bxc-line2);border-radius:999px;background:transparent;color:var(--bxc-ink);font:600 14px var(--bxc-body);cursor:pointer}
  .bxh .menu-ico{position:relative;width:14px;height:2px;border-radius:1px;background:currentColor;box-shadow:0 -5px 0 currentColor,0 5px 0 currentColor}
  .bxh .menu-btn[aria-expanded="true"] .menu-ico{background:transparent;box-shadow:none}
  .bxh .menu-btn[aria-expanded="true"] .menu-ico::before,.bxh .menu-btn[aria-expanded="true"] .menu-ico::after{content:"";position:absolute;left:0;top:0;width:14px;height:2px;border-radius:1px;background:currentColor;transform:rotate(45deg)}
  .bxh .menu-btn[aria-expanded="true"] .menu-ico::after{transform:rotate(-45deg)}
  .bxh .menu{display:none}
  .bxh .menu.open{display:flex;flex-direction:column;position:absolute;top:100%;left:0;right:0;padding:6px max(16px,env(safe-area-inset-left,0px)) 14px;background:var(--bxc-bg);border-bottom:1px solid var(--bxc-line2);box-shadow:0 24px 48px rgba(0,0,0,.45)}
  .bxh nav .menu.open a{display:block;padding:14px 4px;border-radius:0;font-size:16px;color:var(--bxc-ink);border-bottom:1px solid var(--bxc-line)}
  .bxh nav .menu.open a[aria-current="page"]{box-shadow:inset 3px 0 0 var(--bxc-signal);padding-left:14px}
  .bxh nav .menu.open .lang-sw{display:flex;gap:8px;margin:0;padding:14px 0 2px}
  .bxh nav .menu.open .lang-sw i{display:none}
  .bxh nav .menu.open .lang-sw a{display:inline-flex;align-items:center;justify-content:center;min-width:56px;min-height:44px;padding:0 14px;border:1px solid var(--bxc-line2);border-radius:999px;font-size:14px;color:var(--bxc-ink2)}
  .bxh nav .menu.open .lang-sw a[aria-current="true"]{border-color:rgba(255,122,69,.42);background:rgba(255,122,69,.08);color:var(--bxc-ink)}
}
/* Narrow phones (≤400 px): the menu button shows its icon only (the word stays for screen readers). */
@media (max-width:400px){.bxh .menu-btn:not([hidden]){padding:0 12px}.bxh .menu-t{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}

/* Footer: the menu, then the copyright line and the legal pages. */
.bxf{border-top:1px solid var(--bxc-line);background:var(--bxc-bg);color:var(--bxc-mut2);font-size:13.5px}
.bxf-in{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;padding-block:12px 44px}
.bxf-in.bxf-menu{padding-block:28px 0}
.bxf nav{display:flex;flex-wrap:wrap;gap:4px 18px;font-size:14px}
.bxf nav a{display:inline-block;padding:12px 0;color:var(--bxc-ink2);text-decoration:none}
.bxf nav a:hover{color:var(--bxc-ink)}
.bxf nav a[aria-current="page"]{color:var(--bxc-ink)}
.bxf-in > span{align-self:center}
.bxf-in > span a{display:inline-block;padding:12px 6px;margin:-12px -6px;color:var(--bxc-mut2)}
.bxf-in > span a:hover{color:var(--bxc-ink)}

/* Header links stay on one line (the Spanish labels are longer); between the phone menu and wide screens they
   sit a little closer together so the row fits. */
.bxh nav a{white-space:nowrap}
@media (min-width:901px) and (max-width:1100px){.bxh nav .menu a{padding-left:8px;padding-right:8px}}
