/* Round 4: the home page announcement bar, ported from Amigo's main.css (Landing announcement). */
.landing-announcement {
  /* Separates it from the headline row below without needing a wrapper. */
  margin-bottom: 2rem;

  --announce-bg: #084e84; /* New Lo-An blue (round2.css --nl-blue); Amigo used #0b3d5b */
  --announce-fg: #ffffff;
  --announce-rule: #f0b429;

  display: flex;
  align-items: center;
  gap: 1.15rem;
  background: var(--announce-bg);
  color: var(--announce-fg);
  border-radius: 0.85rem;
  /* The gold rule is what makes it read as a notice rather than a section
     header — the site has no other gold-edged object. */
  border-left: 6px solid var(--announce-rule);
  padding: 1.15rem 1.5rem;
  box-shadow: 0 10px 26px rgba(11, 61, 91, 0.20);
}

/* The cancellation case. Deep red rather than a bright one: unmistakably
   different from the blue without turning the top of the page into a browser
   error. #8f1d1d against white is 8.6:1. The rule goes white here — gold on
   red is the one pairing that reads as decoration rather than warning. */
.landing-announcement--alert {
  --announce-bg: #8f1d1d;
  --announce-rule: #ffffff;
  box-shadow: 0 10px 26px rgba(143, 29, 29, 0.26);
}

/* Circular badge rather than a bare glyph: at this size a loose icon reads as
   a bullet. */
.landing-announcement-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 1.3rem;
  line-height: 1;
}

/* basis 0, not auto: with auto the message's own width can stop it fitting
   beside the badge, so it wraps and leaves the badge alone on the first line
   looking like a bullet. */
.landing-announcement-body {
  flex: 1 1 0;
  min-width: 0;
}

.landing-announcement-headline {
  margin: 0 0 0.15rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  /* Not full white: the headline is the label and the message is the point, so
     the message has to win the contrast contest between them. Composited over
     the card this is still 7.2:1 on navy and 5.6:1 on red. */
  color: color-mix(in srgb, var(--announce-fg), transparent 25%);
}

.landing-announcement-message {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.45;
}

/* A real button, not an underlined link — it is the only action on the card
   and it was losing to the message beside it. Shrink-wrapped: at container
   width a button spanning the whole card looks absurd. */
.landing-announcement-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--announce-fg);
  color: var(--announce-bg);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.55rem 1.35rem;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-announcement-link:hover,
.landing-announcement-link:focus {
  color: var(--announce-bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

@media (max-width: 767px) {
  /* Stacked: no room for badge, message and button across a phone. */
  .landing-announcement {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-radius: 0.7rem;
  }

  .landing-announcement-badge {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
  }

  .landing-announcement-message {
    font-size: 1rem;
  }

  /* Full width on its own row. The indent is PADDING, not margin: a 100%
     flex-basis plus a margin overflows its own row and pushes horizontal
     scroll onto the page. */
  .landing-announcement-link {
    flex: 0 0 100%;
    justify-content: center;
  }
}
