/* Shared announcement banner bar — used identically by the marketing pages
   (landing/about/terms/privacy) and journal.html. Inserted as the very
   first element in <body> by announcement-banner.js.

   --lp-olive is defined in landing.css's :root, but journal.html never
   loads landing.css — the var()/fallback pair below keeps this file truly
   shared without forcing journal.html to load an unrelated stylesheet
   just for one custom property. Breakpoints match this codebase's
   existing convention (see landing.css/journal.css): tablet at
   834-1024px, mobile at 833px and below. */

.ann-banner {
  background: var(--lp-olive, #636940);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px 40px;
  text-align: center;
}

.ann-banner-text { max-width: 100%; }

.ann-banner-title {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 14px;
}

.ann-banner-subtitle {
  margin: 2px 0 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 300;
  font-size: 12px;
}

.ann-banner-close {
  position: absolute;
  top: 50%;
  right: 40px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.ann-banner-close img {
  display: block;
  width: 100%;
  height: 100%;
}

.ann-banner-close:hover { opacity: 0.85; }

@media (max-width: 833px) {
  .ann-banner {
    justify-content: flex-start;
    text-align: left;
    padding: 10px 20px;
    padding-right: 56px; /* keeps text clear of the absolutely-positioned close button */
  }
  .ann-banner-close { right: 20px; }
}
