:root {
  --ink: #101820;
  --muted: #66717f;
  --line: #dfe5ea;
  --paper: #f7f9fb;
  --white: #ffffff;
  --red: #c9182b;
  --blue: #1167b1;
  --gold: #c8902d;
  --steel: #243447;
  --shadow: 0 18px 50px rgba(16, 24, 32, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.65;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-view {
  display: none;
}

.page-view:not(.is-active) {
  display: none !important;
}

.page-view.is-active {
  display: block;
}

.hero.page-view.is-active,
.join-section.page-view.is-active {
  display: grid;
}

.section.page-view.is-active,
.join-section.page-view.is-active {
  min-height: calc(100vh - 72px);
  padding-top: clamp(104px, 10vw, 140px);
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
  padding: 0 clamp(20px, 5vw, 72px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 30px rgba(16, 24, 32, 0.09);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 310px;
}

.school-emblem,
.team-emblem,
.hero-badge img {
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
}

.school-emblem {
  width: 42px;
  height: 42px;
  padding: 2px;
}

.team-emblem {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
}

.brand small {
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.76;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}

.site-nav a {
  padding: 8px 0;
  white-space: nowrap;
}

.site-nav a.is-active {
  color: var(--red);
  font-weight: 900;
}

.nav-cta {
  padding: 8px 14px !important;
  border: 1px solid currentColor;
  border-radius: var(--radius);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  color: inherit;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 120px clamp(20px, 6vw, 90px) 32px;
  color: var(--white);
  overflow: hidden;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background: url("assets/photos/team-hero-2026-national-final.jpg") center center/cover no-repeat;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 12, 20, 0.88) 0%, rgba(5, 12, 20, 0.62) 36%, rgba(5, 12, 20, 0.18) 72%, rgba(5, 12, 20, 0.1) 100%),
    linear-gradient(0deg, rgba(5, 12, 20, 0.82) 0%, rgba(5, 12, 20, 0.12) 52%);
}

.hero-content,
.hero-metrics {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: min(1080px, 78vw);
  padding-bottom: clamp(36px, 9vw, 112px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 8px 12px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.9);
  background: rgba(8, 18, 30, 0.48);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 700;
}

.hero-badge img {
  width: 34px;
  height: 34px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 1.04;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero-copy {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
}

.team-motto {
  display: inline-block;
  margin: 18px 0 0;
  padding-left: 14px;
  border-left: 4px solid var(--red);
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.22;
}

.hero-actions,
.join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-module-links {
  max-width: 860px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
}

.button-primary {
  color: var(--white);
  background: var(--red);
}

.button-secondary {
  color: inherit;
  border-color: currentColor;
  background: rgba(255, 255, 255, 0.08);
}

.button-strong {
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.16);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(8, 18, 30, 0.72);
  backdrop-filter: blur(16px);
}

.hero-metrics article {
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-metrics article:last-child {
  border-right: 0;
}

.hero-metrics strong {
  display: block;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.1;
}

.hero-metrics span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.section {
  padding: clamp(70px, 9vw, 120px) clamp(20px, 6vw, 90px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading.compact {
  max-width: 680px;
}

.section-heading h2,
.join-content h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.14;
  letter-spacing: 0;
}

.section-heading p:last-child,
.join-content p {
  color: var(--muted);
  font-size: 17px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
}

.about-copy,
.timeline,
.join-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-copy {
  padding: clamp(26px, 4vw, 42px);
}

.about-copy h3 {
  margin: 0 0 14px;
  font-size: 25px;
}

.about-location {
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(17, 103, 177, 0.08), rgba(201, 24, 43, 0.06));
}

.about-location span,
.about-location strong,
.about-location p {
  display: block;
}

.about-location span {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.about-location strong {
  margin-top: 8px;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.28;
}

.about-location p {
  margin: 6px 0 0;
  color: var(--blue);
  font-size: 18px;
  font-weight: 900;
}

.timeline {
  padding: 12px;
}

.timeline div {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.timeline div:last-child {
  border-bottom: 0;
}

.timeline time {
  display: block;
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
}

.timeline strong,
.timeline span {
  display: block;
}

.timeline strong {
  margin-top: 8px;
  font-size: 20px;
}

.timeline span {
  margin-top: 6px;
  color: var(--muted);
}

.team-section,
.honors-section {
  background: var(--white);
}

.team-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-button {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--steel);
  background: var(--white);
  cursor: pointer;
}

.filter-button.is-active {
  color: var(--white);
  border-color: var(--steel);
  background: var(--steel);
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  justify-content: start;
  gap: 18px;
}

.tech-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.member-card,
.tech-card,
.news-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.member-card {
  overflow: hidden;
  cursor: pointer;
  display: grid;
  grid-template-rows: 340px minmax(230px, 1fr);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.group-card {
  grid-template-rows: 308px minmax(236px, 1fr);
}

.member-card:hover,
.member-card:focus {
  border-color: rgba(17, 103, 177, 0.45);
  box-shadow: var(--shadow);
  outline: none;
  transform: translateY(-2px);
}

.member-card:hover .member-photo-group img,
.member-card:focus .member-photo-group img {
  transform: scale(1.01);
}

.member-photo {
  display: grid;
  place-items: center;
  height: 340px;
  min-height: 340px;
  color: var(--white);
  background: linear-gradient(135deg, var(--steel), #3b4d61);
  font-size: 48px;
  font-weight: 800;
  overflow: hidden;
  position: relative;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  background: #f5f8fb;
  transition: transform 220ms ease, object-position 220ms ease;
}

.member-photo-group {
  background:
    radial-gradient(circle at 14% 18%, rgba(17, 103, 177, 0.1), transparent 22%),
    linear-gradient(135deg, #edf4fa, #dfeaf4 58%, #d5e3f0);
}

.member-photo-group::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(16, 24, 32, 0.02) 100%),
    repeating-linear-gradient(135deg, rgba(17, 103, 177, 0.04) 0 1px, transparent 1px 18px);
  pointer-events: none;
}

.member-photo-group::before {
  content: none;
}

.member-photo-group img {
  object-fit: contain;
  object-position: center top;
  transform: scale(1.08) translateY(14px);
  filter: none;
  padding: 0 8px 0;
}

.member-photo-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(36, 52, 71, 0.14);
  border-radius: 16px;
  color: var(--white);
  background: rgba(36, 52, 71, 0.88);
  box-shadow: 0 8px 18px rgba(14, 26, 39, 0.12);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.member-photo-group .member-photo-badge::after {
  content: none;
}

.member-photo-group img {
  mask-image: none;
}

.member-photo.is-portrait-photo {
  padding: 0;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.95), rgba(234, 241, 248, 0.92) 48%, rgba(219, 231, 242, 0.9) 100%);
}

.member-photo.is-portrait-photo img {
  width: auto;
  max-width: var(--member-image-max-width, min(76%, 260px));
  height: 100%;
  margin: 0 auto;
  object-fit: contain !important;
  object-position: center top !important;
  padding-top: 0;
  background: transparent;
}

.member-dialog-photo img.is-portrait,
.member-profile-photo img.is-portrait {
  object-fit: contain !important;
  object-position: center center !important;
  padding-top: 0;
}

.member-card-body {
  padding: 18px;
  background: var(--white);
}

.group-card .member-card-body {
  padding: 16px 18px 20px;
}

.group-card .member-meta {
  display: block;
  margin-bottom: 8px;
  line-height: 1.45;
}

.group-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.group-card p {
  -webkit-line-clamp: 4;
}

.member-card h3,
.tech-card h3,
.news-card h3 {
  margin: 0;
  font-size: 20px;
}

.member-meta,
.card-tag,
.honor-meta {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.member-card p,
.tech-card p,
.news-card p,
.honor-item p {
  color: var(--muted);
}

.member-card p {
  margin-bottom: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.member-more {
  display: inline-block;
  margin-top: 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.member-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.member-modal.is-open {
  display: flex;
}

.member-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 12, 20, 0.72);
  backdrop-filter: blur(8px);
}

.member-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  width: min(920px, 100%);
  max-height: min(760px, 88vh);
  overflow: auto;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.member-dialog-photo {
  display: grid;
  place-items: center;
  min-height: 360px;
  color: var(--white);
  background: linear-gradient(135deg, var(--steel), #31475d);
  font-size: 88px;
  font-weight: 900;
}

.member-dialog-photo img {
  width: 100%;
  height: 100%;
  object-fit: var(--member-image-fit, cover);
  object-position: var(--member-image-position, center top);
  display: block;
  background: #f5f8fb;
}

.member-profile-section {
  background: var(--paper);
}

.back-button {
  margin-bottom: 20px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--steel);
  background: var(--white);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.member-profile {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: stretch;
  min-height: 680px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.member-profile-sidebar {
  padding: 28px 22px;
  color: var(--white);
  background: #000;
}

.member-profile-photo {
  display: grid;
  place-items: center;
  width: 156px;
  height: 190px;
  margin: 0 auto 18px;
  color: var(--white);
  border: 4px solid rgba(255, 255, 255, 0.86);
  background: linear-gradient(135deg, var(--steel), #31475d);
  font-size: 64px;
  font-weight: 900;
  overflow: hidden;
}

.member-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: var(--member-image-fit, cover);
  object-position: var(--member-image-position, center top);
  display: block;
  background: #f5f8fb;
}

.member-dialog-photo img.is-portrait,
.member-profile-photo img.is-portrait {
  object-fit: contain !important;
  object-position: center center !important;
}

.member-dialog-photo img.is-portrait,
.member-profile-photo img.is-portrait {
  padding: 8px;
}

.profile-inline-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.profile-inline-gallery-item {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f8fb;
}

.profile-inline-gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.member-profile-sidebar h2 {
  margin: 0;
  text-align: center;
  font-size: 26px;
}

.member-profile-sidebar > p {
  margin: 8px 0 22px;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  font-weight: 700;
}

.profile-side-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.profile-side-list div {
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.profile-side-list dt {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 900;
}

.profile-side-list dd {
  margin: 4px 0 0;
  color: var(--white);
  word-break: break-word;
}

.member-profile-body {
  padding: clamp(34px, 5vw, 68px);
}

.profile-title {
  padding-bottom: 24px;
  border-bottom: 2px solid var(--line);
}

.profile-title span {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-title h2 {
  margin: 8px 0 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.profile-section-list {
  display: grid;
  gap: 28px;
  margin-top: 30px;
}

.profile-section {
  max-width: 1080px;
}

.profile-section h3 {
  position: relative;
  margin: 0 0 12px;
  padding-left: 14px;
  font-size: 24px;
}

.profile-section h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  bottom: 0.25em;
  width: 4px;
  border-radius: 2px;
  background: var(--red);
}

.profile-section p {
  margin: 0;
  color: #4f5d6b;
  font-size: 17px;
  line-height: 1.9;
}

.profile-section p + p {
  margin-top: 14px;
}

.award-summary-text {
  color: #4f5d6b;
  font-size: 17px;
  line-height: 1.9;
  white-space: pre-line;
}

.reflection-paragraph {
  color: #334155;
  font-size: 18px;
  line-height: 2;
}

.member-dialog-body {
  padding: clamp(26px, 4vw, 42px);
}

.member-dialog-group {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.member-dialog-body h2 {
  margin: 8px 0 4px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}

.member-dialog-meta {
  margin: 0 0 16px;
  color: var(--red);
  font-weight: 900;
}

.member-dialog-body > p {
  color: var(--muted);
}

.member-detail-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
}

.member-detail-list div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.member-detail-list dt {
  color: var(--ink);
  font-weight: 900;
}

.member-detail-list dd {
  margin: 0;
  color: var(--muted);
  white-space: pre-line;
}

.tech-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tech-card,
.news-card {
  padding: 24px;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.news-year {
  min-width: 0;
}

.news-year-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}

.news-year-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}

.news-year-heading span {
  color: var(--muted);
  font-size: 13px;
}

.news-year-grid {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 22px;
}

.news-card {
  display: flex;
  width: min(100%, 720px);
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.news-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.news-media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  background: #e8edf1;
}

.news-media.is-multiple {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-media.is-multiple a {
  aspect-ratio: 4 / 3;
}

.news-media.is-multiple img {
  height: 100%;
  object-fit: cover;
}

.news-media a {
  display: block;
  min-width: 0;
  overflow: hidden;
}

.news-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.news-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 24px 24px;
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.news-card-meta time {
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.news-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.5;
}

.news-card-body p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.tech-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.tech-card > p {
  margin: 12px 0 18px;
  line-height: 1.8;
}

.tech-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tech-card-tags span {
  padding: 6px 9px;
  border: 1px solid rgba(17, 103, 177, 0.16);
  border-radius: 999px;
  color: #315f86;
  background: rgba(17, 103, 177, 0.06);
  font-size: 12px;
  font-weight: 800;
}

.tech-card-more {
  display: inline-block;
  margin-top: 18px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.tech-card:hover,
.tech-card:focus {
  border-color: rgba(17, 103, 177, 0.45);
  box-shadow: var(--shadow);
  outline: none;
  transform: translateY(-2px);
}

.tech-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  color: var(--white);
  border-radius: var(--radius);
  background: var(--blue);
  font-weight: 900;
}

.tech-detail-section {
  background: var(--paper);
}

.tech-detail {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
}

.tech-detail-sidebar,
.tech-detail-body {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.tech-detail-sidebar {
  align-self: start;
  padding: 28px;
}

.tech-detail-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--blue);
  font-size: 34px;
  font-weight: 900;
}

.tech-detail-sidebar h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.16;
}

.tech-detail-sidebar p {
  color: var(--muted);
}

.tech-detail-body {
  display: grid;
  gap: 26px;
  padding: clamp(28px, 5vw, 56px);
}

.tech-detail-list {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  margin: 0;
  color: #4f5d6b;
  font-size: 17px;
  line-height: 1.8;
}

.honor-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 250px));
  justify-content: start;
  gap: 20px;
}

.qa-section {
  background: var(--paper);
}

.qa-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 26px;
  align-items: start;
}

.qa-layout h3 {
  margin: 0 0 14px;
  font-size: 24px;
}

.qa-subtitle {
  margin-top: 28px !important;
}

.qa-list {
  display: grid;
  gap: 12px;
}

.qa-item,
.qa-empty,
.question-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.qa-item,
.qa-empty {
  padding: 18px;
}

.qa-item span {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--steel);
  font-size: 12px;
  font-weight: 900;
}

.qa-item.is-answered {
  border-left: 4px solid var(--blue);
}

.qa-item h4,
.qa-empty h4 {
  margin: 0;
  font-size: 19px;
}

.qa-item p,
.qa-empty p {
  margin: 8px 0 0;
  color: var(--muted);
}

.qa-answer {
  color: var(--ink) !important;
  font-weight: 700;
}

.question-form {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.question-link-panel > p:not(.eyebrow):not(.form-note) {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.question-link-panel .button {
  justify-self: stretch;
  text-align: center;
}

.question-form label {
  display: grid;
  gap: 6px;
}

.question-form label span {
  font-size: 14px;
  font-weight: 900;
}

.question-form input,
.question-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  color: var(--ink);
  background: #fbfcfd;
  font: inherit;
}

.question-form textarea {
  resize: vertical;
}

.question-form input:focus,
.question-form textarea:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(17, 103, 177, 0.12);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.competition-section {
  background: #f1f5f8;
}

.competition-list {
  display: grid;
  gap: 18px;
}

.competition-year {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}

.competition-year-head {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.competition-year-head > span {
  color: var(--red);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.competition-year-head h3,
.competition-group h4 {
  margin: 0;
}

.competition-season-title {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.competition-history-best {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid #e2aa36;
  border-radius: 999px;
  color: #754b00;
  background: #fff4cf;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.competition-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 18px;
}

.competition-group {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.competition-group-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 14px;
}

.competition-group-head h4 {
  margin-top: 10px;
  font-size: 22px;
}

.competition-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.competition-award {
  padding: 5px 9px;
  border-radius: var(--radius);
  color: #8c1d26;
  background: #fff0f1;
  border: 1px solid #f5c8cc;
  font-size: 13px;
  font-weight: 800;
}

.competition-facts {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.competition-facts > div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.competition-facts dt {
  color: var(--ink);
  font-weight: 800;
}

.competition-facts dd {
  margin: 0;
  color: var(--muted);
}

.honor-item {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.honor-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.honor-image-link {
  display: block;
  padding: 10px;
  background: #f2f4f7;
}

.honor-image-link img {
  display: block;
  width: 100%;
  aspect-ratio: 0.705;
  object-fit: contain;
  border-radius: 4px;
  background: var(--white);
}

.honor-item figcaption {
  padding: 14px 15px 16px;
}

.honor-item h3 {
  margin: 4px 0 5px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
}

.honor-item figcaption p {
  margin: 0;
  font-size: 13px;
}

.join-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 32px;
  padding: clamp(70px, 9vw, 120px) clamp(20px, 6vw, 90px);
  color: var(--white);
  background: linear-gradient(135deg, #101820 0%, #243447 55%, #172536 100%);
}

.join-content {
  max-width: 980px;
}

.join-content p {
  color: rgba(255, 255, 255, 0.78);
}

.join-lead {
  max-width: 900px;
  font-size: clamp(18px, 1.35vw, 22px);
  line-height: 1.85;
}

.join-block {
  margin-top: 34px;
}

.join-block h3,
.join-process h3 {
  margin: 0 0 16px;
  font-size: 22px;
}

.join-trait-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.join-trait-grid article {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.join-trait-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-size: 17px;
}

.join-trait-grid p {
  margin: 0;
  font-size: 14px;
}

.join-direction-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.join-direction-list span {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 13px 15px;
  border-left: 3px solid var(--red);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.join-direction-list strong {
  flex: 0 0 auto;
  color: var(--white);
}

.join-panel {
  align-self: start;
  padding: 28px;
  color: var(--ink);
  box-shadow: none;
  background: rgba(255, 255, 255, 0.97);
}

.join-panel-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.join-info-list {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
}

.join-info-list div {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.join-info-list dt {
  font-weight: 900;
}

.join-info-list dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.join-qr-code {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 14px 0 0;
}

.join-qr-code img {
  display: block;
  width: min(100%, 235px);
  height: auto;
  border-radius: 8px;
}

.join-qr-code figcaption {
  color: var(--ink);
  text-align: center;
  line-height: 1.7;
  font-weight: 700;
}

.join-process {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 2px solid var(--ink);
}

.join-process ol {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.join-process li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
}

.join-process li > span {
  color: var(--red);
  font-size: 18px;
  font-weight: 900;
}

.join-process strong {
  display: block;
}

.join-process p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.join-selection-reserve {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 28px;
  align-items: center;
  margin-top: 12px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.08), rgba(200, 24, 43, 0.12));
}

.join-selection-reserve h3 {
  margin: 6px 0 8px;
  font-size: 28px;
}

.join-selection-reserve p:not(.eyebrow) {
  max-width: 900px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.join-reserve-status {
  display: inline-flex;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.join-reserve-status.is-published {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

.join-reserve-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.join-reserve-meta > span {
  padding: 7px 10px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.join-reserve-meta .button {
  flex-basis: 100%;
  margin-top: 8px;
  text-align: center;
}

.join-reserve-meta .button:disabled {
  opacity: 0.82;
  cursor: not-allowed;
}

.selection-section {
  background: var(--paper);
}

.selection-resource-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.6fr);
  gap: 24px;
  align-items: start;
}

.selection-map-card,
.selection-download-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.selection-map-card {
  position: relative;
  overflow: hidden;
  margin: 0;
}

.selection-map-card img {
  display: block;
  width: 100%;
  height: auto;
}

.selection-map-card figcaption {
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.selection-map-link {
  position: absolute;
  inset: 0 0 43px;
  z-index: 1;
}

.selection-map-link:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: -5px;
}

.selection-download-panel {
  position: sticky;
  top: 92px;
  padding: 28px;
}

.selection-download-panel h3 {
  margin: 0;
  font-size: 24px;
}

.selection-download-panel > p:not(.eyebrow),
.selection-download-panel dd {
  color: var(--muted);
}

.selection-published-badge {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.selection-download-panel dl {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
}

.selection-download-panel dl div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.selection-download-panel dt {
  font-weight: 900;
}

.selection-download-panel dd {
  margin: 4px 0 0;
}

.selection-document-actions {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.selection-document-actions .button {
  text-align: center;
}

.selection-preview-link {
  color: var(--steel);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.selection-preview-link:hover {
  color: var(--red);
}

.join-panel > h3 {
  margin: 0 0 12px;
}

.site-like-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 218px;
  padding: 10px 16px;
  border: 1px solid #b52734;
  border-radius: 999px;
  color: var(--white);
  background: #a4212e;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.site-like-button:not(:disabled):hover {
  color: var(--white);
  background: #bd2b39;
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(117, 24, 35, 0.16);
}

.site-like-button:disabled {
  cursor: default;
  opacity: 0.78;
}

.site-like-button.is-liked {
  color: var(--white);
  border-color: #7f1a24;
  background: #7f1a24;
}

.site-like-heart {
  font-size: 22px;
  line-height: 1;
}

.site-like-button strong {
  padding-left: 9px;
  border-left: 1px solid currentColor;
  font-variant-numeric: tabular-nums;
}

.site-like-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-message {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(36px, 7vw, 96px);
  padding: 64px clamp(20px, 8vw, 130px);
  border-top: 1px solid var(--line);
  background: var(--white);
}

.site-message[hidden] {
  display: none;
}

.site-message-heading > span {
  color: #a4212e;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.site-message-heading h2 {
  margin: 10px 0 12px;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 36px);
}

.site-message-heading p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.site-message-form {
  display: grid;
  gap: 18px;
}

.site-message-form label > span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.site-message-form label small {
  color: var(--muted);
  font-weight: 500;
}

.site-message-form input,
.site-message-form textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: #fafafa;
  font: inherit;
  box-sizing: border-box;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.site-message-form textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.65;
}

.site-message-form input:focus,
.site-message-form textarea:focus {
  border-color: #a4212e;
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(164, 33, 46, 0.1);
}

.message-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-message-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-message-actions > span {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.site-message-actions button {
  padding: 11px 24px;
  color: var(--white);
  border: 1px solid #a4212e;
  border-radius: 8px;
  background: #a4212e;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, opacity 160ms ease;
}

.site-message-actions button:hover:not(:disabled) {
  background: #841925;
}

.site-message-actions button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.site-message-feedback {
  min-height: 22px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.site-message-feedback.is-success {
  color: #28794a;
}

.site-message-feedback.is-error {
  color: #a4212e;
}

.approved-messages {
  grid-column: 1 / -1;
  margin-top: 12px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.approved-messages-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.approved-messages-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
}

.approved-messages-head span {
  color: var(--muted);
  font-size: 13px;
}

.approved-message-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.approved-message-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
}

.approved-message-card p {
  margin: 0 0 14px;
  color: var(--ink);
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.approved-message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.approved-message-meta strong {
  color: #a4212e;
  font-weight: 800;
}

.approved-message-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 22px 0;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(20px, 6vw, 90px);
  color: rgba(255, 255, 255, 0.78);
  background: #0c1117;
}

.footer-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.footer-top {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.footer-top:hover {
  color: var(--white);
}

.footer-identity strong,
.footer-identity span {
  display: block;
}

.footer-identity span + span {
  margin-top: 4px;
}

@media (max-width: 960px) {
  .site-header {
    height: 66px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 66px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand .school-emblem {
    width: 38px;
    height: 38px;
  }

  .team-emblem {
    width: 42px;
    height: 42px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 900px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero h1 {
    white-space: normal;
  }

  .hero-metrics,
  .about-grid,
  .selection-resource-layout,
  .join-section,
  .site-message {
    grid-template-columns: 1fr;
  }

  .hero-metrics article {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .hero-metrics article:last-child {
    border-bottom: 0;
  }

  .member-grid,
  .tech-grid,
  .news-grid,
  .approved-message-list {
    grid-template-columns: 1fr;
  }

  .news-year-grid {
    grid-template-columns: 1fr;
  }

  .news-media img {
    aspect-ratio: auto;
  }

  .competition-year-head,
  .competition-groups,
  .competition-group li,
  .join-selection-reserve,
  .tech-detail,
  .qa-layout {
    grid-template-columns: 1fr;
  }

  .join-reserve-meta {
    justify-content: flex-start;
  }

  .selection-download-panel {
    position: static;
  }

  .competition-group-head {
    flex-direction: column;
  }

  .question-form {
    position: static;
  }

  .member-dialog {
    grid-template-columns: 1fr;
  }

  .member-profile {
    grid-template-columns: 1fr;
  }

  .member-dialog-photo {
    min-height: 260px;
  }

  .member-profile-photo {
    width: 148px;
    height: 180px;
  }

  .profile-inline-gallery {
    grid-template-columns: 1fr;
  }

  .honor-list {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
}

@media (max-width: 620px) {
  .site-like-button {
    min-width: 218px;
    padding: 9px 13px;
  }

  .site-message {
    gap: 28px;
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .site-message-actions {
    align-items: flex-end;
  }

  .approved-messages-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .footer-actions {
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 0 16px;
  }

  .brand strong {
    font-size: 15px;
  }

  .hero-badge {
    align-items: center;
    font-size: 13px;
  }

  .hero {
    min-height: 820px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-actions,
  .join-actions,
  .site-footer {
    flex-direction: column;
  }

  .join-trait-grid,
  .join-direction-list {
    grid-template-columns: 1fr;
  }

  .join-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .join-panel,
  .join-selection-reserve {
    padding: 22px;
  }

  .button {
    width: 100%;
  }

  .member-modal {
    padding: 14px;
  }

  .member-detail-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
