/*
 * Standalone announcement styling. The site navbar is sticky at the top of
 * the React app, so this normal-flow strip sits before it and scrolls away
 * naturally rather than competing with or covering the header.
 */
.mt-medicare-banner {
  box-sizing: border-box;
  display: none;
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.625rem 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 1rem;
  flex-wrap: wrap;
  color: #fbf8ef;
  background: #214a3a;
  border-bottom: 1px solid #d2b36f;
  font-family: "DM Sans", "Lora", Georgia, serif;
  font-size: 0.9375rem;
  line-height: 1.4;
  text-align: center;
}

html[data-medicare-costs-banner="visible"] .mt-medicare-banner {
  display: flex;
}

.mt-medicare-banner__message {
  margin: 0;
  font-weight: 500;
}

.mt-medicare-banner__link {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  color: #fff4d1;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.mt-medicare-banner__link:hover {
  color: #ffffff;
  text-decoration-thickness: 2px;
}

.mt-medicare-banner__link:focus-visible,
.mt-medicare-banner__close:focus-visible {
  outline: 3px solid #f0cf78;
  outline-offset: 3px;
  border-radius: 3px;
}

.mt-medicare-banner__close {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgb(255 255 255 / 48%);
  border-radius: 999px;
  color: #fffaf0;
  background: transparent;
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.mt-medicare-banner__close:hover {
  color: #214a3a;
  background: #fff4d1;
}

.mt-medicare-banner__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 38rem) {
  .mt-medicare-banner {
    min-height: 3.75rem;
    padding: 0.6rem 3.5rem 0.6rem 0.75rem;
    gap: 0.2rem 0.55rem;
    font-size: 0.875rem;
    text-align: left;
  }

  .mt-medicare-banner__message {
    flex: 1 1 100%;
  }

  .mt-medicare-banner__link {
    min-height: 1.7rem;
  }

  .mt-medicare-banner__close {
    right: 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mt-medicare-banner,
  .mt-medicare-banner * {
    scroll-behavior: auto;
    transition: none;
  }
}
