/* HackAthlone 2025 archive: styles for the archive notice and the small stand-ins in archive.js */

.archive-notice {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  max-width: min(760px, calc(100vw - 24px));
  box-sizing: border-box;
  padding: 7px 7px 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(12, 26, 57, 0.94);
  color: #f6f4f4;
  font: 500 13px/1.4 var(--font-cabinet-grotesk), system-ui, -apple-system, "Segoe UI", sans-serif;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.archive-notice-text {
  margin: 0;
  padding: 2px 0;
}
.archive-notice a {
  color: #ffa220;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.archive-notice a:hover {
  color: #ffc06b;
}
.archive-notice-close {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: #c9ced8;
  background: transparent;
  cursor: pointer;
}
.archive-notice-close[hidden] {
  display: none;
}
.archive-notice-close:hover,
.archive-notice-close:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
body {
  padding-bottom: 64px;
}
.archive-notice-off body {
  padding-bottom: 0;
}
@media (max-width: 640px) {
  .archive-notice {
    bottom: 10px;
    align-items: flex-start;
    padding: 7px 5px 7px 12px;
    border-radius: 14px;
    font-size: 12px;
  }
  body {
    padding-bottom: 84px;
  }
}

/* /winners, /timeline, /glimpse: the WebGL star field cannot run here, so a still one is used */
.archive-stars {
  background: #000 url(/archive-stars.png) repeat;
  background-size: 720px 720px;
}

/* judges and mentors: bio pop-up */
.archive-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.archive-modal-card {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 24px;
  background: #171717;
  color: #d4d4d4;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.archive-modal-card img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: top;
}
.archive-modal-body {
  padding: 20px 24px 24px;
  font: 400 15px/1.6 var(--font-cabinet-grotesk), system-ui, sans-serif;
}
.archive-modal-body h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}
.archive-modal-meta {
  margin: 0 0 14px;
  color: #a3a3a3;
  font-size: 13px;
}
.archive-modal-body p {
  margin: 0 0 12px;
}
.archive-modal-body a {
  color: #facc15;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.archive-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  cursor: pointer;
}
.archive-modal-close:hover,
.archive-modal-close:focus-visible {
  background: rgba(0, 0, 0, 0.85);
}
