/* The campaign gold gives the notice a distinct edge above the existing teal utility navigation. */
.nws-announcement {
  background: #f5d474;
  color: #113840;
  text-align: center;
}
.nws-announcement .nws-announcement__link {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 46px;
  padding: 8px 24px;
  color: inherit;
  text-decoration: none;
  font: 500 18px/1.23 Afacad, Arial, sans-serif;
}
.nws-announcement__copy { text-wrap: pretty; }
.nws-announcement__action {
  display: inline-block;
  white-space: nowrap;
  margin-inline-start: 9px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.nws-announcement__action > span { display: inline-block; margin-left: 2px; }
.nws-announcement__link:hover .nws-announcement__action { text-decoration-thickness: 2px; }
.nws-announcement__link:focus-visible { outline: 2px solid currentColor; outline-offset: -5px; }
@media (max-width: 650px) {
  .nws-announcement .nws-announcement__link {
    text-align: left;
    justify-content: flex-start;

    padding: 10px 16px;
    font-size: 16px;
    line-height: 1.25;
  }
  .nws-announcement__action { margin-inline-start: 3px; }
}

/* v2 fixes its header to the viewport. Shift it only by the portion of the
   in-flow announcement still on screen. Astra's header needs no adjustment. */
body:has(> .nws-announcement) .nw-header {
  top: calc(var(--nw-header-top) + var(--nw-adminbar-offset, var(--wp-admin--admin-bar--height, 0px)) + var(--nws-notice-visible, 0px));
}
@media (scripting: none) {
  body:has(> .nws-announcement) .nw-header {
    position: relative;
    top: var(--nw-header-top);
  }
}
