/* Event ribbon: slim time-boxed bar under the header (home page and plugins/index.html). See event-ribbon.js.
   Same family as the .pp-cta banners (dark panel, accent border and glow), cut down to one line. The accent is
   Halloween orange; a future event can override --ev on .ev-ribbon with a modifier class. */
.ev-ribbon {
  --ev: #ff7a1a;
  --ev-bright: #ffb067;
  --ev-line: rgba(255, 122, 26, 0.45);
  position: relative;
  background:
    radial-gradient(420px 90px at 12% 0%, rgba(255, 122, 26, 0.22), transparent 70%),
    radial-gradient(420px 90px at 88% 100%, rgba(255, 122, 26, 0.14), transparent 70%),
    #130a06;
  border-bottom: 1px solid var(--ev-line);
  color: #ffe9d6;
}

.ev-ribbon-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 42px;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}

.ev-ribbon-link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
}

.ev-ribbon-link:hover,
.ev-ribbon-link:focus-visible {
  color: #fff;
  text-decoration: none;
}

.ev-ribbon-ico {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--ev);
  filter: drop-shadow(0 0 6px rgba(255, 122, 26, 0.55));
}

.ev-ribbon-text {
  min-width: 0;
}

.ev-ribbon-go {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  padding: 0.22rem 0.7rem;
  border: 1px solid var(--ev-line);
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.12);
  color: var(--ev-bright);
  font-size: 0.82rem;
  font-weight: 700;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.ev-ribbon-go svg {
  width: 14px;
  height: 14px;
  transition: transform 0.15s ease;
}

.ev-ribbon-link:hover .ev-ribbon-go,
.ev-ribbon-link:focus-visible .ev-ribbon-go {
  background: rgba(255, 122, 26, 0.24);
  border-color: var(--ev);
}

.ev-ribbon-link:hover .ev-ribbon-go svg {
  transform: translateX(3px);
}

.ev-ribbon-link:focus-visible,
.ev-ribbon-x:focus-visible {
  outline: 2px solid var(--ev-bright);
  outline-offset: 2px;
  border-radius: 6px;
}

.ev-ribbon-x {
  appearance: none;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 233, 214, 0.65);
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.ev-ribbon-x svg {
  width: 14px;
  height: 14px;
}

.ev-ribbon-x:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Phones: the pill goes (the whole text is the link), the text may wrap to two lines */
@media (max-width: 640px) {
  .ev-ribbon-go {
    display: none;
  }

  .ev-ribbon-link {
    font-size: 0.86rem;
  }
}
