/* Slim support strip at the top of the homepage, with short-lived supporter popups above it. */
.support-strip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(560px, 100%);
  margin: 14px auto 18px; /* leaves room for the popup inside the scrolling main area */
  padding-block: 6px;
  padding-inline: 16px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
}
.support-strip[hidden] { display: none; }
.support-strip-month {
  padding: 2px 9px; border-radius: 999px; white-space: nowrap;
  background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary);
  font-size: 12px; font-weight: 700;
}
.support-strip-month:empty { display: none; }
/* Translations run longer than English: let the label shorten so the button always stays visible. */
.support-strip-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 13px; font-weight: 600; white-space: nowrap; }
.support-strip-track {
  position: relative; flex: 1; min-width: 60px; height: 8px; overflow: hidden;
  border-radius: 999px; background: color-mix(in srgb, var(--border) 75%, transparent);
}
.support-strip-fill {
  position: absolute; inset-block: 0; inset-inline-start: 0; width: 0;
  border-radius: inherit; background: var(--primary); transition: width 1s ease;
}
.support-strip-cta {
  flex-shrink: 0;
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px;
  border-radius: 999px; background: var(--primary); color: #fff;
  font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.support-strip-cta:hover { background: var(--primary-hover); }
.support-strip-cta:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.support-strip-toast {
  position: absolute; bottom: calc(100% + 6px); left: 50%; z-index: 5; margin: 0; width: max-content;
  padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow);
  font-size: 12px; line-height: 1.4; white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translate(-50%, 8px) scale(0.96);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.support-strip-toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.support-strip-toast::before { content: "\1F49B"; margin-inline-end: 6px; }
.support-strip-toast .when { color: var(--muted); }
@media (max-width: 520px) {
  .support-strip { gap: 8px; padding-inline-start: 12px; }
  .support-strip-track { min-width: 32px; }
  .support-strip-month { flex-shrink: 0; }
  .support-strip-label { font-size: 12px; }
  .support-strip-month { font-size: 11px; padding: 2px 7px; }
  .support-strip-toast { max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }
}
@media (prefers-reduced-motion: reduce) {
  .support-strip-fill, .support-strip-toast { transition: none; }
}
