/* The "this is an old archive" link, top left of every page, pointing to v2 */
.archive-banner {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 2147483647;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 270px;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(12, 12, 18, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  color: #f2f2f6;
  font: 500 13px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.archive-banner:hover {
  background: rgba(30, 30, 44, 0.92);
  transform: translateY(-1px);
}

.archive-banner strong {
  color: #b9a8ff;
  white-space: nowrap;
}

/* Wide screens: the full message, in two lines, clear of the centred heading */
.archive-short { display: none; }

/* Narrower desktops: the heading comes closer, so the short version */
@media (max-width: 1240px) {
  .archive-banner { max-width: none; }
  .archive-long { display: none; }
  .archive-short { display: inline; }
}

/* Phones: in the page's flow at the top, so it never covers the cards */
@media (max-width: 768px) {
  .archive-banner {
    position: relative;
    top: auto;
    left: auto;
    display: flex;
    justify-content: space-between;
    margin: 12px 12px 0;
    max-width: none;
  }
  .archive-long { display: inline; }
  .archive-short { display: none; }
}

/* Narrower desktops: the centred heading reaches the corner, so it moves down to make room */
@media (min-width: 769px) and (max-width: 1240px) {
  body #main-header { top: 64px !important; }
}
