/* Event Bucket site chrome: the homepage header and footer, shared by every
 * content page (about, blog, FAQ, developers, setup guide, legal, 404) so the
 * whole public site carries the same Cobalt & Paper brand as the landing page.
 * Values are measured from the live homepage (2026-10-11).
 *
 * Rules hang off the three ids (#ebSiteNav, #ebSiteMenu, #ebSiteFooter) so
 * they outrank both each page's own inline nav/footer CSS and the generic
 * `body.eb-page nav/footer` remaps in event-bucket-cobalt.css, several of
 * which use !important; the few properties those rules force carry
 * !important here as well.
 */
#ebSiteNav, #ebSiteMenu, #ebSiteFooter {
  --ebc-cobalt: #174cdb;
  --ebc-cobalt-hover: #103bb2;
  --ebc-ink: #112347;
  --ebc-muted: #526582;
  --ebc-line: #d4dfef;
  --ebc-navy: #0a1220;
  --ebc-on-navy: #f2f5f9;
  --ebc-navy-muted: #93a3b6;
  --ebc-navy-link: #b9c5d4;
  --ebc-font: 'Public Sans', 'Segoe UI', system-ui, sans-serif;
  font-family: var(--ebc-font);
  box-sizing: border-box;
  flex-shrink: 0; /* some pages make <body> a full-height flex column */
}
#ebSiteNav *, #ebSiteMenu *, #ebSiteFooter * { box-sizing: border-box; }
/* Reset what each page's own `nav a`, `footer a`, `footer h3`, `footer li`
   rules would otherwise leak in; the classes below then set the real values. */
#ebSiteNav a, #ebSiteMenu a, #ebSiteFooter a {
  margin: 0; padding: 0; border: 0; border-radius: 0; background: none;
  box-shadow: none; min-height: 0; min-width: 0; text-transform: none;
  letter-spacing: normal; text-decoration: none; transform: none; opacity: 1;
  font-family: var(--ebc-font); font-size: inherit; font-weight: inherit; line-height: inherit;
}
#ebSiteNav span, #ebSiteFooter span, #ebSiteFooter p, #ebSiteFooter li { font-family: var(--ebc-font); }
#ebSiteFooter p, #ebSiteFooter ul, #ebSiteFooter li, #ebSiteFooter div {
  margin: 0; padding: 0; border: 0; background: none; text-align: left;
}

/* Header */
#ebSiteNav {
  position: sticky; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; gap: 32px;
  width: 100%; height: 64px; margin: 0; padding: 0 32px;
  background: #fff !important; border: 0; border-bottom: 1px solid var(--ebc-line) !important;
  box-shadow: none !important; backdrop-filter: none !important;
  font-size: 16px; line-height: 1.6; text-align: left;
}
#ebSiteNav a { text-decoration: none; }
#ebSiteNav .ebc-logo {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  font-size: 16.8px; font-weight: 900; letter-spacing: -0.01em; line-height: 1.6;
  color: var(--ebc-cobalt) !important; white-space: nowrap;
}
#ebSiteNav .ebc-logo-icon {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 8px; background: var(--ebc-cobalt);
}
#ebSiteNav .ebc-logo-icon svg { stroke: #fff; }
#ebSiteNav .ebc-logo-sub { color: var(--ebc-muted); }
#ebSiteNav .ebc-links {
  display: flex; align-items: center; gap: 24px; margin: 0 0 0 auto; padding: 0; list-style: none;
}
#ebSiteNav .ebc-link {
  display: block; font-size: 15px; font-weight: 600; line-height: 24px;
  letter-spacing: 0; text-transform: none; color: var(--ebc-ink) !important;
  transition: color .15s;
}
#ebSiteNav .ebc-link:hover, #ebSiteNav .ebc-link[aria-current="page"] { color: var(--ebc-cobalt) !important; }
#ebSiteNav .ebc-cta { display: flex; gap: 8px; margin-left: 8px; }
#ebSiteNav .ebc-btn, #ebSiteMenu .ebc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 9px 18px; border-radius: 6px;
  font-size: 15px; font-weight: 700; line-height: 18px; letter-spacing: 0;
  text-transform: none; white-space: nowrap; box-shadow: none; transform: none;
}
#ebSiteNav .ebc-btn-outline {
  background: #fff !important; color: var(--ebc-cobalt) !important; border: 1px solid var(--ebc-line) !important;
}
#ebSiteNav .ebc-btn-outline:hover { border-color: var(--ebc-cobalt) !important; }
#ebSiteNav .ebc-btn-primary, #ebSiteMenu .ebc-btn-primary {
  background: var(--ebc-cobalt) !important; color: #fff !important; border: 1px solid var(--ebc-cobalt) !important;
}
#ebSiteNav .ebc-btn-primary:hover, #ebSiteMenu .ebc-btn-primary:hover { background: var(--ebc-cobalt-hover) !important; }
#ebSiteNav .ebc-burger {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 40px; height: 40px; margin-left: auto; padding: 8px;
  background: none !important; border: 0; cursor: pointer;
}
#ebSiteNav .ebc-burger span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: var(--ebc-ink); transition: transform .3s ease, opacity .3s ease;
}
#ebSiteNav .ebc-burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
#ebSiteNav .ebc-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
#ebSiteNav .ebc-burger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Phone menu */
#ebSiteMenu {
  display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; z-index: 899;
  flex-direction: column; align-items: center; gap: 16px; overflow-y: auto;
  padding: 48px 32px; background: #fff !important; border: 0 !important;
}
#ebSiteMenu.open { display: flex; }
#ebSiteMenu a:not(.ebc-btn) {
  padding: 8px 0; font-size: 19.2px; font-weight: 700; text-decoration: none;
  color: var(--ebc-ink) !important;
}
#ebSiteMenu a:not(.ebc-btn):hover { color: var(--ebc-cobalt) !important; }
#ebSiteMenu .ebc-btn { width: 220px; margin-top: 8px; text-decoration: none; }

#ebSiteNav .ebc-link, #ebSiteNav .ebc-logo { white-space: nowrap; }

/* Breakpoints keep the header on one row at every width (the full row needs
   about 1050px): the logo subtitle goes first, then the outline button, then
   the links collapse into the menu button, and on phones only the menu stays. */
@media (max-width: 1180px) {
  #ebSiteNav { gap: 16px; padding: 0 20px; }
  #ebSiteNav .ebc-links { gap: 16px; }
  #ebSiteNav .ebc-logo-sub { display: none; }
}
@media (max-width: 1100px) {
  #ebSiteNav .ebc-cta .ebc-btn-outline { display: none; }
}
@media (max-width: 960px) {
  #ebSiteNav .ebc-links { display: none; }
  #ebSiteNav .ebc-cta { margin-left: auto; }
  #ebSiteNav .ebc-burger { display: flex; margin-left: 0; }
}
@media (max-width: 560px) {
  #ebSiteNav .ebc-cta { display: none; }
  #ebSiteNav .ebc-burger { margin-left: auto; }
}

/* Footer */
#ebSiteFooter {
  display: block; width: 100%; margin: 0; padding: 72px 32px 48px;
  background: var(--ebc-navy) !important; color: var(--ebc-on-navy) !important;
  border: 0 !important; border-top: 1px solid rgba(255, 255, 255, .05) !important;
  font-size: 16px; line-height: 1.6; text-align: left;
}
#ebSiteFooter a { text-decoration: none; }
#ebSiteFooter .ebc-footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  max-width: 1160px; margin: 0 auto; padding: 0;
}
#ebSiteFooter .ebc-footer-logo { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
#ebSiteFooter .ebc-footer-icon {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 6px; background: var(--ebc-cobalt);
}
#ebSiteFooter .ebc-footer-icon svg { stroke: #fff; }
#ebSiteFooter .ebc-footer-name { font-size: 14.4px; font-weight: 900; line-height: 1.6; color: var(--ebc-on-navy) !important; }
#ebSiteFooter .ebc-footer-tagline {
  max-width: 260px; margin: 0; font-size: 14px; line-height: 1.6; color: var(--ebc-navy-muted) !important;
}
#ebSiteFooter .ebc-footer-title {
  margin: 0 0 16px; font-size: 12px; font-weight: 800; line-height: 1.6;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ebc-navy-muted) !important;
}
#ebSiteFooter .ebc-footer-links { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
#ebSiteFooter .ebc-footer-links li { margin: 0; padding: 0; line-height: 1.6; }
#ebSiteFooter .ebc-footer-links li::before, #ebSiteFooter .ebc-footer-links li::marker { content: none; }
#ebSiteFooter .ebc-footer-links a { font-size: 14px; line-height: 1.6; color: var(--ebc-navy-link) !important; transition: color .15s; }
#ebSiteFooter .ebc-footer-links a:hover { color: #fff !important; }
#ebSiteFooter .ebc-footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1160px; margin: 48px auto 0; padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .05);
}
#ebSiteFooter .ebc-footer-copy { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ebc-navy-muted) !important; }
#ebSiteFooter .ebc-footer-copy a { color: var(--ebc-navy-link) !important; text-decoration: underline; }
#ebSiteFooter .ebc-footer-legal { display: flex; gap: 24px; }
#ebSiteFooter .ebc-footer-legal a { font-size: 13px; line-height: 1.6; color: var(--ebc-navy-muted) !important; }
#ebSiteFooter .ebc-footer-legal a:hover, #ebSiteFooter .ebc-footer-copy a:hover { color: #fff !important; }
#ebSiteFooter :focus-visible, #ebSiteNav :focus-visible, #ebSiteMenu :focus-visible {
  outline: 3px solid #6f98ff !important; outline-offset: 3px;
}
#ebSiteNav :focus-visible, #ebSiteMenu :focus-visible { outline-color: var(--ebc-cobalt) !important; }

/* Legal pages (privacy, terms) and the 404 page were built with a gold,
   all-caps Montserrat heading style; bring their headings onto the
   homepage's type: Public Sans, sentence case, ink with no gold. */
body.eb-page.eb-legal main h1, body.eb-page.eb-legal main h2, body.eb-page.eb-legal main h3,
body.eb-page .error-container h1 {
  font-family: 'Public Sans', 'Segoe UI', system-ui, sans-serif !important;
  font-weight: 800 !important; text-transform: none !important;
  letter-spacing: -0.02em !important; color: #112347 !important;
}
body.eb-page.eb-legal main h1 { font-size: clamp(2rem, 4vw, 2.6rem) !important; line-height: 1.15; }
body.eb-page.eb-legal main h2 { font-size: 21.6px !important; }
/* 404 page: its subtitle was nearly invisible on paper and its button text
   was dark on cobalt; both now meet WCAG AA contrast. */
body.eb-page .error-container .error-message { color: #3b4a63 !important; }
body.eb-page .error-container .error-description { color: #526582 !important; }
body.eb-page .error-container .home-button { background: #174cdb !important; color: #fff !important; }
body.eb-page .error-container .home-button:hover { background: #103bb2 !important; }

@media (max-width: 768px) { #ebSiteFooter .ebc-footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) {
  #ebSiteFooter { padding: 56px 20px 40px; }
  #ebSiteFooter .ebc-footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
