/* Hackathon 2026 Teams (rendered by 2026-teams.js): overview grid and team pages.
   Uses each page's own theme variables (--bg, --surface, --accent, ...). */

.c26-num {
  font-family: var(--font-head); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.08em; color: var(--accent);
}

.c26-award {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: 6px 14px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; line-height: 1.4;
  color: var(--accent); background: rgba(249,115,22,0.12); border: 1px solid rgba(249,115,22,0.35);
}
.c26-card .c26-award { margin-bottom: 12px; }
.c26-team-hero .c26-award { margin-bottom: 20px; font-size: 0.88rem; }

/* Placeholder while a team has not supplied an image yet */
.c26-ph {
  width: 100%; height: 100%; min-height: 180px;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: repeating-linear-gradient(135deg, var(--surface-el) 0 14px, var(--surface) 14px 28px);
  color: var(--text-2); font-size: 0.85rem; font-weight: 600; text-align: center;
}
.c26-ph span { background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; }

/* ── Overview ── */
.c26-hero {
  position: relative; overflow: hidden; color: #fff;
  padding: 148px 0 88px;
  background: #0a0a0f url('/assets/hackathon/gallery/hackathon-1.webp') center / cover no-repeat;
}
.c26-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,10,15,0.9) 0%, rgba(10,10,15,0.6) 55%, rgba(10,10,15,0.35) 100%);
}
.c26-hero .container { position: relative; }
.c26-hero h1 {
  font-size: clamp(3rem, 8vw, 6rem); color: #fff; margin-bottom: 20px;
}
.c26-hero h1 span { color: var(--accent); }
.c26-hero p { max-width: 620px; font-size: 1.1rem; line-height: 1.7; color: rgba(255,255,255,0.85); }
.c26-hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.c26-hero-facts span {
  padding: 7px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  background: rgba(255,255,255,0.1); border: 1.5px solid rgba(255,255,255,0.22);
}

.c26-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 40px;
}
.c26-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.c26-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,0.12); border-color: var(--accent); }
.c26-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.c26-card-photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-el); }
.c26-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.c26-card:hover .c26-card-photo img { transform: scale(1.04); }
.c26-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.c26-card h3 {
  font-family: var(--font-head); font-size: 1.45rem; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 8px;
}
.c26-card-tagline { font-size: 0.95rem; line-height: 1.55; color: var(--text); margin-bottom: 12px; }
.c26-card-members { font-size: 0.8rem; line-height: 1.6; color: var(--text-2); margin-bottom: 16px; }
.c26-card-link { margin-top: auto; font-size: 0.85rem; font-weight: 600; color: var(--accent); }

/* ── Team page ── */
.c26-team-hero { padding: 132px 0 56px; background: var(--surface); border-bottom: 1px solid var(--border); }
.c26-team-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center;
}
.c26-back {
  display: inline-block; margin-bottom: 28px; font-size: 0.85rem; font-weight: 600; color: var(--text-2);
}
.c26-back:hover { color: var(--accent); }
.c26-team-hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: 16px; }
.c26-tagline {
  font-family: var(--font-head); font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 500;
  line-height: 1.35; letter-spacing: -0.01em; color: var(--text-2); max-width: 560px;
}
.c26-members-title {
  margin: 32px 0 12px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-2);
}
.c26-members { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.c26-members li {
  padding: 6px 14px; border-radius: 999px; font-size: 0.88rem; font-weight: 600;
  background: var(--bg); border: 1px solid var(--border);
}
.c26-selfie {
  aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--bg); padding: 10px; border: 1px solid var(--border);
  box-shadow: 0 20px 48px rgba(0,0,0,0.14); transform: rotate(1.5deg);
}
.c26-selfie img, .c26-selfie .c26-ph { width: 100%; height: 100%; border-radius: 12px; }
.c26-selfie img { display: block; object-fit: cover; }

.c26-solution { padding: 64px 0 0; }
.c26-solution-figure { border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.c26-solution-figure img { width: 100%; height: auto; display: block; }
.c26-solution-figure .c26-ph { aspect-ratio: 16 / 9; }

.c26-story { padding: 40px 0 24px; }
.c26-qa {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px;
  padding: 44px 0; border-bottom: 1px solid var(--border);
}
.c26-qa:last-child { border-bottom: none; }
.c26-q { position: sticky; top: 100px; align-self: start; }
.c26-q .label { margin: 8px 0 10px; }
.c26-q h2 {
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.25;
}
.c26-a p { font-size: 1.05rem; line-height: 1.8; color: var(--text-2); margin-bottom: 18px; }
.c26-a p:last-child { margin-bottom: 0; }
.c26-a .c26-pending { font-style: italic; }

.c26-visuals { padding: 56px 0 24px; }
.c26-visuals-grid { column-count: 3; column-gap: 12px; margin-top: 28px; }
.c26-photo {
  display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0; overflow: hidden;
  border-radius: 16px; cursor: pointer; background: var(--surface-el); break-inside: avoid;
}
.c26-photo img { width: 100%; height: auto; display: block; transition: transform 0.35s ease; }
.c26-photo:hover img { transform: scale(1.03); }
.c26-photo:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Lightbox for the additional visuals */
#c26-lightbox {
  position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center;
  background: rgba(10,10,15,0.95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
#c26-lightbox.open { display: flex; }
.c26l-wrap { position: relative; max-width: 90vw; max-height: 90vh; }
.c26l-wrap img { display: block; max-width: 90vw; max-height: 90vh; border-radius: 12px; }
.c26l-btn, .c26l-close {
  position: absolute; display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: rgba(255,255,255,0.12); color: #fff; cursor: pointer;
}
.c26l-btn:hover, .c26l-close:hover { background: rgba(255,255,255,0.25); }
.c26l-btn { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 1.4rem; }
.c26l-prev { left: -64px; }
.c26l-next { right: -64px; }
.c26l-close { top: -52px; right: 0; width: 40px; height: 40px; font-size: 1.1rem; }
@media (max-width: 640px) {
  .c26l-prev { left: 8px; }
  .c26l-next { right: 8px; }
  .c26l-close { top: 8px; right: 8px; }
}

.c26-pager { padding: 56px 0 88px; }
.c26-pager-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; }
.c26-pager a {
  display: flex; flex-direction: column; gap: 4px; padding: 20px 24px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  transition: border-color 0.2s ease;
}
.c26-pager a:last-child { text-align: right; }
.c26-pager a:hover { border-color: var(--accent); }
.c26-pager small { font-size: 0.75rem; font-weight: 600; color: var(--text-2); }
.c26-pager span { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; }
.c26-pager .c26-pager-all { text-align: center; justify-content: center; }

@media (max-width: 960px) {
  .c26-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .c26-hero { padding: 120px 0 56px; }
  .c26-grid { grid-template-columns: 1fr; gap: 20px; }
  .c26-team-hero { padding: 104px 0 44px; }
  .c26-team-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .c26-selfie { transform: none; }
  .c26-solution { padding-top: 36px; }
  .c26-qa { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; }
  .c26-q { position: static; }
  .c26-q h2 { font-size: 1.3rem; }
  .c26-a p { font-size: 1rem; }
  .c26-visuals-grid { column-count: 2; }
  .c26-pager-grid { grid-template-columns: 1fr 1fr; }
  .c26-pager .c26-pager-all { grid-column: 1 / -1; grid-row: 2; }
}
