/* The second hackathon's project exhibition (/hackathon/shanghai): a grid of project cards that the
   track filter narrows (the page script toggles [hidden]; without it every card shows), then the
   organizers' project-listing application with its QR. */

/* The hero plate is the event's key visual (ClawHunt Builder Camp 2026 · Shanghai: navy-to-azure gradient,
   rings and the crab disc on the right), so the night veil only needs to lift the copy on the left. */
.hs-hero.page-hero--night::before {
  background:
    linear-gradient(to top, rgb(16 48 79 / 0.72) 0%, rgb(16 48 79 / 0.2) 45%, transparent 70%),
    linear-gradient(90deg, rgb(16 48 79 / 0.55), transparent 60%);
}

.hs-hero .page-hero__label {
  color: #c1fcf1;
}

.hs-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-6);
  margin: var(--s-5) 0 0;
  padding: 0;
  list-style: none;
}

.hs-facts li {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--ink-2);
}

.hs-facts strong {
  font-size: var(--fs-h2);
  line-height: 1;
  color: var(--ink);
}

.hs-section {
  padding-block: clamp(36px, 5vw, 64px);
}

.hs-section + .hs-section {
  padding-top: 0;
}

.hs-head {
  display: grid;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}

/* The results of 2026-11-01 (pages/hackathon-results.css) sit above the list; each links to its card below. */
.hs-results__head {
  display: grid;
  gap: var(--s-3);
  max-width: 72ch;
  margin-bottom: var(--s-6);
}

.hs-results__lede {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.7;
}

.hs-card__award {
  margin: 0;
}

/* the card a results link points at */
.hs-card > article:target {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hs-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.hs-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-2);
  font: inherit;
  font-size: var(--fs-small);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}

.hs-filter:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.hs-filter[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--ink-inverse);
}

.hs-filter:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.hs-filter__n {
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
}

.hs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--s-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hs-card[hidden] {
  display: none;
}

.hs-card > article {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-float);
}

.hs-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}

.hs-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hs-card__body {
  display: grid;
  align-content: start;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-5) var(--s-5);
}

.hs-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  margin: 0;
}

.hs-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  font-size: var(--fs-micro);
  font-weight: 600;
  color: var(--ink);
  background: var(--accent-soft);
}

/* One data colour per track, the same order the filters list them in. */
.hs-tag--agent { box-shadow: inset 3px 0 0 var(--data-1); }
.hs-tag--3d { box-shadow: inset 3px 0 0 var(--data-2); }
.hs-tag--biz { box-shadow: inset 3px 0 0 var(--data-3); }
.hs-tag--model { box-shadow: inset 3px 0 0 var(--data-4); }
.hs-tag--game { box-shadow: inset 3px 0 0 var(--data-5); }

.hs-card__team {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-small);
  color: var(--ink-3);
}

.hs-card__name {
  margin: 0;
  font-size: var(--fs-h4);
  line-height: 1.3;
  color: var(--ink);
}

.hs-card__one {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--fs-small);
  line-height: 1.6;
}

.hs-card__more summary {
  cursor: pointer;
  font-size: var(--fs-small);
  color: var(--link);
}

.hs-card__more p {
  margin: var(--s-2) 0 0;
  color: var(--ink-2);
  font-size: var(--fs-small);
  line-height: 1.7;
}

.hs-empty,
.hs-note {
  color: var(--ink-3);
  font-size: var(--fs-small);
}

.hs-note {
  margin-top: var(--s-6);
}

.hs-apply__card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--s-7);
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--surface-2);
}

.hs-apply__copy {
  display: grid;
  justify-items: start;
  gap: var(--s-3);
}

.hs-apply__kicker {
  margin: 0;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.hs-apply__url {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--ink-3);
  overflow-wrap: anywhere;
}

.hs-apply__url a {
  color: var(--link);
}

.hs-apply__qr {
  display: grid;
  justify-items: center;
  gap: var(--s-2);
  margin: 0;
}

.hs-apply__qr svg {
  display: block;
  width: 180px;
  height: 180px;
  border-radius: var(--r-small);
}

.hs-apply__qr figcaption {
  font-size: var(--fs-small);
  color: var(--ink-3);
}

@media (max-width: 720px) {
  .hs-apply__card {
    grid-template-columns: 1fr;
  }

  .hs-apply__qr {
    display: none;
  }
}
