/* Site-wide "Bringing tea into your office?" announcement bar.
   Shown on every page that links out to /office EXCEPT:
   - office/index.html itself (it would link to the page you're already on)
   - reserve/index.html (a private, passphrase-gated single-partner
     reservation page, not part of the general marketing funnel)
   Sticky at the very top of the viewport, above everything else on the
   page, and dismissible — dismissal is remembered (see banner.js) so it
   doesn't reappear once a visitor has closed it. The banner's own text
   uses the shared i18n.js data-i18n / data-i18n-aria system, so it
   translates along with the rest of the page automatically. */

:root{ --wtea-banner-h: 0px; }

html.has-office-banner{ scroll-padding-top: var(--wtea-banner-h); }
html.has-office-banner body{ padding-top: var(--wtea-banner-h); }

/* Every page's own stylesheet pins its <header> at top:0 with
   position:fixed, which put the logo/nav directly underneath this banner
   (z-index 2000, above the header's z-index 60) instead of below it —
   the body's padding-top above only moves the scrolling content, not a
   fixed-position header. Push the fixed header down by the banner's
   measured height so it always sits just below the bar, not clipped
   behind it. */
html.has-office-banner header{ margin-top: var(--wtea-banner-h); }

#wtea-office-banner{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 2000;
  background: var(--matcha, #0E3A24);
  color: #FBFCF5;
  border-bottom: 1px solid rgba(243,224,129,0.28);
}
#wtea-office-banner .wtea-office-banner-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 9px 44px 9px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
#wtea-office-banner a.wtea-office-banner-link{
  color: inherit;
  text-decoration: none;
  font-family: 'Newsreader', serif;
  font-size: 13.5px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  text-align: center;
}
#wtea-office-banner .wtea-office-banner-cta{
  color: var(--yellow, #F3E081);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  white-space: nowrap;
}
#wtea-office-banner .wtea-office-banner-close{
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(251,252,245,0.68);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 8px;
}
#wtea-office-banner .wtea-office-banner-close:hover,
#wtea-office-banner .wtea-office-banner-close:focus-visible{
  color: #FBFCF5;
}

@media (max-width: 600px){
  #wtea-office-banner .wtea-office-banner-inner{ padding: 8px 38px 8px 12px; }
  #wtea-office-banner a.wtea-office-banner-link{ font-size: 12px; }
}

@media (prefers-reduced-motion: no-preference){
  #wtea-office-banner{ transition: transform .15s ease; }
}
