/* ============================================================
   Hello bar (announcement above the header)
   Markup: main.master wraps location.HelloBar (CMS content).
   Starts hidden; hello-bar.js opens it after page load.
   ============================================================ */

.hello-bar {
  display: grid;
  grid-template-rows: 0fr;
  background-color: #1f1f1f;
  color: #fff;
  font-size: 0.8125rem;
  line-height: 1.5;
  transition: grid-template-rows 0.45s ease;
}

.hello-bar[hidden] {
  display: none;
}

/* open: the row grows from 0 to the content's natural height */
.hello-bar.is-open {
  grid-template-rows: 1fr;
}

.hello-bar-inner {
  min-height: 0;
  overflow: hidden;
}

/* CMS content */
.hello-bar-content p {
  margin: 0;
}

.hello-bar-content a:not([class*="btn"]) {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* CMS "Learn More" link: keep it on one line and readable as a button */
.hello-bar-content [class*="btn"] {
  display: inline-block;
  margin: 2px 0 2px 4px;
  padding: 4px 12px !important;
  line-height: 1.4;
  white-space: nowrap;
}

.hello-bar .btn-close {
  width: 0.75em;
  height: 0.75em;
  opacity: 0.8;
}

.hello-bar .btn-close:hover,
.hello-bar .btn-close:focus-visible {
  opacity: 1;
}

@media (min-width: 768px) {
  .hello-bar {
    font-size: 0.875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hello-bar {
    transition: none;
  }
}
